]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
iconv, localedef: avoid floating point rounding differences [BZ #24372]
[thirdparty/glibc.git] / ChangeLog
1 2019-03-21 DJ Delorie <dj@redhat.com>
2
3 [BZ #24372]
4 * iconv/iconvconfig.c (write_output): Replace floating point math
5 with integer math to avoid imprecise results.
6 * locale/programs/ld-collate.c (collate_output): Likewise.
7
8 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
9
10 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
11 Add HWCAP_S390_VX and HWCAP_S390_VXE.
12
13 2019-03-20 mansayk <6688000@gmail.com>
14
15 [BZ #24296]
16 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
17 (abday): Likewise, but remove the trailing dots.
18
19 2019-03-19 Joseph Myers <joseph@codesourcery.com>
20
21 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
22 macro.
23 (HWCAP_PACA): Likewise.
24 (HWCAP_PACG): Likewise.
25 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
26 Increase to 32.
27 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
28
29 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
30
31 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
32 should be handled.
33
34 2019-03-15 Joseph Myers <joseph@codesourcery.com>
35
36 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
37 version to 5.0.
38 (old_getpagesize): New syscall.
39
40 2019-03-15 Felix Yan <felixonmars@archlinux.org>
41
42 [BZ #24293]
43 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
44 * localedata/locales/cmn_TW (era): Likewise.
45 * localedata/locales/hak_TW (era): Likewise.
46 * localedata/locales/lzh_TW (era): Likewise.
47 * localedata/locales/nan_TW (era): Likewise.
48
49 2019-03-14 Florian Weimer <fweimer@redhat.com>
50
51 Remove obsolete, never-implemented XSI STREAMS declarations.
52 * manual/terminal.texi (Allocation): Remove portability note and
53 adjust example.
54 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
55 _SC_STREAMS.
56 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
57 * sysdeps/unix/inet/Subdirs (streams): Remove.
58 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
59 (conformtest-headers-UNIX98): Likewise.
60 (conformtest-headers-XOPEN2K): Likewise.
61 (conformtest-headers-POSIX2008): Likewise.
62 * posix/compat-streams.c: New file.
63 * posix/Makefile (routines): Add it.
64 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
65 getpmsg, isastream, putmsg, putpmsg.
66 (GLIBC_2.30): New section.
67 * bits/stropts.h: Remove file.
68 * bits/xtitypes.h: Likewise.
69 * conform/data/stropts.h-data: Likewise.
70 * include/stropts.h: Likewise.
71 * include/sys/stropts.h: Likewise.
72 * include/xtitypes.h: Likewise.
73 * streams/Makefile: Likewise.
74 * streams/fattach.c: Likewise.
75 * streams/fdetach.c: Likewise.
76 * streams/getmsg.c: Likewise.
77 * streams/getpmsg.c: Likewise.
78 * streams/isastream.c: Likewise.
79 * streams/putmsg.c: Likewise.
80 * streams/putpmsg.c: Likewise.
81 * streams/stropts.h: Likewise.
82 * streams/sys/stropts.h: Likewise.
83 * sysdeps/ia64/bits/xtitypes.h: Likewise.
84 * sysdeps/s390/bits/xtitypes.h: Likewise.
85 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
86 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
87 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
88 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
89 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
90 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
91 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
92 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
93 * sysdeps/x86/bits/xtitypes.h: Likewise.
94
95 2019-03-14 Florian Weimer <fweimer@redhat.com>
96
97 * nss/tst-nss-files-alias-truncated.c (do_test): Load
98 libnss_files.
99 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
100 but not with libnss_files.
101 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
102
103 2019-03-14 Zack Weinberg <zackw@panix.com>
104
105 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
106 Specify encoding="utf-8" when opening headers to check.
107
108 2019-03-13 Joseph Myers <joseph@codesourcery.com>
109
110 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
111 version to 5.0.
112 (Context.checkout_tar): Handle variable major version for Linux
113 kernel.
114
115 2019-03-13 Florian Weimer <fweimer@redhat.com>
116
117 [BZ #24047]
118 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
119
120 2019-03-13 Zack Weinberg <zackw@panix.com>
121
122 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
123 Move to stdlib.
124 * include/inttypes.h: Adjust to match.
125 * include/stdint.h: New wrapper.
126
127 2019-03-13 Zack Weinberg <zackw@panix.com>
128
129 * scripts/check-obsolete-constructs.py: New test script.
130 * scripts/check-installed-headers.sh: Remove tests for
131 obsolete typedefs, superseded by check-obsolete-constructs.py.
132 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
133 as a special test. Update commentary.
134 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
135 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
136 Update commentary.
137 * posix/sys/types.h (__u_intN_t): Remove.
138 (u_int8_t): Typedef using __uint8_t.
139 (u_int16_t): Typedef using __uint16_t.
140 (u_int32_t): Typedef using __uint32_t.
141 (u_int64_t): Typedef using __uint64_t.
142
143 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
144
145 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
146 call _dl_procinfo.
147 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
148 Ignore types other than AT_HWCAP.
149 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
150 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
151 Likewise.
152 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
153 in the case of falling back to generic output mechanism.
154 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
155 Likewise.
156
157 2019-03-12 Florian Weimer <fweimer@redhat.com>
158
159 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
160
161 2019-03-12 Florian Weimer <fweimer@redhat.com>
162
163 [BZ #24047]
164 resolv: Enable full ICMP errors for UDP DNS sockets
165 * resolv/res_enable_icmp.c: New file.
166 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
167 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
168 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
169 socket.
170
171 2019-03-11 Mao Han <han_mao@c-sky.com>
172
173 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
174 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
175
176 2019-03-11 Mao Han <han_mao@c-sky.com>
177
178 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
179 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
180 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
181
182 2019-03-11 Mao Han <han_mao@c-sky.com>
183
184 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
185 directly.
186 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
187 definition.
188
189 2019-03-11 Mao Han <han_mao@c-sky.com>
190
191 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
192 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
193 in mcontext_t
194
195 2019-03-08 Mike FABIAN <mfabian@redhat.com>
196
197 [BZ #24307]
198 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
199 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
200 Unicode 12.0.0.
201 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
202 * localedata/unicode-gen/PropList.txt: Likewise.
203 * localedata/unicode-gen/UnicodeData.txt: Likewise.
204 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
205 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
206 * localedata/charmaps/UTF-8: Regenerate.
207 * localedata/locales/i18n_ctype: Likewise.
208 * localedata/locales/tr_TR: Likewise.
209 * localedata/locales/translit_circle: Likewise.
210 * localedata/locales/translit_cjk_compat: Likewise.
211 * localedata/locales/translit_combining: Likewise.
212 * localedata/locales/translit_compat: Likewise.
213 * localedata/locales/translit_font: Likewise.
214 * localedata/locales/translit_fraction: Likewise.
215
216 2019-03-07 Joseph Myers <joseph@codesourcery.com>
217
218 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
219 than after operators.
220 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
221 (setitimer_locked): Likewise.
222 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
223 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
224 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
225 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
226 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
227 (PPC_CPU_SUPPORTED): Likewise.
228 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
229 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
230 (stat_overflow): Likewise.
231 (statfs_overflow): Likewise.
232 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
233 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
234 (eq_ttyname_r): Likewise.
235 (run_chroot_tests): Likewise.
236
237 2019-03-07 Florian Weimer <fweimer@redhat.com>
238
239 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
240 header check.
241
242 2019-03-07 Martin Liska <mliska@suse.cz>
243
244 * math/Makefile: Change location where math-vector-fortran.h is
245 installed.
246 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
247 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
248 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
249 * scripts/check-installed-headers.sh: Skip Fortran header files.
250 * scripts/check-wrapper-headers.py: Likewise.
251
252 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
253
254 * nptl/nptl-init.c (__have_futex_clock_realtime,
255 __have_futex_clock_realtime): Remove definition.
256 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
257 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
258 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
259 __ASSUME_FUTEX_CLOCK_REALTIME support.
260 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
261 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
262 * sysdeps/unix/sysv/linux/kernel-features.h
263 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
264 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
265 Adjust comment.
266
267 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
268
269 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
270 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
271 __GI___wcscpy and wcscpy.
272
273 2019-03-04 Florian Weimer <fweimer@redhat.com>
274
275 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
276 declaration.
277 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
278 defined.
279
280 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
281
282 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
283 * sysdeps/s390/s390-32/sysdep.h: Likewise.
284
285 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
286
287 [BZ #24162]
288 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
289 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
290
291 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
292
293 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
294 tests.
295 (do_test): Likewise.
296 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
297 (do_test_call_varg): Likewise.
298 (do_test_call_rarg): Likewise.
299 * sysdeps/ieee754/ldbl-opt/Makefile
300 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
301 tst-nldbl-error.
302 ($(objpfx)tst-nldbl-warn.c): New rule.
303 ($(objpfx)tst-nldbl-error.c): Likewise.
304 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
305 New variables.
306
307 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
308
309 [BZ #23984]
310 * include/bits/error-ldbl.h: New file.
311 * include/error.h: Include stdarg.h. Declare internal functions
312 __error_internal and __error_at_line_internal.
313 * misc/Makefile (headers): Add bits/error-ldbl.h.
314 * misc/bits/error-ldbl.h: New file.
315 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
316 avoid the inclusion of bits/error.h.
317 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
318 and __nldbl_error_at_line.
319 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
320 (__nldbl_error, __ndlbl_error_at_line): New functions.
321 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
322 Redirect error and error_at_line.
323 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
324 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
325 Likewise.
326 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
327 Likewise.
328 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
329 Likewise.
330 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
331 Likewise.
332 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
333 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
334 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
335
336 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
337
338 [BZ #23984]
339 * include/bits/err-ldbl.h: New file.
340 * include/err.h: Add prototypes for the internal functions:
341 __vwarnx_internal and __vwarn_internal.
342 * misc/Makefile (headers): Add bits/err-ldbl.h.
343 * misc/bits/err-ldbl.h: New file.
344 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
345 defined, i.e.: when -mlong-double-64 is in use.
346 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
347 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
348 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
349 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
350 (VA_CALL): New macro.
351 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
352 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
353 functions.
354 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
355 declare prototypes for the new functions.
356 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
357 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
358 Likewise.
359 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
360 Likewise.
361 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
362 Likewise.
363 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
364 Likewise.
365 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
366 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
367 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
368
369 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
370
371 * sysdeps/ieee754/ldbl-opt/Makefile
372 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
373 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
374 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
375
376 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
377
378 [BZ #23983]
379 * argp/Makefile (headers): Add bits/argp-ldbl.h.
380 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
381 * argp/bits/argp-ldbl.h: New file.
382 * include/argp.h: Include stdarg.h. Add prototypes for internal
383 functions: __argp_error_internal and __argp_failure_internal.
384 * include/bits/argp-ldbl.h: New file.
385 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
386 __nldbl_argp_error and __nldbl_argp_failure.
387 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
388 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
389 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
390 Redirect argp_error and argp_failure calls.
391 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
392 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
393 Likewise.
394 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
395 Likewise.
396 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
397 Likewise.
398 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
399 Likewise.
400 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
401 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
402 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
403
404 2019-03-01 Florian Weimer <fweimer@redhat.com>
405
406 [BZ #20419]
407 * elf/tst-big-note-lib.S: Create a syntactically valid note.
408 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
409 code, to avoid creating an ABI tag note.
410 (modules-names-nobuild): Add tst-big-note-lib.
411
412 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
413
414 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
415 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
416
417 2019-03-01 Florian Weimer <fweimer@redhat.com>
418
419 [BZ #20271]
420 * sysdeps/unix/sysv/linux/netlink_assert_response.c
421 (__netlink_assert_response): Add additional missing newlines.
422
423 2019-02-28 Joseph Myers <joseph@codesourcery.com>
424
425 * sysdeps/powerpc/powerpc32/dl-machine.c
426 (__elf_machine_fixup_plt): Use space before '('.
427 (__process_machine_rela): Likewise.
428 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
429 Likewise.
430 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
431 Likewise.
432 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
433 Likewise.
434 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
435 (pattern): Likewise.
436 (delta): Likewise.
437 (check_result): Likewise.
438 (check_excepts): Likewise.
439 (check_op): Likewise.
440 (fail_xr): Likewise.
441 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
442 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
443 (SCNHSZ): Likewise.
444 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
445 Likewise.
446 (ARGS): Likewise.
447 (__makecontext): Likewise.
448 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
449 Likewise.
450
451 2019-02-28 Florian Weimer <fweimer@redhat.com>
452
453 [BZ #23937]
454 elf: Add test with a local IFUNC resolver.
455 * elf/ifuncmain9.c: New file.
456 * elf/ifuncmain9pic.c: Likewise.
457 * elf/ifuncmain9picstatic.c: Likewise.
458 * elf/ifuncmain9pie.c: Likewise.
459 * elf/ifuncmain9static.c: Likewise.
460 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
461 ifuncmain9static, ifuncmain9picstatic.
462 * elf/Makefile [multi-arch && build-shared] (tests-internal):
463 Add ifuncmain9, ifuncmain9pic.
464 * elf/Makefile [multi-arch && build-shared && have-fpie]
465 (ifunc-pie-tests): Add ifuncmain9pie.
466 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
467 (CFLAGS-ifuncmain9picstatic.c): Likewise.
468 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
469
470 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
471
472 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
473 * configure: Regenerated.
474 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
475
476 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
477
478 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
479 symbol as __wcspcy instead of wcscpy.
480
481 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
482
483 * include/stdio.h (__renameat2): New hidden prototype.
484 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
485 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
486 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
487 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
488
489 2019-02-27 Joseph Myers <joseph@codesourcery.com>
490
491 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
492 if statement.
493
494 * benchtests/bench-strcpy.c (do_test): Use space before '('.
495 * benchtests/bench-string.h (cmdline_process_function): Likewise.
496 * benchtests/bench-strlen.c (do_test): Likewise.
497 (test_main): Likewise.
498 * catgets/gencat.c (read_old): Likewise.
499 * elf/cache.c (load_aux_cache): Likewise.
500 * iconvdata/bug-iconv8.c (do_test): Likewise.
501 * math/test-tgmath-ret.c (do_test): Likewise.
502 * nis/nis_call.c (rec_dirsearch): Likewise.
503 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
504 * nptl/tst-audit-threads.c (do_test): Likewise.
505 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
506 * nss/nss_test1.c (init): Likewise.
507 * nss/test-netdb.c (test_hosts): Likewise.
508 * posix/execvpe.c (maybe_script_execute): Likewise.
509 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
510 * stdio-common/tst-printf.c (do_test): Likewise.
511 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
512 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
513 * stdlib/qsort.c (STACK_SIZE): Likewise.
514 * stdlib/test-canon.c (do_test): Likewise.
515 * stdlib/tst-swapcontext1.c (do_test): Likewise.
516 * string/memcmp.c (OPSIZ): Likewise.
517 * string/test-strcpy.c (do_test): Likewise.
518 (do_random_tests): Likewise.
519 * string/test-strlen.c (do_test): Likewise.
520 (test_main): Likewise.
521 * string/test-strrchr.c (do_test): Likewise.
522 (do_random_tests): Likewise.
523 * string/tester.c (test_memrchr): Likewise.
524 (test_memchr): Likewise.
525 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
526 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
527 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
528 (read_encoded_value_with_base): Likewise.
529 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
530 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
531 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
532 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
533 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
534 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
535 Likewise.
536 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
537 Likewise.
538 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
539 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
540 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
541 Likewise.
542 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
543 Likewise.
544 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
545 Likewise.
546 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
547 Likewise.
548 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
549 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
550 (FP_XSTATE_MAGIC2_SIZE): Likewise.
551 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
552 * time/test_time.c (main): Likewise.
553
554 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
555
556 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
557
558 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
559 wmemcpy.
560
561 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
562 wmemcpy.
563
564 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
565
566 * include/wchar.h (__wcscpy): New prototype.
567 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
568 (__wcscpy): Route internal symbol to generic implementation.
569 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
570 Add internal __wcscpy alias.
571 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
572 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
573 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
574 * wcsmbs/wcscpy.c (wcscpy): Add
575 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
576 use generic implementation.
577 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
578
579 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
580 wmemset.
581
582 * sysdeps/m68k/wcpcpy.c: Remove file.
583 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
584
585 2019-02-26 Joseph Myers <joseph@codesourcery.com>
586
587 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
588 than after operators.
589 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
590 * sysdeps/mach/hurd/getcwd.c
591 (__hurd_canonicalize_directory_name_internal): Likewise.
592 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
593 (pthread_mutex_consistent): Likewise.
594 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
595 Likewise.
596 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
597 (__pthread_mutex_transfer_np): Likewise.
598 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
599 (__pthread_mutex_unlock): Likewise.
600 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
601 (mtx_owned_p): Likewise.
602 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
603 (pthread_mutexattr_getrobust): Likewise.
604 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
605 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
606 Likewise.
607 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
608 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
609 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
610 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
611 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
612 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
613 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
614 Likewise.
615 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
616 Likewise.
617 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
618 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
619 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
620 (____longjmp_chk): Likewise.
621 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
622 Likewise.
623 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
624 (INTERNAL_SYSCALL): Likewise.
625 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
626 (INTERNAL_SYSCALL): Likewise.
627 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
628 (__get_clockfreq_via_cpuinfo): Likewise.
629
630 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
631 comments.
632 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
633 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
634 (WORD_COPY_BWD): Likewise.
635 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
636 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
637 Likewise.
638 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
639 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
640 comment.
641 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
642
643 2019-02-25 Joseph Myers <joseph@codesourcery.com>
644
645 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
646 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
647 rather than after operators.
648 * elf/cache.c (print_cache): Likewise.
649 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
650 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
651 * hurd/hurdinit.c (_hurd_setproc): Likewise.
652 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
653 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
654 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
655 (reauth_proc): Likewise.
656 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
657 (__file_name_split_at): Likewise.
658 (__directory_name_split_at): Likewise.
659 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
660 * hurd/port2fd.c (_hurd_port2fd): Likewise.
661 * iconv/gconv_dl.c (do_print): Likewise.
662 * inet/netinet/in.h (struct sockaddr_in): Likewise.
663 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
664 * locale/setlocale.c (new_composite_name): Likewise.
665 * malloc/memusagestat.c (main): Likewise.
666 * misc/fstab.c (fstab_convert): Likewise.
667 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
668 Likewise.
669 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
670 (getgrent_next_file): Likewise.
671 (internal_getgrnam_r): Likewise.
672 (internal_getgrgid_r): Likewise.
673 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
674 Likewise.
675 (internal_getgrent_r): Likewise.
676 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
677 (getpwent_next_nss): Likewise.
678 (getpwent_next_file): Likewise.
679 (internal_getpwnam_r): Likewise.
680 (internal_getpwuid_r): Likewise.
681 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
682 Likewise.
683 (getspent_next_nss): Likewise.
684 (internal_getspnam_r): Likewise.
685 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
686 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
687 * string/strchr.c (STRCHR): Likewise.
688 * string/strchrnul.c (STRCHRNUL): Likewise.
689 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
690 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
691 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
692 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
693 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
694 Likewise.
695 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
696 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
697 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
698 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
699 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
700 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
701 (open_file): Likewise.
702 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
703 (pthread_mutexattr_setprotocol): Likewise.
704 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
705 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
706 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
707 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
708 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
709 Likewise.
710 (elf_machine_rela): Likewise.
711 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
712 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
713 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
714 * sysdeps/posix/rename.c (rename): Likewise.
715 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
716 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
717 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
718 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
719 * sysdeps/unix/grantpt.c (grantpt): Likewise.
720 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
721 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
722 Likewise.
723 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
724 Likewise.
725 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
726 * time/tzfile.c (__tzfile_compute): Likewise.
727
728 2019-02-22 Joseph Myers <joseph@codesourcery.com>
729
730 * benchtests/bench-memmem.c (simple_memmem): Break lines before
731 rather than after operators.
732 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
733 * crypt/md5.c (md5_finish_ctx): Likewise.
734 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
735 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
736 * elf/cache.c (load_aux_cache): Likewise.
737 * elf/dl-load.c (open_verify): Likewise.
738 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
739 * elf/readelflib.c (process_elf_file): Likewise.
740 * elf/rtld.c (dl_main): Likewise.
741 * elf/sprof.c (generate_call_graph): Likewise.
742 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
743 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
744 * hurd/dtable.c (reauth_dtable): Likewise.
745 * hurd/getdport.c (__getdport): Likewise.
746 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
747 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
748 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
749 Likewise.
750 * hurd/hurdioctl.c (fioctl): Likewise.
751 * hurd/hurdselect.c (_hurd_select): Likewise.
752 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
753 (STOPSIGS): Likewise.
754 * hurd/hurdstartup.c (_hurd_startup): Likewise.
755 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
756 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
757 * hurd/msgportdemux.c (msgport_server): Likewise.
758 * hurd/setauth.c (_hurd_setauth): Likewise.
759 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
760 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
761 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
762 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
763 * login/tst-utmp.c (do_check): Likewise.
764 (simulate_login): Likewise.
765 * mach/lowlevellock.h (lll_lock): Likewise.
766 (lll_trylock): Likewise.
767 * math/test-fenv.c (ALL_EXC): Likewise.
768 * math/test-fenvinline.c (ALL_EXC): Likewise.
769 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
770 * nis/nis_call.c (__do_niscall3): Likewise.
771 * nis/nis_callback.c (cb_prog_1): Likewise.
772 * nis/nis_defaults.c (searchaccess): Likewise.
773 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
774 * nis/nis_ismember.c (internal_ismember): Likewise.
775 * nis/nis_local_names.c (nis_local_principal): Likewise.
776 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
777 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
778 Likewise.
779 * nis/ypclnt.c (yp_match): Likewise.
780 (yp_first): Likewise.
781 (yp_next): Likewise.
782 (yp_master): Likewise.
783 (yp_order): Likewise.
784 * nscd/hstcache.c (cache_addhst): Likewise.
785 * nscd/initgrcache.c (addinitgroupsX): Likewise.
786 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
787 (internal_getpwuid_r): Likewise.
788 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
789 * posix/glob.h (__GLOB_FLAGS): Likewise.
790 * posix/regcomp.c (peek_token): Likewise.
791 (peek_token_bracket): Likewise.
792 (parse_expression): Likewise.
793 * posix/regexec.c (sift_states_iter_mb): Likewise.
794 (check_node_accept_bytes): Likewise.
795 * posix/tst-spawn3.c (do_test): Likewise.
796 * posix/wordexp-test.c (testit): Likewise.
797 * posix/wordexp.c (parse_tilde): Likewise.
798 (exec_comm): Likewise.
799 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
800 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
801 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
802 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
803 * stdio-common/tst-fileno.c (do_test): Likewise.
804 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
805 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
806 * stdlib/strtod_l.c (round_and_return): Likewise.
807 (____STRTOF_INTERNAL): Likewise.
808 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
809 * string/strcspn.c (STRCSPN): Likewise.
810 * string/test-memmem.c (simple_memmem): Likewise.
811 * termios/tcsetattr.c (tcsetattr): Likewise.
812 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
813 * time/asctime.c (asctime_internal): Likewise.
814 * time/strptime_l.c (__strptime_internal): Likewise.
815 * time/sys/time.h (timercmp): Likewise.
816 * time/tzfile.c (__tzfile_compute): Likewise.
817
818 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
819
820 [BZ #21915]
821 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
822
823 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
824
825 * argp/argp-help.c (__argp_error_internal): New function,
826 renamed from __argp_error, but that takes a 'mode_flags'
827 parameter to control the format of long double parameters.
828 (__argp_error): Converted into a call __argp_error_internal.
829 (__argp_failure_internal): New function, renamed from
830 __argp_failure, but that takes a 'mode_flags' parameter.
831 (__argp_failure): Converted into a call __argp_failure_internal.
832 * misc/err.c (__vwarnx_internal): New function, renamed from
833 vwarnx, but that takes a 'mode_flags' parameter.
834 (vwarnx): Converted into a call to __vwarnx_internal.
835 (__vwarn_internal): New function, renamed from vwarn, but that
836 takes a 'mode_flags' parameter.
837 (vwarn): Converted into a call to __vwarn_internal.
838 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
839 call to __vfxprintf with 'mode_flags'.
840 (__error_internal): New function, renamed from error, but that
841 takes a 'mode_flags' parameter.
842 (error): Converted into a call to __error_internal.
843 (__error_at_line_internal): New function, renamed from
844 error_at_line, but that takes a 'mode_flags' parameter.
845 (error_at_line): Converted into a call to
846 __error_at_line_internal.
847 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
848 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
849 Likewise.
850
851 2019-02-20 Martin Liska <mliska@suse.cz>
852
853 * math/Makefile: Install math-vector-fortran.h.
854 * bits/math-vector-fortran.h: New file.
855 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
856
857 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
858
859 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
860 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
861
862 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
863
864 * nptl/pthread_mutex_trylock.c: Fix comment.
865
866 2019-02-19 Carlos O'Donell <carlos@redhat.com>
867
868 * nptl/pthread_tryjoin.c: Fix comment.
869
870 2019-02-18 Joseph Myers <joseph@codesourcery.com>
871
872 [BZ #24231]
873 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
874 after R_SPARC_H34 case.
875
876 2019-02-18 Florian Weimer <fweimer@redhat.com>
877
878 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
879 (getanswer): Do not call Dprintf.
880 (res_gethostbyname2_context): Likewise.
881 (res_gethostbyaddr_context): Likewise.
882
883 2019-02-18 Florian Weimer <fweimer@redhat.com>
884
885 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
886 declaration.
887 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
888 Remove definitions.
889 * libio/stdfiles.c: Update comment.
890 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
891 set _IO_stdin, _IO_stdout, _IO_stderr.
892 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
893 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
894 inline function.
895 (_IO_deallocate_file): New inline function.
896 * libio/iolibio.h (_IO_vprintf): Remove definition.
897 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
898 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
899 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
900 _IO_legacy_file.
901 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
902 __builtin_expect. Use _IO_legacy_file.
903
904 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
905
906 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
907 Initialize ctid with a known value and remove update of ctid
908 after clone.
909 (wait_tid): Adjust arguments and call futex_wait with ctid_val
910 as assumed current value of ctid_ptr.
911
912 2019-02-15 Florian Weimer <fweimer@redhat.com>
913
914 Check that non-sysdeps headers have wrapper headers.
915 * scripts/check-wrapper-headers.py: New file.
916 * Makefile (tests-special): Add check-wrapper-headers.out.
917 (check-wrapper-headers.out): New target.
918 * Rules (tests-special): Add check-wrapper-headers.out.
919 (check-wrapper-headers.out): New target.
920
921 2019-02-15 Florian Weimer <fweimer@redhat.com>
922
923 Add missing header wrappers under include/.
924 * include/ar.h: New file.
925 * include/bits/mqueue2.h: Likewise.
926 * include/bits/stdio.h: Likewise.
927 * include/bits/stdio2.h: Likewise.
928 * include/fstab.h: Likewise.
929 * include/fts.h: Likewise.
930 * include/lastlog.h: Likewise.
931 * include/netinet/icmp6.h: Likewise.
932 * include/netinet/igmp.h: Likewise.
933 * include/netinet/ip6.h: Likewise.
934 * include/re_comp.h: Likewise.
935 * include/regexp.h: Likewise.
936 * include/rpcsvc/bootparam.h: Likewise.
937 * include/rpcsvc/yp_prot.h: Likewise.
938 * include/sys/random.h: Likewise.
939 * include/sys/stropts.h: Likewise.
940 * include/sys/ttychars.h: Likewise.
941 * include/sys/vfs.h: Likewise.
942 * include/wait.h: Likewise.
943
944 2019-02-15 Florian Weimer <fweimer@redhat.com>
945
946 * nptl_db/proc_service.h: Move to ...
947 * sysdeps/nptl/proc_service.h: ... here.
948 * nptl_db/thread_db.h: Move to ...
949 * sysdeps/nptl/thread_db.h: ... here.
950 * nptl/descr.h: Include <thread_db.h>.
951
952 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
953
954 * io/Makefile (tests): Add tst-lockf.
955 * io/lockf.c (lockf): Use __fcntl and only define for
956 !__OFF_T_MATCHES_OFF64_T.
957 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
958 __OFF_T_MATCHES_OFF64_T case.
959 * io/tst-lockf.c: New file.
960 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
961 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
962 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
963 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
964 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
965 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
966 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
967 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
968 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
969
970 2019-02-15 Florian Weimer <fweimer@redhat.com>
971
972 [BZ #24211]
973 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
974 pd->result after the thread descriptor has been freed.
975
976 2019-02-15 Joseph Myers <joseph@codesourcery.com>
977
978 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
979 from function return type.
980
981 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
982
983 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
984
985 * scripts/test_printers_common.py: Set TERM to a known harmless
986 value.
987
988 2019-02-14 Joseph Myers <joseph@codesourcery.com>
989
990 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
991 (xdr_u_int): Likewise.
992 (xdr_enum): Likewise.
993 (xdr_bytes): Reword fall-through comment.
994 (xdr_string): Likewise.
995
996 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
997
998 [BZ #2421]
999 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
1000 (tests): Add tst-join8 tst-join9.
1001 * nptl/lll_timedwait_tid.c: Remove file.
1002 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
1003 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
1004 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
1005 * nptl/pthread_join_common.c (timedwait_tid): New function.
1006 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
1007 is set.
1008 * nptl/tst-join5.c (thread_join): New function.
1009 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
1010 check.
1011 * nptl/tst-join8.c: New file.
1012 * nptl/tst-join9.c: Likewise.
1013 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
1014 lll_futex_timed_wait_cancel): Add generic macros.
1015 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
1016 Remove definitions.
1017 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
1018 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
1019 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1020 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
1021 Remove function.
1022 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
1023 Likewise.
1024 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1025 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1026 (lll_futex_timed_wait_cancel): New macro.
1027
1028 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
1029
1030 * benchtests/Makefile: Add malloc-simple benchmark.
1031 * benchtests/bench-malloc-simple.c: New benchmark.
1032
1033 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
1034
1035 * benchtests/bench-memmove.c (do_one_test): Remove unused
1036 ORIG_SRC.
1037 (do_test): Adjust.
1038 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
1039 ORIG_SRC.
1040 (do_test): Adjust.
1041
1042 2019-01-13 Jim Wilson <jimw@sifive.com>
1043
1044 [BZ #24040]
1045 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
1046 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
1047 (func): New.
1048 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
1049 call func directly.
1050 * nptl/Makefile (tests): Add tst-unwind-thread.
1051 (CFLAGS-tst-unwind-thread.c): Define.
1052 * nptl/tst-unwind-thread.c: New file.
1053 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
1054 as undefined.
1055
1056 2019-02-13 Joseph Myers <joseph@codesourcery.com>
1057
1058 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
1059 comment wording.
1060 * nis/nis_call.c (__do_niscall3): Likewise.
1061
1062 * catgets/gencat.c (normalize_line): Use braces around empty
1063 'else' body.
1064 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
1065 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
1066 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
1067 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
1068 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
1069 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
1070 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
1071 definition.
1072
1073 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
1074 execlp returns.
1075
1076 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
1077
1078 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
1079 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
1080 * benchtests/bench-strchr.c (stupid_strchr): Remove.
1081 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
1082 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
1083 * benchtests/bench-strlen.c (builtin_strlen): Remove.
1084 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
1085 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
1086 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
1087 * benchtests/bench-strspn.c (stupid_strspn): Remove.
1088 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
1089 * benchtests/bench-bcopy.c: Delete file.
1090 * benchtests/bench-bzero.c: Likewise.
1091 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
1092 (simple_memccpy): Remove.
1093 (generic_memccpy): Add function.
1094 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
1095 * benchtests/bench-memmove.c (simple_bcopy): Remove.
1096 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
1097 (generic_mempcpy): Add new function.
1098 * benchtests/bench-memset.c (simple_bzero): Remove.
1099 (builtin_bzero): Remove.
1100 (builtin_memset): Remove.
1101 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
1102 (generic_rawmemchr): Add new function.
1103
1104 2019-02-12 Florian Weimer <fweimer@redhat.com>
1105
1106 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
1107
1108 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1109
1110 [BZ #24122]
1111 * elf/Makefile (tests): Add tst-audit13.
1112 (modules-names): Add tst-audit13mod1.
1113 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1114 rule.
1115 * elf/tst-audit13.c: New file.
1116 * elf/tst-audit13mod1.c: Likewise.
1117
1118 2019-02-12 Florian Weimer <fweimer@redhat.com>
1119
1120 [BZ #24122]
1121 * elf/rtld.c (unload_audit_module): New function.
1122 (report_audit_module_load_error): Likewise.
1123 (load_audit_module): Likewise. Extracted from dl_main. Call
1124 _dl_close if the laversion symbol cannot be found. Use early
1125 returns for error handling. Add malloc error check. Check for a
1126 zero return value from la_version. Remove spurious comment about
1127 static TLS initialization. Remove useless casts.
1128 (notify_audit_modules_of_loaded_object): New function. Extracted
1129 from dl_main.
1130 (load_audit_module): Likewise.
1131 (dl_main): Call load_audit_modules.
1132
1133 2019-02-12 Joseph Myers <joseph@codesourcery.com>
1134
1135 * elf/dl-exception.c (_dl_exception_create_format): Add
1136 fall-through comments.
1137 * elf/ldconfig.c (parse_conf_include): Likewise.
1138 * elf/rtld.c (print_statistics): Likewise.
1139 * locale/programs/charmap.c (parse_charmap): Likewise.
1140 * misc/mntent_r.c (__getmntent_r): Likewise.
1141 * posix/wordexp.c (parse_arith): Likewise.
1142 (parse_backtick): Likewise.
1143 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
1144 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
1145 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1146
1147 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
1148
1149 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
1150 Use float instead of double.
1151
1152 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1153
1154 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
1155
1156 2019-02-08 Joseph Myers <joseph@codesourcery.com>
1157
1158 * sysdeps/powerpc/bits/mathinline.h: Remove.
1159
1160 2019-02-08 Florian Weimer <fweimer@redhat.com>
1161
1162 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
1163 * math/bits/math-finite.h: Move to ...
1164 * bits/math-finite.h: ... here.
1165
1166 2019-02-08 Florian Weimer <fweimer@redhat.com>
1167
1168 * sysdeps/generic/bits/unistd_ext.h: Move to ...
1169 * bits/unistd_ext.h: here.
1170
1171 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
1172
1173 [BZ #21915]
1174 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
1175 * nss/tst-nss-files-hosts-long.c: New file.
1176 * nss/tst-nss-files-hosts-long.root: New directory.
1177 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
1178 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
1179
1180 2019-02-08 Florian Weimer <fweimer@redhat.com>
1181
1182 * include/bits/unistd_ext.h: Remove file.
1183 * posix/bits/unistd_ext.h: Move to ...
1184 * sysdeps/generic/bits/unistd_ext.h: ... here.
1185
1186 2019-02-08 Florian Weimer <fweimer@redhat.com>
1187
1188 * include/bits/unistd_ext.h: New file.
1189
1190 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
1191
1192 * time/tst-strftime2.c: Use array_length macros instead of magic
1193 numbers.
1194
1195 2019-02-08 Florian Weimer <fweimer@redhat.com>
1196
1197 [BZ #24161]
1198 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
1199 argument.
1200 * nptl/register-atfork.c (__run_fork_handlers): Only perform
1201 locking if the new do_locking argument is true.
1202 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
1203 __run_fork_handlers.
1204
1205 2019-02-08 Florian Weimer <fweimer@redhat.com>
1206
1207 [BZ #6399]
1208 Linux: Add gettid system call wrapper.
1209 * posix/Makefile (headers): Add bits/unistd_ext.h.
1210 * posix/bits/unistd_ext.h: New file.
1211 * posix/unistd.h: Include it.
1212 * manual/process.texi (Process Identification): Document gettid.
1213 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
1214 tst-gettid, tst-gettid-kill.
1215 (tst-gettid): Link with $(shared-thread-library).
1216 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
1217 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
1218 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
1219 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
1220 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
1221 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
1222 Add gettid.
1223 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1224 Likewise.
1225 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1226 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
1227 Likewise.
1228 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
1229 Likewise.
1230 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
1231 Likewise.
1232 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
1233 Likewise.
1234 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1235 Likewise.
1236 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1237 Likewise.
1238 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1239 Likewise.
1240 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1241 (GLIBC_2.30): Likewise.
1242 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1243 (GLIBC_2.30): Likewise.
1244 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1245 (GLIBC_2.30): Likewise.
1246 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1247 (GLIBC_2.30): Likewise.
1248 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1249 Likewise.
1250 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1251 (GLIBC_2.30): Likewise.
1252 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1253 (GLIBC_2.30): Likewise.
1254 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1255 (GLIBC_2.30): Likewise.
1256 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1257 (GLIBC_2.30): Likewise.
1258 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1259 Likewise.
1260 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1261 Likewise.
1262 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1263 Likewise.
1264 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1265 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1266 Likewise.
1267 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1268 Likewise.
1269 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1270 Likewise.
1271 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1272 Likewise.
1273 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
1274
1275 2019-02-07 Florian Weimer <fweimer@redhat.com>
1276
1277 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
1278 compatibility symbols.
1279
1280 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
1281
1282 [BZ #24180]
1283 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
1284 Add compiler barriers and comments.
1285
1286 2019-02-07 Florian Weimer <fweimer@redhat.com>
1287
1288 * include/array_length.h (array_length): Do not use a statement
1289 expression and _Static_assert, so that array_length can be used at
1290 file scope and as a constant expression.
1291
1292 2019-02-07 Florian Weimer <fweimer@redhat.com>
1293
1294 * support/xdlfcn.h (xdlmopen): Declare.
1295 * support/xdlmopen.c: New file.
1296 * support/Makefile (libsupport-routines): Add xdlmopen.
1297
1298 2019-02-06 Joseph Myers <joseph@codesourcery.com>
1299
1300 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
1301 before return type, without separate inline.
1302 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
1303 * elf/dl-tunables.h (tunable_is_name): Likewise.
1304 * malloc/malloc.c (do_set_trim_threshold): Likewise.
1305 (do_set_top_pad): Likewise.
1306 (do_set_mmap_threshold): Likewise.
1307 (do_set_mmaps_max): Likewise.
1308 (do_set_mallopt_check): Likewise.
1309 (do_set_perturb_byte): Likewise.
1310 (do_set_arena_test): Likewise.
1311 (do_set_arena_max): Likewise.
1312 (do_set_tcache_max): Likewise.
1313 (do_set_tcache_count): Likewise.
1314 (do_set_tcache_unsorted_limit): Likewise.
1315 * nis/nis_subr.c (count_dots): Likewise.
1316 * nptl/allocatestack.c (advise_stack_range): Likewise.
1317 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
1318 (do_sin): Likewise.
1319 (reduce_sincos): Likewise.
1320 (do_sincos): Likewise.
1321 * sysdeps/unix/sysv/linux/x86/elision-conf.c
1322 (do_set_elision_enable): Likewise.
1323 (TUNABLE_CALLBACK_FNDECL): Likewise.
1324
1325 2019-02-06 Florian Weimer <fweimer@redhat.com>
1326
1327 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
1328 (xdlsym): Use dlerror to detect a NULL symbol.
1329
1330 2019-02-06 Florian Weimer <fweimer@redhat.com>
1331
1332 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
1333 <stap-probe.h>.
1334 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1335
1336 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1337
1338 * libio/tst-bz24153.c (wide): Use wide char format specifier.
1339
1340 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1341
1342 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
1343 __wmemcmp and weak alias to wmemcmp.
1344
1345 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1346
1347 [BZ #23403]
1348 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
1349 TLS_TCB_AT_TP tls variant.
1350 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
1351 Add alignment checks.
1352 * support/Makefile (libsupport-routines): Add xposix_memalign and
1353 xpthread_setstack.
1354 * support/support.h: Add xposix_memalign.
1355 * support/xthread.h: Add xpthread_attr_setstack.
1356 * support/xposix_memalign.c: New File.
1357 * support/xpthread_attr_setstack.c: Likewise.
1358
1359 2019-02-05 Florian Weimer <fweimer@redhat.com>
1360
1361 [BZ #24164]
1362 arm: Use "nr" constraint for Systemtap probes, to avoid the
1363 compiler using memory operands for constants, due to the "o"
1364 alternative in the default "nor" constraint.
1365 * include/stap-probe.h [USE_STAP_PROBE]: Include
1366 <stap-probe-machine.h>
1367 * sysdeps/generic/stap-probe-machine.h: New file.
1368 * sysdeps/arm/stap-probe-machine.h: Likewise.
1369
1370 2019-02-04 Joseph Myers <joseph@codesourcery.com>
1371
1372 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
1373 with 0, not tcache->entries[tc_idx].
1374
1375 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
1376 once.
1377
1378 2019-02-04 Andreas Schwab <schwab@suse.de>
1379
1380 [BZ #16976]
1381 [BZ #17396]
1382 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
1383 looking up collating elements match against (wide) character
1384 sequence instead of name. Correct alignment adjustment.
1385 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
1386 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
1387 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
1388 (LOCALES): Add cs_CZ.ISO-8859-2.
1389 * posix/tst-fnmatch4.c: New file.
1390 * posix/tst-fnmatch5.c: New file.
1391 * include/wchar.h (__wmemcmp): Declare.
1392 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
1393 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
1394 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
1395 * sysdeps/s390/wmemcmp.c: Likewise.
1396
1397 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
1398
1399 [BZ #24155]
1400 CVE-2019-7309
1401 * NEWS: Updated for CVE-2019-7309.
1402 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
1403 upper 32 bits of RDX register for x32. Use unsigned Jcc
1404 instructions, instead of signed.
1405 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
1406 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
1407
1408 2019-02-04 Florian Weimer <fweimer@redhat.com>
1409
1410 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
1411 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
1412 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
1413 Likewise.
1414 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
1415 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
1416 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
1417 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
1418 Likewise.
1419 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
1420 Likewise.
1421 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
1422 Likewise.
1423 (posix_spawn_file_actions_addopen): Likewise.
1424 (posix_spawn_file_actions_addclose): Likewise.
1425 (posix_spawn_file_actions_adddup2): Likewise.
1426 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
1427 qualifiers.
1428 (posix_spawn_file_actions_addfchdir_np): Likewise.
1429
1430 2019-02-04 David Newall <glibc@davidnewall.com>
1431
1432 elf: Implement --preload option for the dynamic linker.
1433 * elf/rtld.c (preloadarg): New variable.
1434 (handle_preload_list): Pass through “where” argument to
1435 do_preload.
1436 (dl_main): Handle "--preload" and add second call to
1437 handle_preload_list.
1438 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
1439 (tst-rtld-preload-OBJS): Set variable.
1440 (tst-rtld-preload.out): New target.
1441 * elf/tst-rtld-preload.sh: New file.
1442
1443 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
1444
1445 * Makefile (testrun.sh): Exit in case of incorrect argument.
1446
1447 2019-02-04 Florian Weimer <fweimer@redhat.com>
1448
1449 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
1450 alignment gaps.
1451
1452 2019-02-03 Florian Weimer <fweimer@redhat.com>
1453
1454 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
1455 implicit overflow checks.
1456
1457 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
1458
1459 * stdlib/isomac.c: Include <unistd.h>.
1460
1461 2019-02-03 Florian Weimer <fweimer@redhat.com>
1462
1463 * include/time.h (__tzfile_default): Use int, not long int, for
1464 the GMT offsets.
1465 * time/tzfile.c (struct ttinfo): Change type of the offset member
1466 to int.
1467 (__tzfile_read): Remove useless cast.
1468 (__tzfile_default): Adjust prototype.
1469 * time/tzset.c (tz_rule): Change type of the offset member to int.
1470 (parse_offset): Change the type of the sign variable to int.
1471
1472 2019-02-03 Florian Weimer <fweimer@redhat.com>
1473
1474 [BZ #24153]
1475 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
1476 * libio/getchar.c (getchar): Likewise.
1477 * libio/getchar_u.c (getchar_unlocked): Likewise.
1478 * libio/getwchar.c (getwchar): Likewise.
1479 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
1480 * libio/iogets.c (_IO_gets): Likewise.
1481 * libio/vscanf.c (_IO_vscanf): Likewise.
1482 * libio/vwscanf.c (__vwscanf): Likewise.
1483 * libio/tst-bz24153.c: New file.
1484 * libio/Makefile (tests): Add it.
1485
1486 2019-02-02 Florian Weimer <fweimer@redhat.com>
1487
1488 [BZ #14829]
1489 * manual/resource.texi (Basic Scheduling Functions): Add
1490 portability note. Change process to task throughout the section.
1491 Remove incorrect comment about sched_yield as it affects
1492 tasks/threads, not entire processes.
1493 * sysdeps/unix/sysv/linux/bits/posix_opt.h
1494 (_POSIX_PRIORITY_SCHEDULING): Update comment.
1495
1496 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1497
1498 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
1499 * configure: Regenerated.
1500 * manual/install.texi (Tools for Compilation): Update minimum GCC
1501 version.
1502 * INSTALL: Regenerated.
1503
1504 2019-02-01 Florian Weimer <fweimer@redhat.com>
1505
1506 * support/support_test_compare_string.c
1507 (support_test_compare_string): Use "string" in error message.
1508 * support/tst-test_compare_string.c (do_test): Adjust.
1509
1510 2019-02-01 Florian Weimer <fweimer@redhat.com>
1511
1512 * support/support_format_address_family.c
1513 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
1514
1515 2019-02-01 Florian Weimer <fweimer@redhat.com>
1516
1517 * manual/socket.texi (Internet Address Formats): Clarify the byte
1518 order of struct sockaddr_in, struct sockaddr_in6. Document
1519 sin6_flowinfo and sin6_scope_id.
1520
1521 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
1522
1523 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
1524 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
1525 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
1526 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
1527 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
1528 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
1529
1530 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1531
1532 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
1533 [!MEMCHR](MEMCHR): Set to __memchr.
1534 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1535 Add memchr_generic and memchr_nosimd.
1536 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1537 (__libc_ifunc_impl_list): Add memchr ifuncs.
1538 * sysdeps/aarch64/multiarch/memchr.c: New file.
1539 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
1540 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
1541
1542 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1543
1544 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1545 Add memset_emag.
1546 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1547 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
1548 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
1549 Add IS_EMAG check for ifunc dispatch.
1550 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
1551 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
1552
1553 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1554
1555 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
1556 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1557 Add emag.
1558 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
1559 New macro.
1560
1561 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
1562
1563 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
1564
1565 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
1566
1567 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
1568 syscall-template file.
1569
1570 2019-01-31 Carlos O'Donell <carlos@redhat.com>
1571 Torvald Riegel <triegel@redhat.com>
1572 Rik Prohaska <prohaska7@gmail.com>
1573
1574 [BZ# 23844]
1575 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
1576 tst-rwlock-trywrlock-stall.
1577 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
1578 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
1579 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
1580 Set __wrphase_fute to 1 only if we started the write phase.
1581 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
1582 * nptl/tst-rwlock-trywrlock-stall.c: New file.
1583 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
1584 * support/xpthread_rwlock_destroy.c: New file.
1585 * support/xthread.h: Declare xpthread_rwlock_destroy.
1586
1587 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1588
1589 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
1590 version to 4.0.2.
1591
1592 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1593
1594 [BZ #24051]
1595 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
1596 * libio/fileops.c (_IO_new_file_underflow): Likewise
1597 * libio/wfileops.c (_IO_wfile_underflow): Likewise
1598 * libio/putchar.c (putchar): Likewise.
1599 * libio/putchar_u.c (putchar_unlocked): Likewise.
1600 * libio/putwchar.c (putchar): Likewise.
1601 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
1602 * libio/tst-bz24051.c: New test.
1603 * libio/Makefile (tests): Add tst-bz24051
1604
1605 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
1606
1607 CVE-2019-9169
1608 regex: fix read overrun [BZ #24114]
1609 Problem found by AddressSanitizer, reported by Hongxu Chen in:
1610 https://debbugs.gnu.org/34140
1611 * posix/regexec.c (proceed_next_node):
1612 Do not read past end of input buffer.
1613
1614 2019-01-31 Florian Weimer <fweimer@redhat.com>
1615
1616 [BZ #24059]
1617 * nss/nss_files/files-alias.c (get_next_alias): Handle
1618 continuation line without newline at the end.
1619 * nss/tst-nss-files-alias-truncated.c: New file.
1620 * nss/Makefile [$(build-shared)] (tests): Add
1621 tst-nss-files-alias-truncated.
1622 (tst-nss-files-alias-truncated): Link with libnss_files.so.
1623 * support/namespace.h (struct support_chroot_configuration): Add
1624 aliases member.
1625 (struct support_chroot): Add path_aliases member.
1626 * support/support_chroot.c (support_chroot_create): Handle
1627 aliases.
1628 (support_chroot_free): Free path_aliases.
1629
1630 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
1631
1632 * version.h (RELEASE): Set to "development".
1633 (VERSION): Set to "2.29.9000".
1634 * NEWS: Add section for 2.30.
1635
1636 * version.h (RELEASE): Set to "stable".
1637 (VERSION): Set to "2.29".
1638 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
1639
1640 * NEWS: Add the list of bugs fixed in 2.29.
1641 * manual/contrib.texi: Update contributors list with some more
1642 names.
1643 * manual/install.texi: Update latest versions of packages
1644 tested.
1645 * INSTALL: Regenerated.
1646
1647 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
1648
1649 * po/be.po: Update translations.
1650 * po/bg.po: Likewise.
1651 * po/ca.po: Likewise.
1652 * po/cs.po: Likewise.
1653 * po/da.po: Likewise.
1654 * po/de.po: Likewise.
1655 * po/el.po: Likewise.
1656 * po/eo.po: Likewise.
1657 * po/es.po: Likewise.
1658 * po/fi.po: Likewise.
1659 * po/fr.po: Likewise.
1660 * po/gl.po: Likewise.
1661 * po/hr.po: Likewise.
1662 * po/hu.po: Likewise.
1663 * po/ia.po: Likewise.
1664 * po/id.po: Likewise.
1665 * po/it.po: Likewise.
1666 * po/ja.po: Likewise.
1667 * po/ko.po: Likewise.
1668 * po/lt.po: Likewise.
1669 * po/nb.po: Likewise.
1670 * po/nl.po: Likewise.
1671 * po/pl.po: Likewise.
1672 * po/pt_BR.po: Likewise.
1673 * po/ru.po: Likewise.
1674 * po/rw.po: Likewise.
1675 * po/sk.po: Likewise.
1676 * po/sl.po: Likewise.
1677 * po/sv.po: Likewise.
1678 * po/tr.po: Likewise.
1679 * po/uk.po: Likewise.
1680 * po/vi.po: Likewise.
1681 * po/zh_CN.po: Likewise.
1682 * po/zh_TW.po: Likewise.
1683
1684 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
1685
1686 [BZ #24130]
1687 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
1688 of $f3 register on $y_is_neg path.
1689
1690 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1691
1692 [BZ #24110]
1693 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
1694 sigaltstack.ss_flags.
1695
1696 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
1697
1698 [BZ #23758]
1699 * manual/time.texi (strftime): Document "%Ey".
1700 * time/strftime_l.c (__strftime_internal): Set the default width
1701 padding with zero of "%Ey" to 2.
1702
1703 [BZ #24096]
1704 * manual/time.texi (strftime): Document "%EC" and "%EY".
1705 * time/Makefile (tests): Add tst-strftime2.
1706 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
1707 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
1708 override padding for "%Ey".
1709 If an optional flag ('_' or '-') is specified to "%EY", interpret the
1710 "%Ey" in the subformat as if decorated with that flag.
1711 * time/tst-strftime2.c: New file.
1712
1713 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1714
1715 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
1716 are not defined.
1717
1718 [BZ #24122]
1719 * elf/Makefile (tests): Add tst-audit13.
1720 (modules-names): Add tst-audit13mod1.
1721 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1722 rule.
1723 * elf/rtld.c (dl_main): Handle invalid audit module version.
1724 * elf/tst-audit13.c: New file.
1725 * elf/tst-audit13mod1.c: Likewise.
1726
1727 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
1728
1729 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
1730 returned by __hurd_at_flags.
1731 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
1732 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
1733 directly instead of __hurd_file_name_lookup.
1734
1735 2019-01-21 Joseph Myers <joseph@codesourcery.com>
1736
1737 * scripts/build-many-glibcs.py (Context.checkout): Default
1738 binutils version to 2.32 branch.
1739
1740 2019-01-21 Florian Weimer <fweimer@redhat.com>
1741
1742 [BZ #20018]
1743 CVE-2016-10739
1744 resolv: Reject trailing characters in host names
1745 * include/arpa/inet.h (__inet_aton_exact): Declare.
1746 (inet_aton): Remove hidden prototype. No longer used internally.
1747 * nscd/gai.c (__inet_aton): Do not define.
1748 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
1749 * nss/digits_dots.c (__inet_aton): Likewise.
1750 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
1751 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
1752 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
1753 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
1754 (tst-resolv-trailing): Likewise.
1755 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
1756 libc.
1757 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
1758 Make static. Add endp parameter.
1759 (__inet_aton_exact): New function.
1760 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
1761 (__inet_addr): Call inet_aton_end.
1762 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
1763 not just IPv6. Call __inet_aton_exact.
1764 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
1765 (tests): Make const. Add additional test cases with trailing
1766 characters.
1767 (do_test): Use array_length.
1768 * resolv/tst-inet_aton_exact.c: New file.
1769 * resolv/tst-resolv-trailing.c: Likewise.
1770 * resolv/tst-resolv-nondecimal.c: Likewise.
1771 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
1772
1773 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1774
1775 [BZ# 24097]
1776 CVE-2019-6488
1777 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
1778 Clear the upper 32 bits of RSI register.
1779 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
1780 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
1781 and tst-size_t-wcsnlen.
1782 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
1783 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
1784
1785 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1786
1787 [BZ# 24097]
1788 CVE-2019-6488
1789 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
1790 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1791 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
1792 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
1793 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
1794
1795 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1796
1797 [BZ# 24097]
1798 CVE-2019-6488
1799 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
1800 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
1801 * sysdeps/x86_64/strcmp.S: Likewise.
1802 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
1803 tst-size_t-strncmp and tst-size_t-wcsncmp.
1804 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
1805 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
1806 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
1807
1808 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1809
1810 [BZ# 24097]
1811 CVE-2019-6488
1812 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
1813 RDX_LP for length. Clear the upper 32 bits of RDX register.
1814 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
1815 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
1816 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
1817 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
1818
1819 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1820
1821 [BZ# 24097]
1822 CVE-2019-6488
1823 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
1824 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
1825 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
1826 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
1827
1828 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1829
1830 [BZ# 24097]
1831 CVE-2019-6488
1832 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
1833 length. Clear the upper 32 bits of RDX register.
1834 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
1835 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
1836 Likewise.
1837 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
1838 Likewise.
1839 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
1840 tst-size_t-wmemchr.
1841 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
1842
1843 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1844
1845 [BZ# 24097]
1846 CVE-2019-6488
1847 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
1848 length. Clear the upper 32 bits of RDX register.
1849 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
1850 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
1851 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
1852 tst-size_t-wmemcmp.
1853 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
1854 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
1855
1856 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1857
1858 [BZ# 24097]
1859 CVE-2019-6488
1860 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
1861 upper 32 bits of RDX register.
1862 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
1863 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
1864 tst-size_t-wmemchr.
1865 * sysdeps/x86_64/x32/test-size_t.h: New file.
1866 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
1867 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
1868
1869 2019-01-18 Florian Weimer <fweimer@redhat.com>
1870
1871 [BZ #24112]
1872 resolv: Do not send queries for non-host-names in nss_dns.
1873 * resolv/nss_dns/dns-host.c (check_name): New function.
1874 (_nss_dns_gethostbyname2_r): Use it.
1875 (_nss_dns_gethostbyname_r): Likewise.
1876 (_nss_dns_gethostbyname4_r): Likewise.
1877
1878 2019-01-21 Florian Weimer <fweimer@redhat.com>
1879
1880 * resolv/inet_addr.c: Reformat to GNU style.
1881 (__inet_addr, __inet_aton): Update comment.
1882
1883 2019-01-18 Florian Weimer <fweimer@redhat.com>
1884
1885 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
1886 ("malloc: Use current (C11-style) atomics for fastbin access").
1887 This commit introduces a substantial performance regression on
1888 POWER and Aarch64.
1889 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
1890 (REMOVE_FB): Define.
1891 (_int_malloc): Use it and reindent.
1892 (_int_free): Use CAS loop with
1893 catomic_compare_and_exchange_val_rel.
1894 (malloc_consolidate): Use atomic_exchange_acq.
1895
1896
1897 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
1898
1899 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
1900 -Wl,-z,now.
1901 (LDFLAGS-tst-minsigstksz-2): Likewise.
1902 (LDFLAGS-tst-minsigstksz-3): Likewise.
1903 (LDFLAGS-tst-minsigstksz-3a): Likewise.
1904 (LDFLAGS-tst-minsigstksz-4): Likewise.
1905
1906 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
1907
1908 * manual/time.texi (strftime): Fix the wording to "alternative" rather
1909 than "alternate".
1910
1911 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
1912
1913 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
1914
1915 2019-01-16 Zack Weinberg <zackw@panix.com>
1916
1917 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
1918 (xget_sigstack_location): New test support functions.
1919 * support/xsigstack.c: New file, implementing them.
1920 * support/tst-xsigstack.c: New test for them.
1921 * support/Makefile: Update.
1922
1923 * signal/tst-minsigstksz-1.c
1924 * signal/tst-minsigstksz-2.c
1925 * signal/tst-minsigstksz-3.c
1926 * signal/tst-minsigstksz-3a.c
1927 * signal/tst-minsigstksz-4.c: New tests.
1928 * signal/Makefile: Run them.
1929
1930 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
1931
1932 * po/libc.pot: Regenerate.
1933
1934 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1935
1936 * math/libm-test-fma.inc (fma_test_data): Set
1937 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
1938
1939 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1940
1941 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
1942 (do_test): Changed __vector __int128_t to __vector unsigned int.
1943
1944 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
1945
1946 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1947 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
1948 stpcpy-avx2 and stpncpy-avx2.
1949 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
1950 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
1951 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
1952 and __stpncpy_avx2.
1953 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
1954 ifunc-strcpy.h}: rename header for a more generic name.
1955 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
1956 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
1957 AVX unaligned load is fast and vzeroupper is preferred.
1958 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
1959 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
1960 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
1961 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
1962 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
1963 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
1964
1965 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
1966
1967 * argp/argp-help.c: Fix typo in comment.
1968 * misc/sys/cdefs.h: Likewise.
1969 * posix/regexec.c (sift_states_iter_mb): Likewise.
1970 * socket/sockatmark.c: Likewise.
1971 * socket/sys/socket.h: Likewise.
1972 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1973 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1974 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1975 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1976 * sysdeps/unix/sockatmark.c: Likewise.
1977 * time/strptime_l.c: Likewise.
1978
1979 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1980
1981 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1982 missing space after the cast of "_NL_CURRENT".
1983
1984 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1985
1986 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1987 ifdef to fix read of VSCR.
1988 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1989 tst-ucontext-ppc64-vscr.c to test list.
1990 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1991
1992 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1993
1994 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1995 fall-through.
1996
1997 2019-01-09 Jim Wilson <jimw@sifive.com>
1998
1999 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
2000
2001 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
2002
2003 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
2004 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
2005 __memcpy_falkor for ares.
2006 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
2007 Add new define.
2008 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
2009 Add ares cpu.
2010
2011 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
2012
2013 [BZ #24066]
2014 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
2015 4_FP_W_TYPEs are used for IEEE quad precision.
2016 * soft-fp/extendhftf2.c: Likewise.
2017 * soft-fp/extendsftf2.c: Likewise.
2018 * soft-fp/extendxftf2.c: Likewise.
2019 * soft-fp/trunctfdf2.c: Likewise.
2020 * soft-fp/trunctfhf2.c: Likewise.
2021 * soft-fp/trunctfsf2.c: Likewise.
2022 * soft-fp/trunctfxf2.c: Likewise.
2023 * sysdeps/alpha/ots_cvttx.c: Likewise.
2024 * sysdeps/alpha/ots_cvtxt.c: Likewise.
2025 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
2026 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
2027 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
2028 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
2029 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
2030 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
2031 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
2032 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
2033 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
2034 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
2035 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
2036 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
2037 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
2038 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
2039 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
2040 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
2041
2042 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
2043
2044 [BZ #24024]
2045 * Makeconfig: Build libm with -fno-math-errno but build the remaining
2046 code with -fmath-errno.
2047 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
2048 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
2049 * string/test-strerror-errno.c: New file.
2050
2051 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
2052
2053 [BZ #24046]
2054 * localedata/locales/en_US (date_fmt): Add, set to
2055 "%a %d %b %Y %r %Z".
2056
2057 2019-01-07 Florian Weimer <fweimer@redhat.com>
2058
2059 [BZ #24063]
2060 * manual/arith.texi (Math Error Reporting): Use @code{errno}
2061 instead of @var{errno}.
2062 (Parsing of Integers): Likewise.
2063 (Parsing of Floats): Likewise.
2064 * manual/filesys.texi (Working with Directory Trees): Likewise.
2065 (Temporary Files): Likewise.
2066 * manual/job.texi (Terminal Access Functions): Likewise.
2067 * manual/llio.texi (Synchronizing I/O): Likewise.
2068 * manual/math.texi (SVID Random): Likewise.
2069 * manual/message.texi (The catgets Functions): Likewise.
2070 (Translation with gettext): Likewise.
2071 (Locating gettext catalog): Likewise.
2072 (Charset conversion in gettext): Likewise.
2073 * manual/nss.texi (NSS Module Function Internals): Likewise.
2074 * manual/search.texi (Hash Search Function): Likewise.
2075 * manual/setjmp.texi (System V contexts): Likewise.
2076 * manual/time.texi (Sleeping): Likewise.
2077 * manual/users.texi (Lookup User): Likewise.
2078 (Lookup Group): Likewise.
2079
2080 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2081
2082 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
2083 fix typo.
2084
2085 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
2086
2087 [BZ #19444]
2088 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
2089 __builtin_unreachable for default case in switch.
2090 (__ieee754_yn): Likewise.
2091 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
2092 (__ieee754_ynl): Likewise.
2093 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
2094 (__ieee754_ynl): Likewise.
2095 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
2096 (__ieee754_ynl): Likewise.
2097
2098 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2099
2100 * manual/maint.texi: Use @{ and @}.
2101
2102 2019-01-04 Florian Weimer <fweimer@redhat.com>
2103
2104 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
2105 function.
2106 (do_in_chroot_1): Call it.
2107 (run_chroot_tests):
2108 Improve error reporting in case it is not possible to create a
2109 collision for the PTY name required by the test.
2110
2111 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2112
2113 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
2114 lll_wait_tid with timeout.
2115 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
2116 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
2117 futex_reltimed_wait_cancelable for cancelabla mode.
2118 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
2119 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
2120 macros.
2121 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
2122 * sysdeps/posix/waitid.c (__sigwait): Likewise.
2123 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
2124 SYSCALL_CANCEL_NCS): New macro.
2125 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
2126 (lll_timedwait_tid): Remove macro.
2127 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
2128 Likewise.
2129 (lll_timedwait_tid): Likewise.
2130 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
2131 Likewise.
2132 (lll_timedwait_tid): Likewise.
2133 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
2134 Likewise.
2135 (lll_timedwait_tid): Likewise.
2136 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
2137 Use INTERNAL_SYSCALL_CANCEL.
2138 * sysdeps/unix/sysv/linux/futex-internal.h
2139 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
2140 instead of __pthread_{enable,disable}_asynccancel.
2141 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
2142 (lll_futex_wait_cancel): New macro.
2143
2144 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2145 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2146
2147 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2148 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2149
2150 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
2151 in backtrace analysis.
2152 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
2153 side-effects.
2154 (tf_send): Likewise.
2155
2156 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
2157 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
2158 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
2159 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
2160 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2161 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2162 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
2163 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
2164 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
2165 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
2166 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
2167 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
2168 Likewise.
2169 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
2170 tst-cancel-wrappers.sh.
2171 (generated): Remove tst-cancel-wrappers.out.
2172 (tst-cancel-wrappers.out): Remove rule.
2173 * nptl/tst-cancel-wrappers.sh: Remove file.
2174
2175 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
2176
2177 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
2178 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
2179 Update.
2180
2181 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2182
2183 [BZ #23640]
2184 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
2185 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
2186 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
2187 close-on-exec reset for adddup2 file action.
2188 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
2189
2190 2019-01-03 Zack Weinberg <zackw@panix.com>
2191
2192 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
2193 parameter. Only use deprecated scanf when __USE_GNU is defined
2194 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
2195 than 201103L, whichever is relevant for the language being compiled.
2196
2197 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
2198 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
2199 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
2200 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
2201 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
2202
2203 * libio/iovsscanf.c
2204 * libio/fwscanf.c
2205 * libio/iovswscanf.c
2206 * libio/swscanf.c
2207 * libio/vscanf.c
2208 * libio/vwscanf.c
2209 * libio/wscanf.c
2210 * stdio-common/fscanf.c
2211 * stdio-common/scanf.c
2212 * stdio-common/vfscanf.c
2213 * stdio-common/vfwscanf.c
2214 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
2215 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
2216 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
2217 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
2218 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
2219 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
2220 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
2221 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
2222 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
2223 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
2224 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
2225 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
2226 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
2227 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
2228 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
2229
2230 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
2231 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
2232 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
2233 not sscanf.
2234 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
2235 with a preprocessor macro.
2236
2237 * stdio-common/bug21.c, stdio-common/scanf14.c:
2238 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
2239 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2240 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
2241 to xscanf, xfscanf, xsscanf.
2242
2243 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
2244 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2245 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
2246 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
2247 xfscanf, xsscanf.
2248 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
2249 override feature selection macros or provide definitions of u_char etc.
2250 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
2251 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
2252 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
2253 with -std=gnu89.
2254
2255 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2256
2257 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2258 bits/termios-misc.h.
2259 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
2260 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2261 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2262 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2263 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
2264 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
2265
2266 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
2267 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2268 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
2269 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
2270 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
2271 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
2272 termios-misc.h.
2273 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
2274 (sysdep_headers): Add termios-misc.h.
2275
2276 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
2277 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2278 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2279
2280 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2281 termios-tcflow.h.
2282 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
2283 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
2284 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
2285 TCSAFLUSH): Move to termios-tcflow.h.
2286 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2287 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2288 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2289 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2290
2291 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2292 termios-c_lflag.h.
2293 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
2294 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
2295 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
2296 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
2297 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
2298 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
2299 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
2300 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
2301 Likewise.
2302 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2303 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2304 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2305 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2306
2307 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2308 termios-c_cflag.h.
2309 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
2310 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
2311 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
2312 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
2313 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
2314 termios-c_cflag.h.
2315 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2316 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2317 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2318 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2319
2320 [BZ #23783]
2321 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2322 termios-baud.h.
2323 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
2324 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
2325 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
2326 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
2327 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
2328 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
2329 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
2330 __MAX_BAUD): Move to termios-baud.h.
2331 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
2332 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
2333 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2334 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2335 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2336
2337 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
2338 termios-c_oflag.h.
2339 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
2340 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
2341 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
2342 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
2343 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
2344 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
2345 termios-c_oflag.h.
2346 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
2347 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
2348 FFR1): Likewise.
2349 [USE_MISC] (XTABS): Likewise.
2350 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2351 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2352 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2353 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
2354
2355 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2356 termios-c_iflag.h.
2357 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
2358 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
2359 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
2360 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
2361 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
2362 IUTF8): Move to termios-c_iflag.h.
2363 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2364 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2365 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2366 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2367
2368 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2369 termios-cc.h.
2370 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
2371 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
2372 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
2373 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
2374 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
2375 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
2376 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
2377 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
2378 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2379 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2380 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2381 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2382
2383 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
2384 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
2385 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
2386 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
2387 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2388 termios-struct.h.
2389 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
2390 termios-struct.h.
2391 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
2392 Likewise.
2393 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
2394 Likewise.
2395 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
2396 Likewise.
2397 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
2398 Likewise.
2399 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
2400 _HAVE_C_OSPEED): Define.
2401 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
2402 _HAVE_C_OSPEED): Likewise.
2403 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
2404 _HAVE_C_OSPEED): Likewise.
2405 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
2406 (cfsetospeed): Check for define value instead of existence.
2407 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
2408 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2409 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
2410 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2411 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
2412
2413 [BZ #17783]
2414 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
2415 Define.
2416 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2417 (TIOCSER_TEMT): Likewise.
2418 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
2419 (TEOCSER_TEMT): Likewise.
2420
2421 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
2422
2423 [BZ #24011]
2424 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
2425
2426 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2427
2428 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
2429
2430 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
2431
2432 * sysdeps/htl/pt-barrierattr-setpshared.c
2433 (pthread_barrierattr_setpshared): Add stub warning.
2434 * sysdeps/htl/pt-condattr-setpshared.c
2435 (pthread_condattr_setpshared): Likewise.
2436 * sysdeps/htl/pt-mutexattr-setpshared.c
2437 (pthread_mutexattr_setpshared): Likewise.
2438 * sysdeps/htl/pt-rwlockattr-setpshared.c
2439 (pthread_rwlockattr_setpshared): Likewise.
2440 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
2441 (pthread_mutexattr_setpshared): Likewise.
2442
2443 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2444
2445 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
2446 constants to match with Linux 4.20.
2447
2448 * sysdeps/mips/mips32/libm-test-ulps: Update.
2449 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
2450
2451 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
2452
2453 [BZ #24034]
2454 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
2455 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
2456 than __typeof (...) for the a_ptr variable.
2457
2458 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2459
2460 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
2461 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
2462 * libio/Makefile (tests): Add tst-sprintf-ub and
2463 tst-sprintf-chk-ub.
2464 (CFLAGS-tst-sprintf-ub.c): New variable.
2465 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
2466 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
2467 destination buffer and check for overflows in fortified mode.
2468 * libio/libioP.h (PRINTF_CHK): New macro.
2469 * libio/tst-sprintf-chk-ub.c: New file.
2470 * libio/tst-sprintf-ub.c: Likewise.
2471
2472 2019-01-02 Florian Weimer <fweimer@redhat.com>
2473
2474 [BZ #24018]
2475 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
2476 failure.
2477
2478 2019-01-02 Florian Weimer <fweimer@redhat.com>
2479
2480 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
2481
2482 2019-01-01 Joseph Myers <joseph@codesourcery.com>
2483
2484 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
2485 macro.
2486
2487 * sysdeps/unix/sysv/linux/netpacket/packet.h
2488 (PACKET_IGNORE_OUTGOING): New macro.
2489
2490 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
2491 macro.
2492
2493 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2494 version to 4.20.
2495 (riscv_flush_icache): New syscall.
2496
2497 * manual/texinfo.tex: Update to version 2018-12-28.17 with
2498 trailing whitespace removed.
2499 * scripts/config.guess: Update to version 2019-01-01.
2500 * scripts/config.sub: Update to version 2019-01-01.
2501 * scripts/move-if-change: Update from gnulib.
2502
2503 * NEWS: Update copyright dates.
2504 * catgets/gencat.c (print_version): Likewise.
2505 * csu/version.c (banner): Likewise.
2506 * debug/catchsegv.sh: Likewise.
2507 * debug/pcprofiledump.c (print_version): Likewise.
2508 * debug/xtrace.sh (do_version): Likewise.
2509 * elf/ldconfig.c (print_version): Likewise.
2510 * elf/ldd.bash.in: Likewise.
2511 * elf/pldd.c (print_version): Likewise.
2512 * elf/sotruss.sh: Likewise.
2513 * elf/sprof.c (print_version): Likewise.
2514 * iconv/iconv_prog.c (print_version): Likewise.
2515 * iconv/iconvconfig.c (print_version): Likewise.
2516 * locale/programs/locale.c (print_version): Likewise.
2517 * locale/programs/localedef.c (print_version): Likewise.
2518 * login/programs/pt_chown.c (print_version): Likewise.
2519 * malloc/memusage.sh (do_version): Likewise.
2520 * malloc/memusagestat.c (print_version): Likewise.
2521 * malloc/mtrace.pl: Likewise.
2522 * manual/libc.texinfo: Likewise.
2523 * nptl/version.c (banner): Likewise.
2524 * nscd/nscd.c (print_version): Likewise.
2525 * nss/getent.c (print_version): Likewise.
2526 * nss/makedb.c (print_version): Likewise.
2527 * posix/getconf.c (main): Likewise.
2528 * scripts/test-installation.pl: Likewise.
2529 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2530
2531 * All files with FSF copyright notices: Update copyright dates
2532 using scripts/update-copyrights.
2533 * locale/programs/charmap-kw.h: Regenerated.
2534 * locale/programs/locfile-kw.h: Likewise.
2535
2536 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2537
2538 * timezone/zdump.c: Update from tzcode 2018i.
2539 * timezone/zic.c: Likewise.
2540
2541 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
2542
2543 regex: improve Gnulib port to AIX
2544 From the glibc point of view, this removes duplicate macro
2545 definitions and is obviously safe.
2546 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
2547 * posix/regex_internal.h:
2548 (__attribute__, __attribute_warn_unused_result__):
2549 Remove; already defined elsewhere.
2550
2551 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
2552
2553 [BZ #24027]
2554 * malloc/malloc.c (_int_realloc): Always call memcpy for the
2555 copying operation. (ncopies had the wrong type, resulting in an
2556 integer wraparound and too few elements being copied.)
2557
2558 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
2559
2560 [BZ #24022]
2561 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
2562 <asm/syscalls.h> exists with __has_include__ before including it.
2563
2564 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2565
2566 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2567 version to 4.20.
2568
2569 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
2570
2571 * hurd/lookup-retry: Include <unistd.h>.
2572 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
2573 Release it on return. Handle "pid" magical lookup retry.
2574
2575 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2576
2577 [BZ #10496]
2578 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
2579 (t_fmt_ampm): Likewise.
2580 * localedata/locales/aa_ER (t_fmt): Likewise.
2581 (t_fmt_ampm): Likewise.
2582 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
2583 (t_fmt_ampm): Likewise.
2584 * localedata/locales/aa_ET (t_fmt): Likewise.
2585 (t_fmt_ampm): Likewise.
2586 * localedata/locales/am_ET (t_fmt): Likewise.
2587 (t_fmt_ampm): Likewise.
2588 * localedata/locales/byn_ER (t_fmt): Likewise.
2589 (t_fmt_ampm): Likewise.
2590 * localedata/locales/om_ET (t_fmt): Likewise.
2591 (t_fmt_ampm): Likewise.
2592 * localedata/locales/sid_ET (t_fmt): Likewise.
2593 (t_fmt_ampm): Likewise.
2594 * localedata/locales/so_DJ (t_fmt): Likewise.
2595 (t_fmt_ampm): Likewise.
2596 * localedata/locales/so_ET (t_fmt): Likewise.
2597 (t_fmt_ampm): Likewise.
2598 * localedata/locales/so_SO (t_fmt): Likewise.
2599 (t_fmt_ampm): Likewise.
2600 * localedata/locales/ti_ER (t_fmt): Likewise.
2601 (t_fmt_ampm): Likewise.
2602 * localedata/locales/ti_ET (t_fmt): Likewise.
2603 (t_fmt_ampm): Likewise.
2604 * localedata/locales/tig_ER (t_fmt): Likewise.
2605 (t_fmt_ampm): Likewise.
2606 * localedata/locales/wal_ET (t_fmt): Likewise.
2607 (t_fmt_ampm): Likewise.
2608
2609 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
2610 * localedata/locales/ar_IN (t_fmt): Likewise.
2611 * localedata/locales/bhb_IN (t_fmt): Likewise.
2612 * localedata/locales/bho_IN (t_fmt): Likewise.
2613 * localedata/locales/bi_VU (t_fmt): Likewise.
2614 * localedata/locales/bn_BD (t_fmt): Likewise.
2615 * localedata/locales/bn_IN (t_fmt): Likewise.
2616 * localedata/locales/brx_IN (t_fmt): Likewise.
2617 * localedata/locales/doi_IN (t_fmt): Likewise.
2618 * localedata/locales/en_HK (t_fmt): Likewise.
2619 (t_fmt_ampm): Likewise.
2620 * localedata/locales/en_IN (t_fmt): Likewise.
2621 * localedata/locales/en_PH (t_fmt): Likewise.
2622 * localedata/locales/gu_IN (t_fmt): Likewise.
2623 * localedata/locales/hi_IN (t_fmt): Likewise.
2624 * localedata/locales/hif_FJ (t_fmt): Likewise.
2625 * localedata/locales/hne_IN (t_fmt): Likewise.
2626 * localedata/locales/kn_IN (t_fmt): Likewise.
2627 * localedata/locales/kok_IN (t_fmt): Likewise.
2628 * localedata/locales/ks_IN (t_fmt): Likewise.
2629 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
2630 * localedata/locales/mag_IN (t_fmt): Likewise.
2631 * localedata/locales/mai_IN (t_fmt): Likewise.
2632 * localedata/locales/mjw_IN (t_fmt): Likewise.
2633 * localedata/locales/ml_IN (t_fmt): Likewise.
2634 * localedata/locales/mni_IN (t_fmt): Likewise.
2635 * localedata/locales/mr_IN (t_fmt): Likewise.
2636 * localedata/locales/ms_MY (t_fmt): Likewise.
2637 * localedata/locales/pa_IN (t_fmt): Likewise.
2638 * localedata/locales/raj_IN (t_fmt): Likewise.
2639 * localedata/locales/sa_IN (t_fmt): Likewise.
2640 * localedata/locales/sat_IN (t_fmt): Likewise.
2641 * localedata/locales/sd_IN (t_fmt): Likewise.
2642 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
2643 * localedata/locales/tcy_IN (t_fmt): Likewise.
2644 * localedata/locales/the_NP (t_fmt): Likewise.
2645 * localedata/locales/to_TO (t_fmt): Likewise.
2646 * localedata/locales/ur_IN (t_fmt): Likewise.
2647
2648 * localedata/locales/hif_FJ (d_t_fmt): Set to
2649 "%A %d %b %Y %I:%M:%S %p".
2650 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
2651
2652 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
2653 * localedata/locales/ar_BH (t_fmt): Likewise.
2654 * localedata/locales/ar_DZ (t_fmt): Likewise.
2655 * localedata/locales/ar_EG (t_fmt): Likewise.
2656 * localedata/locales/ar_IQ (t_fmt): Likewise.
2657 * localedata/locales/ar_JO (t_fmt): Likewise.
2658 * localedata/locales/ar_KW (t_fmt): Likewise.
2659 * localedata/locales/ar_LB (t_fmt): Likewise.
2660 * localedata/locales/ar_LY (t_fmt): Likewise.
2661 * localedata/locales/ar_OM (t_fmt): Likewise.
2662 * localedata/locales/ar_QA (t_fmt): Likewise.
2663 * localedata/locales/ar_SD (t_fmt): Likewise.
2664 * localedata/locales/ar_SS (t_fmt): Likewise.
2665 * localedata/locales/ar_SY (t_fmt): Likewise.
2666 * localedata/locales/ar_TN (t_fmt): Likewise.
2667 * localedata/locales/ar_YE (t_fmt): Likewise.
2668
2669 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
2670 (t_fmt_ampm): Likewise.
2671 * localedata/locales/gez_ET (t_fmt): Likewise.
2672 (t_fmt_ampm): Likewise.
2673
2674 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
2675 (t_fmt_ampm): Likewise.
2676 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
2677
2678 * localedata/locales/zh_HK (t_fmt):
2679 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
2680
2681 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
2682 because this locale does not use the 12-hour clock.
2683 (t_fmt): Set to "%Z %H:%M:%S".
2684 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
2685
2686 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
2687 because this locale does not use the 12-hour clock.
2688 (t_fmt): Set to "%H:%M:%S %Z".
2689 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
2690
2691 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
2692 because this locale does not use the 12-hour clock.
2693 (t_fmt): Set to "%T".
2694 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
2695 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
2696
2697 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
2698 because this locale does not use the 12-hour clock.
2699 (t_fmt): Set to "%H:%M:%S %Z".
2700 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
2701
2702 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
2703 because this locale does not use the 12-hour clock.
2704 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
2705 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
2706
2707 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2708
2709 [BZ #10496]
2710 [BZ #23724]
2711 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
2712 (t_fmt_ampm): Likewise.
2713 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
2714 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
2715 (d_fmt): Set to "%-d.%-m.%y".
2716
2717 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2718
2719 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
2720 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
2721 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
2722 Likewise.
2723 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
2724 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
2725 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
2726 function.
2727 * support/blob_repeat.c (check_mul_overflow_size_t,
2728 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
2729
2730 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
2731
2732 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
2733
2734 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
2735
2736 regex: simplify Gnulib port
2737 This simplifies the code, by removing stuff intended for porting
2738 to Gnulib but no longer needed there.
2739 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
2740 uses of libc_hidden_def, weak_alias.
2741 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
2742 _Restrict_ except for public-facing headers.
2743 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
2744 Remove; already defined elsewhere.
2745 * posix/regex.c, posix/regex_internal.h:
2746 Use __GNUC_PREREQ instead of rolling our own.
2747 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
2748
2749 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
2750
2751 * benchtests/bench-strlen.c (generic_strlen): New function.
2752 (memchr_strlen): New function.
2753
2754 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2755
2756 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
2757 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
2758 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
2759
2760 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2761
2762 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
2763
2764 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2765
2766 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
2767 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
2768 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
2769 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
2770 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
2771 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
2772 <sysdeps/ieee754/flt-32/s_sincosf.c>.
2773
2774 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2775
2776 [BZ #24023]
2777 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
2778 PLT reference in libc.so.
2779 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
2780 _Q_lltoq and _Q_qtod PLT references in libc.so.
2781
2782 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
2783
2784 * benchtests/bench-memchr.c: Cleanup defines.
2785 * benchtests/bench-memcmp.c: Likewise.
2786 * benchtests/bench-memset.c: Likewise.
2787 * benchtests/bench-memset-large.c: Likewise.
2788 * benchtests/bench-memset-walk.c: Likewise.
2789 * benchtests/bench-stpcpy.c: Likewise.
2790 * benchtests/bench-stpncpy.c: Likewise.
2791 * benchtests/bench-strcat.c: Likewise.
2792 * benchtests/bench-strchr.c: Likewise.
2793 * benchtests/bench-strcmp.c: Likewise.
2794 * benchtests/bench-strcpy.c: Likewise.
2795 * benchtests/bench-strcspn.c: Likewise.
2796 * benchtests/bench-string.h: Likewise.
2797 * benchtests/bench-strlen.c: Likewise.
2798 * benchtests/bench-strncat.c: Likewise.
2799 * benchtests/bench-strncmp.c: Likewise.
2800 * benchtests/bench-strncpy.c: Likewise.
2801 * benchtests/bench-strnlen.c: Likewise.
2802 * benchtests/bench-strpbrk.c: Likewise.
2803 * benchtests/bench-strrchr.c: Likewise.
2804 * benchtests/bench-strspn.c: Likewise.
2805
2806 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2807
2808 * stdlib/longlong.h: Update from GCC.
2809
2810 [BZ #23993]
2811 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
2812 * configure: Regenerated.
2813 * manual/install.texi (Tools for Compilation): Update minimum GCC
2814 version.
2815 * INSTALL: Regenerated.
2816
2817 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
2818
2819 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
2820
2821 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
2822
2823 * malloc/malloc.c (mremap_chunk): Additional checks.
2824
2825 2018-12-21 Mao Han <han_mao@c-sky.com>
2826
2827 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
2828 * scripts/build-many-glibcs.py: Add C-SKY targets.
2829 * sysdeps/csky/Implies: New file.
2830 * sysdeps/csky/Makefile: Likewise.
2831 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
2832 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
2833 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
2834 * sysdeps/csky/abiv2/memcmp.S: Likewise.
2835 * sysdeps/csky/abiv2/memcpy.S: Likewise.
2836 * sysdeps/csky/abiv2/memmove.S: Likewise.
2837 * sysdeps/csky/abiv2/memset.S: Likewise.
2838 * sysdeps/csky/abiv2/setjmp.S: Likewise.
2839 * sysdeps/csky/abiv2/start.S: Likewise.
2840 * sysdeps/csky/abiv2/strcmp.S: Likewise.
2841 * sysdeps/csky/abiv2/strcpy.S: Likewise.
2842 * sysdeps/csky/abiv2/strlen.S: Likewise.
2843 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
2844 * sysdeps/csky/abort-instr.h: Likewise.
2845 * sysdeps/csky/atomic-machine.h: Likewise.
2846 * sysdeps/csky/bits/endian.h: Likewise.
2847 * sysdeps/csky/bits/fenv.h: Likewise.
2848 * sysdeps/csky/bits/link.h: Likewise.
2849 * sysdeps/csky/bits/setjmp.h: Likewise.
2850 * sysdeps/csky/bsd-_setjmp.S: Likewise.
2851 * sysdeps/csky/bsd-setjmp.S: Likewise.
2852 * sysdeps/csky/configure: Likewise.
2853 * sysdeps/csky/configure.ac: Likewise.
2854 * sysdeps/csky/dl-machine.h: Likewise.
2855 * sysdeps/csky/dl-procinfo.c: Likewise.
2856 * sysdeps/csky/dl-procinfo.h: Likewise.
2857 * sysdeps/csky/dl-sysdep.h: Likewise.
2858 * sysdeps/csky/dl-tls.h: Likewise.
2859 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
2860 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
2861 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
2862 * sysdeps/csky/fpu/fegetenv.c: Likewise.
2863 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
2864 * sysdeps/csky/fpu/fegetmode.c: Likewise.
2865 * sysdeps/csky/fpu/fegetround.c: Likewise.
2866 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
2867 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
2868 * sysdeps/csky/fpu/fenv_private.h: Likewise.
2869 * sysdeps/csky/fpu/fesetenv.c: Likewise.
2870 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
2871 * sysdeps/csky/fpu/fesetmode.c: Likewise.
2872 * sysdeps/csky/fpu/fesetround.c: Likewise.
2873 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
2874 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
2875 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
2876 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
2877 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
2878 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
2879 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
2880 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
2881 * sysdeps/csky/fpu_control.h: Likewise.
2882 * sysdeps/csky/gccframe.h: Likewise.
2883 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
2884 * sysdeps/csky/ldsodefs.h: Likewise.
2885 * sysdeps/csky/libc-tls.c: Likewise.
2886 * sysdeps/csky/linkmap.h: Likewise.
2887 * sysdeps/csky/machine-gmon.h: Likewise.
2888 * sysdeps/csky/memusage.h: Likewise.
2889 * sysdeps/csky/nofpu/Implies: Likewise.
2890 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
2891 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
2892 * sysdeps/csky/nptl/Makefile: Likewise.
2893 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
2894 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
2895 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
2896 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
2897 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
2898 * sysdeps/csky/nptl/tls.h: Likewise.
2899 * sysdeps/csky/preconfigure: Likewise.
2900 * sysdeps/csky/sfp-machine.h: Likewise.
2901 * sysdeps/csky/sotruss-lib.c: Likewise.
2902 * sysdeps/csky/stackinfo.h: Likewise.
2903 * sysdeps/csky/sysdep.h: Likewise.
2904 * sysdeps/csky/tininess.h: Likewise.
2905 * sysdeps/csky/tst-audit.h: Likewise.
2906 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
2907 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
2908 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
2909 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
2910 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2911 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
2912 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2913 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
2914 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
2915 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
2916 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
2917 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
2918 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
2919 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
2920 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
2921 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
2922 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
2923 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
2924 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
2925 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
2926 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
2927 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
2928 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
2929 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
2930 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
2931 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
2932 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
2933 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
2934 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
2935 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
2936 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
2937 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
2938 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
2939 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
2940 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
2941 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2942 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
2943 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
2944 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
2945 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
2946 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
2947 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
2948 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
2949 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
2950
2951 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2952
2953 * include/time.h (__difftime64): Add.
2954 * time/difftime.c (subtract): convert to 64-bit time.
2955 * time/difftime.c (__difftime64): Add.
2956 * time/difftime.c (__difftime): Wrap around __difftime64.
2957
2958 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2959
2960 * manual/examples/add.c: Remove redundant "if not".
2961 * manual/examples/argp-ex1.c: Likewise.
2962 * manual/examples/argp-ex2.c: Likewise.
2963 * manual/examples/argp-ex3.c: Likewise.
2964 * manual/examples/argp-ex4.c: Likewise.
2965 * manual/examples/atexit.c: Likewise.
2966 * manual/examples/db.c: Likewise.
2967 * manual/examples/dir.c: Likewise.
2968 * manual/examples/dir2.c: Likewise.
2969 * manual/examples/execinfo.c: Likewise.
2970 * manual/examples/filecli.c: Likewise.
2971 * manual/examples/filesrv.c: Likewise.
2972 * manual/examples/fmtmsgexpl.c: Likewise.
2973 * manual/examples/genpass.c: Likewise.
2974 * manual/examples/inetcli.c: Likewise.
2975 * manual/examples/inetsrv.c: Likewise.
2976 * manual/examples/isockad.c: Likewise.
2977 * manual/examples/longopt.c: Likewise.
2978 * manual/examples/memopen.c: Likewise.
2979 * manual/examples/memstrm.c: Likewise.
2980 * manual/examples/mkdirent.c: Likewise.
2981 * manual/examples/mkfsock.c: Likewise.
2982 * manual/examples/mkisock.c: Likewise.
2983 * manual/examples/mygetpass.c: Likewise.
2984 * manual/examples/pipe.c: Likewise.
2985 * manual/examples/popen.c: Likewise.
2986 * manual/examples/rprintf.c: Likewise.
2987 * manual/examples/search.c: Likewise.
2988 * manual/examples/select.c: Likewise.
2989 * manual/examples/setjmp.c: Likewise.
2990 * manual/examples/sigh1.c: Likewise.
2991 * manual/examples/sigusr.c: Likewise.
2992 * manual/examples/stpcpy.c: Likewise.
2993 * manual/examples/strdupa.c: Likewise.
2994 * manual/examples/strftim.c: Likewise.
2995 * manual/examples/subopt.c: Likewise.
2996 * manual/examples/swapcontext.c: Likewise.
2997 * manual/examples/termios.c: Likewise.
2998 * manual/examples/testopt.c: Likewise.
2999 * manual/examples/testpass.c: Likewise.
3000 * manual/examples/timeval_subtract.c: Likewise.
3001
3002 2018-12-19 Joseph Myers <joseph@codesourcery.com>
3003
3004 * sysdeps/x86/fpu/math_private.h: New file.
3005 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
3006
3007 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
3008 definition.
3009 (cosh): Likewise.
3010 (tanh): Likewise.
3011
3012 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3013
3014 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
3015 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
3016 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
3017 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
3018 fields.
3019 (_dl_show_auxv): Give a special treatment to
3020 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
3021 and AT_L3_CACHEGEOMETRY.
3022 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
3023 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
3024 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
3025 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
3026
3027 2018-12-19 Andreas Schwab <schwab@suse.de>
3028
3029 * nscd/connections.c (check_use): Don't abort on invalid len.
3030
3031 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
3032
3033 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
3034 values in the 64bit value cases.
3035
3036 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
3037
3038 * include/time.h
3039 (__ctime64_r): Add.
3040 * time/ctime_r.c
3041 (__ctime64_r): Add.
3042 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
3043
3044 * include/time.h
3045 (__ctime64): Add.
3046 * time/gmtime.c
3047 (__ctime64): Add.
3048 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
3049
3050 * include/time.h
3051 (__gmtime64_r): Add.
3052 * time/gmtime.c
3053 (__gmtime64_r): Add.
3054 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
3055
3056 * include/time.h
3057 (__gmtime64): Add.
3058 * time/gmtime.c
3059 (__gmtime64): Add.
3060 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
3061
3062 * include/time.h
3063 (__localtime64_r): Add.
3064 * time/localtime.c
3065 (__localtime64_r): Add.
3066 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
3067
3068 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3069
3070 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
3071 kernel_sigction definition.
3072
3073 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
3074
3075 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
3076
3077 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
3078 __syscall_rt_sigaction.
3079 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
3080 (kernel_sigaction): Use Linux generic defintion.
3081 (STUB): Define.
3082 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
3083 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
3084 (__syscall_rt_sigaction): Remove implementation.
3085 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
3086 hidden.
3087 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
3088 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
3089 INTERNAL_SYSCALL): Remove definitions.
3090 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
3091 action and signal set size.
3092 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
3093 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
3094
3095 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3096 James Clarke <jrtc27@jrtc27.com>
3097
3098 [BZ #23967]
3099 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
3100 Define if SA_RESTORER is defined.
3101 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
3102 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
3103 already defined.
3104 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
3105 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
3106 definitions.
3107 (HAS_SA_RESTORER): Define.
3108 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
3109 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
3110 (HAS_SA_RESTORER): Define.
3111 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
3112 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
3113 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
3114 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
3115 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
3116
3117 2018-12-18 Joseph Myers <joseph@codesourcery.com>
3118
3119 * sysdeps/unix/sysv/linux/kernel-features.h
3120 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
3121 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3122 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
3123 * sysdeps/unix/sysv/linux/sh/kernel-features.h
3124 (__ASSUME_ST_INO_64_BIT): Likewise.
3125 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
3126 <kernel-features.h>.
3127 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3128 Remove conditional code.
3129 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
3130 <kernel-features.h>.
3131 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3132 Remove conditional code.
3133 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
3134 <kernel-features.h>.
3135 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3136 Remove conditional code.
3137 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
3138 <kernel-features.h>.
3139 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
3140 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
3141
3142 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3143
3144 * sysdeps/s390/multiarch/ifunc-resolve.h
3145 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
3146 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
3147 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
3148 Delete macro definition.
3149 (s390_libc_ifunc_init): Rename to
3150 s390_libc_ifunc_expr_stfle_init.
3151 * sysdeps/s390/bzero: Use
3152 s390_libc_ifunc_expr_stfle_init instead of
3153 s390_libc_ifunc_init.
3154 * sysdeps/s390/memcmp.c: Likewise.
3155 * sysdeps/s390/memcpy.c: Likewise.
3156 * sysdeps/s390/mempcpy.c: Likewise.
3157 * sysdeps/s390/memset.c: Likewise.
3158
3159 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3160
3161 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
3162 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
3163
3164 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3165
3166 * sysdeps/s390/multiarch/Makefile
3167 (sysdep_routines): Remove wmemcmp variants.
3168 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
3169 * sysdeps/s390/multiarch/ifunc-impl-list.c
3170 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
3171 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
3172 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
3173 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
3174 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
3175 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
3176 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
3177 * sysdeps/s390/ifunc-wmemcmp.h: New file.
3178
3179 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3180
3181 * sysdeps/s390/multiarch/Makefile
3182 (sysdep_routines): Remove wmemset variants.
3183 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
3184 * sysdeps/s390/multiarch/ifunc-impl-list.c
3185 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
3186 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
3187 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
3188 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
3189 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
3190 * sysdeps/s390/multiarch/wmemset.c: Move to ...
3191 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
3192 * sysdeps/s390/ifunc-wmemset.h: New file.
3193
3194 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3195
3196 * sysdeps/s390/multiarch/Makefile
3197 (sysdep_routines): Remove wmemchr variants.
3198 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
3199 * sysdeps/s390/multiarch/ifunc-impl-list.c
3200 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
3201 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
3202 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
3203 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
3204 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
3205 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
3206 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
3207 * sysdeps/s390/ifunc-wmemchr.h: New file.
3208
3209 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3210
3211 * sysdeps/s390/multiarch/Makefile
3212 (sysdep_routines): Remove wcscspn variants.
3213 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
3214 * sysdeps/s390/multiarch/ifunc-impl-list.c
3215 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
3216 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
3217 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
3218 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
3219 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
3220 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
3221 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
3222 * sysdeps/s390/ifunc-wcscspn.h: New file.
3223
3224 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3225
3226 * sysdeps/s390/multiarch/Makefile
3227 (sysdep_routines): Remove wcspbrk variants.
3228 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
3229 * sysdeps/s390/multiarch/ifunc-impl-list.c
3230 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
3231 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
3232 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
3233 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
3234 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
3235 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
3236 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
3237 * sysdeps/s390/ifunc-wcspbrk.h: New file.
3238
3239 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3240
3241 * sysdeps/s390/multiarch/Makefile
3242 (sysdep_routines): Remove wcsspn variants.
3243 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
3244 * sysdeps/s390/multiarch/ifunc-impl-list.c
3245 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
3246 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
3247 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
3248 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
3249 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
3250 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
3251 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
3252 * sysdeps/s390/ifunc-wcsspn.h: New file.
3253
3254 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3255
3256 * sysdeps/s390/multiarch/Makefile
3257 (sysdep_routines): Remove wcsrchr variants.
3258 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
3259 * sysdeps/s390/multiarch/ifunc-impl-list.c
3260 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
3261 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
3262 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
3263 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
3264 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
3265 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
3266 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
3267 * sysdeps/s390/ifunc-wcsrchr.h: New file.
3268
3269 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3270
3271 * sysdeps/s390/multiarch/Makefile
3272 (sysdep_routines): Remove wcschrnul variants.
3273 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
3274 * sysdeps/s390/multiarch/ifunc-impl-list.c
3275 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
3276 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
3277 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
3278 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
3279 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
3280 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
3281 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
3282 * sysdeps/s390/ifunc-wcschrnul.h: New file.
3283
3284 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3285
3286 * sysdeps/s390/multiarch/Makefile
3287 (sysdep_routines): Remove wcschr variants.
3288 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
3289 * sysdeps/s390/multiarch/ifunc-impl-list.c
3290 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
3291 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
3292 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
3293 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
3294 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
3295 * sysdeps/s390/multiarch/wcschr.c: Move to ...
3296 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
3297 * sysdeps/s390/ifunc-wcschr.h: New file.
3298
3299 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3300
3301 * sysdeps/s390/multiarch/Makefile
3302 (sysdep_routines): Remove wcsncmp variants.
3303 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
3304 * sysdeps/s390/multiarch/ifunc-impl-list.c
3305 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
3306 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
3307 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
3308 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
3309 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
3310 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
3311 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
3312 * sysdeps/s390/ifunc-wcsncmp.h: New file.
3313
3314 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3315
3316 * sysdeps/s390/multiarch/Makefile
3317 (sysdep_routines): Remove wcscmp variants.
3318 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
3319 * sysdeps/s390/multiarch/ifunc-impl-list.c
3320 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
3321 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
3322 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
3323 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
3324 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
3325 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
3326 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
3327 * sysdeps/s390/ifunc-wcscmp.h: New file.
3328
3329 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3330
3331 * sysdeps/s390/multiarch/Makefile
3332 (sysdep_routines): Remove wcsncat variants.
3333 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
3334 * sysdeps/s390/multiarch/ifunc-impl-list.c
3335 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
3336 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
3337 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
3338 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
3339 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
3340 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
3341 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
3342 * sysdeps/s390/ifunc-wcsncat.h: New file.
3343
3344 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3345
3346 * sysdeps/s390/multiarch/Makefile
3347 (sysdep_routines): Remove wcscat variants.
3348 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
3349 * sysdeps/s390/multiarch/ifunc-impl-list.c
3350 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
3351 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
3352 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
3353 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
3354 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
3355 * sysdeps/s390/multiarch/wcscat.c: Move to ...
3356 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
3357 * sysdeps/s390/ifunc-wcscat.h: New file.
3358
3359 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3360
3361 * sysdeps/s390/multiarch/Makefile
3362 (sysdep_routines): Remove wcpncpy variants.
3363 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
3364 * sysdeps/s390/multiarch/ifunc-impl-list.c
3365 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
3366 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
3367 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
3368 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
3369 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
3370 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
3371 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
3372 * sysdeps/s390/ifunc-wcpncpy.h: New file.
3373
3374 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3375
3376 * sysdeps/s390/multiarch/Makefile
3377 (sysdep_routines): Remove wcsncpy variants.
3378 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
3379 * sysdeps/s390/multiarch/ifunc-impl-list.c
3380 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
3381 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
3382 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
3383 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
3384 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
3385 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
3386 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
3387 * sysdeps/s390/ifunc-wcsncpy.h: New file.
3388
3389 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3390
3391 * sysdeps/s390/multiarch/Makefile
3392 (sysdep_routines): Remove wcpcpy variants.
3393 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
3394 * sysdeps/s390/multiarch/ifunc-impl-list.c
3395 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
3396 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
3397 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
3398 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
3399 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
3400 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
3401 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
3402 * sysdeps/s390/ifunc-wcpcpy.h: New file.
3403
3404 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3405
3406 * sysdeps/s390/multiarch/Makefile
3407 (sysdep_routines): Remove wcscpy variants.
3408 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
3409 * sysdeps/s390/multiarch/ifunc-impl-list.c
3410 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
3411 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
3412 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
3413 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
3414 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
3415 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
3416 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
3417 * sysdeps/s390/ifunc-wcscpy.h: New file.
3418
3419 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3420
3421 * sysdeps/s390/multiarch/Makefile
3422 (sysdep_routines): Remove wcsnlen variants.
3423 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
3424 * sysdeps/s390/multiarch/ifunc-impl-list.c
3425 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
3426 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
3427 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
3428 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
3429 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
3430 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
3431 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
3432 * sysdeps/s390/ifunc-wcsnlen.h: New file.
3433
3434 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3435
3436 * sysdeps/s390/multiarch/Makefile
3437 (sysdep_routines): Remove wcslen variants.
3438 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
3439 * sysdeps/s390/multiarch/ifunc-impl-list.c
3440 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
3441 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
3442 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
3443 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
3444 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
3445 * sysdeps/s390/multiarch/wcslen.c: Move to ...
3446 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
3447 * sysdeps/s390/ifunc-wcslen.h: New file.
3448
3449 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3450
3451 * sysdeps/s390/multiarch/Makefile
3452 (sysdep_routines): Remove memrchr variants.
3453 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
3454 * sysdeps/s390/multiarch/ifunc-impl-list.c
3455 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
3456 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
3457 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
3458 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
3459 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
3460 * sysdeps/s390/multiarch/memrchr.c: Move to ...
3461 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
3462 * sysdeps/s390/ifunc-memrchr.h: New file.
3463
3464 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3465
3466 * sysdeps/s390/multiarch/Makefile
3467 (sysdep_routines): Remove memccpy variants.
3468 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
3469 * sysdeps/s390/multiarch/ifunc-impl-list.c
3470 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
3471 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
3472 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
3473 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
3474 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
3475 * sysdeps/s390/multiarch/memccpy.c: Move to ...
3476 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
3477 * sysdeps/s390/ifunc-memccpy.h: New file.
3478
3479 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3480
3481 * sysdeps/s390/multiarch/Makefile
3482 (sysdep_routines): Remove rawmemchr variants.
3483 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
3484 * sysdeps/s390/multiarch/ifunc-impl-list.c
3485 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
3486 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
3487 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
3488 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
3489 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
3490 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
3491 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
3492 * sysdeps/s390/ifunc-rawmemchr.h: New file.
3493
3494 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3495
3496 * sysdeps/s390/multiarch/Makefile
3497 (sysdep_routines): Remove memchr variants.
3498 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
3499 * sysdeps/s390/multiarch/ifunc-impl-list.c
3500 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
3501 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
3502 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
3503 * sysdeps/s390/multiarch/memchr.c: Move to ...
3504 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
3505 * sysdeps/s390/ifunc-memchr.h: New file.
3506 * sysdeps/s390/s390-64/memchr.S: Move to ...
3507 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
3508 for 31/64bit and ifunc handling.
3509 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
3510 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
3511 * sysdeps/s390/s390-32/memchr.S: Likewise.
3512
3513 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3514
3515 * sysdeps/s390/multiarch/Makefile
3516 (sysdep_routines): Remove strcspn variants.
3517 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
3518 * sysdeps/s390/multiarch/ifunc-impl-list.c
3519 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
3520 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
3521 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
3522 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
3523 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
3524 * sysdeps/s390/multiarch/strcspn.c: Move to ...
3525 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
3526 * sysdeps/s390/ifunc-strcspn.h: New file.
3527
3528 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3529
3530 * sysdeps/s390/multiarch/Makefile
3531 (sysdep_routines): Remove strpbrk variants.
3532 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
3533 * sysdeps/s390/multiarch/ifunc-impl-list.c
3534 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
3535 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
3536 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
3537 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
3538 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
3539 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
3540 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
3541 * sysdeps/s390/ifunc-strpbrk.h: New file.
3542
3543 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3544
3545 * sysdeps/s390/multiarch/Makefile
3546 (sysdep_routines): Remove strspn variants.
3547 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
3548 * sysdeps/s390/multiarch/ifunc-impl-list.c
3549 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
3550 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
3551 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
3552 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
3553 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
3554 * sysdeps/s390/multiarch/strspn.c: Move to ...
3555 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
3556 * sysdeps/s390/ifunc-strspn.h: New file.
3557
3558 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3559
3560 * sysdeps/s390/multiarch/Makefile
3561 (sysdep_routines): Remove strrchr variants.
3562 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
3563 * sysdeps/s390/multiarch/ifunc-impl-list.c
3564 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
3565 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
3566 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
3567 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
3568 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
3569 * sysdeps/s390/multiarch/strrchr.c: Move to ...
3570 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
3571 * sysdeps/s390/ifunc-strrchr.h: New file.
3572
3573 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3574
3575 * sysdeps/s390/multiarch/Makefile
3576 (sysdep_routines): Remove strchrnul variants.
3577 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
3578 * sysdeps/s390/multiarch/ifunc-impl-list.c
3579 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
3580 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
3581 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
3582 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
3583 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
3584 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
3585 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
3586 * sysdeps/s390/ifunc-strchrnul.h: New file.
3587
3588 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3589
3590 * sysdeps/s390/multiarch/Makefile
3591 (sysdep_routines): Remove strchr variants.
3592 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
3593 * sysdeps/s390/multiarch/ifunc-impl-list.c
3594 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
3595 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
3596 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
3597 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
3598 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
3599 * sysdeps/s390/multiarch/strchr.c: Move to ...
3600 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
3601 * sysdeps/s390/ifunc-strchr.h: New file.
3602
3603 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3604
3605 * sysdeps/s390/multiarch/Makefile
3606 (sysdep_routines): Remove strncmp variants.
3607 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
3608 * sysdeps/s390/multiarch/ifunc-impl-list.c
3609 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
3610 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
3611 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
3612 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
3613 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
3614 * sysdeps/s390/multiarch/strncmp.c: Move to ...
3615 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
3616 * sysdeps/s390/ifunc-strncmp.h: New file.
3617
3618 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3619
3620 * sysdeps/s390/multiarch/Makefile
3621 (sysdep_routines): Remove strcmp variants.
3622 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
3623 * sysdeps/s390/multiarch/ifunc-impl-list.c
3624 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
3625 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
3626 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
3627 * sysdeps/s390/multiarch/strcmp.c: Move to ...
3628 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
3629 * sysdeps/s390/ifunc-strcmp.h: New file.
3630 * sysdeps/s390/s390-64/strcmp.S: Move to ...
3631 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
3632 for 31/64bit and ifunc handling.
3633 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
3634 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
3635 * sysdeps/s390/s390-32/strcmp.S: Likewise.
3636
3637 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3638
3639 * sysdeps/s390/multiarch/Makefile
3640 (sysdep_routines): Remove strncat variants.
3641 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
3642 * sysdeps/s390/multiarch/ifunc-impl-list.c
3643 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
3644 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
3645 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
3646 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
3647 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
3648 * sysdeps/s390/multiarch/strncat.c: Move to ...
3649 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
3650 * sysdeps/s390/ifunc-strncat.h: New file.
3651
3652 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3653
3654 * sysdeps/s390/multiarch/Makefile
3655 (sysdep_routines): Remove strcat variants.
3656 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
3657 * sysdeps/s390/multiarch/ifunc-impl-list.c
3658 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
3659 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
3660 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
3661 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
3662 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
3663 * sysdeps/s390/multiarch/strcat.c: Move to ...
3664 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
3665 * sysdeps/s390/ifunc-strcat.h: New file.
3666
3667 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3668
3669 * sysdeps/s390/multiarch/Makefile
3670 (sysdep_routines): Remove stpncpy variants.
3671 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
3672 * sysdeps/s390/multiarch/ifunc-impl-list.c
3673 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
3674 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
3675 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
3676 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
3677 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
3678 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
3679 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
3680 * sysdeps/s390/ifunc-stpncpy.h: New file.
3681
3682 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3683
3684 * sysdeps/s390/multiarch/Makefile
3685 (sysdep_routines): Remove strncpy variants.
3686 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
3687 * sysdeps/s390/multiarch/ifunc-impl-list.c
3688 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
3689 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
3690 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
3691 * sysdeps/s390/multiarch/strncpy.c: Move to ...
3692 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
3693 * sysdeps/s390/ifunc-strncpy.h: New file.
3694 * sysdeps/s390/s390-64/strncpy.S: Move to ...
3695 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
3696 and adjust ifunc handling.
3697 * sysdeps/s390/s390-32/strncpy.S: Move to ...
3698 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
3699 and adjust ifunc handling.
3700 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
3701 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
3702
3703 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3704
3705 * sysdeps/s390/multiarch/Makefile
3706 (sysdep_routines): Remove stpcpy variants.
3707 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
3708 * sysdeps/s390/multiarch/ifunc-impl-list.c
3709 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
3710 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
3711 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
3712 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
3713 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
3714 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
3715 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
3716 * sysdeps/s390/ifunc-stpcpy.h: New file.
3717
3718 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3719
3720 * sysdeps/s390/multiarch/Makefile
3721 (sysdep_routines): Remove strcpy variants.
3722 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
3723 * sysdeps/s390/multiarch/ifunc-impl-list.c
3724 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
3725 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
3726 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
3727 * sysdeps/s390/multiarch/strcpy.c: Move to ...
3728 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
3729 * sysdeps/s390/ifunc-strcpy.h: New file.
3730 * sysdeps/s390/s390-64/strcpy.S: Move to ...
3731 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
3732 for 31/64bit and ifunc handling.
3733 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
3734 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
3735 * sysdeps/s390/s390-32/strcpy.S: Likewise.
3736
3737 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3738
3739 * sysdeps/s390/multiarch/Makefile
3740 (sysdep_routines): Remove strnlen variants.
3741 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
3742 * sysdeps/s390/multiarch/ifunc-impl-list.c
3743 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
3744 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
3745 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
3746 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
3747 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
3748 * sysdeps/s390/multiarch/strnlen.c: Move to ...
3749 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
3750 * sysdeps/s390/ifunc-strnlen.h: New file.
3751
3752 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3753
3754 * sysdeps/s390/multiarch/Makefile
3755 (sysdep_routines): Remove strlen variants.
3756 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
3757 * sysdeps/s390/multiarch/ifunc-impl-list.c
3758 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
3759 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
3760 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
3761 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
3762 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
3763 * sysdeps/s390/multiarch/strlen.c: Move to ...
3764 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
3765 * sysdeps/s390/ifunc-strlen.h: New file.
3766
3767 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3768
3769 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
3770 * sysdeps/s390/multiarch/ifunc-impl-list.c
3771 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
3772 * sysdeps/s390/ifunc-memmem.h: New file.
3773 * sysdeps/s390/memmem.c: Likewise.
3774 * sysdeps/s390/memmem-c.c: Likewise.
3775 * sysdeps/s390/memmem-vx.c: Likewise.
3776
3777 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3778
3779 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
3780 * sysdeps/s390/multiarch/ifunc-impl-list.c
3781 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
3782 * sysdeps/s390/ifunc-strstr.h: New file.
3783 * sysdeps/s390/strstr.c: Likewise.
3784 * sysdeps/s390/strstr-c.c: Likewise.
3785 * sysdeps/s390/strstr-vx.c: Likewise.
3786
3787 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3788
3789 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
3790 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
3791 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
3792 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
3793 New defines.
3794 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
3795 * sysdeps/s390/memmove-c.c: New file.
3796 * sysdeps/s390/memmove.c: Likewise.
3797 * sysdeps/s390/multiarch/ifunc-impl-list.c
3798 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
3799
3800 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3801
3802 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
3803 * sysdeps/s390/configure.ac: Add check for z13 support.
3804 * sysdeps/s390/configure: Regenerated.
3805
3806 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3807
3808 * sysdeps/s390/memcopy.h: New file.
3809
3810 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3811
3812 * sysdeps/s390/s390-32/bcopy.S: Remove.
3813 * sysdeps/s390/s390-64/bcopy.S: Likewise.
3814
3815 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3816
3817 * sysdeps/s390/ifunc-memcpy.h: New File.
3818 * sysdeps/s390/memcpy.S: Move to ...
3819 * sysdeps/s390/memcpy-z900.S ... here.
3820 Move implementations from memcpy-s390x.s to here.
3821 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
3822 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3823 Remove memcpy/mempcpy variants.
3824 * sysdeps/s390/Makefile (sysdep_routines):
3825 Add memcpy/mempcpy variants.
3826 * sysdeps/s390/multiarch/ifunc-impl-list.c
3827 (__libc_ifunc_impl_list): Adjust ifunc variants for
3828 memcpy and mempcpy.
3829 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
3830 to ...
3831 * sysdeps/s390/memcpy.c: ... here.
3832 Adjust ifunc variants for memcpy.
3833 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
3834 * sysdeps/s390/mempcpy.c: ... here.
3835 Adjust ifunc variants for mempcpy.
3836 * sysdeps/s390/mempcpy.S: Delete file.
3837
3838 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3839
3840 * sysdeps/s390/s390-64/memcpy.S: Move to ...
3841 * sysdeps/s390/memcpy.S: ... here.
3842 Adjust to be usable for 31/64bit.
3843 * sysdeps/s390/s390-32/memcpy.S: Delete File.
3844 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
3845 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
3846 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3847 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
3848 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
3849 Adjust to be usable for 31/64bit.
3850 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
3851 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
3852 * sysdeps/s390/multiarch/memcpy.c: ... here.
3853 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
3854
3855 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3856
3857 * sysdeps/s390/ifunc-memcmp.h: New File.
3858 * sysdeps/s390/memcmp.S: Move to ...
3859 * sysdeps/s390/memcmp-z900.S ... here.
3860 Move implementations from memcmp-s390x.s to here.
3861 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
3862 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3863 Remove memcmp variants.
3864 * sysdeps/s390/Makefile (sysdep_routines):
3865 Add memcmp variants.
3866 * sysdeps/s390/multiarch/ifunc-impl-list.c
3867 (__libc_ifunc_impl_list): Adjust ifunc variants for
3868 memcmp.
3869 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
3870 to ...
3871 * sysdeps/s390/memcmp.c: ... here.
3872 Adjust ifunc variants for memcmp.
3873
3874 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3875
3876 * sysdeps/s390/s390-64/memcmp.S: Move to ...
3877 * sysdeps/s390/memcmp.S: ... here.
3878 Adjust to be usable for 31/64bit.
3879 * sysdeps/s390/s390-32/memcmp.S: Delete File.
3880 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
3881 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3882 Remove memcmp.
3883 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3884 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
3885 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
3886 Adjust to be usable for 31/64bit.
3887 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
3888 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
3889 * sysdeps/s390/multiarch/memcmp.c: ... here.
3890 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
3891
3892 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3893
3894 * sysdeps/s390/s390-32/bzero.S: Delete file.
3895 * sysdeps/s390/s390-64/bzero.S: Likewise.
3896 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
3897 * sysdeps/s390/bzero.c: New file.
3898 * sysdeps/s390/memset-z900.S: Add bzero entry points.
3899 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
3900 * sysdeps/s390/multiarch/ifunc-impl-list.c
3901 (__libc_ifunc_impl_list): Add bzero ifunc variants.
3902
3903 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3904
3905 * sysdeps/s390/ifunc-memset.h: New File.
3906 * sysdeps/s390/memset.S: Move to ...
3907 * sysdeps/s390/memset-z900.S ... here.
3908 Move implementations from memset-s390x.s to here.
3909 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
3910 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3911 Remove memset variants.
3912 * sysdeps/s390/Makefile (sysdep_routines):
3913 Add memset variants.
3914 * sysdeps/s390/multiarch/ifunc-impl-list.c
3915 (__libc_ifunc_impl_list): Adjust ifunc variants for
3916 memset.
3917 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
3918 to ...
3919 * sysdeps/s390/memset.c: ... here.
3920 Adjust ifunc variants for memset.
3921
3922 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3923
3924 * sysdeps/s390/s390-64/memset.S: Move to ...
3925 * sysdeps/s390/memset.S: ... here.
3926 Adjust to be usable for 31/64bit.
3927 * sysdeps/s390/s390-32/memset.S: Delete File.
3928 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
3929 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3930 Remove memset.
3931 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3932 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
3933 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
3934 Adjust to be usable for 31/64bit.
3935 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
3936 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
3937 * sysdeps/s390/multiarch/memset.c: ... here.
3938 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
3939
3940 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3941
3942 * sysdeps/s390/multiarch/ifunc-resolve.h
3943 (s390_libc_ifunc_init, s390_libc_ifunc,
3944 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
3945
3946 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3947
3948 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
3949 * sysdeps/s390/configure.ac: Add check for z10 support.
3950 * sysdeps/s390/configure: Regenerated.
3951
3952 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
3953
3954 * sysdeps/i386/atomic-machine.h: Merged with ...
3955 * sysdeps/x86_64/atomic-machine.h: To ...
3956 * sysdeps/x86/atomic-machine.h: This. New file.
3957
3958 2018-12-18 Florian Weimer <fweimer@redhat.com>
3959
3960 Rewrite locale/gen-translit.pl in Python.
3961 * locale/Makefile (generated): Add C-translit.h.
3962 (before-compile): Add $(objpfx)C-translit.h.
3963 (C-translit.h): Move to $(objpfx). Create target directory.
3964 Build using Python script.
3965 * locale/gen-translit.py: New file.
3966 * locale/gen-translit.pl: Remove file.
3967 * locale/C-translit.h.in: Change comment character to '#' for
3968 easier parsing without a C preprocessor.
3969 * locale/C-translit.h: Remove generated file.
3970 * manual/install.texi (Tools for Compilation): Do not mention
3971 C-translit.h.
3972 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3973 Remove locale/C-translit.h.
3974 * scripts/update-copyrights: Likewise.
3975 * INSTALL: Regenerate.
3976
3977 2018-12-18 Florian Weimer <fweimer@redhat.com>
3978
3979 [BZ #23995]
3980 * localedata/locales/bi_VU: Remove executable bit from file.
3981
3982 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3983
3984 * include/time.h
3985 (__localtime64): Add.
3986 * manual/maint.texi: Document Y2038 symbol handling.
3987 * time/localtime.c
3988 (__localtime64): Add.
3989 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3990
3991 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3992
3993 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3994 Do not clobber r12.
3995
3996 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3997 to allow extra macros from first or second sources.
3998 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3999 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
4000 (tests-special): Add $(objpfx)tst-mman-consts.out.
4001 ($(objpfx)tst-mman-consts.out): New makefile target.
4002
4003 2018-12-17 Mao Han <han_mao@c-sky.com>
4004
4005 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
4006 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
4007 without stat64 system call support.
4008 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
4009 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
4010 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
4011 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
4012 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
4013 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
4014 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
4015 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
4016 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
4017 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
4018 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
4019
4020 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
4021
4022 regex: fix storage-exhaustion error
4023 [BZ #18040]
4024 * posix/regexec.c (get_subexp):
4025 Do not continue if storage is exhausted.
4026
4027 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
4028
4029 regex: fix heap-use-after-free error
4030 [BZ #18040]
4031 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
4032 https://debbugs.gnu.org/32592
4033 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
4034 call extend_buffers which reallocates the re_string_t internal buffer.
4035 Local variable 'buf' was not updated in such case, resulting in
4036 use-after-free.
4037 * posix/regexec.c (get_subexp): Update 'buf' after call to
4038 get_subexp_sub.
4039
4040 2018-12-15 Florian Weimer <fweimer@redhat.com>
4041
4042 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
4043 (minimum_stride_size): Use it.
4044 (support_blob_repeat_allocate): Likewise.
4045
4046 2018-12-14 Joseph Myers <joseph@codesourcery.com>
4047
4048 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
4049 definition.
4050 (acosh): Likewise.
4051 (atanh): Likewise.
4052
4053 2018-12-14 Florian Weimer <fweimer@redhat.com>
4054
4055 * manual/process.texi (Process Creation Concepts): Remove
4056 documentation of process (ID) lifetime. List more process
4057 creation functions. Reference Process Identification section.
4058 (Process Identification): Add information about process ID
4059 lifetime. Describe Linux thread/task IDs.
4060 * manual/signal.texi (Signaling Another Process): Mention that the
4061 signal is always sent to the process.
4062
4063 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4064
4065 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
4066 and tst-ldbl-efgcvt.
4067 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
4068 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
4069 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
4070 (fcvt_tests, output_error, output_r_error, do_test): Use the
4071 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
4072 select the type of floating-point variables and arguments; to
4073 produce extra tests for double and conversion specifiers for
4074 printf; and to set the names of called functions.
4075 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
4076 in tst-efgcvt-template.c.
4077 * misc/tst-ldbl-efgcvt.c: Likewise.
4078
4079 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
4080
4081 * nss/Makefile (tst-nss-test3.out): New rule.
4082
4083 2018-12-13 Joseph Myers <joseph@codesourcery.com>
4084
4085 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
4086 clobber sp.
4087
4088 2018-12-13 fanjinke <fanjinke@hygon.cn>
4089
4090 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
4091 "HygonGenuine".
4092
4093 2018-12-13 Andreas Schwab <schwab@suse.de>
4094
4095 [BZ #23861]
4096 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
4097 (__pthread_rwlock_rdlock_full): Update expected value for
4098 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
4099 * nptl/tst-rwlock-pwn.c: New file.
4100 * nptl/Makefile (tests): Add tst-rwlock-pwn.
4101
4102 2018-12-12 Joseph Myers <joseph@codesourcery.com>
4103
4104 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
4105 definition.
4106
4107 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4108
4109 * benchtests/scripts/compare_bench.py (do_compare): write to
4110 stderr in casestat is not present.
4111 * benchtests/scripts/compare_bench.py (plot_graphs): write to
4112 stderr in case timings field is not present. Also string showing
4113 the output filename goes into the stderr.
4114
4115 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4116
4117 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
4118 and ZeroDivisorError exceptions.
4119 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
4120 argument to loop through user provided statistics.
4121 * benchtests/scripts/compare_bench.py (main): Include the --stats
4122 argument.
4123
4124 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4125
4126 * benchtests/scripts/compare_bench.py (compare_runs): Continue
4127 instead of return.
4128
4129 2018-12-12 Florian Weimer <fweimer@redhat.com>
4130
4131 * sysdeps/posix/timespec_get.c: Add missing “any later version”
4132 clause to copyright header.
4133
4134 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4135
4136 [BZ #23614]
4137 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
4138 registers saved in the stack frame.
4139 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
4140 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
4141
4142 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4143
4144 * include/bits/monetary-ldbl.h: New file.
4145 * include/bits/printf-ldbl.h: Likewise.
4146 * include/bits/stdio-ldbl.h: Likewise.
4147 * include/bits/stdlib-ldbl.h: Likewise.
4148 * include/bits/syslog-ldbl.h: Likewise.
4149 * include/bits/wchar-ldbl.h: Likewise.
4150
4151 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4152
4153 * libio/libio.h: Remove redirection for _IO_vfprintf.
4154
4155 2018-12-11 Andreas Schwab <schwab@suse.de>
4156
4157 * Makerules: Remove all references to abilist-pattern.
4158 (update-all-abi): Simplify find expression.
4159
4160 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
4161
4162 [BZ #23961]
4163 * math/auto-libm-test-in: Add new test case.
4164 * math/auto-libm-test-out-pow: Regenerated.
4165 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
4166
4167 2018-12-10 DJ Delorie <dj@redhat.com>
4168
4169 [BZ #23948]
4170 * support/test-container.c: Move postclean step to before we
4171 change namespaces.
4172
4173 2018-12-10 Joseph Myers <joseph@codesourcery.com>
4174
4175 * scripts/gen-as-const.py (main): Handle --python option.
4176 * scripts/gen-py-const.awk: Remove.
4177 * Makerules (py-const-script): Use gen-as-const.py.
4178 ($(py-const)): Likewise.
4179 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
4180 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
4181 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
4182 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
4183 ~PTHREAD_MUTEX_NO_ELISION_NP.
4184 * manual/README.pretty-printers: Update reference to
4185 gen-py-const.awk.
4186
4187 * scripts/glibcextract.py: New file.
4188 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
4189 or tempfile. Import glibcexctract.
4190 (compute_c_consts): Remove. Moved to glibcextract.py.
4191 (gen_test): Update reference to compute_c_consts.
4192 (main): Likewise.
4193 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
4194 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
4195 * sysdeps/unix/sysv/linux/Makefile
4196 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
4197 Redirect stderr as well as stdout.
4198
4199 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
4200
4201 [BZ #19767]
4202 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
4203 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
4204 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
4205 ALWAYS_USE_VSYSCALL.
4206 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
4207 ALWAYS_USE_VSYSCALL.
4208 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
4209 ALWAYS_USE_VSYSCALL.
4210
4211 2018-12-10 Florian Weimer <fweimer@redhat.com>
4212
4213 [BZ #23972]
4214 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
4215 offset instead of count for clarity. Fix typo in comment.
4216 (__old_getdents64): Keep track of previous offset. Use it to call
4217 handle_overflow.
4218 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
4219 that d_off is never zero.
4220
4221 2018-12-10 Andreas Schwab <schwab@suse.de>
4222
4223 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
4224 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
4225 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
4226 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
4227 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
4228
4229 2018-12-10 Joseph Myers <joseph@codesourcery.com>
4230
4231 * timezone/private.h: Update from tzcode 2018g.
4232 * timezone/tzfile.h: Likewise.
4233 * timezone/tzselect.ksh: Likewise.
4234 * timezone/zdump.c: Likewise.
4235 * timezone/zic.c: Likewise.
4236
4237 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
4238
4239 [BZ #23490]
4240 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
4241 (do_test): Adjust buffer size and fix format.
4242
4243 2018-12-07 DJ Delorie <dj@redhat.com>
4244
4245 [BZ #23907]
4246 * malloc/tst-tcfree3.c: New.
4247 * malloc/Makefile: Add it.
4248
4249 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4250
4251 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
4252
4253 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4254
4255 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
4256 used as a mask for the mode argument of __vfscanf_internal and
4257 __vfwscanf_internal.
4258 * stdio-common/vfscanf-internal.c
4259 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
4260 (__strtof128_internal): Define to __wcstof128_internal.
4261 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
4262 __strtof128_internal or __wcstof128_internal when the format of
4263 long double is the same as _Float128.
4264
4265 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
4266
4267 * include/unistd.h (__confstr): Add prototype and hidden prototype.
4268 * posix/confstr.c (confstr): Rename to __confstr.
4269 (__confstr): Add hidden def.
4270 (confstr): Add weak alias for __confstr.
4271 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
4272 confstr.
4273
4274 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4275
4276 * NEWS: Mention getcpu.
4277 * include/sched.h (__getcpu): New libc_hidden_proto.
4278 * manual/resource.texi: Document getcpu.
4279 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
4280 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
4281 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
4282 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4283 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4284 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4285 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4286 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4287 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4288 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4289 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4290 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4291 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
4292 Likewise.
4293 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4294 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4295 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4296 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4297 Likewise.
4298 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4299 Likewise.
4300 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
4301 Likewise.
4302 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
4303 Likewise.
4304 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4305 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4306 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4307 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4308 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4309 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4310 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4311 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4312 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
4313 * sysdeps/unix/sysv/linux/getcpu.c: New file.
4314 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
4315 Also check getcpu.
4316
4317 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4318
4319 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
4320 functions.
4321 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
4322
4323 2018-12-07 Florian Weimer <fweimer@redhat.com>
4324
4325 [BZ #17405]
4326 * posix/Makefile (routines): Add spawn_faction_addfchdir.
4327 * posix/Versions (GLIBC_2.29): Export
4328 posix_spawn_file_actions_addfchdir_np.
4329 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
4330 * posix/spawn_faction_destroy.c
4331 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
4332 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
4333 and the field action.fchdir_action.
4334 * posix/tst-spawn-chdir.c (add_chdir): New function.
4335 (do_test): Add do_fchdir loop. Call add_chdir.
4336 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
4337 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4338 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4339 posix_spawn_file_actions_addfchdir_np.
4340 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4341 Likewise.
4342 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4343 Likewise.
4344 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4345 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4346 Likewise.
4347 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4348 Likewise.
4349 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4350 Likewise.
4351 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4352 Likewise.
4353 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4354 Likewise.
4355 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4356 Likewise.
4357 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4358 (GLIBC_2.29): Likewise.
4359 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4360 (GLIBC_2.29): Likewise.
4361 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4362 (GLIBC_2.29): Likewise.
4363 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4364 (GLIBC_2.29): Likewise.
4365 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4366 Likewise.
4367 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4368 (GLIBC_2.29): Likewise.
4369 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4370 (GLIBC_2.29): Likewise.
4371 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4372 (GLIBC_2.29): Likewise.
4373 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4374 (GLIBC_2.29): Likewise.
4375 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4376 Likewise.
4377 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4378 Likewise.
4379 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4380 Likewise.
4381 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4382 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4383 Likewise.
4384 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4385 Likewise.
4386 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4387 Likewise.
4388 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4389 Likewise.
4390
4391 2018-12-06 Joseph Myers <joseph@codesourcery.com>
4392
4393 * manual/texinfo.tex: Update to version 2018-09-21.20 with
4394 trailing whitespace removed.
4395 * scripts/config.guess: Update to version 2018-11-28.
4396 * scripts/config.sub: Update to version 2018-11-28.
4397 * scripts/install-sh: Update to version 2018-03-11.20.
4398 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
4399 * scripts/move-if-change: Update to version 2018-03-07 03:47.
4400
4401 2018-12-07 Florian Weimer <fweimer@redhat.com>
4402
4403 [BZ #23927]
4404 CVE-2018-19591
4405 * inet/tst-if_index-long.c: New file.
4406 * inet/Makefile (tests): Add tst-if_index-long.
4407
4408 2018-12-07 Florian Weimer <fweimer@redhat.com>
4409
4410 * support/check.h (support_record_failure_is_failed): Declare.
4411 * support/descriptors.h: New file.
4412 * support/support_descriptors.c: Likewise.
4413 * support/tst-support_descriptors.c: Likewise.
4414 * support/support_record_failure.c
4415 (support_record_failure_is_failed): New function.
4416 * support/Makefile (libsupport-routines): Add support_descriptors.
4417 (tests): Add tst-support_descriptors.
4418
4419 2018-12-05 Zack Weinberg <zackw@panix.com>
4420 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4421
4422 * stdio-common/vfprintf-internal.c
4423 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
4424 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
4425 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
4426 and __no_long_double.
4427 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
4428 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
4429 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
4430 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
4431 and __nldbl_*syslog* functions.
4432 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
4433 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
4434 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
4435 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
4436 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
4437 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
4438 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
4439 (__nldbl_vwprintf, __nldbl_wprintf):
4440 Directly call the appropriate __v*printf_internal routine, passing
4441 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
4442 variable names.
4443 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
4444 (__nldbl___printf_chk, __nldbl___snprintf_chk)
4445 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
4446 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
4447 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
4448 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4449 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
4450 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
4451 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
4452 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
4453 Likewise, and also pass PRINTF_FORTIFY when appropriate.
4454 (__nldbl_syslog, __nldbl_vsyslog):
4455 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
4456 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4457 appropriate.
4458 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4459 appropriate.
4460
4461 2018-12-05 Zack Weinberg <zackw@panix.com>
4462 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4463
4464 [BZ #11319]
4465 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
4466 Moved here from debug/vsprintf_chk.c.
4467 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
4468 and completion logic for the strfile to match exactly what
4469 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
4470 _IO_str_init_static_internal instead of maxlen-1.
4471 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4472 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
4473 __vsprintf_internal.
4474
4475 * debug/vsprintf_chk.c (__vsprintf_chk)
4476 * debug/sprintf_chk.c (__sprintf_chk):
4477 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
4478 'flags' argument is positive, and slen as maxlen. No need to lock
4479 the FILE and/or construct a temporary FILE. Minimize and normalize
4480 header inclusions and variable names. Do not libc_hidden_def anything.
4481
4482 * debug/asprintf_chk.c (__asprintf_chk)
4483 * debug/dprintf_chk.c (__dprintf_chk)
4484 * debug/fprintf_chk.c (__fprintf_chk)
4485 * debug/fwprintf_chk.c (__fwprintf_chk)
4486 * debug/printf_chk.c (__printf_chk)
4487 * debug/snprintf_chk.c (__snprintf_chk)
4488 * debug/swprintf_chk.c (__swprintf_chk)
4489 * debug/vasprintf_chk.c (__vasprintf_chk)
4490 * debug/vdprintf_chk.c (__vdprintf_chk)
4491 * debug/vfprintf_chk.c (__vfprintf_chk)
4492 * debug/vfwprintf_chk.c (__vfwprintf_chk)
4493 * debug/vprintf_chk.c (__vprintf_chk)
4494 * debug/vsnprintf_chk.c (__vsnprintf_chk)
4495 * debug/vswprintf_chk.c (__vswprintf_chk)
4496 * debug/vwprintf_chk.c (__vwprintf_chk)
4497 * debug/wprintf_chk.c (__wprintf_chk):
4498 Directly call the corresponding vxxprintf_internal function, passing
4499 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
4500 the FILE and/or construct a temporary FILE. Minimize and normalize
4501 header inclusions and variable names. Do not libc_hidden_def anything.
4502
4503 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
4504 __obstack_vprintf_internal.
4505 (__obstack_vprintf_chk): Convert into a wrapper that calls
4506 __obstack_vprintf_internal (these two functions already had the
4507 same code) and move to new file...
4508 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
4509 file.
4510 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
4511 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
4512 * debug/Makefile (routines): Add vobprintf_chk.
4513
4514 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4515 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4516 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
4517 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4518 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
4519 (__nldbl___obstack_vfprintf_chk):
4520 Directly call the corresponding vxxprintf_internal function,
4521 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
4522 duplicate comparison of slen with 0 or maxlen from the corresponding
4523 non-__nldbl function.
4524
4525 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
4526 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
4527 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
4528 Remove libc_hidden_proto.
4529
4530 * stdio-common/vfprintf-internal.c
4531 (__vfprintf_internal, __vfwprintf_internal):
4532 Do not check _IO_FLAGS2_FORTIFY.
4533 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
4534 * libio/libioP.h: Update prototype of __vsprintf_internal and add
4535 a comment explaining why it has the maxlen argument.
4536 (_IO_acquire_lock_clear_flags2_fct): Remove.
4537 (_IO_acquire_lock_clear_flags2): Remove.
4538 (_IO_release_lock): Remove conditional statement which will
4539 now never execute.
4540 (_IO_acquire_lock): Remove variable which is now unused.
4541 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4542 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4543
4544 * stdio-common/Makefile (tests): Add tst-bz11319 and
4545 tst-bz11319-fortify2.
4546 (CFLAGS-tst-bz11319-fortify2.c): New macro.
4547 * stdio-common/tst-bz11319-fortify2.c: New file.
4548 * stdio-common/tst-bz11319.c: Likewise.
4549
4550 2018-12-05 Zack Weinberg <zackw@panix.com>
4551 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4552
4553 * misc/syslog.c: Include libioP.h, not iolibio.h.
4554 (__vsyslog_internal): New function with the former body of
4555 __vsyslog_chk; takes mode_flags argument same as
4556 __v*printf_internal. Call __vfprintf_internal directly.
4557
4558 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
4559 Remove libc_hidden_def.
4560 (__syslog, __syslog_chk): Use __vsyslog_internal.
4561 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
4562
4563 * include/sys/syslog.h: Add multiple inclusion guard.
4564 Add prototype for __vsyslog_internal.
4565 Remove declaration and libc_hidden_proto for __vsyslog_chk.
4566
4567 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
4568 Use __vsyslog_internal.
4569
4570 2018-12-05 Zack Weinberg <zackw@panix.com>
4571 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4572
4573 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
4574 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
4575 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
4576 New functions.
4577 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
4578 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
4579
4580 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
4581 Include wctype.h here if COMPILE_WPRINTF is defined.
4582 Define __vfprintf_internal or __vfwprintf_internal, depending
4583 on COMPILE_WPRINTF.
4584 Temporarily, on entry to this function, update mode_flags
4585 according to the environmental settings corresponding to
4586 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
4587 Throughout, check mode_flags instead of __ldbl_is_dbl and
4588 _IO_FLAGS2_FORTIFY on the destination FILE.
4589 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
4590 Include vfprintf-internal.c. Don't include wctype.h.
4591 * stdio-common/vfprintf.c: New file. Just define __vfprintf
4592 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
4593 and vfprintf.
4594 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
4595 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
4596 and vfwprintf.
4597 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
4598
4599 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
4600 and add mode_flags argument; use __vfprintf_internal.
4601 (__vdprintf): New function. Alias vdprintf to this.
4602 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
4603 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
4604 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
4605 (__obstack_printf): Use __obstack_printf_internal.
4606 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
4607 public aliases __vsnprintf and vsnprintf.
4608 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
4609 called internally.
4610 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
4611 public aliases _IO_vsprintf and vsprintf.
4612 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
4613 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
4614 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
4615 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
4616 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
4617
4618 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
4619 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
4620 * stdio-common/fprintf.c, stdio-common/fxprintf.c
4621 * stdio-common/printf.c: Use __vfprintf_internal.
4622
4623 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
4624 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
4625 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
4626
4627 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
4628 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
4629 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
4630 __vfwprintf_internal.
4631
4632 * libio/libio.h: Remove libc_hidden_proto and declaration for
4633 _IO_vfprintf.
4634 Remove declaration of _IO_vfwprintf.
4635 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
4636 _IO_vsprintf.
4637 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
4638 _IO_obstack_printf.
4639 * include/stdio.h: Add prototype for __vasprintf.
4640 (__vsnprintf): Remove declaration, because there are no more
4641 internal calls.
4642 * include/wchar.h (__vfwprintf, __vswprintf): Remove
4643 declaration, because there are no more internal calls.
4644
4645 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
4646 __vsnprintf_internal, instead of _IO_vsnprintf.
4647 * argp/argp-help.c (__argp_error, __argp_failure): Use
4648 __vasprintf_internal, instead of _IO_vasprintf.
4649 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
4650 redefine, because there are no more internal calls.
4651
4652 2018-12-05 Zack Weinberg <zackw@panix.com>
4653 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4654
4655 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
4656 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
4657 Include libio/strfile.h instead of libioP.h.
4658 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
4659 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
4660 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
4661 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
4662 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
4663 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
4664 necessary. Do not set __no_long_double. Normalize variable names.
4665 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
4666 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
4667 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
4668 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
4669 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
4670 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
4671 Call __vfscanf_internal / __vfwscanf_internal directly, passing
4672 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
4673 Do not set __no_long_double. Normalize variable names.
4674
4675 2018-12-05 Zack Weinberg <zackw@panix.com>
4676 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4677
4678 * stdio-common/isoc99_scanf.c
4679 * stdio-common/isoc99_fscanf.c
4680 * stdio-common/isoc99_sscanf.c
4681 * stdio-common/isoc99_vscanf.c
4682 * stdio-common/isoc99_vfscanf.c
4683 * stdio-common/isoc99_vsscanf.c
4684 * wcsmbs/isoc99_wscanf.c
4685 * wcsmbs/isoc99_fwscanf.c
4686 * wcsmbs/isoc99_swscanf.c
4687 * wcsmbs/isoc99_vwscanf.c
4688 * wcsmbs/isoc99_vfwscanf.c
4689 * wcsmbs/isoc99_vswscanf.c:
4690 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
4691 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
4692 No need to lock and unlock the FILE passed to that function.
4693
4694 * stdio-common/vfscanf-internal.c
4695 (__vfscanf_internal, __vfwscanf_internal):
4696 Don't look at _IO_FLAGS2_SCANF_STD.
4697 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
4698 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
4699 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
4700
4701 2018-12-05 Zack Weinberg <zackw@panix.com>
4702 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4703
4704 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
4705 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
4706 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
4707 * libio/strfile.h: Add multiple inclusion guard.
4708 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
4709
4710 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
4711 consistency with the other version of this file.
4712 (ldbl_compat_symbol): New macro.
4713 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
4714 New macro.
4715
4716 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
4717 Define __vfscanf_internal or __vfwscanf_internal, depending on
4718 COMPILE_WSCANF; don't define any other public symbols.
4719 Remove errval and code to set errp.
4720 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
4721 as the mode_flags argument.
4722 (encode_error, conv_error, input_error): Don't set errval.
4723 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
4724 Include vfscanf-internal.c.
4725 * stdio-common/vfscanf.c: New file defining the public entry
4726 point vfscanf, which calls __vfscanf_internal.
4727 * stdio-common/vfwscanf.c: New file defining the public entry
4728 point vfwscanf, which calls __vfwscanf_internal.
4729
4730 * stdio-common/iovfscanf.c: New file.
4731 * stdio-common/iovfwscanf.c: Likewise.
4732
4733 * stdio-common/Makefile (routines): Add vfscanf-internal,
4734 vfwscanf-internal, iovfscanf, iovfwscanf.
4735 * stdio-common/Versions: Mention GLIBC_2.29, so that
4736 it can be used in SHLIB_COMPAT expressions.
4737 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
4738 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
4739 Call __vfscanf_internal, instead of _IO_vfscanf.
4740 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
4741 _IO_vfscanf.
4742 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
4743 _IO_vfwscanf.
4744
4745 * libio/iovsscanf.c: Clean up includes, when possible. Use
4746 _IO_strfile_read or _IO_strfile_readw, when needed. Call
4747 __vfscanf_internal or __vfwscanf_internal directly.
4748 * libio/iovswscanf.c: Likewise.
4749 * libio/swscanf.c: Likewise.
4750 * libio/vscanf.c: Likewise.
4751 * libio/vwscanf.c: Likewise.
4752 * libio/wscanf.c: Likewise.
4753 * stdio-common/isoc99_fscanf.c: Likewise.
4754 * stdio-common/isoc99_scanf.c: Likewise.
4755 * stdio-common/isoc99_sscanf.c: Likewise.
4756 * stdio-common/isoc99_vfscanf.c: Likewise.
4757 * stdio-common/isoc99_vscanf.c: Likewise.
4758 * stdio-common/isoc99_vsscanf.c: Likewise.
4759 * stdio-common/scanf.c: Likewise.
4760 * stdio-common/sscanf.c: Likewise.
4761 * wcsmbs/isoc99_fwscanf.c: Likewise.
4762 * wcsmbs/isoc99_swscanf.c: Likewise.
4763 * wcsmbs/isoc99_vfwscanf.c: Likewise.
4764 * wcsmbs/isoc99_vswscanf.c: Likewise.
4765 * wcsmbs/isoc99_vwscanf.c: Likewise.
4766 * wcsmbs/isoc99_wscanf.c: Likewise.
4767
4768 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
4769
4770 * include/time.h
4771 (__tz_compute): Replace time_t with __time64_t.
4772 (__tz_convert): Replace time_t* with __time64_t.
4773 (__offtime): Replace time_t* with __time64_t.
4774 * time/gmtime.c
4775 (__gmtime_r): Adjust call to __tz_convert.
4776 (gmtime): Likewise.
4777 * time/localtime.c
4778 (__localtime_r): Likewise.
4779 (localtime): Likewise.
4780 * time/offtime.c: Replace time_t with __time64_t.
4781 * time/tzset.c: Likewise.
4782
4783 2018-12-04 Joseph Myers <joseph@codesourcery.com>
4784
4785 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
4786 dynamic linker unless [$(run-built-tests) = yes].
4787
4788 2018-12-03 DJ Delorie <dj@delorie.com>
4789
4790 * support/test-container.c (check_for_unshare_hints): New.
4791 (main): Call it if unshare fails. Add support for "su" scriptlet
4792 command.
4793
4794 2018-12-03 Joseph Myers <joseph@codesourcery.com>
4795
4796 * scripts/gen-as-const.py (compute_c_consts): Take an argument
4797 'START' to indicate that start text should be output.
4798 (gen_test): Likewise.
4799 (main): Generate 'START' for first symbol or '--' line, or at end
4800 of input if not previously generated.
4801
4802 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
4803
4804 [BZ #19767]
4805 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
4806 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
4807 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
4808 ALWAYS_USE_VSYSCALL.
4809
4810 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4811
4812 [BZ #23913]
4813 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
4814 new_argv by one.
4815
4816 2018-12-03 Carlos O'Donell <carlos@redhat.com>
4817
4818 [BZ #23923]
4819 * locale/programs/localedef.c: Declare boolean hard_links default true.
4820 (options): Add --no-hard-links option.
4821 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
4822 * locale/programs/localedef.h: Declare prototype for hard_links.
4823 * locale/programs/locfile.c (write_locale_data): Don't use hard
4824 links if hard_links is false.
4825
4826 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
4827
4828 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
4829 cpu_features_basic.
4830 (__cache_sysconf): Likewise.
4831 (init_cacheinfo): Likewise.
4832 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
4833 populate COMMON_CPUID_INDEX_80000007 and
4834 COMMON_CPUID_INDEX_80000008.
4835 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
4836 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
4837 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
4838 (init_cpu_features): Use _Static_assert on
4839 index_arch_Fast_Unaligned_Load.
4840 __get_cpuid_registers and __get_arch_feature. Updated for
4841 cpu_features_basic. Set stepping in cpu_features.
4842 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
4843 (FEATURE_INDEX_2): New.
4844 (FEATURE_INDEX_MAX): Changed to enum.
4845 (COMMON_CPUID_INDEX_D_ECX_1): New.
4846 (COMMON_CPUID_INDEX_80000007): Likewise.
4847 (COMMON_CPUID_INDEX_80000008): Likewise.
4848 (cpuid_registers): Likewise.
4849 (cpu_features_basic): Likewise.
4850 (CPU_FEATURE_USABLE): Likewise.
4851 (bit_arch_XXX_Usable): Likewise.
4852 (cpu_features): Use cpuid_registers and cpu_features_basic.
4853 (bit_arch_XXX): Reweritten.
4854 (bit_cpu_XXX): Likewise.
4855 (index_cpu_XXX): Likewise.
4856 (reg_XXX): Likewise.
4857 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
4858 <support/check.h>.
4859 (CHECK_CPU_FEATURE): New.
4860 (CHECK_CPU_FEATURE_USABLE): Likewise.
4861 (cpu_kinds): Likewise.
4862 (do_test): Print vendor, family, model and stepping. Check
4863 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
4864 (TEST_FUNCTION): Removed.
4865 Include <support/test-driver.c> instead of
4866 "../../test-skeleton.c".
4867 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
4868 Check POPCNT instead of POPCOUNT.
4869 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
4870
4871 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4872
4873 * scripts/gen-as-const.py (main): Avoid emitting empty line when
4874 there is no element in `consts'.
4875
4876 2018-12-01 Florian Weimer <fweimer@redhat.com>
4877
4878 * support/support_capture_subprocess.c
4879 (support_capture_subprocess): Check that pipe descriptors have
4880 expected values. Close original pipe descriptors in subprocess.
4881
4882 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4883
4884 [BZ #23032]
4885 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
4886 attr with __pthread_default_barrierattr.
4887 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
4888 attr with __pthread_default_condattr.
4889 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
4890 attr with __pthread_default_mutexattr.
4891 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
4892 attr with __pthread_default_rwlockattr.
4893
4894 2018-12-01 Kemi Wang <kemi.wang@intel.com>
4895
4896 * manual/tunables.texi (POSIX Thread Tunables): New node.
4897 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
4898 * nptl/nptl-init.c: Include pthread_mutex_conf.h
4899 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
4900 __pthread_tunables_init.
4901 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
4902 (max_adaptive_count): Define.
4903 * nptl/pthread_mutex_conf.c: New file.
4904 * nptl/pthread_mutex_conf.h: New file.
4905 * sysdeps/generic/adaptive_spin_count.h: New file.
4906 * sysdeps/nptl/dl-tunables.list: New file.
4907 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
4908 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
4909 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
4910 Likewise.
4911
4912 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4913
4914 [BZ #20544]
4915 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
4916 * stdlib/on_exit.c (__on_exit): Likewise.
4917 * stdlib/Makefile (tests): Add tst-bz20544.
4918 * stdlib/tst-bz20544.c: New test.
4919
4920 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
4921
4922 [BZ #19767]
4923 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
4924 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
4925 New.
4926
4927 2018-11-30 Florian Weimer <fweimer@redhat.com>
4928
4929 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
4930 Extend error logging.
4931 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
4932 symbol.
4933
4934 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4935
4936 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
4937 __sigismember instead of sigismember.
4938 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
4939 cancel_handler): New definitions.
4940 (do_system): Use posix_spawn instead of fork and execl and remove
4941 reentracy code.
4942 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
4943 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
4944 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
4945 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
4946 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
4947 * sysdeps/unix/sysv/linux/system.c: Likewise.
4948
4949 [BZ #22834]
4950 [BZ #17490]
4951 * NEWS: Add new semantic for atfork with popen and system.
4952 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
4953 fork and execl.
4954
4955 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4956
4957 [BZ #23690]
4958 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
4959 modification order when accessing reloc_result->addr.
4960 * include/link.h (reloc_result): Add field init.
4961 * nptl/Makefile (tests): Add tst-audit-threads.
4962 (modules-names): Add tst-audit-threads-mod1 and
4963 tst-audit-threads-mod2.
4964 Add rules to build tst-audit-threads.
4965 * nptl/tst-audit-threads-mod1.c: New file.
4966 * nptl/tst-audit-threads-mod2.c: Likewise.
4967 * nptl/tst-audit-threads.c: Likewise.
4968 * nptl/tst-audit-threads.h: Likewise.
4969
4970 2018-11-30 Joseph Myers <joseph@codesourcery.com>
4971
4972 * scripts/gen-as-const.py: New file.
4973 * scripts/gen-as-const.awk: Remove.
4974 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
4975 gen-as-const.py.
4976 ($(objpfx)test-as-const-%.c): Likewise.
4977
4978 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4979
4980 * elf/dl-exception.c: Include <_itoa.h>.
4981
4982 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4983
4984 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4985 returned by __f_setlk.
4986
4987 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4988 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4989
4990 * elf/Makefile (tests-internal): Add tst-create_format1.
4991 * elf/dl-exception.c (_dl_exception_create_format): Support
4992 %x, %lx and %zx.
4993 * elf/tst-create_format1.c: New file.
4994
4995 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4996
4997 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4998 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4999 gnulib.)
5000 * argp/argp-help.c (__argp_failure): Likewise.
5001
5002 2018-11-29 Mao Han <han_mao@c-sky.com>
5003
5004 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
5005 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
5006 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
5007 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
5008 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
5009 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
5010 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
5011 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
5012 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
5013 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
5014 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
5015 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
5016 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
5017 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
5018 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
5019 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
5020 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
5021 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
5022 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
5023 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
5024 (R_CKCORE_TLS_TPOFF32): New defines.
5025
5026 2018-11-29 Florian Weimer <fweimer@redhat.com>
5027
5028 * posix/Makefile (before-compile): Remove testcases.h and
5029 ptestcases.h.
5030 (generated): Add testcases.h and ptestcases.h.
5031 (testcases.h, ptestcases.h): Move to $(objpfx).
5032 (runtests.o): Add dependency on testcases.h.
5033 (runptests.o): Add dependency on ptestcases.h.
5034 * posix/testcases.h, posix/ptestcases.h: Remove files.
5035 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
5036 not touch posix/testcases.h and posix/ptestcases.h.
5037
5038 2018-11-28 Florian Weimer <fweimer@redhat.com>
5039
5040 support: Add signal support to support_capture_subprocess_check.
5041 * support/capture_subprocess.h (support_capture_subprocess_check):
5042 Adjust comment and rename parameter.
5043 * support/support_capture_subprocess_check.c
5044 (print_actual_status): New function.
5045 (support_capture_subprocess_check): Support negative
5046 status_or_signal. Call print_actual_status.
5047 * support/tst-support_capture_subprocess.c (do_test): Call
5048 support_capture_subprocess_check.
5049 * libio/tst-vtables-common.c (termination_status)
5050 (init_termination_status): Remove.
5051 (check_for_termination): Adjust support_capture_subprocess_check
5052 call.
5053 (do_test): Remove call to init_termination_status.
5054
5055 2018-11-28 Joseph Myers <joseph@codesourcery.com>
5056
5057 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
5058 source directory instead of a copy.
5059 (CommandList.create_copy_dir): Remove.
5060
5061 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
5062
5063 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5064
5065 2018-11-28 Florian Weimer <fweimer@redhat.com>
5066
5067 * support/support.h (support_quote_string): Do not use str
5068 parameter name.
5069
5070 2018-11-27 Joseph Myers <joseph@codesourcery.com>
5071
5072 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
5073 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
5074
5075 2018-11-27 Florian Weimer <fweimer@redhat.com>
5076
5077 * support/support.h (support_quote_string): Declare.
5078 * support/support_quote_string.c: New file.
5079 * support/tst-support_quote_string.c: Likewise.
5080 * support/Makefile (libsupport-routines): Add
5081 support_quote_string.
5082 (tests): Add tst-support_quote_string.
5083
5084 2018-11-27 Florian Weimer <fweimer@redhat.com>
5085
5086 [BZ #23927]
5087 CVE-2018-19591
5088 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
5089 descriptor leak in case of ENODEV error.
5090
5091 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
5092
5093 [BZ #19767]
5094 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
5095 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
5096 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
5097
5098 2018-11-26 Carlos O'Donell <carlos@redhat.com>
5099
5100 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
5101 Error for unknown lines.
5102
5103 2018-11-26 Joseph Myers <joseph@codesourcery.com>
5104
5105 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
5106 Touch additional files.
5107
5108 2018-11-26 Florian Weimer <fweimer@redhat.com>
5109
5110 [BZ #23907]
5111 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
5112 double-frees.
5113
5114 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
5115
5116 [BZ #19767]
5117 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
5118 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
5119 SHARED. Include sysdep.h.
5120 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
5121 ALWAYS_USE_VSYSCALL.
5122 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
5123 ALWAYS_USE_VSYSCALL.
5124
5125 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
5126
5127 [BZ #19767]
5128 * nptl/Makefile (tests-static): Add tst-cond11-static.
5129 (tests): Likewise.
5130 * nptl/tst-cond11-static.c: New File.
5131 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
5132 tst-affinity-static.
5133 (tests): Likewise.
5134 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
5135 instead of SHARED.
5136 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
5137 (USE_VSYSCALL): Likewise.
5138 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
5139 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
5140 instead of SHARED.
5141 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
5142 SHARED.
5143 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
5144 New.
5145
5146 2018-11-23 Joseph Myers <joseph@codesourcery.com>
5147
5148 [BZ #23915]
5149 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5150 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
5151 Undefine.
5152
5153 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
5154
5155 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
5156 (tst-cet-legacy-1a-ARGS): New.
5157 ($(objpfx)tst-cet-legacy-1a): New target.
5158 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
5159
5160 2018-11-22 Joseph Myers <joseph@codesourcery.com>
5161
5162 * conform/conformtest.py (CompileSubTest.__init__): Set
5163 self.run_early to False.
5164 (ExecuteSubTest.__init__): Likewise.
5165 (HeaderTests.run): Try running all non-optional, non-XFAILed
5166 compilation tests in a single execution of the compiler.
5167
5168 * conform/conformtest.py (CompileSubTest): New class.
5169 (ExecuteSubTest): Likewise.
5170 (ElementTest.run): Rename to gen_subtests. Append tests to
5171 self.subtests instead of running them.
5172 (ConstantTest.run): Likewise.
5173 (SymbolTest.run): Likewise.
5174 (TypeTest.run): Likewise.
5175 (TagTest.run): Likewise.
5176 (FunctionTest.run): Likewise.
5177 (VariableTest.run): Likewise.
5178 (MacroFunctionTest.run): Likewise.
5179 (MacroStrTest.run): Likewise.
5180 (HeaderTests.handle_test_line): Generate subtests for tests.
5181 (HeaderTests.run): Run subtests for tests.
5182
5183 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5184
5185 * math/Versions (GLIBC_2.29): Add pow.
5186 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
5187 symbol.
5188 * math/w_pow.c: New file.
5189 * sysdeps/i386/fpu/w_pow.c: New file.
5190 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
5191 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
5192 and add necessary aliases.
5193 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
5194 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
5195 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5196 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5197 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5198 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5199 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5200 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5201 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5202 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5203 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5204 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5205 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5206 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5207 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5208 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5209 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5210 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5211 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5212 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5213 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5214 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5215 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5216 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5217 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5218 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5219 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
5220 __pow.
5221 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
5222 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
5223 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
5224
5225 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5226
5227 * math/Versions (GLIBC_2.29): Add log2.
5228 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
5229 symbol.
5230 * math/w_log2.c: New file.
5231 * sysdeps/i386/fpu/w_log2.c: New file.
5232 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
5233 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
5234 and add necessary aliases.
5235 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
5236 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
5237 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5238 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5239 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5240 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5241 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5242 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5243 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5244 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5245 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5246 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5247 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5248 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5249 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5250 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5251 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5252 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5253 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5254 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5255 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5256 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5257 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5258 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5259 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5260 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5261
5262 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5263
5264 * math/Versions (GLIBC_2.29): Add log.
5265 * math/w_log_compat.c (__log_compat): Change to versioned compat
5266 symbol.
5267 * math/w_log.c: New file.
5268 * sysdeps/i386/fpu/w_log.c: New file.
5269 * sysdeps/ia64/fpu/e_log.S: Update.
5270 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
5271 and add necessary aliases.
5272 * sysdeps/ieee754/dbl-64/w_log.c: New file.
5273 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
5274 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5275 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5276 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5277 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5278 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5279 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5280 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5281 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5282 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5283 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5284 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5285 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5286 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5287 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5288 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5289 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5290 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5291 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5292 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5293 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5294 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5295 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5296 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5297 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5298 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
5299 __log.
5300 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
5301 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
5302 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
5303 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
5304
5305 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5306
5307 * math/Versions (GLIBC_2.29): Add exp and exp2.
5308 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
5309 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
5310 * math/w_exp_compat.c (__exp_compat): Likewise.
5311 * math/w_exp.c: New file.
5312 * math/w_exp2.c: New file.
5313 * sysdeps/i386/fpu/w_exp.c: New file.
5314 * sysdeps/i386/fpu/w_exp2.c: New file.
5315 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
5316 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
5317 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
5318 and add necessary aliases.
5319 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
5320 and add necessary aliases.
5321 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
5322 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
5323 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
5324 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
5325 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5326 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5327 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5328 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5329 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5330 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5331 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5332 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5333 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5334 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5335 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5336 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5337 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5338 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5339 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5340 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5341 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5342 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5343 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5344 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5345 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5346 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5347 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5348 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5349 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
5350 (__ieee754_exp): Rename to __exp.
5351 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
5352 (__ieee754_exp): Rename to __exp.
5353 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
5354 (__ieee754_exp): Rename to __exp.
5355 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
5356 __exp.
5357 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
5358
5359 2018-11-20 DJ Delorie <dj@redhat.com>
5360
5361 * malloc/malloc.c (tcache_entry): Add key field.
5362 (tcache_put): Set it.
5363 (tcache_get): Likewise.
5364 (_int_free): Check for double free in tcache.
5365 * malloc/tst-tcfree1.c: New.
5366 * malloc/tst-tcfree2.c: New.
5367 * malloc/Makefile: Run the new tests.
5368 * manual/probes.texi: Document memory_tcache_double_free probe.
5369
5370 * dlfcn/dlerror.c (check_free): Prevent double frees.
5371
5372 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
5373
5374 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
5375
5376 2018-11-20 Joseph Myers <joseph@codesourcery.com>
5377
5378 * conform/conformtest.py (ElementTest.run): Use unique identifiers
5379 in tests. Use names for format arguments.
5380 (ConstantTest.run): Likewise.
5381 (SymbolTest.run): Likewise.
5382 (TypeTest.run): Likewise.
5383 (TagTest.run): Likewise.
5384 (FunctionTest.run): Likewise.
5385 (VariableTest.run): Likewise.
5386 (MacroFunctionTest.run): Likewise.
5387 (MacroStrTest.run): Likewise.
5388 (HeaderTests.__init__): Set self.num_tests.
5389 (HeaderTests.handle_test_line): Set test.num. Increment
5390 self.num_tests.
5391
5392 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5393
5394 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
5395 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
5396 SEEK_SET.
5397
5398 2018-11-19 Mao Han <han_mao@c-sky.com>
5399
5400 * scripts/config.guess: Update to version 2018-08-29.
5401 * scripts/config.sub: Update to version 2018-08-29.
5402
5403 2018-11-19 Florian Weimer <fweimer@redhat.com>
5404
5405 support: Print timestamps in timeout handler.
5406 * support/support_test_main.c (print_timestamp): New function.
5407 (signal_handler): Use it to print the termination time and the
5408 time of the last write to standard output.
5409
5410 2018-11-16 Zack Weinberg <zackw@panix.com>
5411 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5412
5413 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
5414 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
5415 argument.
5416 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
5417 and add flags argument. Check flags instead of __ldbl_is_dbl when
5418 deciding whether to set is_long_double.
5419 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
5420 passing zero for flags argument.
5421 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
5422
5423 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5424 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
5425 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
5426 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
5427 variable names. Remove libc_hidden_def/libc_hidden_proto from
5428 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
5429 longer called from within the library.
5430 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
5431 for __nldbl___vstrfmon_l, declare it explicitly.
5432
5433 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
5434
5435 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
5436
5437 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
5438 macros
5439 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
5440 F_SETLK64, F_SETLKW64, respectively.
5441 * sysdeps/mach/hurd/f_setlk.c: New file.
5442 * sysdeps/mach/hurd/f_setlk.h: New file.
5443 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
5444 f_setlk.
5445 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
5446 (__libc_fcntl): Move non-flock operations to...
5447 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
5448 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
5449
5450 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
5451
5452 mktime: DEBUG_MKTIME cleanup
5453 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
5454 And it’s no longer needed now that glibc and Gnulib both have
5455 their own testing mechanisms for mktime.
5456 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
5457
5458 mktime: fix non-EOVERFLOW errno handling
5459 [BZ#23789]
5460 mktime was not properly reporting failures when the underlying
5461 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
5462 them like EOVERFLOW failures, and set errno to EOVERFLOW.
5463 The problem could happen on non-glibc platforms, with Gnulib.
5464 * time/mktime.c (guess_time_tm): Remove, replacing with ...
5465 (tm_diff): ... this simpler function, which does not change errno.
5466 All callers changed to deal with errno themselves.
5467 (ranged_convert, __mktime_internal): Return failure immediately if
5468 the underlying function reports any failure other than EOVERFLOW.
5469 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
5470 gap code fails.
5471
5472 mktime: fix bug with Y2038 DST transition
5473 [BZ#23789]
5474 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
5475 mishandle a DST transition that jumps over the Y2038 boundary.
5476 No such DST transitions are known so this is only a theoretical
5477 bug, but we might as well do things right.
5478
5479 mktime: make more room for overflow
5480 [BZ#23789]
5481 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
5482 This is so that we can add tm_diff results to a previous guess,
5483 which will be useful in a later patch.
5484
5485 mktime: simplify offset guess
5486 [BZ#23789]
5487 * time/mktime.c (__mktime_internal): Omit excess precision.
5488
5489 mktime: new test for mktime failure
5490 [BZ#23789]
5491 Based on a test suggested by Albert Aribaud in:
5492 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
5493 * time/Makefile (tests): Add bug-mktime4.
5494 * time/bug-mktime4.c: New file.
5495
5496 mktime: fix EOVERFLOW bug
5497 [BZ#23789]
5498 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
5499 Include libc-config.h, not config.h, for __set_errno.
5500 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
5501
5502 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5503
5504 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
5505 __attribute_copy__ to copy attributes from name. Drop static qualifier
5506 to avoid warnings about leaf attribute not having effect on static
5507 functions.
5508
5509 2018-11-13 Florian Weimer <fweimer@redhat.com>
5510
5511 * malloc/malloc.c (fastbin_push_entry): New function.
5512 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
5513 (REMOVE_FB): Remove macro.
5514 (_int_malloc): Use fastbin_pop_entry and reindent.
5515 (_int_free): Use fastbin_push_entry.
5516 (malloc_consolidate): Use atomic_exchange_acquire.
5517
5518 2018-11-13 Joseph Myers <joseph@codesourcery.com>
5519
5520 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
5521 alias attribute, not with strong_alias.
5522
5523 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
5524 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
5525 with additional parameter thread.
5526 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
5527 in terms of __hidden_ver2.
5528 (hidden_tls_def): New macro.
5529 (libc_hidden_tls_def): Likewise.
5530 (rtld_hidden_tls_def): Likewise.
5531 (libm_hidden_tls_def): Likewise.
5532 (libmvec_hidden_tls_def): Likewise.
5533 (libresolv_hidden_tls_def): Likewise.
5534 (librt_hidden_tls_def): Likewise.
5535 (libdl_hidden_tls_def): Likewise.
5536 (libnss_files_hidden_tls_def): Likewise.
5537 (libnsl_hidden_tls_def): Likewise.
5538 (libnss_nisplus_hidden_tls_def): Likewise.
5539 (libutil_hidden_tls_def): Likewise.
5540 (libutil_hidden_tls_def): Likweise.
5541 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
5542 libc_hidden_tls_def.
5543 (__sim_disabled_exceptions_thread): Likewise.
5544 (__sim_round_mode_thread): Likewise.
5545
5546 * sysdeps/sparc/sparc-ifunc.h [SHARED]
5547 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
5548 copy attributes from name.
5549
5550 2018-11-12 Joseph Myers <joseph@codesourcery.com>
5551
5552 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
5553 Use __attribute_copy__ to copy attributes from name.
5554
5555 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
5556 with __hidden_ver1 call.
5557 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
5558 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
5559 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
5560 (__cosf): Do not declare here.
5561 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
5562 (__sincosf): Do not declare here.
5563 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
5564 (__sinf): Do not declare here.
5565
5566 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
5567 (__BIG_ENDIAN): Likewise.
5568 (__BYTE_ORDER): Likewise.
5569 (strong_alias): Likewise.
5570 (_strong_alias): Likewise.
5571
5572 2018-11-12 Florian Weimer <fweimer@redhat.com>
5573
5574 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
5575 function. Move after the definition of in_smallbin_range. Do not
5576 use __builtin_expect for paths that lead to a noreturn function.
5577 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
5578 because it is unclear whether this is in fact an unlikely
5579 condition.
5580 (_int_malloc, _int_free): Adjust.
5581 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
5582 variables.
5583 * malloc/arena.c (heap_trim): Likewise.
5584
5585 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5586
5587 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
5588 it, free it if needed.
5589 (reauthenticate): Test and use ccwdir.
5590 (child_init_port): In non-resetids case, test and use ccwdir.
5591 (child_chdir): New nested function to set ccwdir.
5592 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
5593 * hurd/hurd/port.h (_hurd_port_move): New function.
5594 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
5595 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
5596 * hurd/Versions (_hurd_port_move): Export function.
5597 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
5598 symbol.
5599 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
5600 of dtablesize for allocating dtable_cloexec.
5601
5602 2018-11-09 Martin Sebor <msebor@redhat.com>
5603
5604 * include/libc-symbols.h (__attribute_copy__): Define macro unless
5605 it's already defined.
5606 (_strong_alias): Use __attribute_copy__.
5607 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
5608 * misc/sys/cdefs.h (__attribute_copy__): New macro.
5609 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
5610 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
5611 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
5612 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
5613 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
5614 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
5615 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
5616 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
5617 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
5618 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
5619 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
5620 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
5621 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
5622 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
5623 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
5624 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
5625 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
5626
5627 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5628
5629 * misc/tst-efgcvt.c: Include support/check.h and
5630 support/test-driver.c. Do not include test-skeleton.c.
5631 (error_count): Remove.
5632 (output_error): Replace increments to error_count with calls to
5633 support_record_failure.
5634 (output_r_error): Likewise.
5635 (special): Likewise.
5636 (do_test): Unconditionally return zero.
5637 (TEST_FUNCTION): Remove.
5638
5639 2018-11-09 Joseph Myers <joseph@codesourcery.com>
5640
5641 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
5642 not $(@D)/scratch.
5643 ($(linknamespace-header-tests)): Likewise.
5644
5645 * conform/conformtest.py: New file.
5646 * conform/conformtest.pl: Remove.
5647 * conform/GlibcConform.pm: Likewise.
5648 * conform/glibcconform.py (KEYWORDS_C90): New constant.
5649 (KEYWORDS_C99): Likewise.
5650 (KEYWORDS): Likewise.
5651 * conform/Makefile ($(conformtest-header-tests)): Use
5652 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
5653 option. Use --header instead of --headers.
5654 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
5655 function entries.
5656 * conform/data/spawn.h-data: Likewise.
5657 * conform/data/fcntl.h-data (openat): Add space after function
5658 name.
5659 * conform/data/wchar.h-data (wcscasecmp): Likewise.
5660 (wcscasecmp_l): Likewise.
5661 * conform/data/termios.h-data (c_cc): Add space after element
5662 name.
5663
5664 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5665
5666 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
5667 instead of manually comparing and reporting mismatching strings.
5668 * misc/tst-ldbl-error.c (do_one_test): Likewise.
5669 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5670
5671 2018-11-08 Joseph Myers <joseph@codesourcery.com>
5672
5673 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
5674 __ASSUME_SOCKETCALL.
5675 * sysdeps/unix/sysv/linux/i386/kernel-features.h
5676 (__ASSUME_SOCKETCALL): Remove.
5677 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5678 (__ASSUME_SOCKETCALL): Likewise.
5679 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5680 (__ASSUME_SOCKETCALL): Likewise.
5681 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5682 (__ASSUME_SOCKETCALL): Likewise.
5683 * sysdeps/unix/sysv/linux/s390/kernel-features.h
5684 (__ASSUME_SOCKETCALL): Likewise.
5685 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5686 (__ASSUME_SOCKETCALL): Likewise.
5687 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5688 (__ASSUME_SOCKETCALL): Likewise.
5689
5690 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
5691
5692 [BZ #23509]
5693 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
5694 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
5695 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
5696 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
5697 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
5698 lc_unknown.
5699
5700 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
5701
5702 [BZ #17630]
5703 * resolv/tst-resolv-network.c: Add test for getnetbyname.
5704
5705 2018-11-07 Joseph Myers <joseph@codesourcery.com>
5706
5707 [BZ #23867]
5708 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5709 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5710 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5711 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5712
5713 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5714
5715 * support/support_test_compare_string.c
5716 (support_test_compare_string): Fix printf format.
5717
5718 2018-11-07 Florian Weimer <fweimer@redhat.com>
5719
5720 Implement TEST_COMPARE_STRING.
5721 * support/check.h (TEST_COMPARE_STRING): Define.
5722 (support_test_compare_string): Declare.
5723 * support/Makefile (libsupport-routines): Add
5724 support_test_compare_string.
5725 (tests): Add tst-test_compare_string.
5726 * support/support_test_compare_string.c: New file.
5727 * support/tst-test_compare_string.c: Likewise.
5728
5729 2018-11-07 Andreas Schwab <schwab@suse.de>
5730
5731 [BZ #23864]
5732 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
5733 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
5734 Undef.
5735
5736 2018-11-06 Joseph Myers <joseph@codesourcery.com>
5737
5738 [BZ #23862]
5739 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5740 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
5741 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
5742 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
5743 Likewise.
5744
5745 2018-11-06 Florian Weimer <fweimer@redhat.com>
5746
5747 [BZ #17405]
5748 * posix/Makefile (routines): Add spawn_faction_addchdir.
5749 (tests): Add tst-spawn-chdir.
5750 * posix/Versions (GLIBC_2.29): Add
5751 posix_spawn_file_actions_addchdir_np.
5752 * posix/spawn_faction_addchdir.c: New file.
5753 * posix/spawn_faction_destroy.c
5754 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
5755 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
5756 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
5757 chdir_action.
5758 * posix/tst-spawn-chdir.c: New file.
5759 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
5760 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5761 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5762 posix_spawn_file_actions_addchdir_np.
5763 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5764 Likewise.
5765 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5766 Likewise.
5767 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5768 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5769 Likewise.
5770 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5771 Likewise.
5772 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5773 Likewise.
5774 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5775 Likewise.
5776 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5777 Likewise.
5778 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5779 Likewise.
5780 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5781 (GLIBC_2.29): Likewise.
5782 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5783 (GLIBC_2.29): Likewise.
5784 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5785 (GLIBC_2.29): Likewise.
5786 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5787 (GLIBC_2.29): Likewise.
5788 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5789 Likewise.
5790 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5791 (GLIBC_2.29): Likewise.
5792 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5793 (GLIBC_2.29): Likewise.
5794 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5795 (GLIBC_2.29): Likewise.
5796 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5797 (GLIBC_2.29): Likewise.
5798 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5799 Likewise.
5800 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5801 Likewise.
5802 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5803 Likewise.
5804 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5805 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5806 Likewise.
5807 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5808 Likewise.
5809 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5810 Likewise.
5811 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5812 Likewise.
5813
5814 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5815
5816 * misc/Makefile (tests): Add tst-ldbl-error.
5817 * misc/tst-ldbl-error.c: New file.
5818
5819 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5820
5821 * misc/Makefile (tests): Add tst-ldbl-warn.
5822 * misc/tst-ldbl-warn.c: New file.
5823
5824 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5825
5826 * argp/Makefile (tests): Add tst-ldbl-argp.
5827 * argp/tst-ldbl-argp.c: New file.
5828
5829 2018-11-05 Arjun Shankar <arjun@redhat.com>
5830
5831 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
5832 __gconv_path_elem and call __gconv_get_path unconditionally.
5833
5834 2018-11-05 Andreas Schwab <schwab@suse.de>
5835
5836 [BZ #22927]
5837 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
5838 creating the first helper thread failed.
5839
5840 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5841
5842 * sysdeps/mach/hurd/msync.c: New file.
5843
5844 2018-11-02 Florian Weimer <fweimer@redhat.com>
5845
5846 * support/shell-container.c (copy_func): Call
5847 support_copy_file_range instead of copy_file_range to support
5848 cross-device copies.
5849
5850 2018-11-02 Florian Weimer <fweimer@redhat.com>
5851
5852 * support/test-container.c: Include <libc-pointer-arith.h> for
5853 ALIGN_UP.
5854
5855 2018-11-01 Zong Li <zong@andestech.com>
5856
5857 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
5858 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
5859 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
5860 (__FP_FRAC_SET_8): Add implementation for RV32 use.
5861
5862 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
5863 variable to avoid overlap arguments.
5864
5865 2018-11-01 Joseph Myers <joseph@codesourcery.com>
5866
5867 * posix/bug-regex22.c (main): Use puts with distinct error
5868 messages for unexpected success of re_compile_pattern, not printf
5869 with NULL argument to %s.
5870
5871 * stdio-common/bug22.c: Include <libc-diag.h>.
5872 (do_test): Disable -Wformat-overflow= warnings around fprintf
5873 calls outputting more than INT_MAX characters.
5874 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
5875 around printf call with NULL %s argument.
5876
5877 [BZ #23848]
5878 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
5879 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
5880 Undefine.
5881 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5882 (__ASSUME_RECVMSG_SYSCALL): Likewise.
5883 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5884 (__ASSUME_SENDTO_SYSCALL): Likewise.
5885 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5886 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
5887 [!__arch64__].
5888 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5889 (__ASSUME_CONNECT_SYSCALL): Likewise.
5890 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5891 (__ASSUME_RECVFROM_SYSCALL): Likewise.
5892 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
5893 Define.
5894 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
5895 Likewise.
5896 [__LINUX_KERNEL_VERSION >= 0x040400]
5897 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5898 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
5899 Remove.
5900 (listen): Likewise.
5901 (setsockopt): Likewise.
5902
5903 2018-11-01 Fredrik Noring <noring@nocrew.org>
5904
5905 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
5906 with the ISA override.
5907
5908 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
5909
5910 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
5911 #endif.
5912
5913 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
5914
5915 * manual/errno.texi (EIEIO): Document how translators should
5916 translate the error message.
5917 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
5918 printing trailing whitespaces refused by git.
5919 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
5920 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5921 * hurd/Makefile (user-interfaces): Add pci.
5922
5923 2018-10-30 Joseph Myers <joseph@codesourcery.com>
5924
5925 * conform/linknamespace.py: New file.
5926 * conform/linknamespace.pl: Remove file.
5927 * conform/Makefile ($(linknamespace-header-tests)): Use
5928 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
5929 option.
5930
5931 2018-10-30 Florian Weimer <fweimer@redhat.com>
5932
5933 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
5934 memory leaks.
5935
5936 2018-10-30 Florian Weimer <fweimer@redhat.com>
5937
5938 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
5939
5940 2018-10-30 Florian Weimer <fweimer@redhat.com>
5941
5942 * stdlib/tst-strtod-overflow.c (do_test): Switch to
5943 support_blob_repeat.
5944
5945 2018-10-30 Florian Weimer <fweimer@redhat.com>
5946
5947 Avoid spurious test failures in stdlib/test-bz22786.
5948 * support/Makefile (libsupport-routines): Add blob_repeat.
5949 (tests): Add tst-support_blob_repeat.
5950 * support/blob_repeat.h: New file.
5951 * support/blob_repeat.c: Likewise.
5952 * support/tst-support_blob_repeat.c: Likewise.
5953 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
5954 support_blob_repeat_allocate.
5955
5956 2018-10-30 Andreas Schwab <schwab@suse.de>
5957
5958 [BZ #23125]
5959 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
5960 Don't use tail call.
5961 * elf/tst-unwind-main.c: New file.
5962 * elf/Makefile (tests): Add tst-unwind-main.
5963 (CFLAGS-tst-unwind-main.c): Define.
5964
5965 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
5966
5967 [BZ #23791]
5968 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
5969 n_cs_precedes to 0.
5970 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
5971
5972 2018-10-29 Joseph Myers <joseph@codesourcery.com>
5973
5974 * conform/glibcconform.py: Do not import shutil.
5975 (list_exported_functions): Use tempfile.TemporaryDirectory instead
5976 of mkdtemp.
5977
5978 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5979 critic_missing for versions before 3.4.
5980 * configure: Regenerated.
5981 * manual/install.texi (Tools for Compilation): Document
5982 requirement for Python to build glibc.
5983 * INSTALL: Regenerated.
5984 * Rules [PYTHON]: Make code unconditional.
5985 * benchtests/Makefile [PYTHON]: Likewise.
5986 * conform/Makefile [PYTHON]: Likewise.
5987 * manual/Makefile [PYTHON]: Likewise.
5988 * math/Makefile [PYTHON]: Likewise.
5989
5990 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5991
5992 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5993 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5994 answer to interrupt_operation, return EIEIO instead of EINTR.
5995 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5996 _hurd_intr_rpc_msg_about_to global point to start of controlled
5997 assembly snippet. Make it check canceled flag.
5998 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5999 the _hurd_intr_rpc_msg_about_to point.
6000 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
6001 issue, remove cancel flag check.
6002
6003 2018-10-26 Joseph Myers <joseph@codesourcery.com>
6004
6005 * scripts/build-many-glibcs.py: Remove compatibility for missing
6006 os.cpu_count and re.fullmatch.
6007
6008 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
6009
6010 [BZ #23822]
6011 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
6012 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
6013 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
6014
6015 2018-10-25 Joseph Myers <joseph@codesourcery.com>
6016
6017 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
6018 macro.
6019
6020 2018-10-25 Florian Weimer <fweimer@redhat.com>
6021
6022 [BZ #23562]
6023 [BZ #23821]
6024 XFAIL siginfo_t si_band conform test on sparc64.
6025 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
6026 (__SI_BAND_TYPE): Only override long int default type on sparc64.
6027 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
6028 (conformtest-xfail-conds): Add sparc64-linux.
6029 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
6030 sparc64.
6031 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
6032
6033 2018-10-25 Joseph Myers <joseph@codesourcery.com>
6034
6035 * elf/elf.h (NT_MIPS_DSP): New macro.
6036 (NT_MIPS_FP_MODE): Likewise.
6037
6038 2018-10-25 Zong Li <zong@andestech.com>
6039
6040 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
6041 name by adding the file extension (.so).
6042
6043 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
6044
6045 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
6046 (test-xfail-ISO11/threads.h/linknamespace,
6047 test-xfail-ISO11/threads.h/conform): Add.
6048
6049 2018-10-24 Joseph Myers <joseph@codesourcery.com>
6050
6051 * math/gen-libm-test.py: Import os.
6052 (ALL_FLOATS_MANUAL): New constant.
6053 (ALL_FLOATS_SUFFIX): Likewise.
6054 (Ulps.all_functions): New function.
6055 (real_all_ulps): Likewise.
6056 (generate_err_table_sub): Likewise.
6057 (generate_err_table): Likewise.
6058 (main): Handle -s and -m options.
6059 * manual/libm-err-tab.pl: Remove.
6060 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
6061 instead of libm-err-tab.pl.
6062 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
6063 != no].
6064 * manual/install.texi (Tools for Compilation): Document
6065 requirement for Python to build manual.
6066 * INSTALL: Regenerated.
6067
6068 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
6069
6070 * bits/time64.h: New file.
6071 * include/time.h: Replace internal_time_t with __time64_t.
6072 * posix/bits/types (__time64_t): Add.
6073 * stdlib/Makefile: Add bits/time64.h to includes.
6074 * time/tzfile.c: Replace internal_time_t with __time64_t.
6075
6076 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6077
6078 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
6079 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
6080 __posix_spawn_file_actions_init, __posix_spawnattr_init,
6081 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
6082 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
6083 prototype.
6084 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
6085 * posix/spawn_faction_addclose.c
6086 (__posix_spawn_file_actions_addclose): Add hidden definition.
6087 * posix/spawn_faction_adddup2.c
6088 (__posix_spawn_file_actions_adddup2): Likewise.
6089 * posix/spawn_faction_destroy.c
6090 (__posix_spawn_file_actions_destroy): Likewise.
6091 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
6092 Likewise.
6093 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
6094 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
6095 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
6096 Likewise.
6097 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
6098 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
6099 Likewise.
6100
6101 2018-10-24 Andreas Schwab <schwab@suse.de>
6102
6103 [BZ #18093]
6104 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
6105 format cache.
6106 * elf/cache.c (print_cache): Likewise.
6107
6108 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
6109
6110 * bits/timesize.h: New file.
6111 * stdlib/Makefile (headers): Add bits/timesize.h.
6112 * sysdeps/unix/sysv/linux/bits/msq-pad.h
6113 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
6114 * sysdeps/unix/sysv/linux/bits/sem-pad.h
6115 (__SEM_PAD_AFTER_TIME): Likewise.
6116 * sysdeps/unix/sysv/linux/bits/shm-pad.h
6117 (__SHM_PAD_AFTER_TIME): Likewise.
6118 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
6119 (__MSQ_PAD_BEFORE_TIME): Likewise.
6120 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
6121 (__SEM_PAD_BEFORE_TIME): Likewise.
6122 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
6123 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
6124 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
6125 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
6126 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
6127 (__MSQ_PAD_BEFORE_TIME): Likewise.
6128 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
6129 (__SEM_PAD_BEFORE_TIME): Likewise.
6130 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
6131 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
6132 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
6133 (__MSQ_PAD_BEFORE_TIME): Likewise.
6134 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
6135 (__SEM_PAD_BEFORE_TIME): Likewise.
6136 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
6137 (__SHM_PAD_BEFORE_TIME): Likewise.
6138 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
6139 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6140 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
6141
6142 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
6143
6144 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
6145 USE_RDTSCP is defined.
6146 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
6147 USE_RDTSCP is defined.
6148
6149 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6150
6151 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
6152 defined.
6153
6154 [BZ #23709]
6155 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
6156 independently of other flags.
6157
6158 2018-10-23 Florian Weimer <fweimer@redhat.com>
6159
6160 * time/tst-mktime2.c (N_STRINGS): Remove.
6161 (set_timezone): New function.
6162 (spring_forward_gap): Call it. Use FAIL_EXIT1.
6163 (mktime_test1): Report localtime failure and check errno value.
6164 Use TEST_COMPARE.
6165 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
6166 (do_test): Remove alarm call. Use set_timezone and array_length.
6167
6168 2018-10-23 Andreas Schwab <schwab@suse.de>
6169
6170 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
6171 (__start_context): Use END instead of PSEUDO_END.
6172
6173 2018-10-22 Joseph Myers <joseph@codesourcery.com>
6174
6175 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6176 version to 4.19.
6177
6178 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6179 version to 4.19.
6180
6181 [BZ #23793]
6182 * wcsmbs/c32rtomb.c: New file.
6183 * wcsmbs/mbrtoc32.c: Likewise.
6184 * wcsmbs/tst-c32-state.c: Likewise.
6185 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
6186 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
6187 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
6188 (tests): Add tst-c32-state.
6189 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
6190 $(gen-locales).
6191
6192 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
6193
6194 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
6195 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
6196
6197 2018-10-19 Joseph Myers <joseph@codesourcery.com>
6198
6199 [BZ #23794]
6200 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
6201 pair and return 0 in that case, and use saved character to
6202 interpret following character.
6203 * wcsmbs/tst-c16-surrogate.c: New file.
6204 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
6205 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
6206 Depend on $(gen-locales)
6207
6208 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6209
6210 [BZ #23562]
6211 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
6212 (struct siginfo_t): Use correct type for si_band.
6213
6214 2018-10-19 Florian Weimer <fweimer@redhat.com>
6215
6216 [BZ #23689]
6217 * resource/bits/types/struct_rusage.h (struct rusage): Update
6218 comment on struct. Remove extraneous field comment.
6219
6220 2018-10-18 David S. Miller <davem@davemloft.net>
6221
6222 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
6223 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
6224 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
6225 sysdep_routines in subdir elf.
6226 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
6227 version for __vdso_clock_gettime.
6228 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
6229 Define.
6230 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
6231 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
6232
6233 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
6234
6235 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
6236
6237 * sysdeps/i386/init-arch.h: Removed.
6238 * sysdeps/i386/i586/init-arch.h: Likewise.
6239 * sysdeps/i386/i686/init-arch.h: Likewise.
6240 * sysdeps/i386/i686/hp-timing.h: Likewise.
6241 * sysdeps/x86_64/hp-timing.h: Likewise.
6242 * sysdeps/i386/isa.h: New file.
6243 * sysdeps/i386/i586/isa.h: Likewise.
6244 * sysdeps/i386/i686/isa.h: Likewise.
6245 * sysdeps/x86_64/isa.h: Likewise.
6246 * sysdeps/x86/hp-timing.h: New file.
6247 * sysdeps/x86/init-arch.h: Include <isa.h>.
6248
6249 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6250
6251 * math/libm-test-pow.inc (pow_test_data): Do not allow
6252 divide-by-zero exception for pow(+/- 0, -Inf).
6253
6254 2018-10-17 Zack Weinberg <zackw@panix.com>
6255
6256 * manual/job.texi (Job Control is Optional): Remove node, as
6257 job control has not been optional in quite some time.
6258 (Job Control): Mention briefly that systems older than
6259 POSIX.1-2001 might not support job control.
6260 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
6261 defined on systems conforming to POSIX.1-2001.
6262
6263 2018-10-17 Arjun Shankar <arjun@redhat.com>
6264
6265 [BZ #22062]
6266 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
6267 indentation.
6268 * (__gconv_read_conf): Mark function static.
6269 * (once): New static variable.
6270 * (__gconv_load_conf): New function.
6271 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
6272 * iconv/gconv_db.c (once): Remove static variable.
6273 * (__gconv_compare_alias): Use __gconv_load_conf instead of
6274 __gconv_read_conf.
6275 * (__gconv_find_transform): Likewise.
6276 * iconv/tst-iconv-mt.c: New test.
6277 * iconv/Makefile: Add tst-iconv_mt.
6278
6279 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6280
6281 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6282 bits/shm-pad.h.
6283 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
6284 (shmatt_t): Define as __syscall_ulong_t.
6285 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
6286 and [__SHM_PAD_AFTER_TIME].
6287 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
6288 Define shm_segsz and associated padding based on
6289 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
6290 Use __syscall_ulong_t instead of unsigned long int.
6291 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
6292 unsigned long int.
6293 [__USE_MISC] (struct shm_info): Likewise.
6294 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
6295 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
6296 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
6297 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
6298 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
6299 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6300 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
6301 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
6302 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6303 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6304 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
6305
6306 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6307 bits/shmlba.h.
6308 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
6309 (SHMLBA): Remove macro.
6310 (__getpagesize): Remove function declaration.
6311 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
6312 <bits/shmlba.h>.
6313 (SHMLBA): Remove macro.
6314 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
6315 <bits/shmlba.h>.
6316 (SHMLBA): Remove macro.
6317 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
6318 <bits/shmlba.h>.
6319 (SHMLBA): Remove macro.
6320 (__getpagesize): Remove function declaration.
6321 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
6322 <bits/shmlba.h>.
6323 (SHMLBA): Remove macro.
6324 (__getshmlba): Remove function declaration.
6325 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
6326 (SHMLBA): Remove macro.
6327 (__getpagesize): Remove function declaration.
6328 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
6329 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6330 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6331 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
6332 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
6333 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
6334 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
6335 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
6336 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
6337 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
6338
6339 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
6340
6341 [BZ #23275]
6342 * nptl/tst-mutex10.c: New File.
6343 * nptl/Makefile (tests): Add tst-mutex10.
6344 (tst-mutex10-ENV): New variable.
6345 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
6346 Ensure that elision path is used if elision is available.
6347 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
6348 Likewise.
6349 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
6350 Likewise.
6351 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
6352 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
6353 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
6354 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
6355 Likewise.
6356 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
6357 (__pthread_mutex_cond_lock_adjust): Likewise.
6358 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
6359 Likewise.
6360 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
6361 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
6362 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6363 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
6364 Add comments.
6365 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
6366 Use atomic_load_relaxed and atomic_store_relaxed.
6367 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
6368 Use atomic_store_relaxed.
6369
6370 2018-10-17 Andreas Schwab <schwab@suse.de>
6371
6372 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
6373 * crypt/badsalttest.c (TIMEOUT): Likewise.
6374 * crypt/sha256c-test.c (TIMEOUT): Likewise.
6375 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
6376 * io/test-lfs.c (TIMEOUT): Likewise.
6377 * libio/tst-atime.c (TIMEOUT): Likewise.
6378 * localedata/tst-leaks.c (TIMEOUT): Likewise.
6379 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
6380 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
6381 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
6382 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
6383 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
6384 * nptl/tst-cond11.c (TIMEOUT): Likewise.
6385 * nptl/tst-cond14.c (TIMEOUT): Likewise.
6386 * nptl/tst-cond15.c (TIMEOUT): Likewise.
6387 * nptl/tst-cond24.c (TIMEOUT): Likewise.
6388 * nptl/tst-cond25.c (TIMEOUT): Likewise.
6389 * nptl/tst-kill2.c (TIMEOUT): Likewise.
6390 * nptl/tst-kill3.c (TIMEOUT): Likewise.
6391 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
6392 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
6393 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
6394 * nptl/tst-once2.c (TIMEOUT): Likewise.
6395 * nptl/tst-once3.c (TIMEOUT): Likewise.
6396 * nptl/tst-once4.c (TIMEOUT): Likewise.
6397 * nptl/tst-robust8.c (TIMEOUT): Likewise.
6398 * nptl/tst-robust9.c (TIMEOUT): Likewise.
6399 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
6400 * nptl/tst-sem14.c (TIMEOUT): Likewise.
6401 * nptl/tst-sem6.c (TIMEOUT): Likewise.
6402 * nptl/tst-signal3.c (TIMEOUT): Likewise.
6403 * nptl/tst-spin4.c (TIMEOUT): Likewise.
6404 * nptl/tst-tls3.c (TIMEOUT): Likewise.
6405 * nptl/tst-tls4.c (TIMEOUT): Likewise.
6406 * posix/tst-chmod.c (TIMEOUT): Likewise.
6407 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
6408 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
6409 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
6410 * posix/tst-regex2.c (TIMEOUT): Likewise.
6411 * posix/tst-waitid.c (TIMEOUT): Likewise.
6412 * rt/tst-aio.c (TIMEOUT): Likewise.
6413 * rt/tst-aio10.c (TIMEOUT): Likewise.
6414 * rt/tst-aio4.c (TIMEOUT): Likewise.
6415 * rt/tst-aio5.c (TIMEOUT): Likewise.
6416 * rt/tst-aio6.c (TIMEOUT): Likewise.
6417 * rt/tst-aio64.c (TIMEOUT): Likewise.
6418 * rt/tst-aio7.c (TIMEOUT): Likewise.
6419 * rt/tst-aio9.c (TIMEOUT): Likewise.
6420 * rt/tst-clock.c (TIMEOUT): Likewise.
6421 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
6422 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
6423 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
6424 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
6425 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
6426 * rt/tst-timer4.c (TIMEOUT): Likewise.
6427 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
6428 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
6429 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
6430 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
6431 * time/tst-ftime.c (TIMEOUT): Likewise.
6432 * timezone/tst-tzset.c (TIMEOUT): Likewise.
6433
6434 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
6435
6436 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
6437 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
6438 for thunderX2.
6439
6440 2018-10-15 Joseph Myers <joseph@codesourcery.com>
6441
6442 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6443 bits/sem-pad.h.
6444 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
6445 instead of <bits/wordsize.h>.
6446 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
6447 and [__SEM_PAD_AFTER_TIME].
6448 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
6449 __syscall_ulong_t instead of unsigned long int.
6450 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
6451 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
6452 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
6453 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
6454 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
6455 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
6456 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
6457 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
6458 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
6459 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
6460 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
6461
6462 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
6463
6464 regex: simplify by using intprops.h
6465 [BZ#23744]
6466 * posix/regex_internal.h [_LIBC]: Include intprops.h.
6467 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
6468 intprops.h defines them.
6469
6470 regex: __builtin_expect → __glibc_unlikely
6471 [BZ#23744]
6472 This refactoring was prompted by a problem when the regex code is
6473 used as part of Gnulib and when the builder’s compiler does not grok
6474 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
6475 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
6476 Although this refactoring does not fix the problem directly,
6477 we might as well have Gawk use the now-preferred glibc style for when
6478 __builtin_expect is unavailable.
6479 * posix/regex_internal.h (BE): Remove.
6480 All uses replaced by __glibc_unlikely or __glibc_likely.
6481
6482 2018-10-11 Joseph Myers <joseph@codesourcery.com>
6483
6484 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6485 bits/msq-pad.h.
6486 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
6487 instead of <bits/wordsize.h>.
6488 (msgqnum_t): Define as __syscall_ulong_t.
6489 (msglen_t): Likewise.
6490 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
6491 and [__MSQ_PAD_AFTER_TIME].
6492 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
6493 __syscall_ulong_t instead of unsigned long int.
6494 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
6495 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
6496 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
6497 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
6498 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
6499 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
6500 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
6501 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
6502 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
6503 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
6504 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
6505
6506 2018-10-10 Joseph Myers <joseph@codesourcery.com>
6507
6508 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
6509 (struct shmid_ds): Condition padding after time fields on
6510 [__WORDSIZE == 32].
6511 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
6512 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
6513 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6514
6515 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
6516 (struct semid_ds): Condition padding after time fields on
6517 [__WORDSIZE == 32].
6518 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
6519 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
6520 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
6521 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
6522
6523 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
6524 (struct msqid_ds): Condition padding after time fields on
6525 [__WORDSIZE == 32].
6526 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
6527 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
6528 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
6529 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
6530
6531 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6532
6533 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
6534
6535 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6536
6537 * libio/tst-readline.c (TIMEOUT): Define.
6538
6539 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
6540
6541 mktime fix for Gnulib + coreutils
6542 [BZ#23745]
6543 This fix affects only Gnulib. Problem discovered when
6544 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
6545 * time/mktime.c:
6546 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
6547 Do not define since it is not used. Defining an unused static
6548 function prompts a warning from GCC when Coreutils is configured
6549 with --enable-gcc-warnings.
6550
6551 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6552
6553 * benchtests/scripts/compare_bench.py (main): set float type on
6554 threshold argument.
6555
6556 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
6557
6558 [BZ #23740]
6559 * localedata/locales/kl_GL (mon): Update, the relative case.
6560 (alt_mon): Add, fill with month names in the nominative case.
6561 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
6562 (d_fmt): Set to "%b %d %Y".
6563
6564 2018-10-04 Joseph Myers <joseph@codesourcery.com>
6565
6566 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
6567 <bits/mman-linux.h>.
6568 (PROT_READ): Don't define here.
6569 (PROT_WRITE): Likewise.
6570 (PROT_EXEC): Likewise.
6571 (PROT_NONE): Likewise.
6572 (PROT_GROWSDOWN): Likewise.
6573 (PROT_GROWSUP): Likewise.
6574 (MAP_SHARED): Likewise.
6575 (MAP_PRIVATE): Likewise.
6576 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
6577 [__USE_MISC] (MAP_FILE): Likewise.
6578 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
6579 [__USE_MISC] (MAP_ANON): Likewise.
6580 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
6581 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
6582 (MCL_CURRENT): Likewise.
6583 (MCL_FUTURE): Likewise.
6584 (MCL_ONFAULT): Likewise.
6585 [__USE_MISC] (MADV_NORMAL): Likewise.
6586 [__USE_MISC] (MADV_RANDOM): Likewise.
6587 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
6588 [__USE_MISC] (MADV_WILLNEED): Likewise.
6589 [__USE_MISC] (MADV_DONTNEED): Likewise.
6590 [__USE_MISC] (MADV_FREE): Likewise.
6591 [__USE_MISC] (MADV_REMOVE): Likewise.
6592 [__USE_MISC] (MADV_DONTFORK): Likewise.
6593 [__USE_MISC] (MADV_DOFORK): Likewise.
6594 [__USE_MISC] (MADV_HWPOISON): Likewise.
6595 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
6596 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
6597 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
6598 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
6599 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
6600 (__MAP_ANONYMOUS): New macro.
6601 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
6602 <bits/mman-linux.h> inclusion.
6603 (MAP_FIXED): Likewise.
6604 (MS_SYNC): Likewise.
6605 (MS_ASYNC): Likewise.
6606 (MS_INVALIDATE): Likewise.
6607 [__USE_MISC] (MADV_MERGEABLE): Likewise.
6608 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
6609 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
6610 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
6611 [__USE_MISC] (MADV_DONTDUMP): Likewise.
6612 [__USE_MISC] (MADV_DODUMP): Likewise.
6613 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
6614 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
6615
6616 [BZ #23735]
6617 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
6618 Define.
6619 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
6620 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
6621 Add test-nldbl-redirect.
6622 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
6623 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
6624 $(objpfx)libnldbl_nonshared.a.
6625
6626 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
6627
6628 * support/support.h (support_objdir_elf_ldso): New variable.
6629 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
6630 * support/Makefile (CFLAGS-support_paths.c): Add definition
6631 for OBJDIR_ELF_LDSO_PATH.
6632 * support/test-container.c (main): Search for the ld.so
6633 which is also used by the testsuite.
6634
6635 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
6636
6637 [BZ #20209]
6638 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
6639 should be "sap" rather than "sab".
6640 (day): Fix spelling of Sunday, should be "sapaat" rather than
6641 "sabaat".
6642
6643 2018-10-02 Joseph Myers <joseph@codesourcery.com>
6644
6645 * math/libm-test-fma.inc (fma_test_data): Add more tests.
6646
6647 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
6648
6649 [BZ #19444]
6650 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
6651 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
6652 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
6653
6654 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6655
6656 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
6657
6658 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
6659
6660 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
6661 Add -mrtm.
6662 (CFLAGS-elision-unlock.c): Likewise.
6663 (CFLAGS-elision-timed.c): Likewise.
6664 (CFLAGS-elision-trylock.c): Likewise.
6665 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
6666
6667 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6668
6669 [BZ #21037]
6670 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
6671 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
6672 new fd_to_filename interface.
6673 * libio/freopen64.c (freopen64): Likewise.
6674 * libio/tst-memstream.h: New file.
6675 * libio/tst-memstream4.c: Likewise.
6676 * libio/tst-wmemstream4.c: Likewise.
6677 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
6678 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
6679 and remove internal dynamic allocation.
6680
6681 2018-10-01 Joseph Myers <joseph@codesourcery.com>
6682
6683 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
6684 (MREMAP_MAYMOVE): Do not define here.
6685 [__USE_GNU] (MREMAP_FIXED): Likewise.
6686 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
6687 (MREMAP_MAYMOVE): Define here instead.
6688 [__USE_GNU] (MREMAP_FIXED): Likewise.
6689 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
6690 (MREMAP_MAYMOVE): Remove.
6691 [__USE_GNU] (MREMAP_FIXED): Likewise.
6692
6693 2018-09-28 Joseph Myers <joseph@codesourcery.com>
6694
6695 * math/fromfp.h: Do not include <math_private.h>.
6696 * math/s_cacosh_template.c: Likewise.
6697 * math/s_casin_template.c: Likewise.
6698 * math/s_casinh_template.c: Likewise.
6699 * math/s_ccos_template.c: Likewise.
6700 * math/s_cproj_template.c: Likewise.
6701 * math/s_fdim_template.c: Likewise.
6702 * math/s_fmaxmag_template.c: Likewise.
6703 * math/s_fminmag_template.c: Likewise.
6704 * math/s_iseqsig_template.c: Likewise.
6705 * math/s_ldexp_template.c: Likewise.
6706 * math/s_nextdown_template.c: Likewise.
6707 * math/w_log1p_template.c: Likewise.
6708 * math/w_scalbln_template.c: Likewise.
6709 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6710 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6711 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6712 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6713 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
6714 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
6715 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
6716 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
6717 * sysdeps/i386/fpu/s_atanl.c: Likewise.
6718 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
6719 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6720 * sysdeps/i386/fpu/s_fdim.c: Likewise.
6721 * sysdeps/i386/fpu/s_logbl.c: Likewise.
6722 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6723 * sysdeps/i386/fpu/s_significandl.c: Likewise.
6724 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
6725 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
6726 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6727 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6728 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6729 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6730 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6731 * sysdeps/ieee754/k_standardf.c: Likewise.
6732 * sysdeps/ieee754/k_standardl.c: Likewise.
6733 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6734 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
6735 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
6736 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
6737 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
6738 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
6739 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
6740 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6741 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6742 * sysdeps/ieee754/s_signgam.c: Likewise.
6743 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
6744 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
6745 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
6746 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6747 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6748 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6749 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6750 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6751 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6752 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6753 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6754 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6755 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6756 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6757 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6758 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6759 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6760 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6761 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6762 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6763 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6764 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6765 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6766 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6767 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6768 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6769 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6770 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6771 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6772 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6773 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6774 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6775 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6776 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6777 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6778 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6779 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
6780 <math_private.h>.
6781 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6782
6783 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
6784
6785 [BZ #23716]
6786 * sysdeps/i386/dl-cet.c: Removed.
6787 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
6788 prototype.
6789 (_dl_runtime_profile_shstk): Likewise.
6790 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
6791 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
6792
6793 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6794
6795 [BZ #23579]
6796 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
6797 do_test_with_invalid_iov): New tests.
6798 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
6799 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
6800 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
6801 errno is ENOSYS.
6802 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
6803 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
6804 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
6805
6806 2018-09-27 Joseph Myers <joseph@codesourcery.com>
6807
6808 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6809 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
6810 (MATH_REDIRECT_BINARY_ARGS): New macro.
6811 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6812 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
6813 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
6814 header inclusion.
6815 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
6816 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
6817 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
6818 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6819 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6820 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6821 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
6822 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
6823 Likewise.
6824 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
6825 Likewise.
6826 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
6827 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
6828 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
6829 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
6830 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
6831 Likewise.
6832 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
6833 Likewise.
6834 * sysdeps/generic/math_private_calls.h
6835 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
6836 Do not declare and define as an inline function.
6837 * math/divtc3.c (__divtc3): Use copysign functions instead of
6838 __copysign variants.
6839 * math/multc3.c (__multc3): Likewise.
6840 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
6841 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
6842 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
6843 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6844 Likewise.
6845 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
6846 (__ieee754_yn): Likewise.
6847 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
6848 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
6849 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
6850 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6851 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
6852 (__sin): Likewise.
6853 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
6854 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
6855 Likewise.
6856 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
6857 Likewise.
6858 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
6859 Likewise.
6860 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
6861 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6862 Likewise.
6863 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
6864 (__ieee754_ynf): Likewise.
6865 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
6866 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6867 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6868 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6869 Likewise.
6870 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
6871 (__ieee754_ynl): Likewise.
6872 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6873 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6874 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6875 Likewise.
6876 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
6877 (__ieee754_ynl): Likewise.
6878 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
6879 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6880 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6881 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6882 Likewise.
6883 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6884 (__ieee754_ynl)
6885 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
6886 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6887 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
6888 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6889 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6890
6891 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6892 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
6893 using MATH_REDIRECT.
6894 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
6895 header inclusion.
6896 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
6897 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6898 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6899 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
6900 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6901 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
6902 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6903 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
6904 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
6905 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
6906 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
6907 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6908 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6909 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6910 (round): Redirect to __round.
6911 (__roundl): Call round instead of __round.
6912 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
6913 Remove macro.
6914 [_ARCH_PWR5X] (__roundf): Likewise.
6915 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
6916 functions instead of __round variants.
6917 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6918 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6919 Likewise.
6920 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6921 Likewise.
6922 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6923 Likewise.
6924 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
6925 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
6926 __lroundl.
6927 (__ieee754_expl): Call roundl instead of __roundl.
6928
6929 2018-09-27 Andreas Schwab <schwab@suse.de>
6930
6931 [BZ #23717]
6932 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
6933 (do_test): Make st1 static.
6934
6935 2018-09-26 Andreas Schwab <schwab@suse.de>
6936
6937 [BZ #23707]
6938 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
6939 * elf/Makefile (tests): Add tst-unwind-ctor.
6940 (modules-names): Add tst-unwind-ctor-lib.
6941 ($(objpfx)tst-unwind-ctor): Depend on
6942 $(objpfx)tst-unwind-ctor-lib.so.
6943
6944 2018-09-26 Joseph Myers <joseph@codesourcery.com>
6945
6946 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
6947 file. Most contents moved from ....
6948 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
6949 and include <bits/mman-map-flags-generic.h>.
6950 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6951 (sysdep_headers): Add bits/mman-map-flags-generic.h.
6952 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
6953 <bits/mman-map-flags-generic.h>.
6954 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
6955 macros defined in <bits/mman-map-flags-generic.h>.
6956 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
6957 <bits/mman-map-flags-generic.h>.
6958 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
6959 defined in <bits/mman-map-flags-generic.h>.
6960
6961 2018-09-26 Andreas Schwab <schwab@suse.de>
6962
6963 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
6964 output.
6965
6966 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
6967 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6968 Fangrui Song <maskray@google.com>
6969
6970 [BZ #20480]
6971 * config.make.in (have-textrel_ifunc): New define.
6972 * configure.ac: Add check if linker supports textrel relocation with
6973 ifunc.
6974 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
6975 tst-ifunc-textrel.
6976 (CFLAGS-tst-ifunc-textrel.c): New rule.
6977 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
6978 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6979 * elf/tst-ifunc-textrel.c: New file.
6980
6981 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6982
6983 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6984 <bits/procfs-prregset.h>.
6985 (prgregset_t): Define using __prgregset_t.
6986 (prfpregset_t): Define using __prfpregset_t.
6987 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6988 (sysdep_headers): Add bits/procfs-prregset.h.
6989 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6990 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6991 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6992 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6993
6994 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6995 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6996 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6997 pr_uid and pr_gid.
6998 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6999 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
7000 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
7001 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
7002 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
7003 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
7004 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
7005 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
7006 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
7007 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
7008 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
7009 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
7010 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
7011 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
7012 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
7013 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
7014 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
7015 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
7016 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
7017 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
7018 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
7019 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
7020 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
7021 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
7022
7023 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
7024 AArch64 version. Include <bits/procfs.h>.
7025 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7026 (sysdep_headers): Add bits/procfs.h.
7027 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
7028 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
7029 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
7030 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
7031 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
7032 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
7033 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
7034 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
7035 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
7036 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
7037 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
7038 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
7039 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
7040 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
7041 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
7042 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
7043 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
7044
7045 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7046
7047 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
7048 Use libsupport.
7049
7050 2018-09-25 Arjun Shankar <arjun@redhat.com>
7051
7052 * iconv/gconv_int.h (__gconv_path_elem): Remove.
7053 (__gconv_max_path_elem_len): Likewise.
7054 (__gconv_nmodules): Likewise.
7055 (__gconv_get_path): Likewise.
7056 (path_elem): Move to ...
7057 * iconv/gconv_conf.c: ... here.
7058 (__gconv_get_path): Mark function static.
7059 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
7060 * iconv/gconv_open.c: ... here.
7061
7062 2018-09-24 Andreas Schwab <schwab@suse.de>
7063
7064 * scripts/haveversions.awk: New file.
7065 * Makerules ($(common-objpfx)Versions.def)
7066 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
7067 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
7068 Move rules ...
7069 * Makeconfig ($(common-objpfx)Versions.def)
7070 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
7071 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
7072 ... here.
7073 ($(common-objpfx)Versions.mk): New rule. Include it.
7074 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
7075 Emit error if build-obsolete-nsl = yes.
7076 * manual/install.texi (Configuring and compiling): Describe
7077 --enable-obsolete-nsl as unavaiable after version 2.28.
7078 * INSTALL: Regenerate.
7079
7080 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7081
7082 * NEWS: Add note about new TLE support on powerpc64le.
7083 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
7084 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
7085 __ununsed1.
7086 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
7087 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
7088 * sysdeps/powerpc/powerpc32/sysdep.h,
7089 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
7090 ABORT_TRANSACTION): Remove macros.
7091 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
7092 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
7093 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
7094 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
7095 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
7096 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
7097 usage.
7098 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
7099
7100 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
7101
7102 [BZ #10425]
7103 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
7104 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
7105 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
7106 which is the same as in it_IT.
7107 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
7108 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
7109
7110 2018-09-20 Joseph Myers <joseph@codesourcery.com>
7111
7112 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7113 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
7114 using MATH_REDIRECT.
7115 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
7116 header inclusion.
7117 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
7118 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
7119 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
7120 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
7121 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
7122 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
7123 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
7124 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
7125 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
7126 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
7127 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7128 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7129 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
7130 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
7131 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
7132 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
7133 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
7134 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7135 (ceil): Redirect to __ceil.
7136 (floor): Redirect to __floor.
7137 (trunc): Redirect to __trunc.
7138 (__truncl): Call trunc instead of __trunc.
7139 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
7140 Remove macro.
7141 [_ARCH_PWR5X] (__truncf): Likewise.
7142 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
7143 trunc functions instead of __trunc variants.
7144 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7145 Likewise.
7146 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7147 Likewise.
7148 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7149 Likewise.
7150 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7151 Likewise.
7152
7153 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
7154 [__i586__ || __pentium__].
7155 [__i486__]: Handle explicitly.
7156 (HAS_CPUID): Define to 1 if above macros are undefined.
7157 (HAS_I586): Likewise.
7158 (HAS_I686): Likewise.
7159
7160 2018-09-20 Florian Weimer <fweimer@redhat.com>
7161
7162 * misc/tst-gethostid.c: New file.
7163 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
7164 (tst-gethostid): Link with -ldl.
7165
7166 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
7167
7168 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
7169 value from gethostbyname_r.
7170
7171 2018-09-19 Carlos O'Donell <carlos@redhat.com>
7172
7173 * stdlib/tst-setcontext9.c (f1): Rename to...
7174 (f1a): ... this.
7175 (f1b): New function implementing lower half of f1 in alternate stack.
7176
7177 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
7178
7179 Fix mktime localtime offset confusion
7180 [BZ #23603]
7181 * include/time.h (__mktime_internal): The localtime offset is now
7182 of type long int instead of time_t. This is the longstanding type
7183 in glibc, and it is more than enough to represent difference
7184 between localtime and gmtime even if it is 32 bits and time_t is
7185 64. Changing it now will let us avoid an unnecessary change when
7186 time_t is widened to 64 bits on 32-bit platforms.
7187 * time/mktime-internal.h (mktime_offset_t): Now long int.
7188
7189 Merge mktime, timegm from upstream Gnulib
7190 [BZ #23603][BZ #16346]
7191 This fixes some obscure problems with integer overflow.
7192 Although it looks scary, it is almost all a byte-for-byte copy
7193 from Gnulib, and the Gnulib code has been tested reasonably well.
7194 * include/intprops.h: New file, copied from Gnulib.
7195 * include/verify.h, time/mktime-internal.h:
7196 New tiny files, simplified from Gnulib.
7197 * time/mktime.c: Copy from Gnulib. This has the following changes:
7198 Do not include config.h if DEBUG_MKTIME is nonzero.
7199 Include stdbool.h, intprops.h, verify.h.
7200 Include string.h only if needed.
7201 Include stdlib.h on MS-Windows.
7202 Include mktime-internal.h.
7203 (DEBUG_MKTIME): Default to 0, and simplify later uses.
7204 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
7205 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
7206 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
7207 simplify later conditionals; default the others to zero. Use
7208 these conditionals to express only the code needed on the current
7209 platform. In uses of these conditionals, explicitly spell out how
7210 _LIBC affects things, so it’s easier to review from a glibc
7211 viewpoint.
7212 (WRAPV): Remove; no longer needed now that we have
7213 systematic overflow checking.
7214 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
7215 compartmentalize tzset issues. Move system-dependent tzsettish
7216 code here from mktime.
7217 (verify): Remove; now done by verify.h. All uses changed.
7218 (long_int): Use a more-conservative definition, to avoid
7219 integer overflow.
7220 (SHR): Remove, replacing with ...
7221 (shr): New function, which means we needn’t worry about side
7222 effects in args, and conversion analysis is simpler.
7223 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
7224 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
7225 (time_t_avg, time_t_add_ok): Remove.
7226 (mktime_min, mktime_max): New constants.
7227 (leapyear, isdst_differ): Use bool for booleans.
7228 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
7229 Use long_int, not time_t, for mktime differences.
7230 (long_int_avg): New function, replacing time_t_avg.
7231 INT_ADD_WRAPV replaces time_t_add_ok.
7232 (guess_time_tm): 6th arg is now long_int, not time_t const *.
7233 All uses changed.
7234 (convert_time): New function.
7235 (ranged_convert): Use it.
7236 (__mktime_internal): Last arg now points to mktime_offset_t, not
7237 time_t. All uses changed. This is a no-op on glibc, where
7238 mktime_offset_t is always time_t. Use int, not time_t, for UTC
7239 offset guess. Directly check for integer overflow instead of
7240 using a heuristic that works only 99.9...% of the time.
7241 Access *OFFSET only once, to avoid an unlikely race if the
7242 compiler delays a load and if this cascades into a signed integer
7243 overflow.
7244 (mktime): Move tzsettish code to my_tzset, and move
7245 localtime_offset to within mktime so that it doesn’t
7246 need a separate ifdef.
7247 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
7248 instead of localtime.
7249 * time/timegm.c: Copy from Gnulib. This has the following changes:
7250 Include mktime-internal.h.
7251 [!_LIBC]: Include config.h and time.h. Do not include
7252 timegm.h or time_r.h. Make __mktime_internal a macro,
7253 and include mktime-internal.h to get its declaration.
7254 (timegm): Temporary is now mktime_offset_t, not time_t.
7255 This affects only Gnulib.
7256
7257 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
7258
7259 [BZ #23637]
7260 * string/test-strstr.c (pr23637): New function.
7261 (test_main): Add tests with longer needles.
7262 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
7263 * string/strstr.c (AVAILABLE): Likewise.
7264
7265 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7266
7267 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
7268
7269 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7270
7271 * NEWS: Mention pow improvements.
7272 * math/Makefile (type-double-routines): Add e_pow_log_data.
7273 * sysdeps/generic/math_private.h (__exp1): Remove.
7274 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
7275 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
7276 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
7277 contraction.
7278 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
7279 (exp_inline): Remove.
7280 (__ieee754_exp): Only single double input is handled.
7281 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
7282 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
7283 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
7284 (__pow_log_data): Define.
7285 * sysdeps/ieee754/dbl-64/upow.h: Remove.
7286 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
7287 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
7288 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
7289 contraction.
7290 (CFLAGS-e_pow-fma4.c): Likewise.
7291
7292 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
7293
7294 Simplify tzfile fstat failure code
7295 [BZ #21716]
7296 * time/tzfile.c (__tzfile_read): Simplify slightly.
7297
7298 Fix tzfile low-memory assertion failure
7299 [BZ #21716]
7300 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
7301 when registering time zone abbreviations.
7302
7303 2018-09-18 Joseph Myers <joseph@codesourcery.com>
7304
7305 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
7306 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
7307 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
7308 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
7309 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
7310 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
7311 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
7312 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7313 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
7314
7315 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
7316 __ceil.
7317 (__ceill): Call ceil instead of __ceil.
7318 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
7319 __floor.
7320 (__floorl): Call floor instead of __floor.
7321
7322 2018-09-17 Joseph Myers <joseph@codesourcery.com>
7323
7324 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7325 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
7326 using MATH_REDIRECT.
7327 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
7328 header inclusion.
7329 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
7330 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
7331 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7332 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
7333 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7334 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7335 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
7336 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
7337 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
7338 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
7339 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
7340 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
7341 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7342 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7343 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
7344 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
7345 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
7346 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
7347 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
7348 Remove macro.
7349 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
7350 functions instead of __ceil variants.
7351 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7352 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
7353 Likewise.
7354 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
7355 Likewise.
7356 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7357 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
7358 Likewise.
7359 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7360 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7361
7362 [BZ #21286]
7363 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
7364 constant.
7365 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
7366 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
7367 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
7368 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
7369 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
7370 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
7371 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
7372 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
7373 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
7374 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
7375 (ILL_BADIADDR): Remove constant.
7376 (TRAP_BRANCH): Likewise.
7377 (TRAP_HWBKPT): Likewise.
7378
7379 2018-09-14 Joseph Myers <joseph@codesourcery.com>
7380
7381 [BZ #23656]
7382 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
7383 Remove [_MIPS_SIM = _ABIN32] conditional case.
7384 (struct elf_prpsinfo): Likewise.
7385
7386 [BZ #23649]
7387 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
7388 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
7389 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
7390 Likewise.
7391 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
7392 elf_prpsinfo): Likewise.
7393 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
7394 elf_prpsinfo): Likewise.
7395 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
7396 Likewise.
7397
7398 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7399 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
7400 using MATH_REDIRECT.
7401 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
7402 header inclusion.
7403 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
7404 * sysdeps/alpha/fpu/s_rint.c: Likewise.
7405 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7406 * sysdeps/i386/fpu/s_rintl.c: Likewise.
7407 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
7408 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
7409 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
7410 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
7411 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7412 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7413 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
7414 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
7415 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
7416 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
7417 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
7418 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
7419 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7420 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
7421 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
7422 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
7423 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
7424 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
7425 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
7426 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
7427 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
7428 * sysdeps/x86_64/fpu/math_private.h: Remove file.
7429 * math/e_scalb.c (invalid_fn): Use rint functions instead of
7430 __rint variants.
7431 * math/e_scalbf.c (invalid_fn): Likewise.
7432 * math/e_scalbl.c (invalid_fn): Likewise.
7433 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7434 Likewise.
7435 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7436 Likewise.
7437 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7438 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
7439 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7440 Likewise.
7441 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7442 Likewise.
7443 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7444 Likewise.
7445 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
7446 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
7447
7448 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7449 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
7450 New macro.
7451 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7452 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
7453 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7454 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
7455 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7456 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
7457 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7458 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
7459 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7460 && !NO_MATH_REDIRECT] (floor): Likewise.
7461 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
7462 header inclusion.
7463 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
7464 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7465 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7466 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
7467 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7468 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7469 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7470 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
7471 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
7472 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
7473 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
7474 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
7475 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7476 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7477 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
7478 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
7479 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
7480 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
7481 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
7482 Remove macro.
7483 [_ARCH_PWR5X] (__floorf): Likewise.
7484 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
7485 inline function.
7486 [__SSE4_1__] (__floorf): Likewise.
7487 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
7488 instead of __floor variants.
7489 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
7490 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
7491 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
7492 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
7493 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
7494 * math/w_tgamma_compat.c (__tgamma): Likewise.
7495 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
7496 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
7497 * math/w_tgammal_compat.c (__tgammal): Likewise.
7498 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
7499 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
7500 Likewise.
7501 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
7502 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
7503 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
7504 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7505 Likewise.
7506 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7507 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
7508 Likewise.
7509 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
7510 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
7511 Likewise.
7512 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7513 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
7514 Likewise.
7515 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
7516 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7517 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
7518 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
7519 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7520 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7521
7522 2018-09-12 Joseph Myers <joseph@codesourcery.com>
7523
7524 * elf/Makefile (modules-names-tests): New variable.
7525
7526 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7527
7528 * NEWS: Mention log2 improvements.
7529 * math/Makefile (type-double-routines): Add e_log2_data.
7530 * sysdeps/i386/fpu/e_log2_data.c: New file.
7531 * sysdeps/ia64/fpu/e_log2_data.c: New file.
7532 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
7533 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
7534 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
7535 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
7536 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
7537
7538 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7539
7540 * NEWS: Mention log improvement.
7541 * math/Makefile (type-double-routines): Add e_log_data.
7542 * sysdeps/i386/fpu/e_log_data.c: New file.
7543 * sysdeps/ia64/fpu/e_log_data.c: New file.
7544 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
7545 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
7546 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
7547 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
7548 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
7549 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
7550
7551 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
7552 Xuepeng Guo <xuepeng.guo@intel.com>
7553
7554 [BZ #23606]
7555 * sysdeps/i386/start.S: Include <sysdep.h>
7556 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
7557 enabled. Add cfi_undefined (eip).
7558
7559 2018-09-11 Joseph Myers <joseph@codesourcery.com>
7560
7561 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
7562 (MOVQ): Likewise.
7563 (EXTRACT_WORDS64): Likewise.
7564 (INSERT_WORDS64): Likewise.
7565 (GET_FLOAT_WORD): Likewise.
7566 (SET_FLOAT_WORD): Likewise.
7567
7568 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
7569 argument.
7570 (Config.build_gcc): Use --disable-libsanitizer for first GCC
7571 build, but not for second build if --full-gcc. Use
7572 --enable-languages=all for second build if --full-gcc.
7573 (get_parser): Add --full-gcc option.
7574 (main): Update call to Context.
7575
7576 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
7577
7578 [BZ #10797]
7579 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
7580 Single Quotation Mark).
7581 (thousands_sep): Likewise.
7582 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
7583 * localedata/locales/it_IT (thousands_sep): Use ".".
7584 (grouping): Use "3;3".
7585
7586 2018-09-10 Joseph Myers <joseph@codesourcery.com>
7587
7588 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7589 x86_64 and i686 configs using --enable-obsolete-rpc
7590 --enable-obsolete-nsl.
7591
7592 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7593
7594 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7595
7596 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7597
7598 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
7599 Increment size of new_argv by one.
7600
7601 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
7602
7603 [BZ #17426]
7604 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
7605 * localedata/locales/ar_IN (d_fmt): Likewise.
7606 * localedata/locales/bhb_IN (d_fmt): Likewise.
7607 * localedata/locales/bho_IN (d_fmt): Likewise.
7608 * localedata/locales/bn_BD (d_fmt): Likewise.
7609 * localedata/locales/bn_IN (d_fmt): Likewise.
7610 * localedata/locales/doi_IN (d_fmt): Likewise.
7611 * localedata/locales/gu_IN (d_fmt): Likewise.
7612 * localedata/locales/hi_IN (d_fmt): Likewise.
7613 * localedata/locales/hne_IN (d_fmt): Likewise.
7614 * localedata/locales/kn_IN (d_fmt): Likewise.
7615 * localedata/locales/mag_IN (d_fmt): Likewise.
7616 * localedata/locales/mai_IN (d_fmt): Likewise.
7617 * localedata/locales/mjw_IN (d_fmt): Likewise.
7618 * localedata/locales/ml_IN (d_fmt): Likewise.
7619 * localedata/locales/mni_IN (d_fmt): Likewise.
7620 * localedata/locales/mr_IN (d_fmt): Likewise.
7621 * localedata/locales/pa_IN (d_fmt): Likewise.
7622 * localedata/locales/raj_IN (d_fmt): Likewise.
7623 * localedata/locales/sat_IN (d_fmt): Likewise.
7624 * localedata/locales/sd_IN (d_fmt): Likewise.
7625 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
7626 * localedata/locales/ta_IN (d_fmt): Likewise.
7627 * localedata/locales/ta_LK (d_fmt): Likewise.
7628 * localedata/locales/tcy_IN (d_fmt): Likewise.
7629 * localedata/locales/ur_IN (d_fmt): Likewise.
7630
7631 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
7632 * localedata/locales/ks_IN (d_fmt): Likewise.
7633 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
7634
7635 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
7636 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
7637 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
7638 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
7639
7640 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
7641
7642 * NEWS: Mention exp and exp2 improvements.
7643 * math/Makefile (libm-support): Remove t_exp.
7644 (type-double-routines): Add math_err and e_exp_data.
7645 * sysdeps/aarch64/libm-test-ulps: Update.
7646 * sysdeps/arm/libm-test-ulps: Update.
7647 * sysdeps/i386/fpu/e_exp_data.c: New file.
7648 * sysdeps/i386/fpu/math_err.c: New file.
7649 * sysdeps/i386/fpu/t_exp.c: Remove.
7650 * sysdeps/ia64/fpu/e_exp_data.c: New file.
7651 * sysdeps/ia64/fpu/math_err.c: New file.
7652 * sysdeps/ia64/fpu/t_exp.c: Remove.
7653 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
7654 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
7655 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
7656 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
7657 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
7658 * sysdeps/ieee754/dbl-64/math_config.h: New file.
7659 * sysdeps/ieee754/dbl-64/math_err.c: New file.
7660 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
7661 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
7662 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
7663 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
7664 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
7665 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
7666 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
7667 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7668 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7669
7670 2018-09-05 Joseph Myers <joseph@codesourcery.com>
7671
7672 * sysdeps/alpha/fpu/math_private.h: Remove.
7673
7674 * sysdeps/generic/math_private.h
7675 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
7676 Move this inline function ....
7677 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
7678 * include/math.h [!_ISOMAC]: To here....
7679
7680 2018-09-04 Joseph Myers <joseph@codesourcery.com>
7681
7682 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
7683 code ....
7684 [!FE_HAVE_ROUNDING_MODES]: And this code ....
7685 * include/fenv.h [!_ISOMAC]: ... to here.
7686 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
7687 (feraiseexcept): Likewise.
7688 * math/fromfp.h: Do not include <fenv_private.h>.
7689 * math/s_cexp_template.c: Likewise.
7690 * math/s_csin_template.c: Likewise.
7691 * math/s_csinh_template.c: Likewise.
7692 * math/s_ctan_template.c: Likewise.
7693 * math/s_ctanh_template.c: Likewise.
7694 * math/s_iseqsig_template.c: Likewise.
7695 * math/w_acos_compat.c: Likewise.
7696 * math/w_acosf_compat.c: Likewise.
7697 * math/w_acosl_compat.c: Likewise.
7698 * math/w_asin_compat.c: Likewise.
7699 * math/w_asinf_compat.c: Likewise.
7700 * math/w_asinl_compat.c: Likewise.
7701 * math/w_j0_compat.c: Likewise.
7702 * math/w_j0f_compat.c: Likewise.
7703 * math/w_j0l_compat.c: Likewise.
7704 * math/w_j1_compat.c: Likewise.
7705 * math/w_j1f_compat.c: Likewise.
7706 * math/w_j1l_compat.c: Likewise.
7707 * math/w_jn_compat.c: Likewise.
7708 * math/w_jnf_compat.c: Likewise.
7709 * math/w_log10_compat.c: Likewise.
7710 * math/w_log10f_compat.c: Likewise.
7711 * math/w_log10l_compat.c: Likewise.
7712 * math/w_log2_compat.c: Likewise.
7713 * math/w_log2f_compat.c: Likewise.
7714 * math/w_log2l_compat.c: Likewise.
7715 * math/w_log_compat.c: Likewise.
7716 * math/w_logf_compat.c: Likewise.
7717 * math/w_logl_compat.c: Likewise.
7718 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7719 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7720 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7721 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7722 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7723 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7724 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7725 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7726 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7727 * sysdeps/ieee754/k_standardl.c: Likewise.
7728 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7729 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7730 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7731 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7732 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7733 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7734 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7735 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7736 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7737 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7738 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7739 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7740 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7741 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7742 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7743 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7744 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7745 * math/w_ilogb_template.c: Include <fenv.h> instead of
7746 <fenv_private.h>.
7747 * math/w_llogb_template.c: Likewise.
7748 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7749 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7750
7751 2018-09-03 Joseph Myers <joseph@codesourcery.com>
7752
7753 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
7754 * math/fromfp.h: Include <fenv_private.h>.
7755 * math/math-narrow.h: Likewise.
7756 * math/s_cexp_template.c: Likewise.
7757 * math/s_csin_template.c: Likewise.
7758 * math/s_csinh_template.c: Likewise.
7759 * math/s_ctan_template.c: Likewise.
7760 * math/s_ctanh_template.c: Likewise.
7761 * math/s_iseqsig_template.c: Likewise.
7762 * math/w_acos_compat.c: Likewise.
7763 * math/w_acosf_compat.c: Likewise.
7764 * math/w_acosl_compat.c: Likewise.
7765 * math/w_asin_compat.c: Likewise.
7766 * math/w_asinf_compat.c: Likewise.
7767 * math/w_asinl_compat.c: Likewise.
7768 * math/w_ilogb_template.c: Likewise.
7769 * math/w_j0_compat.c: Likewise.
7770 * math/w_j0f_compat.c: Likewise.
7771 * math/w_j0l_compat.c: Likewise.
7772 * math/w_j1_compat.c: Likewise.
7773 * math/w_j1f_compat.c: Likewise.
7774 * math/w_j1l_compat.c: Likewise.
7775 * math/w_jn_compat.c: Likewise.
7776 * math/w_jnf_compat.c: Likewise.
7777 * math/w_llogb_template.c: Likewise.
7778 * math/w_log10_compat.c: Likewise.
7779 * math/w_log10f_compat.c: Likewise.
7780 * math/w_log10l_compat.c: Likewise.
7781 * math/w_log2_compat.c: Likewise.
7782 * math/w_log2f_compat.c: Likewise.
7783 * math/w_log2l_compat.c: Likewise.
7784 * math/w_log_compat.c: Likewise.
7785 * math/w_logf_compat.c: Likewise.
7786 * math/w_logl_compat.c: Likewise.
7787 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
7788 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
7789 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
7790 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
7791 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7792 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7793 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7794 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7795 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7796 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7797 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7798 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7799 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
7800 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
7801 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7802 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
7803 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7804 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7805 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7806 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7807 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7808 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7809 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7810 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
7811 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7812 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7813 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
7814 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
7815 * sysdeps/ieee754/float128/float128_private.h: Likewise.
7816 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
7817 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7818 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7819 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
7820 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7821 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7822 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7823 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7824 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7825 * sysdeps/ieee754/k_standardl.c: Likewise.
7826 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7827 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
7828 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7829 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7830 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
7831 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
7832 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7833 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7834 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7835 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7836 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7837 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7838 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
7839 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7840 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
7841 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
7842 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7843 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
7844 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
7845 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7846 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7847 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7848 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7849 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7850 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
7851 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
7852 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7853 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
7854 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
7855 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7856 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7857 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7858 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7859 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7860 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7861 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
7862 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7863 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7864 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7865 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7866 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
7867 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7868 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
7869 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7870 * sysdeps/riscv/rvd/s_finite.c: Likewise.
7871 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
7872 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
7873 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
7874 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
7875 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
7876 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
7877 * sysdeps/riscv/rvf/fegetround.c: Likewise.
7878 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
7879 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
7880 * sysdeps/riscv/rvf/fesetround.c: Likewise.
7881 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
7882 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
7883 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
7884 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7885 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
7886 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7887 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
7888 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
7889 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
7890 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
7891 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
7892 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
7893 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
7894 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
7895 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7896 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7897
7898 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7899
7900 [BZ #20271]
7901 * include/stdio.h (__libc_fatal): Mention newline in comment.
7902 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
7903 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
7904 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7905 * nss/nsswitch.c (__nss_next2): Likewise.
7906 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
7907 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
7908 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
7909 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
7910 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
7911 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
7912 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
7913 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
7914 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
7915 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
7916 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
7917 * sysdeps/unix/sysv/linux/netlink_assert_response.c
7918 (__netlink_assert_response): Likewise.
7919
7920 2018-08-31 Joseph Myers <joseph@codesourcery.com>
7921
7922 * conform/glibcconform.py: New file.
7923 * conform/list-header-symbols.py: Likewise.
7924 * conform/list-header-symbols.pl: Remove.
7925 * conform/Makefile (tests-special): Only add linknamespace tests
7926 if [PYTHON].
7927 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
7928
7929 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
7930
7931 [BZ #23597]
7932 * support/Makefile (libsupport-routines): Add
7933 support_copy_file_range and xcopy_file_range.
7934 * support/support.h: Include <sys/types.h>.
7935 (support_copy_file_range): New prototype.
7936 * support/support_copy_file_range.c: New file. Copied and
7937 modified from io/copy_file_range-compat.c.
7938 * support/test-container.c (copy_one_file): Call xcopy_file_rang
7939 instead of copy_file_range.
7940 * support/xcopy_file_range.c: New file.
7941 * support/xunistd.h (xcopy_file_range): New prototype.
7942
7943 2018-08-30 Carlos O'Donell <carlos@redhat.com>
7944
7945 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
7946 xpthread_create and xpthread_join.
7947
7948 2018-08-30 Florian Weimer <fweimer@redhat.com>
7949
7950 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
7951
7952 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
7953
7954 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
7955 if malloc fails.
7956
7957 2018-08-29 Joseph Myers <joseph@codesourcery.com>
7958
7959 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
7960 and minus_oflow as non-finite.
7961
7962 2018-08-28 Joseph Myers <joseph@codesourcery.com>
7963
7964 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
7965 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
7966 moved to fenv_private.h except for ...
7967 (TOINT_INTRINSICS): Kept in math_private.h.
7968 (roundtoint): Likewise.
7969 (converttoint): Likewise.
7970 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
7971 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7972 * sysdeps/arm/math_private.h: Remove.
7973 * sysdeps/generic/fenv_private.h: New file. Contents moved from
7974 ....
7975 * sysdeps/generic/math_private.h: ... this file. Include
7976 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
7977 Include <fenv_private.h>. Remove functions and macros moved to
7978 fenv_private.h.
7979 * sysdeps/i386/fpu/math_private.h: Remove.
7980 * sysdeps/mips/math_private.h: Move to ....
7981 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7982 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7983 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7984 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7985 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7986 * sysdeps/powerpc/fpu/math_private.h: Do not include
7987 <fenv_private.h>.
7988 * sysdeps/riscv/rvf/math_private.h: Move to ....
7989 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7990 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7991 <fenv_private.h>.
7992 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7993 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7994 * sysdeps/sparc/fpu/math_private.h: Remove.
7995 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7996 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7997 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7998 <fenv_private.h>.
7999 * sysdeps/x86_64/fpu/math_private.h: Do not include
8000 <sysdeps/i386/fpu/fenv_private.h>.
8001
8002 2018-08-28 Florian Weimer <fweimer@redhat.com>
8003
8004 [BZ #23578]
8005 * posix/tst-regcomp-truncated.c: New file.
8006 * posix/Makefile (tests): Add it.
8007 (tst-regcomp-truncated.out): Depend on generated locales.
8008
8009 2018-08-28 Florian Weimer <fweimer@redhat.com>
8010
8011 * support/test-container.c (main): Treat unshare failure with
8012 EPERM as an unsupported test.
8013
8014 2018-08-28 Florian Weimer <fweimer@redhat.com>
8015
8016 [BZ #23520]
8017 nscd: Fix use-after-free in addgetnetgrentX and its callers.
8018 * nscd/netgroupcache.c
8019 (addgetnetgrentX): Add tofreep parameter. Do not free
8020 heap-allocated buffer.
8021 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
8022 (addgetnetgrentX_ignore): New function.
8023 (addgetnetgrent): Call it.
8024 (readdgetnetgrent): Likewise.
8025
8026 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8027
8028 * string/memmem.c: Use memcmp for first match.
8029
8030 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
8031
8032 [BZ #17426]
8033 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
8034
8035 2018-08-27 DJ Delorie <dj@redhat.com>
8036
8037 * support/Makefile (others): Don't list programs explicitly as a
8038 dependency of "others".
8039
8040 2018-08-27 Joseph Myers <joseph@codesourcery.com>
8041
8042 * sysdeps/generic/math-tests-trap-force.h: New file.
8043 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
8044 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
8045 * sysdeps/powerpc/math-tests.h: Remove file.
8046 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
8047
8048 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
8049 Torvald Riegel <triegel@redhat.com>
8050
8051 [BZ #23538]
8052 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
8053 Update r to include the set wake-request flag if waiters are
8054 remaining after spinning.
8055
8056 2018-08-27 Joseph Myers <joseph@codesourcery.com>
8057
8058 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
8059
8060 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
8061
8062 [BZ #23578]
8063 regex: fix uninitialized memory access
8064 I introduced this bug into gnulib in commit
8065 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
8066 eventually it was merged into glibc. The bug was found by
8067 project-repo <bugs@feusi.co> and reported here:
8068 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
8069 Diagnosis and draft fix reported by Assaf Gordon here:
8070 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
8071 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
8072 * posix/regex_internal.c (build_wcs_upper_buffer):
8073 Fix bug when mbrtowc returns 0.
8074
8075 2018-08-24 Carlos O'Donell <carlos@redhat.com>
8076
8077 * po/be.po: Update translation.
8078
8079 2018-08-24 DJ Delorie <dj@delorie.com>
8080
8081 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
8082 $(libunwind).
8083
8084 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
8085
8086 [BZ #23400]
8087 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
8088 create temporary files in source tree.
8089
8090 2018-08-24 Joseph Myers <joseph@codesourcery.com>
8091
8092 * sysdeps/generic/math-tests-trap.h: New file.
8093 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
8094 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
8095 * sysdeps/aarch64/math-tests.h: Remove file.
8096 * sysdeps/arm/math-tests.h: Likewise.
8097 * sysdeps/riscv/math-tests.h: Likewise.
8098 * sysdeps/aarch64/math-tests-trap.h: New file.
8099 * sysdeps/arm/math-tests-trap.h: Likewise.
8100 * sysdeps/riscv/math-tests-trap.h: Likewise.
8101
8102 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
8103
8104 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
8105 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
8106 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
8107 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
8108 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
8109 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
8110 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
8111 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
8112 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
8113 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
8114 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
8115 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8116 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
8117 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
8118 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
8119 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
8120 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
8121 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
8122
8123 2018-08-23 Joseph Myers <joseph@codesourcery.com>
8124
8125 * sysdeps/generic/math-tests-exceptions.h: New file.
8126 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
8127 (EXCEPTION_TESTS_float): Do not define here.
8128 (EXCEPTION_TESTS_double): Likewise.
8129 (EXCEPTION_TESTS_long_double): Likewise.
8130 (EXCEPTION_TESTS_float128): Likewise.
8131 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
8132 Likewise.
8133 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
8134 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
8135 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
8136 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
8137 * sysdeps/mips/math-tests.h: Likewise.
8138 * sysdeps/nios2/math-tests.h: Likewise.
8139 * sysdeps/riscv/math-tests.h [!__riscv_flen]
8140 (EXCEPTION_TESTS_float): Do not define here.
8141 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
8142 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
8143 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
8144
8145 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
8146
8147 * NEWS: Move optimized sinf entry to 2.29.
8148
8149 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
8150
8151 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
8152
8153 2018-08-22 DJ Delorie <dj@redhat.com>
8154
8155 * Makefile (testroot.pristine): New rules to initialize the
8156 test-in-container "testroot".
8157 * Makerules (all-testsuite): Add tests-container.
8158 * Rules (tests-expected): Add tests-container.
8159 (binaries-all-tests): Likewise.
8160 (tests-container): New, run these tests in the testroot container.
8161 * support/Makefile (others): Add *-container, support_paths.c,
8162 xmkdirp, and links-dso-program.
8163 * support/links-dso-program-c.c: New.
8164 * support/links-dso-program.cc: New.
8165 * support/test-container.c: New.
8166 * support/shell-container.c: New.
8167 * support/echo-container.c: New.
8168 * support/true-container.c: New.
8169 * support/xmkdirp.c: New.
8170 * support/xsymlink.c: New.
8171 * support/support_paths.c: New.
8172 * support/support.h: Add support paths prototypes.
8173 * support/xunistd.h: Add xmkdirp () and xsymlink ().
8174
8175 * nss/tst-nss-test3.c: Convert to test-in-container.
8176 * nss/tst-nss-test3.root/: New.
8177
8178 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
8179
8180 regex: port Gnulib code to z/OS POSIX environment
8181 Problem reported by Arnold Robbins in:
8182 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
8183 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
8184 Undef.
8185
8186 2018-08-22 Joseph Myers <joseph@codesourcery.com>
8187
8188 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
8189 (ROUNDING_TESTS_double): Remove.
8190 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
8191 (ROUNDING_TESTS_double): Remove.
8192 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
8193 (ROUNDING_TESTS_double): Remove.
8194 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
8195 (ROUNDING_TESTS_float): Remove.
8196 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
8197 (ROUNDING_TESTS_float): Remove.
8198 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
8199 (ROUNDING_TESTS_float): Remove.
8200 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
8201 !TEST_MATHVEC here.
8202 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
8203 (IF_ROUND_INIT_FE_UPWARD): Likewise.
8204
8205 * sysdeps/generic/math-tests-rounding.h: New file.
8206 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
8207 (ROUNDING_TESTS_float): Do not define here.
8208 (ROUNDING_TESTS_double): Likewise.
8209 (ROUNDING_TESTS_long_double): Likewise.
8210 (ROUNDING_TESTS_float128): Likewise.
8211 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
8212 (ROUNDING_TESTS_double): Undefine before defining.
8213 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
8214 (ROUNDING_TESTS_double): Undefine before defining.
8215 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
8216 (ROUNDING_TESTS_double): Undefine before defining.
8217 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
8218 (ROUNDING_TESTS_float): Undefine before defining.
8219 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
8220 (ROUNDING_TESTS_float): Undefine before defining.
8221 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
8222 (ROUNDING_TESTS_float): Undefine before defining.
8223 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
8224 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
8225 not define here.
8226 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
8227 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
8228 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
8229 * sysdeps/riscv/math-tests.h [!__riscv_flen]
8230 (ROUNDING_TESTS_float): Do not define here.
8231 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
8232 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
8233 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
8234 (ROUNDING_TESTS_float): Likewise.
8235 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
8236 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
8237 * sysdeps/mips/math-tests.h [__mips_soft_float]
8238 (ROUNDING_TESTS_float): Likewise.
8239 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
8240 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
8241 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
8242 (ROUNDING_TESTS_double): Likewise.
8243 (ROUNDING_TESTS_long_double): Likewise.
8244
8245 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
8246
8247 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
8248 (PF_XDP): New macro.
8249 (AF_XDP): New macro.
8250 (SOL_XDP): New macro.
8251
8252 2018-08-21 Joseph Myers <joseph@codesourcery.com>
8253
8254 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
8255 (TCP_INQ): Likewise.
8256 (TCP_CM_INQ): Likewise.
8257 (TCP_REPAIR_ON): Likewise.
8258 (TCP_REPAIR_OFF): Likewise.
8259 (TCP_REPAIR_OFF_NO_WP): Likewise.
8260 (struct tcp_zerocopy_receive): New type.
8261
8262 2018-08-21 Florian Weimer <fweimer@redhat.com>
8263
8264 * support/support.h (support_descriptor_supports_holes): Declare.
8265 * support/Makefile (libsupport-routines): Add
8266 support_descriptor_supports_holes.
8267 * support/support_descriptor_supports_holes.c: New file.
8268 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
8269 and stop testing if holes are not supported.
8270 * io/test-lfs.c (do_prepare): Likewise.
8271 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
8272 Likewise.
8273 * timezone/tst-tzset.c (create_tz_file): Likewise.
8274 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
8275 variable.
8276 (do_prepare): Set it.
8277 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
8278
8279 2018-08-21 Florian Weimer <fweimer@redhat.com>
8280
8281 [BZ #17248]
8282 * Makeconfig (+cflags): Do not sort (and deduplicate).
8283
8284 2018-08-21 Florian Weimer <fweimer@redhat.com>
8285
8286 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
8287 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
8288
8289 2018-08-20 Florian Weimer <fweimer@redhat.com>
8290
8291 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
8292 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
8293
8294 2018-08-20 Joseph Myers <joseph@codesourcery.com>
8295
8296 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
8297 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
8298 and ssi_arch members.
8299
8300 * elf/elf.c (NT_VMCOREDD): New macro.
8301 (AT_MINSIGSTKSZ): Likewise.
8302
8303 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8304
8305 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
8306 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
8307 s_cosf-ppc64 and s_cosf-power8.
8308 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
8309 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
8310 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
8311 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
8312 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
8313 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
8314 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
8315 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
8316 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
8317 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
8318 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
8319 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
8320
8321 2018-08-17 Florian Weimer <fweimer@redhat.com>
8322
8323 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8324
8325 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
8326
8327 * malloc/malloc.c (_int_malloc): Additional binning code checks.
8328
8329 2018-08-16 Florian Weimer <fweimer@redhat.com>
8330
8331 * configure.ac: Add --with-nonshared-cflags option.
8332 * config.make.in (extra-nonshared-cflags): Set variable.
8333 * Makeconfig (CFLAGS-.oS): Use it.
8334 * manual/install.texi (Configuring and compiling): Document
8335 --with-nonshared-cflags.
8336 * configure: Regenerate.
8337 * INSTALL: Likewise.
8338
8339 2018-08-16 Florian Weimer <fweimer@redhat.com>
8340
8341 * Makeconfig (ASFLAGS): Always append required assembler flags.
8342
8343 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
8344
8345 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
8346 (malloc_consolidate): Likewise.
8347
8348 2018-08-16 Pochang Chen <johnchen902@gmail.com>
8349
8350 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
8351
8352 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
8353
8354 * benchtests/bench-strlen.c (do_test): Allocate buffers before
8355 every strlen call.
8356
8357 * benchtests/bench-strlen.c: Print performance numbers in json.
8358
8359 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8360
8361 * sysdeps/powerpc/powerpc64/multiarch/Makefile
8362 (sysdep_routines): Build strcmp-power9 and strncmp-power9
8363 only for little endian.
8364 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8365 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
8366 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
8367 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
8368 Add check for little endian.
8369 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
8370 (__strcmp_power9): Add check for little endian.
8371 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
8372 Add check for little endian.
8373 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
8374 (__strncmp_power9): Add check for little endian.
8375 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
8376 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
8377 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
8378 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
8379 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
8380
8381 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
8382
8383 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
8384 [!STRLEN](STRLEN): Set to __strlen.
8385 * sysdeps/aarch64/multiarch/strlen.c: New file.
8386 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
8387 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
8388 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
8389 (__libc_ifunc_impl_list): Add strlen.
8390 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
8391 strlen_generic and strlen_asimd.
8392
8393 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8394
8395 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
8396 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
8397 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
8398
8399 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8400
8401 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
8402
8403 2018-08-14 Florian Weimer <fweimer@redhat.com>
8404
8405 [BZ #23519]
8406 * include/stdio.h (__vfxprintf): Declare.
8407 * stdio-common/fxprintf.c (__vfxprintf): New function.
8408 (__fxprintf): Call it.
8409 * misc/err.c (convert_and_print): Remove function.
8410 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
8411 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
8412 * misc/Makefile (tests): Add tst-warn-wide.
8413 * misc/tst-warn-wide.c: New file.
8414
8415 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
8416 Szabolcs Nagy <szabolcs.nagy@arm.com>
8417
8418 * NEWS: Mention sinf, cosf, sincosf.
8419 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
8420 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
8421 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
8422 constants rather than including generic sincosf.h.
8423 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
8424 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
8425 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
8426 (reduced_cos): Remove.
8427 (sinf_poly): New function.
8428 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
8429
8430 2018-08-14 Florian Weimer <fweimer@redhat.com>
8431
8432 [BZ #23521]
8433 [BZ #23522]
8434 * nss/nss_files/files-alias.c (get_next_alias): During :include:
8435 processing, bail out if no room, and close the stream before
8436 returning ERANGE.
8437 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
8438 (tst-nss-files-alias-leak): Link with libdl.
8439 (tst-nss-files-alias-leak.out): Depend on nss_files.
8440
8441 * nss/tst-nss-files-alias-leak.c: New file.
8442
8443 2018-08-14 Florian Weimer <fweimer@redhat.com>
8444
8445 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
8446 server_user, stat_user.
8447
8448 2018-08-13 Joseph Myers <joseph@codesourcery.com>
8449
8450 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8451 version to 4.18.
8452 (io_pgetevents): New syscall.
8453 (rseq): Likewise.
8454
8455 * manual/install.texi (Configuring and compiling): Do not list
8456 tools used for testing pretty printers here.
8457 (Tools for Compilation): List Python, PExpect and GDB here.
8458 Update descriptions of uses of Perl and Python.
8459 * INSTALL: Regenerate.
8460
8461 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8462 version to 4.18.
8463
8464 2018-08-13 Florian Weimer <fweimer@redhat.com>
8465
8466 * misc/error.c (error): Add missing va_end call.
8467 (error_at_line): Likewise.
8468
8469 2018-08-13 Florian Weimer <fweimer@redhat.com>
8470
8471 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
8472
8473 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
8474
8475 * benchtests/scripts/benchout.schema.json (properties): Add
8476 new properties.
8477
8478 * benchtests/bench-skeleton.c (main): Add duration and
8479 iterations attributes.
8480
8481 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
8482
8483 regex: Gnulib unibyte RRI uses bytes not chars
8484 Adjust the non-glibc code to agree with what Gawk needs for
8485 rational range interpretation (RRI) for regular expression ranges.
8486 In unibyte locales, Gawk wants ranges to use the underlying byte
8487 rather than the character code point. This change does not affect
8488 glibc proper.
8489 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
8490 In unibyte locales, use the byte value rather than
8491 running it through btowc.
8492
8493 2018-08-10 Joseph Myers <joseph@codesourcery.com>
8494
8495 * sysdeps/generic/math-tests-snan.h: New file.
8496 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
8497 (SNAN_TESTS_float): Do not define here.
8498 (SNAN_TESTS_double): Likewise.
8499 (SNAN_TESTS_long_double): Likewise.
8500 (SNAN_TESTS_float128): Likewise.
8501 * sysdeps/i386/fpu/math-tests-snan.h: New file.
8502 * sysdeps/i386/fpu/math-tests.h: Remove file.
8503 * sysdeps/ia64/math-tests-snan.h: New file.
8504 * sysdeps/ia64/math-tests.h: Remove file.
8505 * sysdeps/x86/math-tests.h: Likewise.
8506 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
8507
8508 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8509 Szabolcs Nagy <szabolcs.nagy@arm.com>
8510
8511 * math/Makefile: Add s_sincosf_data.c.
8512 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
8513 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
8514 (sincosf_poly): Likewise.
8515 (reduce_small): Likewise.
8516 (reduce_large): Likewise.
8517 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
8518 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
8519 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
8520 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
8521
8522 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8523 Szabolcs Nagy <szabolcs.nagy@arm.com>
8524
8525 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
8526 (converttoint): Use lround.
8527 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
8528 document the semantics when TOINT_INTRINSICS is set.
8529 (converttoint): Likewise.
8530 (TOINT_RINT): Remove.
8531 (TOINT_SHIFT): Remove.
8532 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
8533 path.
8534
8535 2018-08-10 Florian Weimer <fweimer@redhat.com>
8536
8537 [BZ #23497]
8538 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
8539 function.
8540 (__old_getdents64): Use getdents64. Convert entries without
8541 moving them.
8542 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
8543 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
8544 tst-readdir64-compat.
8545
8546 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8547
8548 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
8549 Fix unwind.
8550
8551 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8552
8553 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
8554 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
8555 code to s390x-mcount.h and #include it.
8556 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
8557 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
8558 (__fentry__): Add.
8559
8560 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8561
8562 * stdlib/Versions: Remove __fentry__.
8563 * sysdeps/i386/Versions: Add __fentry__.
8564 * sysdeps/x86_64/Versions: Add __fentry__.
8565
8566 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8567
8568 * sysdeps/s390/Makefile: Register the new tests.
8569 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
8570 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
8571 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
8572 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
8573 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
8574 * sysdeps/s390/tst-dl-runtime.c: New file.
8575
8576 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8577
8578 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8579 Do not clobber R0.
8580
8581 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8582
8583 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8584 Do not clobber R0.
8585
8586 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8587
8588 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8589 Do not clobber R0.
8590
8591 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8592
8593 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8594 Do not clobber R0.
8595
8596 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8597
8598 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8599 Use symbolic offsets for stack variables.
8600
8601 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8602
8603 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8604 Use symbolic offsets for stack variables.
8605
8606 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8607
8608 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8609 Use symbolic offsets for stack variables.
8610
8611 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8612
8613 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8614 Use symbolic offsets for stack variables.
8615
8616 2018-08-09 Joseph Myers <joseph@codesourcery.com>
8617
8618 * math/gen-libm-test.py: New file.
8619 * math/gen-libm-test.pl: Remove.
8620 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
8621 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
8622 gen-libm-test.pl.
8623 ($(libm-test-c-noauto-obj)): Likewise.
8624 ($(libm-test-c-auto-obj)): Likewise.
8625 ($(libm-test-c-narrow-obj)): Likewise.
8626 (regen-ulps): Likewise.
8627 * math/README.libm-test: Update references to gen-libm-test.pl.
8628 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
8629 referencing gen-libm-test.pl.
8630 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
8631 * math/libm-test-support.c: Likewise.
8632 * math/libm-test-support.h: Likewise.
8633 * sysdeps/generic/libm-test-ulps: Likewise.
8634
8635 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
8636
8637 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
8638 Fix value.
8639
8640 2018-08-08 Joseph Myers <joseph@codesourcery.com>
8641
8642 * math/libm-test-nextdown.inc (do_test): Move comment to ....
8643 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
8644
8645 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
8646
8647 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
8648 symbols.
8649 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
8650 __pthread_setspecific): Add hidden proto.
8651 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
8652 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
8653
8654 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
8655
8656 * benchtests/bench-string.h (buf1_size, buf2_size): New
8657 variables.
8658 (init_sizes): New function.
8659 (test_init): Use it.
8660 (alloc_buf, exit_error): New functions.
8661 (alloc_bufs): Use ALLOC_BUF.
8662 (realloc_bufs): Remove.
8663 * benchtests/bench-memcmp.c (do_test): Adjust.
8664 * benchtests/bench-memset-large.c (do_test): Likewise.
8665 * benchtests/bench-memset-walk.c (do_test): Likewise.
8666 * benchtests/bench-memset.c (do_test): Likewise.
8667 * benchtests/bench-strncmp.c (do_test): Likewise.
8668
8669 2018-08-06 Andreas Schwab <schwab@suse.de>
8670
8671 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
8672 of CONST_THREAD_AREA.
8673
8674 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
8675
8676 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
8677 (STATE_SAVE_MASK): Likewise.
8678 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
8679 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
8680 (STATE_SAVE_MASK): Likewise.
8681 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
8682 instead of <cpu-features.h>.
8683
8684 2018-08-03 DJ Delorie <dj@redhat.com>
8685
8686 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
8687 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
8688
8689 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
8690
8691 2018-08-03 Joseph Myers <joseph@codesourcery.com>
8692
8693 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
8694 after TEST_* calls.
8695 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
8696 * math/libm-test-logb.inc (logb_test_data): Likewise.
8697
8698 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
8699
8700 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
8701 * string/strstr.c (AVAILABLE): Likewise.
8702
8703 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8704
8705 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
8706 <init-arch.h>.
8707 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
8708 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
8709 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
8710
8711 2018-08-03 Carlos O'Donell <carlos@redhat.com>
8712
8713 * po/be.po: Update translation.
8714
8715 * po/be.po: Update translation.
8716
8717 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8718
8719 * sysdeps/x86/cpu-features-offsets.sym
8720 (rtld_global_ro_offsetof): Removed.
8721 (CPU_FEATURES_SIZE): Likewise.
8722 (CPUID_OFFSET): Likewise.
8723 (CPUID_SIZE): Likewise.
8724 (CPUID_EAX_OFFSET): Likewise.
8725 (CPUID_EBX_OFFSET): Likewise.
8726 (CPUID_ECX_OFFSET): Likewise.
8727 (CPUID_EDX_OFFSET): Likewise.
8728 (FAMILY_OFFSET): Likewise.
8729 (MODEL_OFFSET): Likewise.
8730 (FEATURE_OFFSET): Likewise.
8731 (FEATURE_SIZ): Likewise.
8732 (COMMON_CPUID_INDEX_1): Likewise.
8733 (COMMON_CPUID_INDEX_7): Likewise.
8734 (FEATURE_INDEX_1): Likewise.
8735 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
8736
8737 2018-08-02 Carlos O'Donell <carlos@redhat.com>
8738
8739 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
8740 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
8741 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
8742 (install-locales): Depend on install-locale-archive.
8743 (install-locale-archive): Define.
8744 (install-locale-files): Define.
8745 (build-one-locale): Define macro.
8746 * manual/install.texi (Running make install): Document.
8747 * manual/INSTALL: Regenerate.
8748
8749 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
8750
8751 * benchtests/scripts/compare_strings.py: Import traceback.
8752 (parse_file): Pretty-print error.
8753
8754 * NEWS: Mention the change.
8755 * elf/dl-tunables.list: Rename tune namespace to cpu.
8756 * sysdeps/powerpc/dl-tunables.list: Likewise.
8757 * sysdeps/x86/dl-tunables.list: Likewise.
8758 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
8759 cpu.name.
8760 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
8761 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
8762 * manual/README.tunables: Likewise.
8763 * manual/tunables.texi: Likewise.
8764 * sysdeps/powerpc/cpu-features.c: Likewise.
8765 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
8766 (init_cpu_features): Likewise.
8767 * sysdeps/x86/cpu-features.c: Likewise.
8768 * sysdeps/x86/cpu-features.h: Likewise.
8769 * sysdeps/x86/cpu-tunables.c: Likewise.
8770 * sysdeps/x86_64/Makefile: Likewise.
8771 * sysdeps/x86/dl-cet.c: Likewise.
8772
8773 2018-08-02 Joseph Myers <joseph@codesourcery.com>
8774
8775 [BZ #23479]
8776 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
8777 [__mips_hard_float].
8778 (FE_UNDERFLOW): Likewise.
8779 (FE_OVERFLOW): Likewise.
8780 (FE_DIVBYZERO): Likewise.
8781 (FE_INVALID): Likewise.
8782 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
8783 (FE_TOWARDZERO): Define only if [__mips_hard_float].
8784 (FE_UPWARD): Likewise.
8785 (FE_DOWNWARD): Likewise.
8786 (__FE_UNDEFINED): Define if [!__mips_hard_float]
8787 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
8788 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
8789 [__mips_hard_float].
8790 (FP_ROUNDMODE): Likewise.
8791 (FP_RND_NEAREST): Likewise.
8792 (FP_RND_ZERO): Likewise.
8793 (FP_RND_PINF): Likewise.
8794 (FP_RND_MINF): Likewise.
8795 (FP_EX_INVALID): Likewise.
8796 (FP_EX_OVERFLOW): Likewise.
8797 (FP_EX_UNDERFLOW): Likewise.
8798 (FP_EX_DIVZERO): Likewise.
8799 (FP_EX_INEXACT): Likewise.
8800 (FP_INIT_ROUNDMODE): Likewise.
8801 * sysdeps/mips/nofpu/fesetenv.c: New file.
8802 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
8803
8804 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8805
8806 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
8807 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
8808 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
8809 conditional on [FE_UPWARD].
8810
8811 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
8812
8813 regex: fix memory leak in Gnulib
8814 Problem and fix reported by Assaf Gordon in:
8815 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
8816 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
8817 range_ends members too, as they are defined in 'struct
8818 re_charset_t' even if not _LIBC. This affects only Gnulib.
8819
8820 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
8821
8822 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
8823 ...
8824 (get_common_indices): This.
8825 (init_cpu_features): Updated.
8826
8827 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8828
8829 * sysdeps/generic/math-tests-snan-payload.h: New file.
8830 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
8831 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
8832 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
8833 * sysdeps/generic/math-tests.h: Include
8834 <math-tests-snan-payload.h>.
8835 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8836 * sysdeps/hppa/math-tests.h: Remove file.
8837 * sysdeps/mips/math-tests.h [!__mips_nan2008]
8838 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8839 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
8840 Likewise.
8841
8842 * sysdeps/generic/math-tests-snan-cast.h: New file.
8843 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
8844 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
8845 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
8846 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
8847
8848 2018-08-01 Carlos O'Donel <carlos@redhat.com>
8849
8850 * version.h (RELEASE): Set to "development".
8851 (VERSION): Set to "2.28.9000".
8852 * NEWS (2.29): New section.
8853
8854 * version.h (RELEASE): Set to "stable".
8855 (VERSION): Set to "2.28".
8856 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
8857 * NEWS: Add the list of bugs fixed in 2.28.
8858
8859 * po/ca.po: Update to latest version.
8860 * po/cs.po: Likewise
8861 * po/da.po: Likewise
8862 * po/el.po: Likewise
8863 * po/eo.po: Likewise
8864 * po/es.po: Likewise
8865 * po/fi.po: Likewise
8866 * po/fr.po: Likewise
8867 * po/gl.po: Likewise
8868 * po/hu.po: Likewise
8869 * po/ia.po: Likewise
8870 * po/id.po: Likewise
8871 * po/it.po: Likewise
8872 * po/ja.po: Likewise
8873 * po/ko.po: Likewise
8874 * po/lt.po: Likewise
8875 * po/nb.po: Likewise
8876 * po/nl.po: Likewise
8877 * po/pt_BR.po: Likewise
8878 * po/ru.po: Likewise
8879 * po/rw.po: Likewise
8880 * po/sk.po: Likewise
8881 * po/sl.po: Likewise
8882 * po/tr.po: Likewise
8883 * po/zh_CN.po: Likewise
8884 * po/zh_TW.po: Likewise
8885
8886 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8887
8888 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
8889 initialization...
8890 (init): ... before initializing libpthread.
8891
8892 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
8893 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
8894 (__mach_setup_tls): ... new function.
8895 (mach_setup_tls): New alias.
8896 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
8897 __mach_setup_thread.
8898 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
8899 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
8900 * mach/Versions [libc] (mach_setup_tls): Add symbol.
8901 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
8902
8903 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8904
8905 * manual/install.texi: Update versions.
8906 * INSTALL: Regenerate.
8907
8908 * manual/contrib.texi (Contributors): Update contributions.
8909
8910 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8911
8912 * po/be.po: Update translations.
8913
8914 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8915
8916 * sysdeps/sh/libm-test-ulps: Update.
8917
8918 2018-07-30 Carlos O'Donell <carlos@redhat.com>
8919
8920 * po/bg.po: Update translations.
8921 * po/de.po: Likewise.
8922 * po/hr.po: Likewise.
8923 * po/pt_BR.po: Likewise.
8924 * po/sv.po: Likewise.
8925 * po/vi.po: Likewise.
8926
8927 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8928
8929 [BZ #23467]
8930 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8931 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
8932 (CFLAGS-tst-cet-property-1.o): New.
8933 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
8934 ($(objpfx)tst-cet-property-2): Likewise.
8935 ($(objpfx)tst-cet-property-2.out): Likewise.
8936 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
8937 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
8938 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
8939 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
8940 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
8941
8942 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8943
8944 [BZ #23458]
8945 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
8946
8947 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8948
8949 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
8950 __sbrk): Do not set attribute_hidden.
8951 * sysdeps/mach/hurd/not-errno.h: New file.
8952 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8953 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
8954
8955 2018-07-27 Carlos O'Donell <carlos@redhat.com>
8956
8957 * po/uk.po: Update translations.
8958 * po/cs.po: Likewise.
8959 * po/pl.po: Likewise.
8960
8961 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
8962
8963 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
8964 parse beyond the note end.
8965
8966 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8967
8968 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
8969 kernel does not support OFD locks.
8970 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
8971
8972 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
8973
8974 * sysdeps/mach/hurd/Versions (libc): Make __access and
8975 __access_noerrno external so they can override the ld symbols.
8976 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
8977 __writev, __open64, __access_noerrno extern so they can be overrided.
8978 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8979 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8980
8981 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8982
8983 * po/libc.pot: Regenerate.
8984
8985 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8986
8987 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8988
8989 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8990
8991 [BZ #23459]
8992 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8993 function.
8994 (init_cpu_features): Call get_extended_indices for both Intel
8995 and AMD CPUs.
8996 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8997 Remove "for AMD" comment.
8998
8999 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
9000
9001 [BZ # 23456]
9002 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
9003 COMMON_CPUID_INDEX_80000001.
9004
9005 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
9006
9007 * string/tst-xbzero-opt.c (use_test_buffer): New function.
9008 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
9009
9010 2018-07-26 Florian Weimer <fweimer@redhat.com>
9011
9012 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
9013 aliases for symbols not in the implementation namespace.
9014
9015 2018-07-25 Carlos O'Donell <carlos@redhat.com>
9016
9017 [BZ #23393]
9018 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
9019 lowercase in LATIN script.
9020 * localedata/Makefile (test-input): Add en_US.UTF-8.
9021 * localedata/en_US.UTF-8.in: New file.
9022 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
9023 and restore old tests.
9024 * posix/tst-regexloc.c (do_test): Add back range expression test.
9025
9026 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9027
9028 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
9029
9030 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9031
9032 * nptl/threads.h: Move to ...
9033 * sysdeps/nptl/threads.h: ... here.
9034 * sysdeps/hurd/stdc-predef.h: New file.
9035
9036 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9037
9038 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
9039 tst-cet-setcontext-1 if CET is enabled.
9040 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
9041 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
9042
9043 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9044
9045 * include/threads.h: Move to ...
9046 * sysdeps/nptl/threads.h: ... here.
9047 * sysdeps/htl/threads.h: New file.
9048 * conform/Makefile (linknamespace-libs-ISO11): Use
9049 static-thread-library instead of linking libpthread.
9050 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
9051
9052 2018-07-25 Florian Weimer <fweimer@redhat.com>
9053
9054 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
9055 nanoseconds into seconds.
9056 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
9057 (do_test): Likewise.
9058 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
9059 (do_test): Likewise. Avoid nanosecond overflow and spurious
9060 timeouts due to system load.
9061 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
9062 (child_wait): Increment it.
9063 (do_test): Wait as long as necessary until all expected threads
9064 have arrived.
9065
9066 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
9067 H.J. Lu <hongjiu.lu@intel.com>
9068
9069 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
9070 __ssp.
9071 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
9072 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
9073 (__push___start_context): New.
9074 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
9075 <asm/prctl.h>.
9076 (__getcontext): Record the current shadow stack base. Save the
9077 caller's shadow stack pointer and base.
9078 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
9079 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
9080 (__push___start_context): New prototype.
9081 (__makecontext): Call __push___start_context to allocate a new
9082 shadow stack, push __start_context onto the new stack as well
9083 as the new shadow stack.
9084 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
9085 <asm/prctl.h>.
9086 (__setcontext): Restore the target shadow stack.
9087 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
9088 <asm/prctl.h>.
9089 (__swapcontext): Record the current shadow stack base. Save
9090 the caller's shadow stack pointer and base. Restore the target
9091 shadow stack.
9092 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
9093 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
9094 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
9095
9096 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9097
9098 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
9099 tst-setcontext8 and tst-setcontext9.
9100 * stdlib/tst-setcontext6.c: New file.
9101 * stdlib/tst-setcontext7.c: Likewise.
9102 * stdlib/tst-setcontext8.c: Likewise.
9103 * stdlib/tst-setcontext9.c: Likewise.
9104
9105 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9106
9107 * stdlib/Makefile ((tests): Add tst-setcontext5.
9108 * stdlib/tst-setcontext5.c: New file.
9109
9110 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9111
9112 * stdlib/Makefile (tests): Add tst-setcontext4.
9113 * stdlib/tst-setcontext4.c: New file.
9114
9115 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9116
9117 * stdlib/Makefile (tests): Add tst-swapcontext1.
9118 * stdlib/tst-swapcontext1.c: New test.
9119
9120 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9121
9122 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
9123 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
9124 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
9125 and tst-cet-legacy-4c.
9126 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
9127 and tst-cet-legacy-mod-4.
9128 (CFLAGS-tst-cet-legacy-2.c): New.
9129 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
9130 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
9131 (CFLAGS-tst-cet-legacy-3.c): Likewise.
9132 (CFLAGS-tst-cet-legacy-4.c): Likewise.
9133 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
9134 ($(objpfx)tst-cet-legacy-1): Likewise.
9135 ($(objpfx)tst-cet-legacy-2): Likewise.
9136 ($(objpfx)tst-cet-legacy-2.out): Likewise.
9137 ($(objpfx)tst-cet-legacy-2a): Likewise.
9138 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
9139 ($(objpfx)tst-cet-legacy-4): Likewise.
9140 ($(objpfx)tst-cet-legacy-4.out): Likewise.
9141 ($(objpfx)tst-cet-legacy-4a): Likewise.
9142 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
9143 (tst-cet-legacy-4a-ENV): Likewise.
9144 ($(objpfx)tst-cet-legacy-4b): Likewise.
9145 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
9146 (tst-cet-legacy-4b-ENV): Likewise.
9147 ($(objpfx)tst-cet-legacy-4c): Likewise.
9148 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
9149 (tst-cet-legacy-4c-ENV): Likewise.
9150 * sysdeps/x86/tst-cet-legacy-1.c: New file.
9151 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
9152 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
9153 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
9154 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
9155 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
9156 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
9157 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
9158 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
9159 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
9160 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
9161
9162 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9163
9164 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9165 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9166 with ssp_base.
9167 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9168 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9169 with ssp_base.
9170
9171 2018-07-25 Andreas Schwab <schwab@suse.de>
9172
9173 [BZ #23442]
9174 * locale/weightwc.h (findidx): Handle the case where usrc is a
9175 prefix of cp but one character too short.
9176
9177 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9178
9179 * NEWS: Add ISO C threads addition.
9180
9181 2018-07-24 Florian Weimer <fweimer@redhat.com>
9182
9183 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9184 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
9185 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
9186 4.13.
9187
9188 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9189
9190 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
9191 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
9192 <sys/prctl.h> and <asm/prctl.h>.
9193 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
9194 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
9195 and <asm/prctl.h>.
9196 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
9197 ARCH_CET_LEGACY_BITMAP.
9198 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
9199 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
9200 * sysdeps/x86/libc-start.c: Include <startup.h>.
9201
9202 2018-07-24 Florian Weimer <fweimer@redhat.com>
9203
9204 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
9205 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
9206
9207 2018-07-24 Rical Jasan <rj@2c3t.io>
9208 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9209 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
9210
9211 [BZ #14092]
9212 * manual/debug.texi: Update adjacent chapter name.
9213 * manual/probes.texi: Likewise.
9214 * manual/threads.texi (ISO C Threads): New section.
9215 (POSIX Threads): Convert to a section.
9216
9217 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9218 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
9219
9220 [BZ# 14092]
9221 * nptl/Makefile (tests): Add new test files.
9222 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
9223 * nptl/tst-cnd-basic.c: Likewise.
9224 * nptl/tst-cnd-broadcast.c: Likewise.
9225 * nptl/tst-cnd-timedwait.c: Likewise.
9226 * nptl/tst-mtx-basic.c: Likewise.
9227 * nptl/tst-mtx-recursive.c: Likewise.
9228 * nptl/tst-mtx-timedlock.c: Likewise.
9229 * nptl/tst-mtx-trylock.c: Likewise.
9230 * nptl/tst-thrd-basic.c: Likewise.
9231 * nptl/tst-thrd-detach.c: Likewise.
9232 * nptl/tst-thrd-sleep.c: Likewise.
9233 * nptl/tst-tss-basic.c: Likewise.
9234
9235 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9236
9237 [BZ #14092]
9238 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9239 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
9240 symbols.
9241 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9242 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9243 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9244 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9245 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9246 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9247 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9248 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9249 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9250 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9251 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9252 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9253 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9254 Likewise.
9255 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9256 Likewise.
9257 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
9258 Likewise.
9259 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9260 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9261 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9262 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9263 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9264 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9265 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9266 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9267 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9268 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
9269 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
9270 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
9271 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
9272 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
9273 Likewise.
9274 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
9275 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
9276 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
9277 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
9278 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
9279 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
9280 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
9281 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
9282 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
9283 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
9284 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
9285 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
9286 ikewise.
9287 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
9288 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
9289 Likewise.
9290 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
9291 Likewise.
9292 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
9293 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
9294 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
9295 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
9296 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
9297 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
9298 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
9299 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
9300
9301 [BZ #14092]
9302 * conform/data/threads.h-data (thread_local): New macro.
9303 (TSS_DTOR_ITERATIONS): Likewise.
9304 (tss_t): New type.
9305 (tss_dtor_t): Likewise.
9306 (tss_create): New function.
9307 (tss_get): Likewise.
9308 (tss_set): Likewise.
9309 (tss_delete): Likewise.
9310 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
9311 tss_get, and tss_set objects.
9312 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9313 * nptl/tss_create.c: New file.
9314 * nptl/tss_delete.c: Likewise.
9315 * nptl/tss_get.c: Likewise.
9316 * nptl/tss_set.c: Likewise.
9317 * sysdeps/nptl/threads.h (thread_local): New define.
9318 (TSS_DTOR_ITERATIONS): Likewise.
9319 (tss_t): New typedef.
9320 (tss_dtor_t): Likewise.
9321 (tss_create): New prototype.
9322 (tss_get): Likewise.
9323 (tss_set): Likewise.
9324 (tss_delete): Likewise.
9325
9326 [BZ #14092]
9327 * conform/data/threads.h-data (cnd_t): New type.
9328 (cnd_init): New function.
9329 (cnd_signal): Likewise.
9330 (cnd_broadcast): Likewise.
9331 (cnd_wait): Likewise.
9332 (cnd_timedwait): Likewise.
9333 (cnd_destroy): Likewise.
9334 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
9335 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
9336 object.
9337 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9338 * nptl/cnd_broadcast.c: New file.
9339 * nptl/cnd_destroy.c: Likewise.
9340 * nptl/cnd_init.c: Likewise.
9341 * nptl/cnd_signal.c: Likewise.
9342 * nptl/cnd_timedwait.c: Likewise.
9343 * nptl/cnd_wait.c: Likewise.
9344 * sysdeps/nptl/threads.h (cnd_t): New type.
9345 (cnd_init): New prototype.
9346 (cnd_signa): Likewise.
9347 (cnd_broadcast): Likewise.
9348 (cnd_wait): Likewise.
9349 (cnd_timedwait): Likewise.
9350 (cnd_destroy): Likewise.
9351
9352 [BZ #14092]
9353 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
9354 (once_flag): New type.
9355 (call_once): New function.
9356 * nptl/Makefile (libpthread-routines): Add call_once object.
9357 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
9358 * nptl/call_once.c: New file.
9359 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
9360 (once_flag): New type.
9361 (call_once): New prototype.
9362
9363 [BZ #14092]
9364 * conform/data/threads.h-data (mtx_plain): New constant.
9365 (mtx_recursive): Likewise.
9366 (mtx_timed): Likewise.
9367 (mtx_t): New type.
9368 (mtx_init): New function.
9369 (mtx_lock): Likewise.
9370 (mtx_timedlock): Likewise.
9371 (mtx_trylock): Likewise.
9372 (mtx_unlock): Likewise.
9373 (mtx_destroy): Likewise.
9374 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
9375 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
9376 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
9377 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
9378 * nptl/mtx_destroy.c: New file.
9379 * nptl/mtx_init.c: Likewise.
9380 * nptl/mtx_lock.c: Likewise.
9381 * nptl/mtx_timedlock.c: Likewise.
9382 * nptl/mtx_trylock.c: Likewise.
9383 * nptl/mtx_unlock.c: Likewise.
9384 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
9385 (mtx_recursive): Likewise.
9386 (mtx_timed): Likewise.
9387 (mtx_t): New type.
9388 (mtx_init): New prototype.
9389 (mtx_lock): Likewise.
9390 (mtx_timedlock): Likewise.
9391 (mtx_trylock): Likewise.
9392 (mtx_unlock): Likewise.
9393 (mtx_destroy): Likewise.
9394
9395 [BZ #14092]
9396 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
9397 (linknamespace-libs-ISO11): Add libpthread.a.
9398 * conform/data/threads.h-data: New file: add C11 thrd_* types and
9399 functions.
9400 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
9401 * nptl/Makefile (headers): Add threads.h.
9402 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
9403 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
9404 thrd_yield.
9405 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
9406 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
9407 thrd_join, thrd_sleep, and thrd_yield symbols.
9408 * nptl/descr.h (struct pthread): Add c11 field.
9409 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
9410 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
9411 routine with expected function prototype.
9412 (__pthread_create_2_1): Add C11 threads check based on attribute
9413 value.
9414 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
9415 * nptl/thrd_create.c: New file.
9416 * nptl/thrd_current.c: Likewise.
9417 * nptl/thrd_detach.c: Likewise.
9418 * nptl/thrd_equal.c: Likewise.
9419 * nptl/thrd_exit.c: Likewise.
9420 * nptl/thrd_join.c: Likewise.
9421 * nptl/thrd_priv.h: Likewise.
9422 * nptl/thrd_sleep.c: Likewise.
9423 * nptl/thrd_yield.c: Likewise.
9424 * include/threads.h: Likewise.
9425
9426 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9427
9428 * bits/indirect-return.h: New file.
9429 * misc/sys/cdefs.h (__glibc_has_attribute): New.
9430 * sysdeps/x86/bits/indirect-return.h: Likewise.
9431 * stdlib/Makefile (headers): Add bits/indirect-return.h.
9432 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
9433 (swapcontext): Add __INDIRECT_RETURN.
9434 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
9435 (prepare_test_buffer): Use it.
9436
9437 2018-07-24 Andreas Schwab <schwab@suse.de>
9438
9439 [BZ #23448]
9440 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
9441 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
9442
9443 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9444
9445 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
9446 Redefine if shadow stack is enabled.
9447 (SYSCALL_ERROR_LABEL): Likewise.
9448 (__vfork): Pop shadow stack and jump back to to caller directly
9449 when shadow stack is in use.
9450 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
9451 Redefine if shadow stack is enabled.
9452 (SYSCALL_ERROR_LABEL): Likewise.
9453 (__vfork): Pop shadow stack and jump back to to caller directly
9454 when shadow stack is in use.
9455
9456 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9457
9458 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
9459 enabled.
9460 (foo): Likewise.
9461 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
9462 (foo): Likewise.
9463
9464 2018-07-20 Joseph Myers <joseph@codesourcery.com>
9465
9466 * scripts/build-many-glibcs.py (Context.checkout): Default
9467 binutils version to 2.31 branch.
9468
9469 2018-07-20 Zong Li <zong@andestech.com>
9470
9471 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
9472 URL of gcc's tarball.
9473
9474 2018-07-20 Florian Weimer <fweimer@redhat.com>
9475
9476 [BZ #23396]
9477 * posix/regcomp.c (build_equiv_class): When comparing weights, do
9478 not compare an extra byte after the end of the weights.
9479
9480 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
9481
9482 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
9483 to 1.
9484 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
9485 hidden prototypes.
9486 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
9487 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
9488 * scripts/check-execstack.awk: Consider `xfail' variable containing a
9489 list of libraries whose stack executability is expected.
9490 * elf/Makefile ($(objpfx)check-execstack.out): Pass
9491 $(check-execstack-xfail) to check-execstack.awk through `xfail'
9492 variable.
9493 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
9494 libc.so libpthread.so.
9495
9496 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
9497
9498 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
9499 SOCK_NONBLOCK.
9500 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
9501 and SOCK_NONBLOCK.
9502 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
9503 implement __pipe2.
9504 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
9505
9506 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9507
9508 * benchtests/scripts/compare_bench.py (__main__): use the argparse
9509 library to improve command line parsing.
9510 (__main__): make schema file as optional parameter (--schema),
9511 defaulting to benchtests/scripts/benchout.schema.json.
9512 (main): move out of the parsing stuff to __main_  and leave it
9513 only as caller of main comparison functions.
9514
9515 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
9516
9517 * NEWS: Add a note for Intel CET status.
9518 * manual/install.texi: Likewise.
9519 * INSTALL: Regenerated.
9520
9521 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
9522
9523 [BZ #23140]
9524 * localedata/locales/oc_FR (mon): Rename to...
9525 (alt_mon): This, then update October (typo fix).
9526 (mon): New content (genitive case, month names preceded by
9527 "de" or "d’").
9528
9529 [BZ #23422]
9530 * localedata/locales/oc_FR (abday): Update all items.
9531 (day): Update Wednesday and Saturday (typo fixes).
9532 (abmon): Update all items, except May.
9533 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
9534 (LC_IDENTIFICATION): Bump the revision number and date.
9535 Keep the "category" entries in alphabetic order.
9536 (LC_ADDRESS): Remove no longer needed comment.
9537 (LC_COLLATE): Use “copy "ca_ES"”.
9538 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
9539 "name_mrs".
9540
9541 2018-07-18 Joseph Myers <joseph@codesourcery.com>
9542
9543 * grp/tst_fgetgrent.c: Include <unistd.h>.
9544 (main): Use mkstemp instead of tmpnam.
9545 * io/test-utime.c (main): Likewise.
9546 * posix/annexc.c (macrofile): Change to modifiable array.
9547 (main): Remove macrofile here.
9548 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9549 macrofile here.
9550 (check_header): Do not remove macrofile here.
9551 * posix/bug-getopt1.c: Include <stdlib.h>.
9552 (do_test): Use mkstemp instead of tmpnam.
9553 * posix/bug-getopt2.c: Include <stdlib.h>.
9554 (do_test): Use mkstemp instead of tmpnam.
9555 * posix/bug-getopt3.c: Include <stdlib.h>.
9556 (do_test): Use mkstemp instead of tmpnam.
9557 * posix/bug-getopt4.c: Include <stdlib.h>.
9558 (do_test): Use mkstemp instead of tmpnam.
9559 * posix/bug-getopt5.c: Include <stdlib.h>.
9560 (do_test): Use mkstemp instead of tmpnam.
9561 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
9562 (main): Use mkstemp instead of tmpnam.
9563 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
9564 (main): Use mkstemp instead of tmpnam.
9565 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
9566 (main): use mkstemp instead of tmpnam.
9567 * stdlib/isomac.c (macrofile): Change to modifiable array.
9568 (main): Remove macrofile here.
9569 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9570 macrofile here.
9571 (check_header): Do not remove macrofile here.
9572
9573 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9574
9575 * manual/tunables.texi: Document glibc.tune.x86_ibt and
9576 glibc.tune.x86_shstk.
9577
9578 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9579
9580 * NEWS: Mention --enable-cet.
9581 * manual/install.texi: Document --enable-cet.
9582 * INSTALL: Regenerated.
9583
9584 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9585
9586 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
9587 Add _CET_NOTRACK before indirect jump to jump table.
9588
9589 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9590
9591 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
9592 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9593 to jump table.
9594
9595 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9596
9597 * sysdeps/i386/i686/multiarch/strcat-sse2.S
9598 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9599 to jump table.
9600
9601 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9602
9603 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
9604 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9605 to jump table.
9606
9607 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9608
9609 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
9610 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9611 to jump table.
9612
9613 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9614
9615 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
9616 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9617 to jump table.
9618 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
9619
9620 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9621
9622 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
9623 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9624 to jump table.
9625
9626 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9627
9628 * sysdeps/i386/i686/multiarch/memset-sse2.S
9629 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9630 to jump table.
9631
9632 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9633
9634 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
9635 indirect jump to jump table.
9636
9637 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9638
9639 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
9640 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9641 to jump table.
9642 (MEMCPY): Likewise.
9643
9644 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9645
9646 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.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/strcmp-sse42.S (STRCMP_SSE42): Add
9654 _CET_NOTRACK before indirect jump to jump table.
9655
9656 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9657
9658 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
9659 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9660 to jump table.
9661
9662 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9663
9664 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
9665 indirect jump to jump table.
9666
9667 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
9668
9669 [BZ #22241]
9670 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
9671 (LOCALES): Likewise.
9672 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
9673 * localedata/locales/sah_RU: New file.
9674 * localedata/sah_RU.UTF-8.in: New file.
9675
9676 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9677
9678 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
9679 "sysdep.h".
9680 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9681 _CET_ENDBR to indirect jump targets and adjust jump destination
9682 for _CET_ENDBR.
9683 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
9684 "sysdep.h".
9685 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9686 _CET_ENDBR to indirect jump targets and adjust jump destination
9687 for _CET_ENDBR.
9688 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
9689 "sysdep.h".
9690 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
9691 _CET_ENDBR to indirect jump targets and adjust jump destination
9692 for _CET_ENDBR.
9693
9694 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9695
9696 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9697 _CET_ENDBR.
9698
9699 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9700
9701 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
9702 _CET_ENDBR.
9703 (_dl_tlsdesc_undefweak): Likewise.
9704 (_dl_tlsdesc_dynamic): Likewise.
9705 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
9706 (_dl_tlsdesc_resolve_rel): Likewise.
9707 (_dl_tlsdesc_resolve_rela): Likewise.
9708 (_dl_tlsdesc_resolve_hold): Likewise.
9709 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
9710 (_dl_tlsdesc_undefweak): Likewise.
9711 (_dl_tlsdesc_dynamic): Likewise.
9712 (_dl_tlsdesc_resolve_rela): Likewise.
9713 (_dl_tlsdesc_resolve_hold): Likewise.
9714
9715 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9716
9717 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
9718 (_fini): Likewise.
9719 * sysdeps/x86_64/crti.S (_init): Likewise.
9720 (_fini): Likewise.
9721
9722 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
9723
9724 [BZ #23140]
9725 * localedata/locales/os_RU (mon): Rename to...
9726 (alt_mon): This.
9727 (mon): Import from CLDR (genitive case).
9728
9729 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9730
9731 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
9732 cet-tunables.h> when CET is enabled.
9733
9734 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
9735
9736 [BZ #21598]
9737 * configure.ac: Add --enable-cet.
9738 * configure: Regenerated.
9739 * elf/Makefille (all-built-dso): Add a comment.
9740 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
9741 Include <dl-prop.h>.
9742 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
9743 segment.
9744 * elf/dl-open.c: Include <dl-prop.h>.
9745 (dl_open_worker): Call _dl_open_check.
9746 * elf/rtld.c: Include <dl-prop.h>.
9747 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
9748 _rtld_main_check.
9749 * sysdeps/generic/dl-prop.h: New file.
9750 * sysdeps/i386/dl-cet.c: Likewise.
9751 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
9752 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
9753 * sysdeps/x86/cet-tunables.h: Likewise.
9754 * sysdeps/x86/check-cet.awk: Likewise.
9755 * sysdeps/x86/configure: Likewise.
9756 * sysdeps/x86/configure.ac: Likewise.
9757 * sysdeps/x86/dl-cet.c: Likewise.
9758 * sysdeps/x86/dl-procruntime.c: Likewise.
9759 * sysdeps/x86/dl-prop.h: Likewise.
9760 * sysdeps/x86/libc-start.h: Likewise.
9761 * sysdeps/x86/link_map.h: Likewise.
9762 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
9763 _CET_ENDBR.
9764 (_dl_runtime_profile): Likewise.
9765 (_dl_runtime_resolve_shstk): New.
9766 (_dl_runtime_profile_shstk): Likewise.
9767 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
9768 if CET is enabled.
9769 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
9770 (CFLAGS-.os): Likewise.
9771 (CFLAGS-.op): Likewise.
9772 (CFLAGS-.oS): Likewise.
9773 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
9774 is enabled.
9775 (tests-special): Add $(objpfx)check-cet.out.
9776 (cet-built-dso): New.
9777 (+$(cet-built-dso:=.note)): Likewise.
9778 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
9779 ($(objpfx)check-cet.out): New.
9780 (generated): Add check-cet.out.
9781 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
9782 <cet-tunables.h>.
9783 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
9784 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9785 (init_cpu_features): Call get_cet_status to check CET status
9786 and update dl_x86_feature_1 with CET status. Call
9787 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
9788 (set_x86_shstk). Disable and lock CET in libc.a.
9789 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
9790 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
9791 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9792 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
9793 (_CET_ENDBR): Define if not defined.
9794 (ENTRY): Add _CET_ENDBR.
9795 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
9796 x86_shstk.
9797 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
9798 _CET_ENDBR.
9799 (_dl_runtime_profile): Likewise.
9800
9801 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
9802
9803 [BZ #21895]
9804 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
9805 restore r2 on longjmp.
9806 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
9807 test list.
9808 Added rules to build test tst-setjmp-bug21895-static.
9809 Added module setjmp-bug21895 and rules to build a shared object from it.
9810 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
9811 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
9812
9813 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
9814
9815 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
9816 * benchtests/bench-strstr.c: Likewise.
9817 * string/memmem.c (FASTSEARCH): Define.
9818 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
9819 Add support for FASTSEARCH.
9820 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
9821 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
9822 (FASTSEARCH): Define.
9823 * string/test-strcasestr.c: Rename __strnlen to strnlen.
9824 * string/test-strstr.c: Likewise.
9825
9826 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
9827
9828 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
9829 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
9830
9831 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9832 H.J. Lu <hongjiu.lu@intel.com>
9833
9834 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
9835 (__longjmp): Restore shadow stack pointer if shadow stack is
9836 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9837 isn't defined for __longjmp_cancel.
9838 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
9839 (_setjmp): Save shadow stack pointer if shadow stack is enabled
9840 and SHADOW_STACK_POINTER_OFFSET is defined.
9841 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
9842 (setjmp): Save shadow stack pointer if shadow stack is enabled
9843 and SHADOW_STACK_POINTER_OFFSET is defined.
9844 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
9845 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9846 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9847 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
9848 <jmp_buf-ssp.h>.
9849 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9850 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9851 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
9852 Remove jmp_buf-ssp.sym.
9853 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
9854 <jmp_buf-ssp.h>.
9855 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9856 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9857 * sysdeps/x86/Makefile (gen-as-const-headers): Add
9858 jmp_buf-ssp.sym.
9859 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
9860 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
9861 (__longjmp): Restore shadow stack pointer if shadow stack is
9862 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9863 isn't defined for __longjmp_cancel.
9864 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
9865 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9866 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9867
9868 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
9869
9870 [BZ #22563]
9871 * nptl/pthread_create.c: Include <tls-setup.h>.
9872 (__pthread_create_2_1): Call tls_setup_tcbhead.
9873 * sysdeps/generic/tls-setup.h: New file.
9874 * sysdeps/x86/nptl/tls-setup.h: Likewise.
9875 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9876 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
9877 Likewise.
9878 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
9879 to feature_1.
9880 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
9881 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
9882 (X86_FEATURE_1_SHSTK): Likewise.
9883 (CET_ENABLED): Likewise.
9884 (IBT_ENABLED): Likewise.
9885 (SHSTK_ENABLED): Likewise.
9886
9887 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
9888
9889 [BZ #23208]
9890 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
9891 (LOCALES): Likewise.
9892 * localedata/dsb_DE.UTF-8.in: New file.
9893 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
9894
9895 2018-07-12 Florian Weimer <fweimer@redhat.com>
9896
9897 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
9898 __mprotect, not mprotect.
9899
9900 2018-07-11 Florian Weimer <fweimer@redhat.com>
9901
9902 * io/Makefile (headers): Add bits/statx.h.
9903
9904 2018-07-10 Mike FABIAN <mfabian@redhat.com>
9905
9906 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
9907 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
9908 and headers.
9909 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
9910 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
9911 for utf8_gen.py
9912
9913 2018-07-10 Florian Weimer <fweimer@redhat.com>
9914
9915 * io/Makefile (routines): Add statx.
9916 (tests-internal): Add tst-statx.
9917 * io/Versions (GLIBC_2.28): Export statx.
9918 * io/bits/statx.h: New file.
9919 * io/sys/stat.h [__USE_GNU]: Include it.
9920 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
9921 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
9922 Define.
9923 * io/statx.c: New file.
9924 * io/statx_generic.: Likewise.
9925 * io/tst-statx.: Likewise.
9926 * include/bits/statx.h: Likewise.
9927 * sysdeps/unix/sysv/linux/kernel-features.h
9928 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
9929 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9930 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
9931 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
9932 Undefine.
9933 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9934 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
9935 * sysdeps/unix/sysv/linux/statx.c: New file.
9936 * manual/filesys.texi: Note that statx is undocumented.
9937 * sysdeps/**/libc*.abilist: Update.
9938
9939 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9940
9941 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
9942 a kernel issue which lead to test failure in some cases.
9943
9944 2018-07-10 Florian Weimer <fweimer@redhat.com>
9945
9946 [BZ #23036]
9947 * posix/regexec.c (check_node_accept_bytes): When comparing
9948 weights, do not compare an extra byte after the end of the
9949 weights.
9950
9951 2018-07-10 Florian Weimer <fweimer@redhat.com>
9952
9953 * libio/readline.c: Fix copyright year.
9954 * libio/tst-readline.c Likewise.
9955 * nss/tst-nss-files-hosts-getent.c: Likewise.
9956
9957 2018-07-06 Florian Weimer <fweimer@redhat.com>
9958
9959 [BZ #18991]
9960 * nss/nss_files/files-XXX.c (internal_getent): Use
9961 __libc_readline_unlocked. Seek back to the start of the line if
9962 parsing failes with ERANGE.
9963 (get_contents_ret, get_contents): Remove.
9964 * nss/tst-nss-files-hosts-getent.c: New file.
9965 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
9966 (tst-nss-files-hosts-getent): Link with -ldl.
9967
9968 2018-07-06 Florian Weimer <fweimer@redhat.com>
9969
9970 * include/stdio.h (__libc_readline_unlocked): Declare.
9971 (__ftello64, __fseeko64): Declare aliases.
9972 * libio/readline.c: New file.
9973 * libio/tst-readline.c: Likewise.
9974 (routines): Add readline.
9975 (tests-internal): Add tst-readlime.
9976 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
9977 __libc_readline_unlocked.
9978 * libio/fseeko.c (__fseeko): Rename from fseeko.
9979 (fseeko): Add alias.
9980 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9981 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9982 (fseeko64): Add alias.
9983 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9984 * libio/ftello64.c (__ftello64): Rename from ftello64.
9985 (ftello64): Add alias.
9986
9987 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9988
9989 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9990 HWCAP_ATOMICS.
9991
9992 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9993
9994 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9995 Use dl_hwcap without masking.
9996 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9997 Remove HWCAP_CPUID.
9998
9999 2018-07-06 Florian Weimer <fweimer@redhat.com>
10000
10001 * conform/conformtest.pl (checknamespace): Escape literal braces
10002 in regular expressions.
10003
10004 2018-07-06 Amit Pawar <amit.pawar@amd.com>
10005
10006 * sysdeps/x86/cpu-features.c (get_common_indeces):
10007 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
10008 * sysdeps/x86/cpu-features.c (init_cpu_features):
10009 AVX_Fast_Unaligned_Load is disabled for Excavator core.
10010
10011 2018-07-05 Florian Weimer <fweimer@redhat.com>
10012
10013 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
10014 protector.
10015 (CFLAGS-elf-init.oS): Likewise.
10016
10017 2018-07-05 Florian Weimer <fweimer@redhat.com>
10018 Carlos O'Donell <carlos@redhat.com>
10019
10020 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
10021 $(no-stack-protector). stack_chk_fail_local.c can be compiled
10022 with stack protector enabled because there is no risk of infinite
10023 recursion.
10024
10025 2018-07-05 Maciej W. Rozycki <macro@mips.com>
10026
10027 [BZ #19818]
10028 [BZ #23307]
10029 * libc-abis (ABSOLUTE): New ABI.
10030 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
10031 * NEWS: Mention the new ABI.
10032
10033 2018-07-05 Florian Weimer <fweimer@redhat.com>
10034
10035 [BZ # 17662]
10036 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
10037 (RENAME_WHITEOUT): Define.
10038 [__USE_GNU] (renameat2): Declare.
10039 * stdio-common/Makefile (routines): Add renameat2.
10040 (tests): Add tst-renameat2.
10041 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
10042 * stdio-common/renameat2.c: New file.
10043 * stdio-common/tst-renameat2.c: Likewise.
10044 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
10045 * manual/filesys.texi (Temporary Files): Note that renameat2 is
10046 undocumented.
10047 * sysdeps/unix/sysv/linux/kernel-features.h
10048 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
10049 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10050 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
10051 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10052 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
10053 * sysdeps/unix/sysv/linux/sh/kernel-features.h
10054 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
10055 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10056 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
10057 * include/stdio.h (__renameat): Add alias for renameat.
10058 * stdio-common/renameat.c (__renameat): Rename from renameat.
10059 Add hidden definition and alias.
10060 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
10061 * sysdeps/mach/hurd/renameat.c: Likewise.
10062 * sysdeps/**/libc*.abilist: Add renameat2.
10063
10064 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10065
10066 * posix/bug-regex33.c: Fix build after regex sync.
10067
10068 2018-07-04 Carlos O'Donell <carlos@redhat.com>
10069
10070 [BZ #23164]
10071 * localedata/tst-langinfo-setlocale.c: New file.
10072 * localedata/tst-langinfo-setlocale-static.c: New file.
10073 * localedata/tst-langinfo-newlocale.c: New file.
10074 * localedata/tst-langinfo-newlocale-static.c: New file.
10075 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
10076 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
10077 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
10078 (tests-static): Remove tst-langinfo-static. Add
10079 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
10080 (tests-special): Remove $(objpfx)tst-langinfo.out,
10081 $(objpfx)tst-langinfo-static.out. Add
10082 $(objpfx)tst-langinfo-setlocale.out,
10083 $(objpfx)tst-langinfo-newlocale.out,
10084 $(objpfx)tst-langinfo-setlocale-static.out,
10085 $(objpfx)tst-langinfo-newlocale-static.out.
10086 ($(objpfx)tst-langinfo.out): Remove.
10087 ($(objpfx)tst-langinfo-static.out): Remove.
10088 ($(objpfx)tst-langinfo-newlocale.out): New target.
10089 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
10090 (test-xfail-tst-langinfo-newlocale-static): Add.
10091 ($(objpfx)tst-langinfo-setlocale.out): New target.
10092 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
10093 * localedata/tst-langinfo.c: Call test_locale.
10094 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
10095 data.
10096
10097 2018-07-04 Florian Weimer <fweimer@redhat.com>
10098
10099 testrun.sh: Implement --tool=strace, --tool=valgrind
10100 * Makefile (testrun-script): Define variable.
10101 (testrun.sh): Use variable.
10102 * manual/install.texi (Tools for Compilation): make 4.0 or later
10103 is required.
10104 * configure.ac: Check for make 4.0 or later.
10105 * INSTALL: Regenerate.
10106 * configure: Likewise.
10107
10108 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10109
10110 [BZ #23233]
10111 [BZ #21163]
10112 [BZ #18986]
10113 [BZ #13762]
10114 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
10115 * posix/PCRE.tests: Remove invalid test.
10116 * posix/bug-regex28.c: Fix expected values for used syntax.
10117 * posix/bug-regex37.c: New file.
10118 * posix/bug-regex38.c: Likewise.
10119 * posix/regcomp.c: Sync with gnulib.
10120 * posix/regex.c: Likewise.
10121 * posix/regex.h: Likewise.
10122 * posix/regex_internal.c: Likewise.
10123 * posix/regex_internal.h: Likewise.
10124 * posix/regexec.c: Likewise.
10125
10126 2018-06-26 Mike FABIAN <mfabian@redhat.com>
10127
10128 [BZ #23308]
10129 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
10130 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
10131 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
10132 * localedata/unicode-gen/PropList.txt: likewise.
10133 * localedata/unicode-gen/UnicodeData.txt: likewise.
10134 * localedata/charmaps/UTF-8: Regenerate.
10135 * localedata/locales/i18n_ctype: likewise.
10136 * localedata/locales/tr_TR: likewise.
10137 * localedata/locales/translit_circle: likewise.
10138 * localedata/locales/translit_cjk_compat: likewise.
10139 * localedata/locales/translit_combining: likewise.
10140 * localedata/locales/translit_compat: likewise.
10141 * localedata/locales/translit_font: likewise.
10142 * localedata/locales/translit_fraction: likewise.
10143
10144 2018-07-03 Florian Weimer <fweimer@redhat.com>
10145
10146 [BZ #23363]
10147 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
10148 * stdio-common/tst-printf.sh: Adjust expected output.
10149 * LICENSES: Update.
10150
10151 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10152
10153 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
10154 symbol.
10155
10156 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10157
10158 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
10159 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
10160 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
10161 * stdio-common/tst-printfsz-islongdouble.c: New file.
10162 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
10163 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
10164 [subdir == stdio-common] (routines): Add ieee128-printf_size.
10165 [subdir == stdio-common] (tests-internal): Add
10166 test-printf-size-ieee128, and test-printf-size-ibm128.
10167 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
10168 (CFLAGS-test-printf-size-ibm128.c): New variables.
10169 [subdir == stdio-common] (tests-special): Add
10170 $(objpfx)test-printf-size-ieee128.out and
10171 $(objpfx)test-printf-size-ibm128.out.
10172 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
10173 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
10174 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
10175 __printf_sizeieee128.
10176 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
10177 New file.
10178 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
10179 Likewise.
10180 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
10181 Likewise.
10182
10183 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
10184
10185 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
10186 (exp2f_inline): Likewise.
10187 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
10188 (__math_uflowf): Likewise.
10189 (__math_may_uflowf): Likewise.
10190 (__math_divzerof): Likewise.
10191 (__math_invalidf): Likewise.
10192 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
10193 (__math_oflowf): Likewise.
10194 (__math_uflowf): Likewise.
10195 (__math_may_uflowf): Likewise.
10196 (__math_divzerof): Likewise.
10197 (__math_invalidf): Likewise.
10198
10199 2018-06-29 DJ Delorie <dj@redhat.com>
10200 Carlos O'Donell <carlos@redhat.com>
10201
10202 [BZ #23329]
10203 * include/libc-symbols.h: Comment the freeres framework.
10204 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
10205 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
10206 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
10207 * dlfcn/dlerror.c: Include libc-symbols.h
10208 (__dlerror_main_freeres): New function.
10209 * dlfcn/dlfreeres.c: New file.
10210 * dlfcn/sdlfreeres.c: New file.
10211 * include/dlfcn.h: Declare __dlerror_main_freeres.
10212 * malloc/set-freeres.c: Declare __libdl_freeres, and
10213 __libpthread_freeres.
10214 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
10215 the releavant libraries are loaded.
10216 * malloc/thread-freeres.c: Add comments.
10217 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
10218 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
10219 * nptl/allocatestack.c (__nptl_free_stacks): New function.
10220 (__free_stacks): Rename to...
10221 (free_stacks): ...this. Mark static.
10222 (queue_stack): Call free_stacks.
10223 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
10224 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
10225 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
10226 ptr_freeres element from struct.
10227 (pthread_functions): Remove .ptr_freeres from struct initializer.
10228 [SHARED] (nptl_freeres): Remove.
10229 * nptl/nptlfreeres.c: New file.
10230 * nptl/pthreadP.h
10231 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
10232 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
10233 attribute_hidden.
10234 (__free_stacks): Rename to...
10235 (__nptl_stacks_freeres): ...this.
10236 (__shm_directory_freeres): Declare.
10237 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
10238 (__nptl_unwind_freeres): ...this.
10239 * resolv/res-close.c: Add comment.
10240 * resolv/resolv_conf.c: Include libc-symbols.h.
10241 * string/strerror_l.c: Include libc-symbols.h.
10242 * sunrpc/rpc_thread.c: Include libc-symbols.h.
10243 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
10244 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
10245 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
10246
10247 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10248
10249 * stdlib/tst-strfmon_l.c: Add tests for long double.
10250
10251 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
10252
10253 [BZ #23208]
10254 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
10255 * localedata/locales/dsb_DE: New file.
10256
10257 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10258
10259 [BZ #23140]
10260 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
10261 genitive case).
10262 (alt_mon): New entry, import from CLDR (nominative case).
10263
10264 2018-06-29 Sylvain Lesage <severo@rednegra.net>
10265
10266 [BZ #22996]
10267 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
10268
10269 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
10270
10271 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
10272 Use vector registers.
10273
10274 * sysdeps/aarch64/multiarch/memmove_falkor.S
10275 (__memcpy_falkor): Use vector registers.
10276
10277 2018-06-29 Martin Sebor <msebor@redhat.com>
10278
10279 * manual/stdio.texi (Customizing Printf): Mention interaction
10280 with GCC built-ins.
10281
10282 2018-06-29 Maciej W. Rozycki <macro@mips.com>
10283
10284 [BZ #23307]
10285 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
10286 `st_value' is 0 if `st_shndx' is SHN_ABS.
10287 * elf/tst-absolute-zero.c: New file.
10288 * elf/tst-absolute-zero-lib.c: New file.
10289 * elf/tst-absolute-zero-lib.lds: New file.
10290 * elf/Makefile (tests): Add `tst-absolute-zero'.
10291 (modules-names): Add `tst-absolute-zero-lib'.
10292 (LDLIBS-tst-absolute-zero-lib.so): New variable.
10293 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
10294 ($(objpfx)tst-absolute-zero: New dependency.
10295
10296 2018-06-29 Zack Weinberg <zackw@panix.com>
10297
10298 * configure.ac: New command-line option --disable-crypt.
10299 Force --disable-nss-crypt when --disable-crypt is given, with a
10300 warning if it was explicitly enabled.
10301 * configure: Regenerate.
10302 * config.make.in: New boolean substitution variable $(build-crypt).
10303 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
10304 when $(build-crypt).
10305 * manual/install.texi: Document --disable-crypt.
10306 * INSTALL: Regenerate.
10307
10308 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
10309 which is never set.
10310 * conform/Makefile: Only include libcrypt.a in
10311 linknamespace-libs-xsi and linknamespace-libs-XPG4
10312 when $(build-crypt).
10313 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
10314 USE_CRYPT to 1 when $(build-crypt).
10315 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
10316 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
10317 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
10318
10319 2018-06-29 Zack Weinberg <zackw@panix.com>
10320
10321 * crypt/crypt.h, posix/unistd.h: Update comments and
10322 prototypes for crypt and crypt_r.
10323
10324 * manual/crypt.texi (Cryptographic Functions): New initial
10325 exposition.
10326 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
10327 (Unpredictable Bytes): Improve initial exposition. Clarify error
10328 behavior of getentropy and getrandom.
10329 * manual/examples/genpass.c: Generate a salt using getentropy
10330 instead of the current time. Use hash $5$ (SHA-2-256).
10331 * manual/examples/testpass.c: Demonstrate validation against
10332 hashes generated with three different one-way functions.
10333
10334 * manual/intro.texi: crypt.texi does not need an overview
10335 anymore.
10336
10337 * manual/nss.texi, manual/memory.texi, manual/socket.texi
10338 * manual/terminal.texi: Consistently refer to "passphrases"
10339 * instead of "passwords", and to the "user database" instead
10340 * of the "password database".
10341 * manual/users.texi: Similarly. Add notes about how actual
10342 passphrase hashes are now stored in the shadow database.
10343 Remove 20-year-old junk todo note.
10344
10345 2018-06-29 Zack Weinberg <zackw@panix.com>
10346
10347 * manual/crypt.texi: Use a normal top-level @node declaration.
10348 Move most of the introductory text to the 'crypt' section.
10349 Move the example programs below the @deftypefun for 'crypt_r'.
10350 Move the 'getpass' section...
10351 * manual/terminal.texi: ...here.
10352
10353 2018-06-29 Zack Weinberg <zackw@panix.com>
10354 Florian Weimer <fweimer@redhat.com>
10355
10356 * posix/unistd.h: Do not declare encrypt.
10357 (_XOPEN_CRYPT): Remove macro definition.
10358 (crypt): Declare only for _USE_MISC.
10359 * stdlib/stdlib.h: Do not declare setkey.
10360 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
10361 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
10362
10363 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
10364 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
10365 into compat symbols. Don't define initial_perm if it's not
10366 going to be used.
10367 * crypt/cert.c: Link explicitly with the expected versions for
10368 setkey and encrypt. If they are not available at all, mark
10369 the test as unsupported.
10370
10371 * sunrpc/des_crypt.c: Unconditionally block linkage with
10372 cbc_crypt and ecb_crypt for new binaries.
10373 * sunrpc/des_soft.c: Unconditionally block linkage with
10374 des_setparity for new binaries.
10375
10376 * manual/crypt.texi: Remove the entire "DES Encryption"
10377 section. Also remove the paragraph talking about FIPS 140-2
10378 from the introduction.
10379 * manual/string.texi (strfry, memfrob): Revise. Recommend use
10380 of libgcrypt for "real" encryption, not DES.
10381 * manual/conf.texi (Constants for Sysconf): Mention that
10382 _XOPEN_CRYPT is no longer impelemented.
10383
10384 * conform/data/unistd.h-data: Remove crypt function declaration.
10385
10386 2018-06-29 Florian Weimer <fweimer@redhat.com>
10387
10388 [BZ #23351]
10389 * malloc/hooks.c: Update comments on restoring of dumped heaps.
10390 (disallow_malloc_check): Remove variable.
10391 (__malloc_check_init): Adjust.
10392 (malloc_set_state): Update comment.
10393 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
10394 declarations.
10395
10396 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10397
10398 [BZ #23140]
10399 * localedata/locales/ast_ES (mon): Rename to...
10400 (alt_mon): This.
10401 (mon): Import from CLDR (genitive case).
10402
10403 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
10404 Jakub Sitnicki <jkbs@redhat.com>
10405
10406 [BZ #21812]
10407 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
10408 on NLM_F_DUMP_INTR.
10409
10410 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
10411
10412 * manual/llio.texi: Remove spurious space.
10413
10414 2018-06-28 Florian Weimer <fweimer@redhat.com>
10415
10416 [BZ #23349]
10417 * time/bits/types/struct_timespec.h: Change header inclusion guard to
10418 _STRUCT_TIMESPEC.
10419
10420 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10421
10422 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
10423 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
10424 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
10425 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
10426 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
10427 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
10428 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
10429
10430 2018-06-27 Maciej W. Rozycki <macro@mips.com>
10431
10432 [BZ #23266]
10433 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
10434 Copy and null-terminate entries that are not terminated, in
10435 addition to empty ones.
10436
10437 2018-06-27 Florian Weimer <fweimer@redhat.com>
10438
10439 [BZ #18023]
10440 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
10441 (extend_alloca_account): Remove.
10442 * manual/stdio.texi (Variable Arguments Output): Update comment.
10443
10444 2018-06-27 Joseph Myers <joseph@codesourcery.com>
10445
10446 * nptl/sockperf.c: Remove file.
10447
10448 2018-06-27 Florian Weimer <fweimer@redhat.com>
10449
10450 [BZ #18023]
10451 * elf/dl-deps.c (_dl_map_object_deps): Use struct
10452 scratch_buffer instead of extend_alloca.
10453
10454 2018-06-27 Florian Weimer <fweimer@redhat.com>
10455
10456 [BZ #18023]
10457 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
10458 scratch_buffer instead of extend_alloca. Update comments.
10459
10460 2018-06-27 Florian Weimer <fweimer@redhat.com>
10461
10462 [BZ #18023]
10463 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
10464 instead of extend_alloca.
10465
10466 2018-06-26 Joseph Myers <joseph@codesourcery.com>
10467
10468 [BZ #13888]
10469 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
10470 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
10471 /tmp.
10472 * scripts/test-installation.pl: Put temporary files in build
10473 directory, not /tmp.
10474 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
10475 (CFLAGS-bug4.c): Likewise.
10476 (CFLAGS-bug5.c): Likewise.
10477 (CFLAGS-test-fseek.c): Likewise.
10478 (CFLAGS-test-popen.c): Likewise.
10479 (CFLAGS-test_rdwr.c): Likewise.
10480 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
10481 /tmp.
10482 * stdio-common/bug4.c (main): Likewise.
10483 * stdio-common/bug5.c (main): Likewise.
10484 * stdio-common/test-fseek.c (TESTFILE): Likewise.
10485 * stdio-common/test-popen.c (do_test): Likewise.
10486 * stdio-common/test_rdwr.c (main): Likewise.
10487
10488 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
10489
10490 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
10491 (sem_open): Set sem.newsem.pad to zero for valgrind.
10492
10493 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10494
10495 [BZ #20251]
10496 * NEWS: Mention fcntl64 addition.
10497 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
10498 * login/utmp_file.c: Likewise.
10499 * sysdeps/posix/fdopendir.c: Likewise.
10500 * sysdeps/posix/opendir.c: Likewise.
10501 * sysdeps/unix/pt-fcntl.c: Likewise.
10502 * include/fcntl.h (__libc_fcntl64, __fcntl64,
10503 __fcntl64_nocancel_adjusted): New prototype.
10504 (__fcntl_nocancel_adjusted): Remove prototype.
10505 * io/Makefile (routines): Add fcntl64.
10506 (CFLAGS-fcntl64.c): New rule.
10507 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
10508 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
10509 * io/fcntl.h (fcntl64): Add prototype and redirect if
10510 __USE_FILE_OFFSET64 is defined.
10511 * io/fcntl64.c: New file.
10512 * manual/llio.text: Add a note for which commands fcntl acts a
10513 cancellation point.
10514 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
10515 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
10516 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
10517 New symbols.
10518 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
10519 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
10520 non-LFS case.
10521 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
10522 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
10523 to __fcntl64_nocancel.
10524 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
10525 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
10526 to __fcntl64_nocancel.
10527 * sysdeps/generic/not-cancel.h: Likewise.
10528 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
10529 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
10530 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10531 (fcntl64): New symbol.
10532 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10533 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10534 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10535 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10536 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
10537 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10538 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10539 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10540 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10541 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10542 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
10543 fcntl64): Likewise.
10544 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10545 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
10546 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10547 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10548 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10549 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10550 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
10551 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10552 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10553 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10554 Likewise.
10555 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10556 Likewise.
10557 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10558 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10559 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10560
10561 2018-06-26 Florian Weimer <fweimer@redhat.com>
10562
10563 Run thread shutdown functions in an explicit order.
10564 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
10565 definition.
10566 (__libc_thread_freeres): Call thread shutdown functions
10567 explicitly.
10568 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
10569 * include/string.h (__strerror_thread_freeres): Declare.
10570 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
10571 arena_thread_freeres. No longer static. Remove thread shutdown
10572 hook registration.
10573 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
10574 Declare.
10575 * resolv/res-close.c (__res_thread_freeres): Renamed from
10576 res_thread_freeres. No longer static. Remove thread shutdown
10577 hook registration.
10578 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
10579 * resolv/resolv_conf.c (freeres): Remove incorrect section
10580 attribute and use libc_freeres_fn.
10581 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
10582 strerror_thread_freeres. No longer static. Remove thread
10583 shutdown hook registration.
10584 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
10585 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
10586 shutdown hook registration.
10587 * Makerules (shlib.lds): Do not provide section boundary symbols
10588 for __libc_thread_subfreeres.
10589 * manual/memory.texi (Basic Allocation): Update comment.
10590
10591 2018-06-26 Florian Weimer <fweimer@redhat.com>
10592
10593 Remove always-defined _RPC_THREAD_SAFE_ macro.
10594 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
10595 Do not define _RPC_THREAD_SAFE_.
10596 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
10597 conditional.
10598 * sunrpc/clnt_perr.c: Likewise.
10599 * sunrpc/clnt_raw.c: Likewise.
10600 * sunrpc/clnt_simp.c: Likewise.
10601 * sunrpc/key_call.c: Likewise.
10602 * sunrpc/rpc_common.c: Likewise.
10603 * sunrpc/rpc_main.c: Likewise.
10604 * sunrpc/rpc_thread.c: Likewise.
10605 * sunrpc/svc.c: Likewise.
10606 * sunrpc/svc_raw.c: Likewise.
10607 * sunrpc/svc_simple.c: Likewise.
10608 * sumrpc/svcauth_des.c: Likewise.
10609
10610 2018-06-26 Florian Weimer <fweimer@redhat.com>
10611
10612 * libio/Makefile (tests-internal): Add tst-vtables,
10613 tst-vtables-interposed.
10614 * libio/tst-vtables.c: New file.
10615 * libio/tst-vtables-common.c: Likewise.
10616 * libio/tst-vtables-interposed.c: Likewise.
10617
10618 2018-06-26 Florian Weimer <fweimer@redhat.com>
10619
10620 * support/support_test_main.c (support_test_main): Only call
10621 setvbuf if not disables.
10622 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
10623 * support/test-driver.h (struct test_config): Add no_setvbuf member.
10624
10625 2018-06-26 Florian Weimer <fweimer@redhat.com>
10626
10627 [BZ #23313]
10628 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
10629
10630 2018-06-25 Florian Weimer <fweimer@redhat.com>
10631
10632 [BZ #18023]
10633 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10634 Use struct scratch_buffer instead of extend_alloca.
10635
10636 2018-06-25 Florian Weimer <fweimer@redhat.com>
10637
10638 [BZ #18023]
10639 * nss/getent.c (initgroups_keys): Use dynarray instead of
10640 extend_alloca.
10641
10642 2018-06-25 Florian Weimer <fweimer@redhat.com>
10643
10644 [BZ #18023]
10645 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
10646 Use struct scratch_buffer instead of extend_alloca.
10647
10648 2018-06-25 Florian Weimer <fweimer@redhat.com>
10649
10650 [BZ #18023]
10651 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
10652 back to malloc directly, without stack allocations.
10653
10654 2018-06-25 Florian Weimer <fweimer@redhat.com>
10655
10656 [BZ #18023]
10657 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
10658 of extend_alloca.
10659
10660 2018-06-25 Florian Weimer <fweimer@redhat.com>
10661
10662 [BZ #18023]
10663 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
10664 of extend_alloca.
10665 * nscd/hstcache.c (addhstbyX): Likewise.
10666 * nscd/pwdcache.c (addpwbyX): Likewise.
10667 * nscd/servicescache.c (addservbyX): Likewise.
10668
10669 2018-06-25 Florian Weimer <fweimer@redhat.com>
10670
10671 [BZ #18023]
10672 * nscd/connections.c (read_cmdline): New function.
10673 (restart): Use it. Update comment.
10674
10675 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10676
10677 [BZ #23140]
10678 * localedata/locales/csb_PL (mon): Rename to...
10679 (alt_mon): This.
10680 (abmon): Rename to...
10681 (ab_alt_mon): This.
10682 (mon): Add with proper genitive forms, copy from Wikipedia.
10683 (abmon): Likewise.
10684
10685 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10686
10687 [BZ #19485]
10688 * localedata/locales/csb_PL (mon): Fix typos:
10689 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
10690 (yesstr): Add, value is "jo".
10691 (nostr): Add, value is "nié".
10692
10693 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10694
10695 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
10696 all log1p and significand functions on m680x0.
10697 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
10698 of s_significand.c..
10699 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
10700 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
10701 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
10702 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
10703 s_log1p.c and include it..
10704
10705 2018-06-21 Vincent Chen <vincentc@andestech.com>
10706
10707 * elf/elf.h (R_NDS32_NONE): New define.
10708 (R_NDS32_32_RELA): Likewise.
10709 (R_NDS32_COPY): Likewise.
10710 (R_NDS32_GLOB_DAT): Likewise.
10711 (R_NDS32_JUMP_SLOT): Likewise.
10712 (R_NDS32_RELATIVE): Likewise.
10713 (R_NDS32_TLS_TPOFF): Likewise.
10714 (R_NDS32_TLS_DESC): Likewise.
10715
10716 2018-06-21 Mark Wielaard <mark@klomp.org>
10717
10718 * elf/elf.h (R_BPF_MAP_FD): Removed.
10719 (R_BPF_64_64, R_BPF_64_32): New.
10720
10721 2018-06-21 Florian Weimer <fweimer@redhat.com>
10722
10723 [BZ #23253]
10724 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
10725 Renamed from libc_feholdsetround_ctx.
10726 (default_libc_feresetround_ctx): Renamed from
10727 libc_feresetround_ctx.
10728 (default_libc_feholdsetround_noex_ctx): Renamed from
10729 libc_feholdsetround_noex_ctx.
10730 (default_libc_feresetround_noex_ctx): Renamed from
10731 libc_feresetround_noex_ctx.
10732 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
10733 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
10734 forwardning to the old implementations under the new names.
10735 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
10736 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
10737 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
10738 (libc_feresetround_ctx): Forward to default implements for i386
10739 and MATH_SET_BOTH_ROUNDING_MODES.
10740 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
10741 Add -DMATH_SET_BOTH_ROUNDING_MODES.
10742
10743 2018-06-20 Joseph Myers <joseph@codesourcery.com>
10744
10745 * string/tst-cmp.c: Include <libc-diag.h>.
10746 (strncmp_max): Disable -Wstringop-overflow= around call to
10747 strncmp.
10748 (strncasecmp_max): Disable -Wstringop-overflow= around call to
10749 strncasecmp.
10750
10751 * string/bug-strpbrk1.c: Include <libc-diag.h>.
10752 (main): Disable -Wunused-value around call to strpbrk.
10753 * string/bug-strspn1.c: Include <libc-diag.h>.
10754 (main): Disable -Wunused-value around call to strspn.
10755
10756 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10757 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10758
10759 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
10760 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
10761
10762 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10763
10764 * math/Makefile (libm-calls): Move s_significandF to...
10765 (gen-libm-calls): ... here.
10766 * math/s_significand_template.c: New file.
10767 * math/s_significand.c: Removed.
10768 * math/s_significandf.c: Removed.
10769 * math/s_significandl.c: Removed.
10770 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
10771 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
10772
10773 * math/e_exp2_template.c (declare_mgen_finite_alias,
10774 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
10775 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
10776 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
10777
10778 2018-06-20 Florian Weimer <fweimer@redhat.com>
10779
10780 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
10781
10782 2018-06-19 Joseph Myers <joseph@codesourcery.com>
10783
10784 [BZ #23280]
10785 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
10786 floating-point number to strtod functions rather than possibly
10787 negating result of those functions.
10788 * stdio-common/tst-scanf-round.c: New file.
10789 * stdio-common/Makefile (tests): Add tst-scanf-round.
10790 ($(objpfx)tst-scanf-round): Depend on $(libm).
10791
10792 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
10793
10794 * sysdeps/mach/hurd/localplt.data: Move to...
10795 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
10796 R_386_GLOB_DAT like on Linux i386.
10797
10798 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10799
10800 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
10801 (SHM_STAT_ANY): New macro.
10802 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
10803 (SHM_STAT_ANY): Likewise.
10804 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
10805 (SHM_STAT_ANY): Likewise.
10806 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
10807 (SHM_STAT_ANY): Likewise.
10808 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
10809 (SHM_STAT_ANY): Likewise.
10810 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
10811 (SHM_STAT_ANY): Likewise.
10812 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
10813 (SHM_STAT_ANY): Likewise.
10814 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
10815 (SHM_STAT_ANY): Likewise.
10816 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
10817 (SHM_STAT_ANY): Likewise.
10818 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
10819 (SHM_STAT_ANY): Likewise.
10820 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
10821 (SHM_STAT_ANY): Likewise.
10822 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
10823 (SHM_STAT_ANY): Likewise.
10824
10825 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
10826 (SEM_STAT_ANY): New macro.
10827 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
10828 (SEM_STAT_ANY): Likewise.
10829 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
10830 (SEM_STAT_ANY): Likewise.
10831 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
10832 (SEM_STAT_ANY): Likewise.
10833 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
10834 (SEM_STAT_ANY): Likewise.
10835 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
10836 (SEM_STAT_ANY): Likewise.
10837 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
10838 (SEM_STAT_ANY): Likewise.
10839 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
10840 (SEM_STAT_ANY): Likewise.
10841 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
10842 (SEM_STAT_ANY): Likewise.
10843 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
10844 (SEM_STAT_ANY): Likewise.
10845
10846 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
10847 (MSG_STAT_ANY): New macro.
10848 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
10849 (MSG_STAT_ANY): Likewise.
10850 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
10851 (MSG_STAT_ANY): Likewise.
10852 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
10853 (MSG_STAT_ANY): Likewise.
10854 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
10855 (MSG_STAT_ANY): Likewise.
10856 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
10857 (MSG_STAT_ANY): Likewise.
10858 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
10859 (MSG_STAT_ANY): Likewise.
10860 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
10861 (MSG_STAT_ANY): Likewise.
10862 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
10863 (MSG_STAT_ANY): Likewise.
10864 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
10865 (MSG_STAT_ANY): Likewise.
10866
10867 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10868 (MAP_TYPE): Change value to 0x2b.
10869
10870 2018-06-18 Florian Weimer <fweimer@redhat.com>
10871
10872 [BZ #15722]
10873 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
10874 socket with SOCK_CLOEXEC.
10875
10876 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10877
10878 [BZ #23303]
10879 * sysdeps/powerpc/powerpc64/le/Makefile
10880 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
10881 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
10882 (gnulib-tests): Also add $(f128-loader-link) for
10883 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
10884
10885 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10886
10887 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
10888 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
10889 of sendfile.
10890 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
10891 (sendfile64): New strong alias.
10892 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
10893 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
10894 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
10895 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
10896 attribute.
10897 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
10898 ___pthread_get_cleanup_stack.
10899 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
10900 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
10901 * mach/shortcut.awk: Make syscall stubs include
10902 <mach-shortcuts-hidden.h> and add hidden definition.
10903 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
10904 (__mach_msg): Add hidden prototype.
10905 * mach/msg.c: Include <mach.h>.
10906 (__mach_msg): Add hidden definition.
10907 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
10908 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
10909 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
10910 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
10911 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
10912 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
10913 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
10914 prototype and definition.
10915 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
10916 hidden target for _hurd_self_sigstate.
10917
10918 2018-06-15 Joseph Myers <joseph@codesourcery.com>
10919
10920 [BZ #23007]
10921 * stdlib/tst-strtod-nan-sign-main.c: New file.
10922 * stdlib/tst-strtod-nan-sign.c: Likewise.
10923 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
10924 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
10925 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
10926 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
10927 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
10928
10929 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
10930
10931 [BZ #23007]
10932 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
10933 appropriate sign.
10934
10935 2018-06-14 Florian Weimer <fweimer@redhat.com>
10936
10937 [BZ #23290]
10938 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
10939 that the result stays within the ISO-8859-1 range.
10940 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
10941 characters are defined in IBM273.
10942
10943 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10944
10945 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
10946 __mach_task_self): Remove attribute_hidden.
10947
10948 2018-06-14 Joseph Myers <joseph@codesourcery.com>
10949
10950 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
10951 ignore -Wrestrict for one test.
10952
10953 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
10954 Szabolcs Nagy <szabolcs.nagy@arm.com>
10955
10956 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
10957
10958 2018-06-14 Florian Weimer <fweimer@redhat.com>
10959
10960 * scripts/update-abilist.sh: Accept empty list of files to patch.
10961
10962 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
10963
10964 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
10965 test-xfail-check-abi-libmachuser): Add.
10966 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
10967 __libc_read and __libc_write to __read and __write.
10968 * sysdeps/hurd/include/hurd/port.h: New file.
10969 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
10970 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
10971 __thread_switch, __evc_wait): Move declarations to...
10972 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
10973 attribute_hidden.
10974 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
10975 use PLT to call _hurd_self_sigstate.
10976
10977 2018-06-13 Joseph Myers <joseph@codesourcery.com>
10978
10979 [BZ #23279]
10980 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10981 MAX_EXP as overflowing.
10982 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10983 overflow flag.
10984 (round_str): Output also whether result overflows in each rounding
10985 mode.
10986 * stdlib/tst-strtod-round-data: Add more tests.
10987 * stdlib/tst-strtod-round-data.h: Regenerated.
10988 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10989 (TEST): Handle extra arguments for overflow flags.
10990 (struct test_overflow): New type.
10991 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10992 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10993 (test_in_one_mode): Take argument with overflow information.
10994 (do_test): Update calls to test_in_one_mode.
10995
10996 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10997
10998 * elf/dl-load (_dl_dst_substitute): Correct comment.
10999 (_dl_dst_count): Likewise.
11000
11001 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
11002 lll_futex_timed_wait.
11003
11004 2018-06-12 Joseph Myers <joseph@codesourcery.com>
11005
11006 [BZ #23277]
11007 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
11008 attribute.
11009 * math/test-nan-const.c: New file.
11010 * math/Makefile (tests): Add test-nan-const.
11011 (CFLAGS-test-nan-const.c): New variable.
11012
11013 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
11014
11015 * benchtests/scripts/compare_strings.py (process_results): Add
11016 funcs argument. Compare only functions which are selected.
11017 (main): Check if base function is among selected functions.
11018 Pass selected functions to process_results.
11019 (__main__): Add -f/--functions argument.
11020
11021 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
11022 Hongbo Zhang <hongbo.zhang@linaro.org>
11023
11024 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
11025 __memcpy_falkor for phecda core.
11026 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
11027 __memmove_falkor for phecda core.
11028 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
11029 __memset_falkor for phecda core.
11030 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
11031 for phecda core.
11032 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
11033 macro to identify phecda core.
11034
11035 2018-06-12 Carlos O'Donell <carlos@redhat.com>
11036 Andreas Schwab <schwab@suse.de>
11037 Dmitry V. Levin <ldv@altlinux.org>
11038 Florian Weimer <fweimer@redhat.com>
11039
11040 [BZ #23102]
11041 [BZ #21942]
11042 [BZ #18018]
11043 [BZ #23259]
11044 CVE-2011-0536
11045 * elf/dl-dst.h: Remove DL_DST_COUNT.
11046 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
11047 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
11048 (is_dst): Comment. Support ELF gABI.
11049 (_dl_dst_count): Comment. Simplify and count DSTs.
11050 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
11051 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
11052 locals.
11053
11054 2018-06-12 Zack Weinberg <zackw@panix.com>
11055
11056 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
11057 * sysdeps/unix/sysv/linux/dl-sysdep.c
11058 Include not-cancel.h. Use __close_nocancel instead of __close,
11059 __open64_nocancel instead of __open, __read_nocancel instead of
11060 __libc_read, and __write_nocancel instead of __libc_write.
11061
11062 * csu/check_fds.c (check_one_fd)
11063 * sysdeps/posix/fdopendir.c (__fdopendir)
11064 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
11065 instead of __fcntl and/or __libc_fcntl.
11066
11067 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
11068 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
11069 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
11070 Use __open64_nocancel instead of __open_nocancel.
11071
11072 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
11073 hidden_proto declarations to the end and issue them if either
11074 IS_IN(libc) or IS_IN(rtld).
11075 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11076 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
11077 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
11078 read_nocancel, waitpid_nocancel, write_nocancel.
11079
11080 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
11081 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
11082 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
11083
11084 * nptl/pt-fcntl.c: New file.
11085 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
11086 (libpthread-routines): Add pt-fcntl.
11087 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
11088 (__libc_fcntl): Remove attribute_hidden.
11089 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
11090 __fcntl_nocancel_adjusted, not fcntl_common.
11091 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
11092 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
11093 to fcntl_nocancel.c.
11094 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
11095 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
11096 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
11097 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
11098
11099 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
11100 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
11101 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
11102 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
11103 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
11104 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
11105 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
11106 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
11107 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
11108 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
11109 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
11110 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
11111 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
11112 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
11113 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
11114 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
11115 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
11116 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
11117 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
11118 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
11119
11120 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
11121 libpthread-routines.
11122 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
11123 defines nothing.
11124
11125 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
11126 __libc_read, and __write instead of __libc_write. Define
11127 __open64 in addition to __open.
11128
11129 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
11130
11131 [BZ #23250]
11132 [BZ #10686]
11133 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
11134 to _private_tm[3] and add __glibc_reserved2.
11135 Add _Static_assert of offset of __private_ss == 0x30.
11136 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
11137 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
11138
11139 2018-06-12 Florian Weimer <fweimer@redhat.com>
11140
11141 x86: Make strncmp usable from rtld.
11142 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
11143 __strncmp_ia32 if in libc (and not in rtld).
11144 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
11145 strncmp if not in libc (and not to __strncmp_sse2).
11146
11147 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
11148
11149 [BZ #23140]
11150 * localedata/locales/gd_GB (mon): Rename to...
11151 (alt_mon): This.
11152 (mon): Import from CLDR (genitive case).
11153 * localedata/locales/hsb_DE (mon): Rename to...
11154 (alt_mon): This.
11155 (mon): Import from CLDR (genitive case).
11156 * localedata/locales/wa_BE (mon): Rename to...
11157 (alt_mon): This.
11158 (mon): Add, fill with the proper genitive forms, but CLDR data
11159 is incomplete; completed according to the comments in this file.
11160 (d_t_fmt): Do not use "di" before the month name, no longer needed.
11161
11162 * localedata/locales/wa_BE (country_name): Reword
11163 "Beljike" -> "Beldjike".
11164
11165 2018-06-11 Joseph Myers <joseph@codesourcery.com>
11166
11167 [BZ #23272]
11168 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
11169 cases of non-finite arguments.
11170 * math/libm-test-fma.inc (fma_test_data): Add more tests.
11171
11172 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
11173
11174 [BZ #23174]
11175 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
11176
11177 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11178
11179 [BZ #23264]
11180 * include/unistd.h (__execvpex): New prototype.
11181 * posix/Makefile (tests): Add tst-spawn4.
11182 (tests-internal): Add tst-spawn4-compat.
11183 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
11184 * posix/tst-spawn4-compat.c: New file.
11185 * posix/tst-spawn4.c: Likewise.
11186 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
11187 binaries as shell scripts.
11188 * sysdeps/posix/spawni.c (__spawni): Likewise.
11189
11190 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
11191
11192 [BZ #23145]
11193 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
11194 ($(all-built-dso:=.dynsym): New target.
11195 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
11196 ($(objpfx)check-initfini.out): New target.
11197 (generated): Add check-initfini.out.
11198 * scripts/check-initfini.awk: New file.
11199 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
11200 (_fini): Likewise.
11201 * sysdeps/alpha/crti.S (_init): Mark as hidden.
11202 (_fini): Likewise.
11203 * sysdeps/arm/crti.S (_init): Mark as hidden.
11204 (_fini): Likewise.
11205 * sysdeps/hppa/crti.S (_init): Mark as hidden.
11206 (_fini): Likewise.
11207 * sysdeps/i386/crti.S (_init): Mark as hidden.
11208 (_fini): Likewise.
11209 * sysdeps/ia64/crti.S (_init): Mark as hidden.
11210 (_fini): Likewise.
11211 * sysdeps/m68k/crti.S (_init): Mark as hidden.
11212 (_fini): Likewise.
11213 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
11214 (_fini): Likewise.
11215 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
11216 (_fini): Likewise.
11217 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
11218 (_fini): Likewise.
11219 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
11220 (_fini): Likewise.
11221 * sysdeps/nios2/crti.S (_init): Mark as hidden.
11222 (_fini): Likewise.
11223 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
11224 (_fini): Likewise.
11225 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
11226 (_fini): Likewise.
11227 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
11228 (_fini): Likewise.
11229 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
11230 (_fini): Likewise.
11231 * sysdeps/sh/crti.S (_init): Mark as hidden.
11232 (_fini): Likewise.
11233 * sysdeps/sparc/crti.S (_init): Mark as hidden.
11234 (_fini): Likewise.
11235 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
11236 (_fini): Likewise.
11237
11238 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11239
11240 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
11241 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
11242 and TF redirection to KFtype and KF only when the default
11243 long double type is not the IEEE 128-bit floating point type.
11244
11245 2018-06-05 Joseph Myers <joseph@codesourcery.com>
11246
11247 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
11248 macro.
11249 (HWCAP_USCAT): Likewise.
11250 (HWCAP_ILRCPC): Likewise.
11251 (HWCAP_FLAGM): Likewise.
11252 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
11253 Increase to 28.
11254 (_dl_aarch64_cap_flags): Add new flag names.
11255
11256 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
11257 (MAP_FIXED_NOREPLACE): New macro.
11258 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
11259 (MAP_FIXED_NOREPLACE): Likewise.
11260 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
11261 (MAP_FIXED_NOREPLACE): Likewise.
11262 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
11263 (MAP_FIXED_NOREPLACE): Likewise.
11264 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
11265 (MAP_FIXED_NOREPLACE): Likewise.
11266 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
11267 (MAP_FIXED_NOREPLACE): Likewise.
11268 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
11269 (MAP_FIXED_NOREPLACE): Likewise.
11270 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
11271 (MAP_FIXED_NOREPLACE): Likewise.
11272 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
11273 (MAP_FIXED_NOREPLACE): Likewise.
11274 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
11275 (MAP_FIXED_NOREPLACE): Likewise.
11276 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
11277 (MAP_FIXED_NOREPLACE): Likewise.
11278 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
11279 (MAP_FIXED_NOREPLACE): Likewise.
11280 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
11281 (MAP_FIXED_NOREPLACE): Likewise.
11282 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
11283 (MAP_FIXED_NOREPLACE): Likewise.
11284 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
11285 (MAP_FIXED_NOREPLACE): Likewise.
11286
11287 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11288 version to 4.17.
11289
11290 2018-06-04 Joseph Myers <joseph@codesourcery.com>
11291
11292 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11293 version to 4.17
11294
11295 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
11296
11297 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
11298 int.
11299 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
11300
11301 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11302
11303 * benchtests/scripts/compare_string.py: (process_results) Catch
11304 exception in non-existent base_func and catch exception in
11305 non-existent attribute.
11306 (parse_file) Catch exception if input file does not exist.
11307
11308 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11309
11310 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
11311 options to avoid diff calculation and omit header, respectively.
11312 (main): process --no-diff and --no-header
11313
11314 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11315 H.J. Lu <hongjiu.lu@intel.com>
11316
11317 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11318 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
11319 wcsncmp-sse2.
11320 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
11321 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
11322 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
11323 and __wcsncmp_sse2.
11324 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
11325 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
11326 AVX unaligned load is fast and vzeroupper is preferred.
11327 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
11328 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
11329 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
11330 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
11331 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
11332 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
11333 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
11334 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
11335 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
11336 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
11337 is undefined.
11338
11339 2018-06-01 Florian Weimer <fweimer@redhat.com>
11340
11341 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
11342 configuring with --disable-multi-arch, building with
11343 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
11344 Haswell-era CPU.
11345
11346 2018-06-01 Florian Weimer <fweimer@redhat.com>
11347
11348 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
11349 results from building with “-march=x86-64 -mtune=generic
11350 -mfpmath=sse” and running on a Haswell-era CPU.
11351
11352 2018-06-01 Joseph Myers <joseph@codesourcery.com>
11353
11354 [BZ #18473]
11355 * soft-fp/sqrttf2.c: Remove file.
11356 * soft-fp/sqrtdf2.c: Move to ....
11357 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
11358 <shlib-compat.h>.
11359 (__sqrtdf2): Make conditional on
11360 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11361 symbol.
11362 * soft-fp/sqrtsf2.c: Move to ....
11363 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
11364 <shlib-compat.h>.
11365 (__sqrtsf2): Make conditional on
11366 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11367 symbol.
11368 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
11369 (gcc-double-routines): Remove sqrtdf2.
11370 (gcc-quad-routines): Remove sqrttf2.
11371 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11372 Do not filter out sqrtsf2 and sqrtdf2.
11373 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
11374 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
11375
11376 2018-06-01 Florian Weimer <fweimer@redhat.com>
11377
11378 * sysdeps/generic/libcidn.abilist: Remove file.
11379
11380 2018-06-01 Florian Weimer <fweimer@redhat.com>
11381
11382 [BZ #23236]
11383 * libio/strfile.h (struct _IO_str_fields): Rename members to
11384 discourage their use and add comment.
11385 (_IO_STR_DYNAMIC): Remove unused macro.
11386 * libio/strops.c (_IO_str_init_static_internal): Do not use
11387 callback pointers. Call malloc and free.
11388 (_IO_str_overflow): Do not use callback pointers. Call malloc
11389 and free.
11390 (enlarge_userbuf): Likewise.
11391 (_IO_str_finish): Call free.
11392 * libio/wstrops.c (_IO_wstr_init_static): Initialize
11393 _allocate_buffer_unused.
11394 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
11395 and free.
11396 (enlarge_userbuf): Likewise.
11397 (_IO_wstr_finish): Call free.
11398 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
11399 _allocate_buffer_unused, _free_buffer_unused.
11400 * libio/memstream.c (__open_memstream): Likewise.
11401 * libio/vasprintf.c (_IO_vasprintf): Likewise.
11402 * libio/wmemstream.c (open_wmemstream): Likewise.
11403
11404 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
11405
11406 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
11407 AMD Ryzen 7 1800X.
11408
11409 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11410
11411 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
11412 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
11413 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
11414 New file.
11415 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
11416 Likewise.
11417 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
11418
11419 2018-05-29 Florian Weimer <fweimer@redhat.com>
11420
11421 * support/Makefile (libsupport-routines): Add
11422 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
11423 xpthread_barrierattr_setpshared.
11424 * support/xpthread_barrierattr_destroy.c: New file.
11425 * support/xpthread_barrierattr_init.c: Likewise.
11426 * support/xpthread_barrierattr_setpshared.c: Likewise.
11427
11428 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
11429
11430 [BZ #23206]
11431 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
11432 _r_debug and update DT_DEBUG for debugger.
11433
11434 2018-05-29 Florian Weimer <fweimer@redhat.com>
11435
11436 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
11437 (tst-strtod5i.out): Likewise.
11438
11439 2018-05-25 Joseph Myers <joseph@codesourcery.com>
11440
11441 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
11442 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
11443 (sparc64-quad-routines): New variable. Moved from ....
11444 [$(subdir) = soft-fp] (sysdep_routines): Add
11445 $(sparc64-quad-routines). Moved from ....
11446 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
11447 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
11448 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
11449 moved from ....
11450 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
11451 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
11452 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
11453 * sysdeps/sparc/sparc64/qp_add.c: ... here.
11454 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
11455 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
11456 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
11457 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
11458 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
11459 * sysdeps/sparc/sparc64/qp_div.c: ... here.
11460 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
11461 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
11462 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
11463 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
11464 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
11465 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
11466 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
11467 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
11468 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
11469 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
11470 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
11471 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
11472 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
11473 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
11474 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
11475 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
11476 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
11477 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
11478 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
11479 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
11480 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
11481 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
11482 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
11483 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
11484 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
11485 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
11486 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
11487 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
11488 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
11489 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
11490 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
11491 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
11492 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
11493 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
11494 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
11495 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
11496 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
11497 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
11498 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
11499 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
11500 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
11501 * sysdeps/sparc/sparc64/qp_util.c: ... here.
11502 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
11503 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
11504 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
11505 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
11506 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
11507 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
11508
11509 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
11510 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
11511 (sparc32-quad-routines): New variable. Moved from ....
11512 [$(subdir) = soft-fp] (sysdep_routines): Add
11513 $(sparc32-quad-routines). Moved from ....
11514 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
11515 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
11516 moved from ....
11517 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
11518 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
11519 * sysdeps/sparc/sparc32/q_add.c: ... here.
11520 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
11521 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
11522 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
11523 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
11524 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
11525 * sysdeps/sparc/sparc32/q_div.c: ... here.
11526 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
11527 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
11528 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
11529 * sysdeps/sparc/sparc32/q_feq.c: ... here.
11530 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
11531 * sysdeps/sparc/sparc32/q_fge.c: ... here.
11532 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
11533 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
11534 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
11535 * sysdeps/sparc/sparc32/q_fle.c: ... here.
11536 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
11537 * sysdeps/sparc/sparc32/q_flt.c: ... here.
11538 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
11539 * sysdeps/sparc/sparc32/q_fne.c: ... here.
11540 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
11541 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
11542 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
11543 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
11544 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
11545 * sysdeps/sparc/sparc32/q_mul.c: ... here.
11546 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
11547 * sysdeps/sparc/sparc32/q_neg.c: ... here.
11548 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
11549 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
11550 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
11551 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
11552 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
11553 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
11554 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
11555 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
11556 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
11557 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
11558 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
11559 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
11560 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
11561 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
11562 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
11563 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
11564 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
11565 * sysdeps/sparc/sparc32/q_sub.c: ... here.
11566 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
11567 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
11568 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
11569 * sysdeps/sparc/sparc32/q_util.c: ... here.
11570 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
11571 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
11572 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
11573 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
11574
11575 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11576 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11577
11578 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
11579 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
11580 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
11581 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
11582
11583 2018-05-24 Joseph Myers <joseph@codesourcery.com>
11584
11585 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
11586 powerpc/soft-fp.
11587 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
11588 Likewise.
11589 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
11590 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
11591
11592 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11593
11594 [BZ #23171]
11595 * math/math.h [C++] (iseqsig): Fix parameter type for the long
11596 double version.
11597
11598 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11599
11600 * sysdeps/sh/Implies: Remove sh/soft-fp.
11601 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
11602 * sysdeps/sh/sfp-machine.h: ... here.
11603
11604 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11605
11606 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11607 (__mempcpy_erms): Skip zero length.
11608 (__memmove_erms): Likewise.
11609 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11610 (__memset_erms): Likewise.
11611
11612 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11613
11614 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
11615 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11616 Add functions moved from ....
11617 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
11618 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
11619 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
11620 from ....
11621 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
11622 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
11623 * sysdeps/alpha/e_sqrtl.c: ... here.
11624 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
11625 * sysdeps/alpha/local-soft-fp.h: ... here.
11626 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
11627 * sysdeps/alpha/ots_add.c: ... here.
11628 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
11629 * sysdeps/alpha/ots_cmp.c: ... here.
11630 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
11631 * sysdeps/alpha/ots_cmpe.c: ... here.
11632 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
11633 * sysdeps/alpha/ots_cvtqux.c: ... here.
11634 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
11635 * sysdeps/alpha/ots_cvtqx.c: ... here.
11636 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
11637 * sysdeps/alpha/ots_cvttx.c: ... here.
11638 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
11639 * sysdeps/alpha/ots_cvtxq.c: ... here.
11640 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
11641 * sysdeps/alpha/ots_cvtxt.c: ... here.
11642 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
11643 * sysdeps/alpha/ots_div.c: ... here.
11644 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
11645 * sysdeps/alpha/ots_mul.c: ... here.
11646 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
11647 * sysdeps/alpha/ots_nintxq.c: ... here.
11648 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
11649 * sysdeps/alpha/ots_sub.c: ... here.
11650 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
11651 * sysdeps/alpha/sfp-machine.h: ... here.
11652
11653 2018-05-23 Florian Weimer <fweimer@redhat.com>
11654
11655 [BZ #19728]
11656 [BZ #19729]
11657 [BZ #22247]
11658 CVE-2016-6261
11659 CVE-2016-6263
11660 CVE-2017-14062
11661 Switch to extern IDNA implementation (libidn2).
11662 * libidn: Remove subdirectory.
11663 * LICENSES: Do not mention licensing conditions for the removed
11664 libidn code.
11665 * config.h.in (HAVE_LIBIDN): Remove.
11666 * include/dlfcn.h (__libc_dlopen): Update comment.
11667 * include/idna.h: Remove file.
11668 * inet/Makefile (routines): Add idna.
11669 (tests-static, tests-internal): Add tst-idna_name_classify.
11670 (LOCALES): Generate locales for tests.
11671 (tst-idna_name_classify.out): Depend on generated locales.
11672 * inet/idna_name_classify.c: New file.
11673 * inet/tst-idna_name_classify.c: Likewise.
11674 * inet/net-internal.h (__idna_to_dns_encoding)
11675 (__idna_from_dns_encoding): Declare.
11676 * inet/net-internal.h (enum idna_name_classification): Define.
11677 (__idna_name_classify): Declare.
11678 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
11679 __idna_from_dns_encoding.
11680 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
11681 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
11682 name as a fallback in case of encoding errors.
11683 (getnameinfo): Use DEPRECATED_NI_IDN.
11684 * inet/idna.c: New file.
11685 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
11686 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
11687 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
11688 (modules-names): Add tst-no-libidn2.
11689 (extra-test-objs): Add tst-no-libidn2.os.
11690 (LDFLAGS-tst-no-libidn2.so): Set soname.
11691 (LOCALES): Set, and generate locales.
11692 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
11693 (tst-resolv-ai_idn-latin1): Likewise.
11694 (tst-resolv-ai_idn-nolibidn2): Likewise.
11695 (tst-resolv-ai_idn.out): Depend on locales.
11696 (tst-resolv-ai_idn-latin1.out): Depend on locales.
11697 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
11698 tst-no-libidn2.so.
11699 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
11700 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
11701 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
11702 * resolv/tst-resolv-ai_idn.c: New file.
11703 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
11704 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
11705 * resolv/tst-no-libidn2.c: Likewise.
11706 * support/support_format_addrinfo.c (format_ai_flags): Do not
11707 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
11708 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
11709 (gaih_inet): Call __idna_to_dns_encoding and
11710 __idna_from_dns_encoding, and use the original (punycode) name if
11711 __idna_from_dns_encoding fails due to an encoding error.
11712 (getaddrinfo): Use DEPRECATED_AI_IDN.
11713 * sysdeps/unix/inet/Subdirs (libidn): Remove.
11714 * sysdeps/unix/inet/configure: Remove file.
11715 * sysdeps/unix/inet/configure.ac: Likewise.
11716
11717 2018-05-23 Florian Weimer <fweimer@redhat.com>
11718
11719 Implement allocate_once.
11720 * include/allocate_once.h: New file.
11721 * misc/allocate_once.c: Likewise.
11722 * misc/tst-allocate_once.c: Likewise.
11723 * misc/Makefile (routines): Add allocate_once.
11724 (tests-internal): Add tst-allocate_once.
11725 (generated): Add tst-allocate_once.mtrace,
11726 tst-allocate_once-mem.out.
11727 (tests-special): Add tst-allocate_once-mem.out.
11728 (tst-allocate_once-ENV): Set MALLOC_TRACE.
11729 (tst-allocate_once-mem.out): Call mtrace.
11730 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
11731
11732 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11733
11734 [BZ #23196]
11735 * string/test-memcpy.c (do_test1): New function.
11736 (test_main): Call it.
11737
11738 2018-05-23 Andreas Schwab <schwab@suse.de>
11739
11740 [BZ #23196]
11741 CVE-2018-11237
11742 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
11743 (L(preloop_large)): Save initial destination pointer in %r11 and
11744 use it instead of %rax after the loop.
11745 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
11746
11747 2018-05-22 Joseph Myers <joseph@codesourcery.com>
11748
11749 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
11750 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
11751 -I../soft-fp. Moved from ....
11752 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
11753 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
11754 * sysdeps/aarch64/e_sqrtl.c: ... here.
11755 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
11756 * sysdeps/aarch64/sfp-machine.h: ... here.
11757
11758 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
11759 -Wmaybe-uninitialized around access to fq[0].
11760 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11761 Likewise.
11762
11763 [BZ #18471]
11764 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
11765 aliases for non-libc case of versioned symbols.
11766 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
11767 (llseek): Define as compat symbol if
11768 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
11769 with link warning.
11770 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
11771 Make into a compat symbol, disabled for minimum symbol version
11772 GLIBC_2.28 and later.
11773 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
11774
11775 2018-05-22 Florian Weimer <fweimer@redhat.com>
11776
11777 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
11778 not add -mpreferred-stack-boundary=4.
11779 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
11780 (stack-align-test-flags): Likewise.
11781 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
11782 Likewise.
11783 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
11784 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
11785 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
11786 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
11787 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
11788 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
11789 (CFLAGS-tst-align2.c): Likewise.
11790
11791 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11792
11793 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
11794 (index_arch_Prefer_FSRM): Likewise.
11795 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
11796 Also check Prefer_FSRM.
11797 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
11798 Also return OPTIMIZE (erms) for Prefer_FSRM.
11799
11800 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11801
11802 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
11803 (index_cpu_FSRM): Likewise.
11804 (reg_FSRM): Likewise.
11805
11806 2018-05-18 Joseph Myers <joseph@codesourcery.com>
11807
11808 * math/gen-tgmath-tests.py: Import sys.
11809 (Tests.__init__): Initialize macros_seen.
11810 (Tests.add_tests): Add macro to macros_seen. Only generate tests
11811 if requested to do so for this macro.
11812 (Tests.add_all_tests): Take argument for macro for which to
11813 generate tests.
11814 (Tests.check_macro_list): New function.
11815 (main): Handle check-list argument and argument specifying macro
11816 for which to generate tests.
11817 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
11818 [PYTHON] (tgmath3-macro-tests): Likewise.
11819 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
11820 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
11821 not test-tgmath3.c.
11822 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
11823 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
11824 to CFLAGS.
11825 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
11826 [PYTHON] ($(foreach
11827 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
11828 rule.
11829 [PYTHON] (tests-special): Add
11830 $(objpfx)test-tgmath3-macro-list.out.
11831 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
11832
11833 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
11834 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
11835 later.
11836
11837 [BZ #22639]
11838 * time/tzset.c (SECSPERDAY): Cast to time_t.
11839 * time/tst-y2039.c: New file.
11840 * time/Makefile (tests): Add tst-y2039.
11841
11842 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11843
11844 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11845 (PREFETCH_ONE_SET): Remove duplicate line.
11846
11847 2018-05-17 Florian Weimer <fweimer@redhat.com>
11848
11849 * sysdeps/generic/math-type-macros-double.h: Include
11850 <math-nan-payload-double.h> after <libm-alias-double.h>.
11851 * sysdeps/generic/math-type-macros-float.h: Include
11852 <math-nan-payload-float.h> after <libm-alias-float.h>.
11853 * sysdeps/generic/math-type-macros-float128.h: Include
11854 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
11855 * sysdeps/generic/math-type-macros-ldouble.h: Include
11856 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
11857
11858 2018-05-17 Andreas Schwab <schwab@suse.de>
11859
11860 * resolv/res_send.c (__res_context_send): Don't set errno when
11861 returing error after malloc failure.
11862
11863 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
11864
11865 * nptl/allocatestack.c (allocate_stack): Remove the
11866 !__ASSUME_PRIVATE_FUTEX paths.
11867 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
11868 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
11869 Likewise.
11870 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
11871 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11872 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11873 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11874 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
11875 !__ASSUME_PRIVATE_FUTEX path.
11876 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
11877 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
11878 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11879 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
11880 !__ASSUME_PRIVATE_FUTEX macros.
11881 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
11882 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
11883 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
11884 * sysdeps/unix/sysv/linux/kernel-features.h
11885 (__ASSUME_PRIVATE_FUTEX): Removed.
11886
11887 2018-05-17 Joseph Myers <joseph@codesourcery.com>
11888
11889 * math/Makefile (libm-narrow-fns): Add div.
11890 (libm-test-funcs-narrow): Likewise.
11891 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
11892 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
11893 * math/gen-auto-libm-tests.c (test_functions): Add div.
11894 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
11895 (NARROW_DIV_ROUND_TO_ODD): Likewise.
11896 (NARROW_DIV_TRIVIAL): Likewise.
11897 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
11898 macro.
11899 (__ddivl): Likewise.
11900 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
11901 ddiv.
11902 (CFLAGS-nldbl-ddiv.c): New variable.
11903 (CFLAGS-nldbl-fdiv.c): Likewise.
11904 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11905 __nldbl_ddivl.
11906 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
11907 prototype.
11908 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
11909 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
11910 * math/auto-libm-test-in: Add tests of div.
11911 * math/auto-libm-test-out-narrow-div: New generated file.
11912 * math/libm-test-narrow-div.inc: New file.
11913 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
11914 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
11915 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
11916 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
11917 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
11918 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
11919 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
11920 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
11921 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
11922 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
11923 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
11924 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
11925 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
11926 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
11927 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
11928 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
11929 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
11930 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
11931 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11932 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11933 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11934 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11935 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11936 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11937 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11938 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11939 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11940 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11941 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11942 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11943 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11944 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11945 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11946 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11947 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11948 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11949 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11950 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11951 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11952 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11953 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11954 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11955 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11956 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11957
11958 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11959
11960 [BZ #23178]
11961 * nscd/nscd-client.h (sendfileall): Remove prototype.
11962 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
11963 (handle_request): Use writeall instead of sendfileall.
11964 * nscd/aicache.c (addhstaiX): Likewise.
11965 * nscd/grpcache.c (cache_addgr): Likewise.
11966 * nscd/hstcache.c (cache_addhst): Likewise.
11967 * nscd/initgrcache.c (addinitgroupsX): Likewise.
11968 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
11969 * nscd/pwdcache.c (cache_addpw): Likewise.
11970 * nscd/servicescache.c (cache_addserv): Likewise.
11971 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
11972 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
11973 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
11974 Remove define.
11975
11976 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
11977
11978 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11979 Include <string/strncat.c>.
11980 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11981 alias.
11982 (__GI___strncat): New hidden alias.
11983
11984 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11985
11986 * sysdeps/mips/mips32/libm-test-ulps: Update.
11987 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11988
11989 2018-05-16 Florian Weimer <fweimer@redhat.com>
11990
11991 * support/Makefile (libsupport-routines): Add support_quote_blob,
11992 support_test_compare_blob.
11993 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11994 * support/check.h (TEST_COMPARE_BLOB): Define.
11995 (support_test_compare_blob): Declare.
11996 * support/support.h (support_quote_blob): Declare.
11997 * support/support_quote_blob.c: New file.
11998 * support/support_test_compare_blob.c: Likewise.
11999 * support/tst-support_quote_blob.c: Likewise.
12000 * support/tst-test_compare_blob.c: Likewise.
12001
12002 2018-05-16 Florian Weimer <fweimer@redhat.com>
12003
12004 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
12005 of <strtod_nan_double.h>.
12006 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
12007 instead of SET_MANTISSA.
12008 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
12009 of include <strtod_nan_float.h>.
12010 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
12011 instead of <strtod_nan_ldouble.h>.
12012 * stdlib/strtod_nan_double.h: Move to ...
12013 * sysdeps/generic/math-nan-payload-double.h: ... here.
12014 (FLOAT): Remove definition.
12015 (SET_MANTISSA): Rename to ...
12016 (SET_NAN_PAYLOAD): ... this.
12017 * stdlib/strtod_nan_float.h: Move to ...
12018 * sysdeps/generic/math-nan-payload-float.h: ... here.
12019 (FLOAT): Remove definition.
12020 (SET_MANTISSA): Rename to ...
12021 (SET_NAN_PAYLOAD): ... this.
12022 * sysdeps/generic/math-type-macros-double.h: Include
12023 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
12024 instead of <math-svid-compat.h>.
12025 * sysdeps/generic/math-type-macros-float.h: Include
12026 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
12027 instead of <math-svid-compat.h>.
12028 * sysdeps/generic/math-type-macros-float128.h: Include
12029 <math-nan-payload-float128.h>.
12030 * sysdeps/generic/math-type-macros-ldouble.h: Include
12031 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
12032 instead of <math-svid-compat.h>.
12033 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
12034 check for definition.
12035 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
12036 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
12037 Include <ieee754_float128.h>.
12038 (FLOAT): Remove definition.
12039 (SET_MANTISSA): Rename to ...
12040 (SET_NAN_PAYLOAD): ... this.
12041 * sysdeps/ieee754/float128/strtof128_nan.c: Include
12042 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
12043 Do not include <float128_private.h>.
12044 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
12045 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
12046 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
12047 (FLOAT): Remove definition.
12048 (SET_MANTISSA): Rename to ...
12049 (SET_NAN_PAYLOAD): ... this.
12050 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
12051 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
12052 (FLOAT): Remove definition.
12053 (SET_MANTISSA): Rename to ...
12054 (SET_NAN_PAYLOAD): ... this.
12055 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
12056 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
12057 (FLOAT): Remove definition.
12058 (SET_MANTISSA): Rename to ...
12059 (SET_NAN_PAYLOAD): ... this.
12060 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
12061 of "../stdlib/strtod_nan_double.h".
12062 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
12063 of "../stdlib/strtod_nan_float.h".
12064 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
12065 instead of "../stdlib/strtod_nan_ldouble.h".
12066 * manual/arith.texi (Parsing of Floats): Adjust comment.
12067
12068 2018-05-16 Joseph Myers <joseph@codesourcery.com>
12069
12070 * math/Makefile (libm-narrow-fns): Add mul.
12071 (libm-test-funcs-narrow): Likewise.
12072 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
12073 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
12074 * math/gen-auto-libm-tests.c (test_functions): Add mul.
12075 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
12076 (NARROW_MUL_ROUND_TO_ODD): Likewise.
12077 (NARROW_MUL_TRIVIAL): Likewise.
12078 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
12079 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
12080 macro.
12081 (__dmull): Likewise.
12082 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
12083 dmul.
12084 (CFLAGS-nldbl-dmul.c): New variable.
12085 (CFLAGS-nldbl-fmul.c): Likewise.
12086 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
12087 __nldbl_dmull.
12088 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
12089 prototype.
12090 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
12091 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
12092 * math/auto-libm-test-in: Add tests of mul.
12093 * math/auto-libm-test-out-narrow-mul: New generated file.
12094 * math/libm-test-narrow-mul.inc: New file.
12095 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
12096 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
12097 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
12098 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
12099 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
12100 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
12101 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
12102 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
12103 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
12104 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
12105 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
12106 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
12107 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
12108 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
12109 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
12110 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
12111 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
12112 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
12113 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12114 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12115 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12116 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12117 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12118 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12119 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12120 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12121 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12122 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12123 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12124 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12125 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12126 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12127 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12128 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
12129 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12130 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12131 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12132 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12133 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12134 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12135 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12136 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12137 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12138 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12139
12140 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12141
12142 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
12143 with *%eax in call.
12144
12145 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12146
12147 * sysdeps/i386/ldsodefs.h: Removed.
12148 * sysdeps/x86_64/ldsodefs.h: Moved to ...
12149 * sysdeps/x86/ldsodefs.h: This.
12150 (La_i86_regs): New.
12151 (La_i86_retval): Likewise.
12152 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
12153 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
12154
12155 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12156
12157 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
12158 unnecessary testl.
12159
12160 2018-05-13 Alan Modra <amodra@gmail.com>
12161
12162 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
12163 R_PARISC_TLS_DTPOFF32 reloc addend.
12164
12165 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12166
12167 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
12168 * math/math.h: Restrict the prototype definition for the functions
12169 issignaling(_Float128) and iszero(_Float128); and template
12170 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
12171 __HAVE_FLOAT128_UNLIKE_LDBL.
12172 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
12173 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
12174 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
12175 __f128() constants; define the type _Float128 as long double;
12176 and reuse long double in __CFLOAT128.
12177
12178 2018-05-11 Joseph Myers <joseph@codesourcery.com>
12179
12180 * sysdeps/generic/math_private.h: Do not include
12181 <math-barriers.h>.
12182 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
12183 <math_private.h>.
12184 * math/fromfp.h: Include <math-barriers.h>.
12185 * math/math-narrow.h: Likewise.
12186 * math/s_nextafter.c: Likewise.
12187 * math/s_nexttowardf.c: Likewise.
12188 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
12189 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
12190 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
12191 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
12192 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12193 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12194 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12195 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12196 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12197 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12198 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12199 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12200 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12201 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12202 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12203 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12204 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12205 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12206 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12207 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12208 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12209 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12210 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12211 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12212 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12213 * sysdeps/ieee754/k_standardl.c: Likewise.
12214 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12215 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12216 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12217 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12218 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12219 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12220 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12221 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12222 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12223 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12224 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12225 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12226 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12227 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12228 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12229 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12230 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12231 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12232 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12233 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12234 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
12235 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
12236
12237 2018-05-11 Florian Weimer <fweimer@redhat.com>
12238
12239 Use 64-bit epoch values in the time zone file parser.
12240 * include/time.h (internal_time_t): Define.
12241 (__tzfile_compute): Use it.
12242 * time/tzfile.c (struct leap): Use internal_time_t for epoch
12243 member.
12244 (transitions): Switch to internal_time_t.
12245 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
12246 types.
12247 (__tzfile_compute): Use internal_time_t for timer argument. Check
12248 for truncation before calling __offtime.
12249
12250 2018-05-11 Florian Weimer <fweimer@redhat.com>
12251
12252 [BZ #23166]
12253 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
12254 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
12255 Likewise.
12256 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
12257 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
12258 export without --enable-obsolete-rpc.
12259 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
12260 symbol. This should not have been exported, ever.
12261
12262 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
12263
12264 [BZ #23152]
12265 * localedata/locales/gd_GB (abmon): Fix typo in May:
12266 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
12267
12268 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
12269
12270 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12271 Use multiple registers to copy data in loop tail.
12272
12273 * sysdeps/aarch64/multiarch/memmove_falkor.S
12274 (__memmove_falkor): Use multiple registers to move data in
12275 loop tail.
12276
12277 2018-05-10 Joseph Myers <joseph@codesourcery.com>
12278
12279 * math/math-underflow.h: New file.
12280 * sysdeps/generic/math_private.h: Do not include <float.h>.
12281 (fabs_tg): Remove macro. Moved to math-underflow.h.
12282 (min_of_type_f): Likewise.
12283 (min_of_type_): Likewise.
12284 (min_of_type_l): Likewise.
12285 (min_of_type_f128): Likewise.
12286 (min_of_type): Likewise.
12287 (math_check_force_underflow): Likewise.
12288 (math_check_force_underflow_nonneg): Likewise.
12289 (math_check_force_underflow_complex): Likewise.
12290 * math/e_exp2_template.c: Include <math-underflow.h>.
12291 * math/k_casinh_template.c: Likewise.
12292 * math/s_catan_template.c: Likewise.
12293 * math/s_catanh_template.c: Likewise.
12294 * math/s_ccosh_template.c: Likewise.
12295 * math/s_cexp_template.c: Likewise.
12296 * math/s_clog10_template.c: Likewise.
12297 * math/s_clog_template.c: Likewise.
12298 * math/s_csin_template.c: Likewise.
12299 * math/s_csinh_template.c: Likewise.
12300 * math/s_csqrt_template.c: Likewise.
12301 * math/s_ctan_template.c: Likewise.
12302 * math/s_ctanh_template.c: Likewise.
12303 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12304 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12305 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12306 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12307 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12308 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12309 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12310 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12311 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12312 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12313 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12314 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12315 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12316 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12317 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12318 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12319 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12320 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12321 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12322 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12323 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12324 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12325 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12326 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12327 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12328 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12329 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12330 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12331 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12332 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12333 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12334 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12335 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12336 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12337 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12338 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12339 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12340 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12341 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12342 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12343 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12344 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12345 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12346 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12347 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12348 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12349 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12350 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12351 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12352 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12353 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12354 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
12355 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12356 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
12357 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12358 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12359 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12360 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12361 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12362 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12363 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12364 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12365 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12366 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12367 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12368 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12369 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12370 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
12371 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12372 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12373 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12374 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12375 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12376 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
12377 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12378 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12379 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12380 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12381 * sysdeps/x86/fpu/powl_helper.c: Likewise.
12382 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
12383 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
12384 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
12385 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
12386 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
12387
12388 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12389
12390 * sysdeps/generic/math-barriers.h: New file.
12391 * sysdeps/generic/math_private.h [!math_opt_barrier]
12392 (math_opt_barrier): Move to math-barriers.h.
12393 [!math_opt_barrier] (math_force_eval): Likewise.
12394 * sysdeps/aarch64/fpu/math-barriers.h: New file.
12395 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
12396 math-barriers.h.
12397 (math_force_eval): Likewise.
12398 * sysdeps/alpha/fpu/math-barriers.h: New file.
12399 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
12400 math-barriers.h.
12401 (math_force_eval): Likewise.
12402 * sysdeps/x86/fpu/math-barriers.h: New file.
12403 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
12404 math-barriers.h.
12405 (math_force_eval): Likewise.
12406 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
12407 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
12408 multiple-include guard for rename.
12409 * sysdeps/powerpc/fpu/math-barriers.h: New file.
12410 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
12411 math-barriers.h.
12412 (math_force_eval): Likewise.
12413
12414 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
12415
12416 [BZ #22786]
12417 CVE-2018-11236
12418 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
12419 computation.
12420 * stdlib/Makefile (test-bz22786): New test.
12421 * stdlib/test-bz22786.c: New test.
12422
12423 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12424
12425 * include/math-narrow-eval.h: New file. Contents moved from ....
12426 * sysdeps/generic/math_private.h: ... here.
12427 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
12428 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
12429 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
12430 * stdlib/strtod_l.c: Likewise.
12431 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12432 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12433 * sysdeps/i386/fpu/s_fdim.c: Likewise.
12434 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12435 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12436 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12437 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12438 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12439 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12440 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
12441 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12442 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
12443 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12444 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12445 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12446 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12447 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12448 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12449 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12450 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12451 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12452 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12453 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12454 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12455 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12456 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12457 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12458 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12459 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
12460
12461 2018-05-08 Andreas Schwab <schwab@suse.de>
12462
12463 * sysdeps/nptl/internaltypes.h: Fix comment.
12464
12465 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
12466
12467 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
12468 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
12469 hidden.
12470
12471 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
12472
12473 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
12474 of I into loop header.
12475 * benchtests/bench-memmove-walk.c
12476 (test_main): Likewise.
12477
12478 2018-05-07 Alexandre Oliva <oliva@gnu.org>
12479
12480 Revert:
12481 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12482 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12483
12484 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
12485
12486 [BZ #20419]
12487 * elf/dl-load.c (open_verify): Fix stack overflow.
12488 * elf/Makefile (tst-big-note): New test.
12489 * elf/tst-big-note-lib.S: New.
12490 * elf/tst-big-note.c: New.
12491
12492 2018-05-04 Joseph Myers <joseph@codesourcery.com>
12493
12494 * scripts/abilist.awk: Ignore absolute symbols.
12495 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
12496 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
12497 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
12498 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
12499 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
12500 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
12501 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12502 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
12503 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
12504 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
12505 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
12506 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
12507 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
12508 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
12509 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
12510 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
12511 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
12512 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
12513 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12514 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
12515 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
12516 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
12517 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
12518 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
12519 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
12520 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
12521 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
12522 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
12523 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12524 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
12525 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
12526 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12527 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
12528 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
12529 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
12530 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
12531 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
12532 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
12533 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
12534 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
12535 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
12536 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12537 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
12538 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
12539 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12540 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
12541 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
12542 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
12543 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
12544 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
12545 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
12546 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
12547 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
12548 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
12549 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12550 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
12551 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
12552 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12553 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
12554 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
12555 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
12556 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
12557 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
12558 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
12559 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
12560 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
12561 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
12562 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12563 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
12564 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
12565 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12566 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
12567 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
12568 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
12569 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
12570 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
12571 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
12572 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
12573 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
12574 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
12575 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12576 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
12577 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
12578 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12579 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
12580 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
12581 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
12582 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
12583 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
12584 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
12585 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
12586 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
12587 Likewise.
12588 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
12589 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12590 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
12591 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
12592 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12593 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
12594 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
12595 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
12596 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
12597 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
12598 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
12599 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
12600 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
12601 Likewise.
12602 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
12603 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12604 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
12605 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
12606 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12607 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
12608 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
12609 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
12610 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
12611 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
12612 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
12613 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
12614 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
12615 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
12616 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12617 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
12618 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
12619 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12620 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
12621 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
12622 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
12623 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
12624 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
12625 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
12626 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12627 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
12628 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
12629 Likewise.
12630 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
12631 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
12632 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
12633 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
12634 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12635 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
12636 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
12637 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
12638 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
12639 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
12640 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
12641 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
12642 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
12643 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
12644 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
12645 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
12646 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
12647 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
12648 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12649 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
12650 Likewise.
12651 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
12652 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
12653 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
12654 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12655 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
12656 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
12657 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
12658 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
12659 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
12660 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
12661 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12662 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
12663 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
12664 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12665 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
12666 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
12667 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
12668 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
12669 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12670 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
12671 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
12672 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12673 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
12674 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
12675 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
12676 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
12677 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
12678 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
12679 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
12680 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12681 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
12682 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
12683 Likewise.
12684 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
12685 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
12686 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
12687 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
12688 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
12689 Likewise.
12690 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
12691 Likewise.
12692 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
12693 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
12694 Likewise.
12695 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
12696 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12697 Likewise.
12698 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12699 Likewise.
12700 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
12701 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
12702 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
12703 Likewise.
12704 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
12705 Likewise.
12706 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
12707 Likewise.
12708 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
12709 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12710 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12711 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
12712 Likewise.
12713 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
12714 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
12715 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
12716 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12717 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12718 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
12719 Likewise.
12720 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
12721 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
12722 Likewise.
12723 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
12724 Likewise.
12725 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
12726 Likewise.
12727 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
12728 Likewise.
12729 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
12730 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
12731 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
12732 Likewise.
12733 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
12734 Likewise.
12735 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
12736 Likewise.
12737 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
12738 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
12739 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
12740 Likewise.
12741 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
12742 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12743 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
12744 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
12745 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12746 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
12747 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
12748 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
12749 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
12750 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
12751 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
12752 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
12753 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
12754 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
12755 Likewise.
12756 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12757 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
12758 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
12759 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12760 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
12761 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
12762 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
12763 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
12764 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
12765 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
12766 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
12767 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
12768 Likewise.
12769 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12770 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
12771 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
12772 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12773 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
12774 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
12775 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
12776 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
12777 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
12778 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
12779 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
12780 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
12781 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
12782 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12783 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
12784 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
12785 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12786 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
12787 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
12788 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
12789 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
12790 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
12791 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
12792 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
12793 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
12794 Likewise.
12795 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
12796 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12797 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
12798 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
12799 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12800 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
12801 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
12802 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
12803 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
12804 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
12805 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
12806 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
12807 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
12808 Likewise.
12809 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
12810 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12811 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
12812 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
12813 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12814 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
12815 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
12816 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
12817 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
12818 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
12819 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
12820 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
12821 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
12822 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
12823 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12824 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
12825 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
12826 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12827 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
12828 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
12829 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
12830 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
12831 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
12832 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
12833 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
12834 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
12835 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
12836 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
12837 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12838 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
12839 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
12840 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12841 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
12842 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
12843 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
12844 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
12845 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
12846 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
12847
12848 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
12849
12850 [BZ #23137]
12851 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
12852 Use atomic_load_acquire to load __tid.
12853
12854 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12855
12856 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
12857 Restore the pointer into %rdx, after syscall and use %rdx,
12858 instead of %rsi, to restore context.
12859
12860 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12861
12862 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
12863 Pop the pointer into %rdx after syscall and use %rdx, instead
12864 of %rsi, to restore context.
12865
12866 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12867
12868 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
12869 handlers after setjmp.
12870 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
12871 defined.
12872 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
12873 <libc-pointer-arith.h>.
12874 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
12875 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
12876 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
12877 _JUMP_BUF_SIGSET_BITS_PER_WORD.
12878 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
12879 * sysdeps/x86/__longjmp_cancel.S: New file.
12880 * sysdeps/x86/longjmp.c: Likewise.
12881 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
12882
12883 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12884
12885 * NEWS: Add ustat.h deprecation entry.
12886 * bits/ustat.h: Remove file.
12887 * misc/sys/ustat.h: Likewise.
12888 * misc/ustat.h: Likewise.
12889 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
12890 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
12891 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
12892 compatibility mode.
12893 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
12894 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
12895 generic Linux implementation.
12896
12897 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12898
12899 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
12900 * math/w_expl_compat.c: Likewise.
12901 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
12902
12903 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12904
12905 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12906
12907 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12908
12909 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
12910 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
12911 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
12912 Remove.
12913 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
12914 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12915 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12916 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
12917 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
12918 and SYSCALL_LL64.
12919
12920 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12921
12922 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
12923
12924 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
12925 * math/w_asin_template.c: Likewise.
12926 * math/w_atanh_template.c: Likewise.
12927
12928 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12929
12930 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
12931 to powerpc/powerpc64/be for big-endian.
12932 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
12933 little-endian.
12934
12935 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
12936 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
12937 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
12938 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
12939 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
12940 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
12941 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
12942 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
12943 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
12944 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
12945 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
12946 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
12947 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
12948 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
12949 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
12950 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
12951 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
12952 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
12953 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
12954 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
12955 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
12956 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
12957 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
12958 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
12959 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
12960 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
12961 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
12962 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
12963 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
12964 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12965 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12966 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12967
12968 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
12969 adjusted to imply powerpc64 and older processors on powerpc64/be.
12970 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
12971 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
12972 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
12973 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
12974 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
12975 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
12976 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
12977 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
12978 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
12979 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
12980 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
12981 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
12982 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12983 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12984 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12985 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12986 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12987 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12988 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12989 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12990 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12991 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12992 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12993 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12994 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12995 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12996 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12997 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12998 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12999 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
13000 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
13001
13002 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
13003 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
13004 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
13005 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
13006
13007 * sysdeps/powerpc/powerpc64/be/Implies: New file.
13008 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
13009 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
13010 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
13011
13012 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
13013 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
13014 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
13015 * sysdeps/powerpc/powerpc64le/configure: Likewise.
13016 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
13017 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
13018 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
13019 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
13020 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
13021 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
13022 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
13023
13024 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
13025 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
13026 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
13027 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
13028 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
13029 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
13030 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
13031 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
13032 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
13033 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
13034 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
13035
13036 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
13037 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
13038 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
13039 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
13040 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
13041 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
13042 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
13043 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
13044 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
13045 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
13046 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
13047 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
13048
13049 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
13050 and adjusted to imply olders processors.
13051 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
13052 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
13053 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
13054 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
13055 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
13056 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
13057 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
13058 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
13059 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
13060 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
13061 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
13062
13063 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
13064 powerpc64/le.
13065 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
13066 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
13067
13068 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
13069 powerpc64le.
13070 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
13071 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
13072
13073 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
13074 powerpc64/be.
13075 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
13076 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
13077 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
13078
13079 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
13080 powerpc64 and adjusted.
13081 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
13082 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
13083 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
13084 Likewise.
13085
13086 2018-04-27 Joseph Myers <joseph@codesourcery.com>
13087
13088 * sysdeps/tile: Remove.
13089 * sysdeps/unix/sysv/linux/tile: Likewise.
13090 * README (tilegx-*-linux-gnu): Remove from list of supported
13091 configurations.
13092 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
13093 contribution of support for generic Linux kernel syscall
13094 interface.
13095 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
13096 tilegx configurations.
13097 (Config.install_linux_headers): Do not handle tile.
13098 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
13099 in comment.
13100 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
13101 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
13102 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
13103 conditional undefine and redefine.
13104 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
13105 in comment.
13106 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
13107 conditional undefine and redefine.
13108
13109 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
13110
13111 * signal/tst-sigaction.c: New file to test BZ #23069.
13112 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
13113
13114 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13115
13116 [BZ #22766]
13117 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
13118 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
13119 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
13120 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
13121
13122 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13123
13124 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
13125 _DIRENT_MATCHES_DIRENT64 is not defined.
13126 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
13127 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
13128 is defined.
13129 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
13130 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
13131
13132 2018-04-25 Joseph Myers <joseph@codesourcery.com>
13133
13134 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
13135 version to GCC 8 branch.
13136
13137 2018-04-24 Joseph Myers <joseph@codesourcery.com>
13138
13139 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
13140 (check_no_hidden): Use type of original function when declaring
13141 alias.
13142
13143 * sysdeps/unix/sysv/linux/sys/ptrace.h
13144 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
13145 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
13146 (struct __ptrace_seccomp_metadata): New type.
13147 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
13148 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13149 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
13150 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13151 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
13152 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13153 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
13154 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13155 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
13156 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13157 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
13158 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13159 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
13160 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13161 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
13162 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13163
13164 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13165
13166 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
13167 defined.
13168 * dirent/versionsort.c (versionsort): Likewise.
13169 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
13170 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
13171 * dirent/versionsort64.c (versionsort64): Likewise.
13172 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
13173 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
13174 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
13175 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
13176 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
13177 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
13178 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
13179 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
13180 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
13181 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
13182 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
13183 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
13184 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
13185 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
13186
13187 2018-04-23 Joseph Myers <joseph@codesourcery.com>
13188
13189 * elf/elf.h (NT_PPC_PKEY): New macro.
13190
13191 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
13192
13193 [BZ #23094]
13194 * localedata/locales/hr_HR: fix thousands_sep and
13195 mon_thousands_sep
13196
13197 2018-04-20 Joseph Myers <joseph@codesourcery.com>
13198
13199 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
13200 (XTABS): Define to TAB3.
13201
13202 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13203
13204 * sysdeps/hppa/fpu/libm-test-ulps: Update.
13205
13206 * dirent/scandir-tail-common.c: New file.
13207 * dirent/scandir-tail.c: Use scandir-tail-common.c.
13208 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
13209 * dirent/scandir.c: Use scandir-tail-common.c.
13210 * dirent/scandirat.c: Likewise.
13211 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
13212 * dirent/scandir64.c (scandir64): Always build and alias to scandir
13213 if _DIRENT_MATCHES_DIRENT64 is defined.
13214 * dirent/scandirat64.c (scandirat64): Likewise.
13215 * include/dirent.h (__scandir_tail): Only define iff
13216 _DIRENT_MATCHES_DIRENT64 is not defined.
13217 (__scandir64_tail): Define regardless.
13218 (__scandirat, scandirat64): Remove libc_hidden_proto.
13219 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
13220 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
13221 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
13222 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
13223 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
13224 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
13225 * sysdeps/unix/sysv/linux/scandir64.c: New file.
13226
13227 2018-04-20 Joseph Myers <joseph@codesourcery.com>
13228
13229 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
13230 New macro.
13231 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13232 Increase to 24.
13233 (_dl_aarch64_cap_flags): Add asimdfhm.
13234
13235 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
13236
13237 * sysdeps/nios2/libm-test-ulps: Update.
13238
13239 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13240
13241 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
13242 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
13243
13244 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
13245 requirements.
13246 (_DIRENT_MATCHES_DIRENT64): Undef
13247 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
13248 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
13249 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
13250 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
13251 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
13252 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
13253 use getdents64 syscalls as base.
13254 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
13255 symbol if required.
13256 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
13257 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
13258 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
13259 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
13260 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
13261 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
13262 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
13263 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
13264 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13265 (__get_clockfreq_via_proc_openprom): Use __getdents64.
13266 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
13267
13268 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13269
13270 * scripts/test_printers_common.py (init_test): Disable lock elision.
13271
13272 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13273
13274 * math/test-tgmath.c (count_double, count_float,
13275 count_ldouble, count_cdouble, count_cfloat,
13276 count_cldouble): Use volatile int.
13277
13278 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13279
13280 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
13281 (conformtest-xfail-conds): Add i386-gnu.
13282 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
13283 i386-gnu.
13284 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
13285 ipc_perm.cuid, ipc_perm.cgid): Likewise.
13286 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
13287 msqid_ds.msg_lrpid): Likewise.
13288 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
13289 Likewise.
13290 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
13291 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
13292 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
13293 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
13294 unsigned int.
13295 (struct statvfs64): Likewise.
13296 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
13297 Likewise.
13298 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
13299 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
13300 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
13301 instead of wait_queue.
13302 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
13303 instead of vm_area_struct.
13304 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
13305 struct sched_param definition to it.
13306 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13307 * bits/types/struct_sched_param.h: New file.
13308 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
13309 <bits/types/struct_sched_param.h> instead of <sched.h>.
13310 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
13311 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
13312 generic version but include <bits/pthreadtypes.h> to make struct
13313 sigevent's sigev_notify_attributes field a pthread_attr_t*.
13314 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
13315 non-compliant.
13316 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
13317 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
13318 [__USE_XOPEN] (OFDEL): New macro.
13319 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
13320 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
13321 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
13322 prototypes.
13323 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
13324 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
13325 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
13326 non-compliant.
13327 * sysdeps/i386/sys/ucontext.h: Likewise.
13328 * sysdeps/m68k/sys/ucontext.h: Likewise.
13329 * sysdeps/mips/sys/ucontext.h: Likewise.
13330 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
13331 * sysdeps/mach/hurd/i386/Makefile
13332 (test-xfail-POSIX/fcntl.h/conform): Add.
13333 (test-xfail-POSIX/signal.h/conform): Add.
13334 (test-xfail-POSIX/semaphore.h/conform): Add.
13335 (test-xfail-POSIX/regex.h/conform): Add.
13336 (test-xfail-POSIX/aio.h/conform): Add.
13337 (test-xfail-POSIX/mqueue.h/conform): Add.
13338 (test-xfail-POSIX/sys/types.h/conform): Add.
13339 (test-xfail-UNIX98/fcntl.h/conform): Add.
13340 (test-xfail-UNIX98/netdb.h/conform): Add.
13341 (test-xfail-UNIX98/signal.h/conform): Add.
13342 (test-xfail-UNIX98/semaphore.h/conform): Add.
13343 (test-xfail-UNIX98/regex.h/conform): Add.
13344 (test-xfail-UNIX98/aio.h/conform): Add.
13345 (test-xfail-UNIX98/ftw.h/conform): Add.
13346 (test-xfail-UNIX98/mqueue.h/conform): Add.
13347 (test-xfail-UNIX98/netinet/in.h/conform): Add.
13348 (test-xfail-UNIX98/sys/wait.h/conform): Add.
13349 (test-xfail-UNIX98/sys/sem.h/conform): Add.
13350 (test-xfail-UNIX98/sys/uio.h/conform): Add.
13351 (test-xfail-UNIX98/sys/socket.h/conform): Add.
13352 (test-xfail-UNIX98/sys/types.h/conform): Add.
13353 (test-xfail-UNIX98/stdlib.h/conform): Add.
13354 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
13355 (test-xfail-POSIX2008/fcntl.h/conform): Add.
13356 (test-xfail-POSIX2008/netdb.h/conform): Add.
13357 (test-xfail-POSIX2008/signal.h/conform): Add.
13358 (test-xfail-POSIX2008/semaphore.h/conform): Add.
13359 (test-xfail-POSIX2008/regex.h/conform): Add.
13360 (test-xfail-POSIX2008/aio.h/conform): Add.
13361 (test-xfail-POSIX2008/mqueue.h/conform): Add.
13362 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
13363 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
13364 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
13365 (test-xfail-POSIX2008/sys/types.h/conform): Add.
13366 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
13367 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
13368 (test-xfail-XOPEN2K/netdb.h/conform): Add.
13369 (test-xfail-XOPEN2K/signal.h/conform): Add.
13370 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
13371 (test-xfail-XOPEN2K/regex.h/conform): Add.
13372 (test-xfail-XOPEN2K/aio.h/conform): Add.
13373 (test-xfail-XOPEN2K/ftw.h/conform): Add.
13374 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
13375 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
13376 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
13377 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
13378 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
13379 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
13380 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
13381 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
13382 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
13383 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
13384 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
13385 (test-xfail-XOPEN2K8/signal.h/conform): Add.
13386 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
13387 (test-xfail-XOPEN2K8/regex.h/conform): Add.
13388 (test-xfail-XOPEN2K8/aio.h/conform): Add.
13389 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
13390 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
13391 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
13392 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
13393 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
13394 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
13395 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
13396 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
13397 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
13398 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
13399 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
13400 i386-gnu.
13401 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
13402 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
13403
13404 2018-04-18 Joseph Myers <joseph@codesourcery.com>
13405
13406 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
13407 --enable-obsolete for powerpc-linux-gnuspe.
13408
13409 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13410
13411 * conform/data/sys/un.h-data: Allow sun_ prefix.
13412 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
13413 prototypes.
13414 * sysdeps/mach/include/mach.h: Likewise.
13415 * sysdeps/mach/include/mach/mig_support.h: Likewise.
13416 * sysdeps/mach/include/mach_error.h: Likewise.
13417
13418 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13419
13420 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
13421 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
13422 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
13423 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
13424
13425 2018-04-16 Andreas Schwab <schwab@suse.de>
13426
13427 [BZ #19527]
13428 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
13429
13430 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
13431
13432 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
13433 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
13434
13435 2018-04-12 DJ Delorie <dj@redhat.com>
13436
13437 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13438 version to 4.16.
13439
13440 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
13441
13442 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
13443 (struct kernel_sigaction): Use the same definition on 31bit as is used
13444 on 64bit.
13445
13446 2018-04-09 Florian Weimer <fweimer@redhat.com>
13447
13448 [BZ #23037]
13449 * resolv/res_send.c (send_dg): Use designated initializers instead
13450 of assignment to zero-initialize other fields of struct mmsghdr.
13451
13452 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13453
13454 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
13455 __READDIR_ALIAS): Undefine after usage.
13456 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
13457 __READDIR_R_ALIAS): Likewise.
13458 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
13459 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
13460 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
13461 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
13462 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
13463 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
13464 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
13465 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
13466 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
13467 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
13468 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
13469 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
13470 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
13471 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
13472 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
13473 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
13474 * sysdeps/unix/sysv/linux/readdir.c: New file.
13475 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
13476 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
13477 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
13478
13479 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
13480
13481 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
13482
13483 * manual/charset.texi (Converting a Character): Fix typo.
13484
13485 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13486
13487 * sysdeps/sparc/fpu/libm-test-ulps: Update.
13488
13489 * sysdeps/arm/libm-test-ulps: Update.
13490
13491 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
13492 as base implementation.
13493 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
13494 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13495 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13496 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13497 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13498 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
13499 remove unrequired definitions and update comments.
13500 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
13501 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
13502 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
13503 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
13504 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
13505 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
13506 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
13507 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
13508 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
13509 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
13510 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
13511 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
13512 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
13513 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
13514 and RESET_SA_RESTORER hooks.
13515
13516 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
13517
13518 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
13519
13520 2018-04-05 Florian Weimer <fweimer@redhat.com>
13521
13522 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
13523 integer overflow, memory leak on error, and indeterminate errno
13524 value. Add a null wide character to terminate the result string.
13525 * manual/charset.texi (Converting a Character): Mention embedded
13526 null bytes in the mbrtowc input string. Explain what happens in
13527 the -2 result case. Do not claim that mbrtowc is simple or
13528 obvious to use. Adjust the description of the code example. Use
13529 @code, not @var, for concrete variables.
13530
13531 2018-04-05 Florian Weimer <fweimer@redhat.com>
13532
13533 * manual/examples/mbstouwcs.c: New file.
13534 * manual/charset.texi (Converting a Character): Include it.
13535
13536 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
13537
13538 * include/dirent.h (dirfd): Add hidden proto.
13539 * dirent/dirfd.c (dirfd): Add hidden def.
13540 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
13541 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
13542
13543 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13544
13545 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
13546 sin, cos and sincos to 1 ULP.
13547
13548 2018-04-04 Maciej W. Rozycki <macro@mips.com>
13549
13550 [BZ #19818]
13551 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
13552 symbols.
13553 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
13554 * elf/tst-absolute-sym.c: New file.
13555 * elf/tst-absolute-sym-lib.c: New file.
13556 * elf/tst-absolute-sym-lib.lds: New file.
13557 * elf/Makefile (tests): Add `tst-absolute-sym'.
13558 (modules-names): Add `tst-absolute-sym-lib'.
13559 (LDLIBS-tst-absolute-sym-lib.so): New variable.
13560 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
13561 ($(objpfx)tst-absolute-sym): New dependency.
13562
13563 [BZ #19818]
13564 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
13565 parameter.
13566 (SYMBOL_ADDRESS): New macro.
13567 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
13568 SYMBOL_ADDRESS for symbol address calculation.
13569 * elf/dl-runtime.c (_dl_fixup): Likewise.
13570 (_dl_profile_fixup): Likewise.
13571 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
13572 * elf/rtld.c (dl_main): Likewise.
13573 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
13574 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
13575 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
13576 (elf_machine_rela): Likewise.
13577 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
13578 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
13579 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13580 (elf_machine_rela): Likewise.
13581 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13582 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
13583 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
13584 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
13585 Likewise.
13586 (elf_machine_reloc): Likewise.
13587 (elf_machine_got_rel): Likewise.
13588 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
13589 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
13590 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13591 Likewise.
13592 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13593 Likewise.
13594 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
13595 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
13596 Likewise.
13597 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
13598 Likewise.
13599 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13600 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
13601 Likewise.
13602 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13603 Likewise.
13604 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
13605 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13606
13607 2018-04-04 Zack Weinberg <zackw@panix.com>
13608
13609 * sysdeps/generic/internal-signals.h: Include signal.h,
13610 sigsetops.h, and stdbool.h.
13611 (__libc_signal_block_all): Actually block all signals.
13612 (__libc_signal_block_app): Likewise.
13613 (__libc_signal_restore_set): Actually restore the signal mask.
13614
13615 2018-04-04 Florian Weimer <fweimer@redhat.com>
13616
13617 inet: Actually build and run tst-deadline.
13618 * inet/Makefile (tests-internal): Add tst-deadline and do not
13619 overwrite the variable.
13620 (tests-static-internal): Remove variable.
13621
13622 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
13623
13624 [BZ #22947]
13625 * bits/uio-ext.h (RWF_APPEND): New.
13626 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
13627 * manual/llio.texi: Document RWF_APPEND.
13628 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
13629 (RWF_SUPPORTED): Add RWF_APPEND.
13630
13631 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13632
13633 [BZ #22391]
13634 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
13635 check for internal nptl signals.
13636 * nptl/sigaction.c (__sigaction): Likewise.
13637 * signal/sigaddset.c (sigaddset): Likewise.
13638 * signal/sigdelset.c (sigdelset): Likewise.
13639 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
13640 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
13641 value.
13642 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
13643 to filter out internal nptl signals.
13644 * signal/tst-sigset.c (do_test): Check ech signal indidually and
13645 also check realtime signals using standard macros.
13646 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
13647 __is_internal_signal, __libc_signal_block_all,
13648 __libc_signal_block_app, __libc_signal_restore_set): New functions.
13649 * sysdeps/nptl/sigfillset.c: Remove file.
13650 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
13651 Change return to bool.
13652 (__clear_internal_signals): Remove SIGTIMER clean since it is
13653 equal to SIGCANEL on Linux.
13654 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
13655 signal set was constructed using standard functions.
13656
13657 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
13658
13659 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
13660 ifname is too long.
13661 * hurd/hurdsig.c (interrupted_reply_port_location): Use
13662 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
13663 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
13664 hidden def.
13665 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
13666 * signal/sigaddset.c: Include <sigsetopts.h>.
13667 * signal/sigdelset.c: Likewise.
13668
13669 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13670
13671 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
13672 (__cos): Likewise.
13673 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
13674 logic as sin and cos.
13675
13676 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13677
13678 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
13679 inputs. Return correct sign.
13680 (do_sincos): Remove small input check before do_sin, let do_sin set
13681 the sign.
13682 (__sin): Likewise.
13683 (__cos): Likewise.
13684
13685 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13686
13687 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
13688 (do_cos_slow): Likewise.
13689 (do_sin_slow): Likewise.
13690 (reduce_and_compute): Likewise.
13691 (slow): Likewise.
13692 (slow1): Likewise.
13693 (slow2): Likewise.
13694 (sloww): Likewise.
13695 (sloww1): Likewise.
13696 (sloww2): Likewise.
13697 (bslow): Likewise.
13698 (bslow1): Likewise.
13699 (bslow2): Likewise.
13700 (cslow2): Likewise.
13701
13702 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13703
13704 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
13705 (do_cos): Remove corp parameter and calculations.
13706 (do_sin): Likewise.
13707 (do_sincos): Remove cor variable.
13708 (__sin): Use do_sincos for huge inputs.
13709 (__cos): Likewise.
13710 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13711 (reduce_and_compute_sincos): Remove unused function.
13712
13713 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13714
13715 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
13716 reduce_sincos, improve accuracy to 136 bits.
13717 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
13718 (__sin): Use improved reduction and simplified do_sincos calculation.
13719 (__cos): Likewise.
13720 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13721
13722 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13723
13724 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
13725 (do_sincos_2): Likewise.
13726 (__sin): Remove middle range reduction case.
13727 (__cos): Likewise.
13728 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
13729 reduction case.
13730
13731 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13732
13733 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
13734 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
13735 inputs.
13736 (__cos): Likewise.
13737 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
13738
13739 2018-04-03 Joseph Myers <joseph@codesourcery.com>
13740
13741 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13742 version to 4.16
13743
13744 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13745
13746 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
13747 Remove definitions.
13748 (opendir_oflags): Use O_DIRECTORY regardless.
13749 (__opendir, __opendirat): Remove need_isdir_precheck usage.
13750 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
13751
13752 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13753
13754 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
13755 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
13756 macros.
13757 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
13758 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
13759 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
13760 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
13761 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
13762 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
13763
13764 * htl/Makefile: Bump licence to LGPL 2.1+.
13765 * htl/alloca_cutoff.c: Likewise.
13766 * htl/cthreads-compat.c: Likewise.
13767 * htl/lockfile.c: Likewise.
13768 * htl/pt-alloc.c: Likewise.
13769 * htl/pt-cancel.c: Likewise.
13770 * htl/pt-cleanup.c: Likewise.
13771 * htl/pt-create.c: Likewise.
13772 * htl/pt-dealloc.c: Likewise.
13773 * htl/pt-detach.c: Likewise.
13774 * htl/pt-exit.c: Likewise.
13775 * htl/pt-getattr.c: Likewise.
13776 * htl/pt-initialize.c: Likewise.
13777 * htl/pt-internal.h: Likewise.
13778 * htl/pt-join.c: Likewise.
13779 * htl/pt-self.c: Likewise.
13780 * htl/pt-setcancelstate.c: Likewise.
13781 * htl/pt-setcanceltype.c: Likewise.
13782 * htl/pt-sigmask.c: Likewise.
13783 * htl/pt-spin-inlines.c: Likewise.
13784 * htl/pt-testcancel.c: Likewise.
13785 * htl/pt-yield.c: Likewise.
13786 * htl/tests/test-1.c: Likewise.
13787 * htl/tests/test-10.c: Likewise.
13788 * htl/tests/test-11.c: Likewise.
13789 * htl/tests/test-12.c: Likewise.
13790 * htl/tests/test-13.c: Likewise.
13791 * htl/tests/test-14.c: Likewise.
13792 * htl/tests/test-15.c: Likewise.
13793 * htl/tests/test-16.c: Likewise.
13794 * htl/tests/test-17.c: Likewise.
13795 * htl/tests/test-2.c: Likewise.
13796 * htl/tests/test-3.c: Likewise.
13797 * htl/tests/test-4.c: Likewise.
13798 * htl/tests/test-5.c: Likewise.
13799 * htl/tests/test-6.c: Likewise.
13800 * htl/tests/test-7.c: Likewise.
13801 * htl/tests/test-8.c: Likewise.
13802 * htl/tests/test-9.c: Likewise.
13803 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
13804 * sysdeps/htl/bits/cancelation.h: Likewise.
13805 * sysdeps/htl/bits/pthread-np.h: Likewise.
13806 * sysdeps/htl/bits/pthread.h: Likewise.
13807 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
13808 * sysdeps/htl/bits/semaphore.h: Likewise.
13809 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
13810 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
13811 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
13812 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
13813 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
13814 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
13815 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
13816 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
13817 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
13818 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
13819 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
13820 * sysdeps/htl/old_pt-atfork.c: Likewise.
13821 * sysdeps/htl/pt-atfork.c: Likewise.
13822 * sysdeps/htl/pt-attr-destroy.c: Likewise.
13823 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
13824 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
13825 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
13826 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
13827 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
13828 * sysdeps/htl/pt-attr-getscope.c: Likewise.
13829 * sysdeps/htl/pt-attr-getstack.c: Likewise.
13830 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
13831 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
13832 * sysdeps/htl/pt-attr-init.c: Likewise.
13833 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
13834 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
13835 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
13836 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
13837 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
13838 * sysdeps/htl/pt-attr-setscope.c: Likewise.
13839 * sysdeps/htl/pt-attr-setstack.c: Likewise.
13840 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
13841 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
13842 * sysdeps/htl/pt-attr.c: Likewise.
13843 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
13844 * sysdeps/htl/pt-barrier-init.c: Likewise.
13845 * sysdeps/htl/pt-barrier-wait.c: Likewise.
13846 * sysdeps/htl/pt-barrier.c: Likewise.
13847 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
13848 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
13849 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
13850 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
13851 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
13852 * sysdeps/htl/pt-cond-destroy.c: Likewise.
13853 * sysdeps/htl/pt-cond-init.c: Likewise.
13854 * sysdeps/htl/pt-cond-signal.c: Likewise.
13855 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
13856 * sysdeps/htl/pt-cond-wait.c: Likewise.
13857 * sysdeps/htl/pt-cond.c: Likewise.
13858 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
13859 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
13860 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
13861 * sysdeps/htl/pt-condattr-init.c: Likewise.
13862 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
13863 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
13864 * sysdeps/htl/pt-destroy-specific.c: Likewise.
13865 * sysdeps/htl/pt-equal.c: Likewise.
13866 * sysdeps/htl/pt-getconcurrency.c: Likewise.
13867 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
13868 * sysdeps/htl/pt-getschedparam.c: Likewise.
13869 * sysdeps/htl/pt-getspecific.c: Likewise.
13870 * sysdeps/htl/pt-init-specific.c: Likewise.
13871 * sysdeps/htl/pt-key-create.c: Likewise.
13872 * sysdeps/htl/pt-key-delete.c: Likewise.
13873 * sysdeps/htl/pt-key.h: Likewise.
13874 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
13875 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
13876 * sysdeps/htl/pt-mutex-init.c: Likewise.
13877 * sysdeps/htl/pt-mutex-lock.c: Likewise.
13878 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
13879 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
13880 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
13881 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
13882 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
13883 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
13884 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
13885 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
13886 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
13887 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
13888 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
13889 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
13890 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
13891 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
13892 * sysdeps/htl/pt-mutexattr.c: Likewise.
13893 * sysdeps/htl/pt-once.c: Likewise.
13894 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
13895 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
13896 * sysdeps/htl/pt-rwlock-init.c: Likewise.
13897 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
13898 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
13899 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
13900 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
13901 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
13902 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
13903 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
13904 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
13905 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
13906 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
13907 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
13908 * sysdeps/htl/pt-setconcurrency.c: Likewise.
13909 * sysdeps/htl/pt-setschedparam.c: Likewise.
13910 * sysdeps/htl/pt-setschedprio.c: Likewise.
13911 * sysdeps/htl/pt-setspecific.c: Likewise.
13912 * sysdeps/htl/pt-spin.c: Likewise.
13913 * sysdeps/htl/pt-startup.c: Likewise.
13914 * sysdeps/htl/pthread.h: Likewise.
13915 * sysdeps/htl/sem-close.c: Likewise.
13916 * sysdeps/htl/sem-destroy.c: Likewise.
13917 * sysdeps/htl/sem-getvalue.c: Likewise.
13918 * sysdeps/htl/sem-init.c: Likewise.
13919 * sysdeps/htl/sem-open.c: Likewise.
13920 * sysdeps/htl/sem-post.c: Likewise.
13921 * sysdeps/htl/sem-timedwait.c: Likewise.
13922 * sysdeps/htl/sem-trywait.c: Likewise.
13923 * sysdeps/htl/sem-unlink.c: Likewise.
13924 * sysdeps/htl/sem-wait.c: Likewise.
13925 * sysdeps/hurd/htl/pt-kill.c: Likewise.
13926 * sysdeps/i386/htl/pt-machdep.h: Likewise.
13927 * sysdeps/mach/htl/pt-block.c: Likewise.
13928 * sysdeps/mach/htl/pt-spin.c: Likewise.
13929 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
13930 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
13931 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
13932 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
13933 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
13934 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
13935 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
13936 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
13937 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
13938 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
13939 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
13940 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
13941 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
13942 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
13943 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
13944 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
13945 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
13946 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
13947 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
13948 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
13949 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
13950 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
13951 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
13952 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
13953 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
13954 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
13955 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
13956 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
13957 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
13958 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
13959 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
13960 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
13961 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
13962 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
13963 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
13964 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
13965 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
13966 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
13967 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
13968 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
13969 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
13970 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
13971 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
13972
13973 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
13974 * README: Remove the mention of out-of-tree patches needed for
13975 GNU/Hurd.
13976
13977 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
13978 (UTIME_NOW, UTIME_OMIT): Define macros.
13979
13980 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13981 instead of pthread_detach.
13982 (__cthread_fork): Call __pthread_create instead of pthread_create.
13983 (__cthread_keycreate): Call __pthread_key_create instead of
13984 pthread_key_create.
13985 (__cthread_getspecific): Call __pthread_getspecific instead of
13986 pthread_getspecific.
13987 (__cthread_setspecific): Call __pthread_setspecific instead of
13988 pthread_setspecific.
13989 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13990 __pthread_mutex_unlock instead of pthread_mutex_lock and
13991 pthread_mutex_unlock.
13992 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13993 ___pthread_get_cleanup_stack.
13994 (__pthread_get_cleanup_stack): New strong alias.
13995 * htl/pt-create.c: Include <pthreadP.h>.
13996 (entry_point): Call __pthread_exit instead of pthread_exit.
13997 (pthread_create): Rename to __pthread_create.
13998 (pthread_create): New strong alias.
13999 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
14000 (pthread_detach): New strong alias.
14001 (__pthread_detach): Call __pthread_cond_broadcast instead of
14002 pthread_cond_broadcast.
14003 * htl/pt-exit.c: Include <pthreadP.h>.
14004 (__pthread_exit): Call __pthread_setcancelstate and
14005 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
14006 __pthread_get_cleanup_stack.
14007 * htl/pt-testcancel.c: Include <pthreadP.h>.
14008 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
14009 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
14010 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
14011 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
14012 pthread_attr_getstacksize.
14013 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
14014 Rename to __pthread_attr_getstackaddr.
14015 (pthread_attr_getstackaddr): New strong alias.
14016 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
14017 Rename to __pthread_attr_getstacksize.
14018 (pthread_attr_getstacksize): New strong alias.
14019 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
14020 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
14021 (pthread_attr_setstack): New strong alias.
14022 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
14023 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
14024 pthread_attr_getstacksize, pthread_attr_setstacksize and
14025 pthread_attr_setstackaddr.
14026 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
14027 Rename to __pthread_attr_setstackaddr.
14028 (pthread_attr_setstackaddr): New strong alias.
14029 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
14030 Rename to __pthread_attr_setstacksize.
14031 (pthread_attr_setstacksize): New strong alias.
14032 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
14033 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
14034 pthread_exit.
14035 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
14036 (__pthread_key_create): New hidden def.
14037 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
14038 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
14039 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
14040 __pthread_exit, __pthread_key_create, __pthread_getspecific,
14041 __pthread_setspecific, __pthread_setcancelstate,
14042 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
14043 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
14044 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
14045 declarations.
14046 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
14047 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
14048 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
14049 (pthread_attr_setstackaddr): New strong alias.
14050 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
14051 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
14052 (pthread_attr_setstacksize): New strong alias.
14053 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
14054 (call_exit): Call __pthread_exit instead of pthread_exit.
14055 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
14056 (_pthread_mutex_init): New hidden definition.
14057 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
14058 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
14059 instead of pthread_attr_init and pthread_attr_setstack.
14060
14061 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
14062 __vm_deallocate instead of vm_allocate and vm_deallocate.
14063 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
14064 setenv.
14065 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
14066 of geteuid.
14067 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
14068 strdup.
14069 * hurd/siginfo.c: Include <libioP.h>.
14070 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
14071 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
14072 munmap.
14073 * mach/devstream.c: Include <libioP.h>.
14074 (dealloc_ref): Call __mach_port_deallocate instead of
14075 mach_port_deallocate.
14076 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
14077 Call __mach_port_deallocate instead of mach_port_deallocate.
14078 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
14079 pathconf.
14080 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
14081 munmap.
14082 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
14083 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
14084 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
14085 of munmap.
14086 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
14087 of close.
14088 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
14089 instead of sysconf.
14090 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
14091 __clock_gettime instead of clock_gettime.
14092 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
14093 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
14094 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
14095 * sysdeps/unix/bsd/stty.c (stty): Likewise.
14096 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
14097 tcgetattr.
14098 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
14099 __clock_gettime and __nanosleep instead of clock_gettime and
14100 nanosleep.
14101 * hurd/catch-signal.c (hurd_catch_signal): Rename to
14102 __hurd_catch_signal.
14103 (hurd_catch_signal): New strong alias.
14104 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
14105 __hurd_catch_signal instead of hurd_catch_signal.
14106 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
14107 * hurd/hurdexec.c (_hurd_init): Add hidden def.
14108 * hurd/hurdinit.c (_hurd_init): Add hidden def.
14109 * hurd/hurdsig.c: Include <mach/mig_support.h>.
14110 (_hurd_thread_sigstate): Add hidden def.
14111 (_hurd_internal_post_signal): Use __mutex_unlock instead of
14112 mutex_unlock.
14113 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
14114 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
14115 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
14116 __hurd_file_name_path_lookup.
14117 (hurd_file_name_path_lookup): New strong alias.
14118 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
14119 hurd_file_name_path_lookup.
14120 * mach/errstring.c (mach_error_type): Add hidden def.
14121 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
14122 * mach/mutex-init.c (__mutex_init): Add hidden def.
14123 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
14124 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
14125 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
14126 * sysdeps/mach/hurd/getcwd.c
14127 (_hurd_canonicalize_directory_name_internal): Rename to
14128 __hurd_canonicalize_directory_name_internal.
14129 (_hurd_canonicalize_directory_name_internal): New strong alias.
14130 (__canonicalize_directory_name_internal, __getcwd): Call
14131 __hurd_canonicalize_directory_name_internal instead of
14132 _hurd_canonicalize_directory_name_internal.
14133 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
14134 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
14135 hidden defs.
14136 * sysdeps/hurd/include/hurd.h: New file.
14137 * sysdeps/hurd/include/hurd/fd.h: New file.
14138 * sysdeps/hurd/include/hurd/signal.h: New file.
14139 * sysdeps/mach/include/lock-intern.h: New file.
14140 * sysdeps/mach/include/mach.h: New file.
14141 * sysdeps/mach/include/mach/mig_support.h: New file.
14142 * sysdeps/mach/include/mach_error.h: New file.
14143 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
14144 prototype.
14145 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
14146 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
14147 _HEADER_H_HIDDEN_DEF macro.
14148 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
14149 _hurd_fd_error_signal): Add hidden prototype.
14150 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
14151 hidden def.
14152 * libio/iolibio.h (_IO_puts): New hidden prototype.
14153 * libio/ioputs.c (_IO_puts): New hidden def.
14154 * sysdeps/mach/hurd/localplt.data: New file.
14155
14156 2018-04-02 Agustina Arzille <avarzille@riseup.net>
14157 Amos Jeffries <squid3@treenet.co.nz>
14158 David Michael <fedora.dm0@gmail.com>
14159 Marco Gerards <marco@gnu.org>
14160 Marcus Brinkmann <marcus@gnu.org>
14161 Neal H. Walfield <neal@gnu.org>
14162 Pino Toscano <toscano.pino@tiscali.it>
14163 Richard Braun <rbraun@sceen.net>
14164 Roland McGrath <roland@gnu.org>
14165 Samuel Thibault <samuel.thibault@ens-lyon.org>
14166 Thomas DiModica <ricinwich@yahoo.com>
14167 Thomas Schwinge <tschwinge@gnu.org>
14168
14169 * htl: New directory.
14170 * sysdeps/htl: New directory.
14171 * sysdeps/hurd/htl: New directory.
14172 * sysdeps/i386/htl: New directory.
14173 * sysdeps/mach/htl: New directory.
14174 * sysdeps/mach/hurd/htl: New directory.
14175 * sysdeps/mach/hurd/i386/htl: New directory.
14176 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
14177 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
14178 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
14179
14180 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
14181
14182 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
14183 signals in thread created for runing timers.
14184
14185 2018-04-01 Florian Weimer <fweimer@redhat.com>
14186
14187 * support/support_format_addrinfo.c (support_format_addrinfo):
14188 Include unknown error number in formatted result.
14189
14190 2018-03-29 Florian Weimer <fweimer@redhat.com>
14191
14192 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
14193 capture SIGBUS.
14194
14195 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14196
14197 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
14198 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
14199 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
14200 (__ASSUME_CLONE_BACKWARDS): Define.
14201
14202 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
14203
14204 [BZ #23024]
14205 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
14206 early when linux sentinel value is set.
14207
14208 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14209
14210 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
14211
14212 2018-03-27 Andreas Schwab <schwab@suse.de>
14213
14214 [BZ #23005]
14215 * resolv/res_send.c (__res_context_send): Return ENOMEM if
14216 allocation of private copy of nsaddr_list fails.
14217
14218 2018-03-26 Joseph Myers <joseph@codesourcery.com>
14219
14220 [BZ #16552]
14221 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
14222 * sysdeps/unix/sysv/linux/umount.c: ... here.
14223 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
14224 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
14225 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
14226 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
14227 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
14228 * sysdeps/unix/sysv/linux/umount.S: Likewise.
14229 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
14230
14231 2018-03-26 Andreas Schwab <schwab@suse.de>
14232
14233 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
14234 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
14235 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
14236 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
14237 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
14238 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
14239 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
14240 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
14241 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
14242 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
14243 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
14244 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
14245 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
14246 (R_RISCV_NUM): Define.
14247
14248 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
14249
14250 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
14251 TLS declaration of errno.
14252 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
14253 __libc_setup_tls.
14254 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
14255 (ARCH_SETUP_TLS): Likewise.
14256 * sysdeps/mach/hurd/libc-start.h: New file copied from
14257 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
14258 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
14259 instead of __libc_setup_tls.
14260 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
14261 __libc_setup_tls before initializing libpthread and running _hurd_init
14262 which starts the signal thread.
14263 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
14264 Declare function.
14265 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14266
14267 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
14268
14269 [BZ #22998]
14270 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
14271 after it is defined.
14272
14273 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
14274 Max Horn <max@quendi.de>
14275
14276 [BZ #22644]
14277 CVE-2017-18269
14278 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
14279 branch conditions.
14280 * string/test-memmove.c (do_test2): New testcase.
14281
14282 2018-03-22 Joseph Myers <joseph@codesourcery.com>
14283
14284 * sysdeps/generic/frame.h: Remove file.
14285 * sysdeps/arm/frame.h: Likewise.
14286 * sysdeps/hppa/frame.h: Likewise.
14287 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
14288 macro.
14289 (GET_FRAME): Likewise.
14290 (GET_STACK): Likewise.
14291 (CALL_SIGHANDLER): Likewise.
14292 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
14293 Likewise.
14294 (GET_FRAME): Likewise.
14295 (GET_STACK): Likewise.
14296 (CALL_SIGHANDLER): Likewise.
14297 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
14298 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14299 (GET_FRAME): Likewise.
14300 (GET_STACK): Likewise.
14301 (CALL_SIGHANDLER): Likewise.
14302 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
14303 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14304 (GET_FRAME): Likewise.
14305 (GET_STACK): Likewise.
14306 (ADVANCE_STACK_FRAME): Likewise.
14307 (CALL_SIGHANDLER): Likewise.
14308 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
14309 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14310 (GET_FRAME): Likewise.
14311 (GET_STACK): Likewise.
14312 (CALL_SIGHANDLER): Likewise.
14313 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
14314 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14315 (GET_FRAME): Likewise.
14316 (GET_STACK): Likewise.
14317 (CALL_SIGHANDLER): Likewise.
14318 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
14319 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14320 (GET_FRAME): Likewise.
14321 (GET_STACK): Likewise.
14322 (CALL_SIGHANDLER): Likewise.
14323 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
14324 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14325 (GET_FRAME): Likewise.
14326 (GET_STACK): Likewise.
14327 (CALL_SIGHANDLER): Likewise.
14328 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
14329 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14330 (GET_FRAME): Likewise.
14331 (GET_STACK): Likewise.
14332 (CALL_SIGHANDLER): Likewise.
14333 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
14334 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14335 (GET_FRAME): Likewise.
14336 (GET_STACK): Likewise.
14337 (CALL_SIGHANDLER): Likewise.
14338 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
14339 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14340 (GET_FRAME): Likewise.
14341 (GET_STACK): Likewise.
14342 (CALL_SIGHANDLER): Likewise.
14343 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
14344 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14345 (GET_FRAME): Likewise.
14346 (GET_STACK): Likewise.
14347 (CALL_SIGHANDLER): Likewise.
14348 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
14349 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14350 (GET_FRAME): Likewise.
14351 (GET_STACK): Likewise.
14352 (CALL_SIGHANDLER): Likewise.
14353 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
14354 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14355 (FIRST_FRAME_POINTER): Likewise.
14356 (ADVANCE_STACK_FRAME): Likewise.
14357 (GET_STACK): Likewise.
14358 (GET_FRAME): Likewise.
14359 (CALL_SIGHANDLER): Likewise.
14360 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
14361 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14362 (ADVANCE_STACK_FRAME): Likewise.
14363 (GET_STACK): Likewise.
14364 (GET_FRAME): Likewise.
14365 (CALL_SIGHANDLER): Likewise.
14366 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
14367 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14368 (GET_FRAME): Likewise.
14369 (GET_STACK): Likewise.
14370 (CALL_SIGHANDLER): Likewise.
14371 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
14372 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14373 (GET_FRAME): Likewise.
14374 (GET_STACK): Likewise.
14375 (CALL_SIGHANDLER): Likewise.
14376
14377 2018-03-21 Joseph Myers <joseph@codesourcery.com>
14378
14379 * sysdeps/x86_64/backtrace.c: Move to ....
14380 * debug/backtrace.c: ... here.
14381 * sysdeps/aarch64/backtrace.c: Remove file.
14382 * sysdeps/alpha/backtrace.c: Likewise.
14383 * sysdeps/hppa/backtrace.c: Likewise.
14384 * sysdeps/ia64/backtrace.c: Likewise.
14385 * sysdeps/mips/backtrace.c: Likewise.
14386 * sysdeps/nios2/backtrace.c: Likewise.
14387 * sysdeps/riscv/backtrace.c: Likewise.
14388 * sysdeps/sh/backtrace.c: Likewise.
14389 * sysdeps/tile/backtrace.c: Likewise.
14390
14391 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14392
14393 [BZ #22987]
14394 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
14395 function.
14396 (fdimf): Likewise.
14397 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
14398
14399 [BZ #17343]
14400 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
14401 possibly overflowing computations.
14402
14403 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14404
14405 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
14406 values from Linux-specific section now that it is in the GNU section.
14407 * sysdeps/gnu/errlist.c: Regenerate.
14408
14409 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14410
14411 * math/Makefile (libm-narrow-fns): Add sub.
14412 (libm-test-funcs-narrow): Likewise.
14413 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
14414 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
14415 * math/gen-auto-libm-tests.c (test_functions): Add sub.
14416 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
14417 (NARROW_SUB_ROUND_TO_ODD): Likewise.
14418 (NARROW_SUB_TRIVIAL): Likewise.
14419 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
14420 macro.
14421 (__dsubl): Likewise.
14422 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
14423 dsub.
14424 (CFLAGS-nldbl-dsub.c): New variable.
14425 (CFLAGS-nldbl-fsub.c): Likewise.
14426 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14427 __nldbl_dsubl.
14428 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
14429 prototype.
14430 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
14431 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
14432 * math/auto-libm-test-in: Add tests of sub.
14433 * math/auto-libm-test-out-narrow-sub: New generated file.
14434 * math/libm-test-narrow-sub.inc: New file.
14435 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14436 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
14437 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
14438 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
14439 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
14440 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
14441 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
14442 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
14443 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
14444 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
14445 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
14446 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
14447 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
14448 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
14449 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
14450 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
14451 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
14452 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
14453 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14454 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14455 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14456 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14457 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14458 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14459 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14460 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14461 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14462 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14463 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14464 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14465 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14466 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14467 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14468 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14469 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14470 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14471 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14472 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14473 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14474 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14475 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14476 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14477 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
14478 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
14479 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14480 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14481
14482 2018-03-19 Joseph Myers <joseph@codesourcery.com>
14483
14484 [BZ #20079]
14485 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
14486
14487 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
14488
14489 * benchtests/bench-timing.h (attribute_hidden): Undefine.
14490
14491 2018-03-18 Richard Braun <rbraun@sceen.net>
14492
14493 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
14494 thread reference.
14495
14496 2018-03-18 Agustina Arzille <avarzille@riseup.net>
14497
14498 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
14499 (__libc_cleanup_fct): Define function.
14500 (__libc_cleanup_region_start, __libc_cleanup_region_end,
14501 __libc_cleanup_end): Rewrite implementation using
14502 __attribute__ ((__cleanup__)).
14503 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
14504 * hurd/Makefile (routines): Add hurdlock.
14505 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
14506 interface.
14507 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
14508 * hurd/hurdpid.c: Include <lowlevellock.h>
14509 (_S_msg_proc_newids): Use lll_wait to synchronize.
14510 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
14511 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
14512 * mach/Makefile (lock-headers): Remove machine-lock.h.
14513 * mach/lock-intern.h: Include <lowlevellock.h> instead of
14514 <machine-lock.h>.
14515 (__spin_lock_t): New type.
14516 (__SPIN_LOCK_INITIALIZER): New macro.
14517 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
14518 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
14519 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
14520 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
14521 (__mutex_init): Initialize with lll.
14522 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
14523 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
14524 needing lll.
14525 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14526 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
14527 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
14528 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
14529 (__setpgid): Use lll for synchronization.
14530 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
14531 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
14532 instead of <cthreads.h>.
14533 (_IO_lock_inexpensive): New macro
14534 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
14535 (__libc_lock_self0): New declaration.
14536 (__libc_lock_owner_self): New macro.
14537 (__libc_key_t): Remove type.
14538 (_LIBC_LOCK_INITIALIZER): New macro.
14539 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
14540 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
14541 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
14542 __libc_lock_define_initialized_recursive,
14543 __rtld_lock_define_initialized_recursive,
14544 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
14545 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
14546 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
14547 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
14548 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
14549 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
14550 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
14551 New macros.
14552 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
14553 * hurd/hurdlock.c: New file.
14554 * hurd/hurdlock.h: New file.
14555 * mach/lowlevellock.h: New file
14556
14557 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14558
14559 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
14560 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
14561 when opening a symlink with O_NOFOLLOW.
14562 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
14563 path when flags contains O_NOFOLLOW.
14564 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
14565 if flags contains O_DIRECTORY and the result is a directory.
14566 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
14567 oneself when the pointer given in D is nul (as set by ext2fs).
14568 * sysdeps/mach/hurd/mlockall.c: New file.
14569 * sysdeps/mach/hurd/munlockall.c: New file.
14570
14571 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14572
14573 * hurd/hurdsig.c: Include <pthread.h>.
14574 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
14575 get the signal thread stack layout.
14576 * hurd/Makefile (headers): Remove threadvar.h.
14577 (inline-headers): Remove threadvar.h.
14578 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
14579 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
14580 __hurd_threadvar_max, __hurd_errno_location.
14581 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
14582 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
14583 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
14584 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
14585 unless TLS is not initialized yet, in which case we do not need a
14586 critical section yet anyway.
14587 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
14588 <machine-sp.h>.
14589 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
14590 declarations.
14591 (__hurd_threadvar_index): Remove enum.
14592 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
14593 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
14594 inlines.
14595 (__hurd_reply_port0): New variable declaration.
14596 (__hurd_local_reply_port): New macro.
14597 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
14598 (interrupted_reply_port_location): Add thread_t parameter. Use it
14599 with THREAD_TCB to access thread-local variables.
14600 (_hurdsig_abort_rpcs): Pass ss->thread to
14601 interrupted_reply_port_location.
14602 (_hurd_internal_post_signal): Likewise.
14603 (_hurdsig_init): Use presence of cthread_fork instead of
14604 __hurd_threadvar_stack_mask to start signal thread by hand.
14605 Remove signal thread threadvar initialization.
14606 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
14607 * hurd/sigunwind.c: Include <hurd/threadvar.h>
14608 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
14609 of threadvar.
14610 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
14611 __libc_lock_self0.
14612 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
14613 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
14614 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
14615 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
14616 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
14617 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
14618 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
14619 define variables.
14620 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
14621 <hurd/threadvar.h>.
14622 [IS_IN(rtld)] (rtld_errno): New variable.
14623 [IS_IN(rtld)] (__errno_location): New weak function.
14624 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
14625 * sysdeps/mach/hurd/errno.c: Remove file.
14626 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
14627 (__fork): Remove THREADVAR_SPACE macro and its use.
14628 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
14629 variable.
14630 (init): Do not initialize threadvar.
14631 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
14632 symbol.
14633 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
14634 __hurd_local_reply_port instead of threadvar.
14635 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
14636 _hurd_sigstate fields.
14637 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
14638 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
14639 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
14640 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
14641 instead of threadvar.
14642 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
14643 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
14644 (use_threadvar, global_reply_port): Remove variables.
14645 (__hurd_reply_port0): New variable.
14646 (__mig_get_reply_port): Use __hurd_local_reply_port and
14647 __hurd_reply_port0 instead of threadvar.
14648 (__mig_dealloc_reply_port): Likewise.
14649 (__mig_init): Do not initialize threadvar.
14650 * sysdeps/mach/hurd/profil.c: Fix comment.
14651 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
14652 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
14653 cthread_keycreate, cthread_getspecific, cthread_setspecific to
14654 __cthread_fork, __cthread_detach, __pthread_getattr_np,
14655 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
14656 __cthread_setspecific.
14657 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
14658 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
14659 __cthread_t instead of cthread_fork, cthread_detach,
14660 pthread_getattr_np, pthread_attr_getstack.
14661 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
14662 __cthread_keycreate.
14663 (cthread_getspecific): Rename to __cthread_getspecific.
14664 (cthread_setspecific): Rename to __cthread_setspecific.
14665 (__libc_getspecific): Use __cthread_getspecific instead of
14666 cthread_getspecific.
14667 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
14668 __cthread_keycreate instead of cthread_keycreate.
14669 (__libc_setspecific): Use __cthread_setspecific instead of
14670 cthread_setspecific.
14671 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
14672 Likewise.
14673 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
14674 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
14675 testing whether it is defined.
14676
14677 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
14678
14679 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
14680 Define macro.
14681 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
14682 * sysdeps/mach/i386/thread_state.h
14683 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
14684 i386_THREAD_STATE.
14685 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
14686 i386_THREAD_STATE.
14687 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
14688
14689 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
14690 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
14691
14692 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
14693 macros.
14694 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
14695 descriptor instead of creating a new one.
14696 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
14697
14698 * mach/setup-thread.c: Include <ldsodefs.h>.
14699 (__mach_setup_thread): Call _dl_allocate_tls, pass
14700 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
14701 MACHINE_THREAD_STATE_FLAVOR, before getting
14702 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
14703 MACHINE_THREAD_STATE_FLAVOR with the result.
14704 * hurd/hurdfault.c (_hurdsig_fault_init): Call
14705 MACHINE_THREAD_STATE_FIX_NEW.
14706 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
14707 too. Add original thread parameter.
14708
14709 2018-03-16 Joseph Myers <joseph@codesourcery.com>
14710
14711 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
14712 Remove inline function.
14713
14714 * sysdeps/i386/fpu/libm-test-ulps: Update.
14715 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14716
14717 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
14718
14719 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
14720 commit.
14721
14722 2018-03-15 Joseph Myers <joseph@codesourcery.com>
14723
14724 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
14725 (__sincos_code): Remove define and undefine.
14726 [__FAST_MATH__] (__sincos): Remove inline function.
14727 [__FAST_MATH__] (__sincosf): Remove inline function.
14728 [__FAST_MATH__] (__sincosl): Remove inline function.
14729 (__atan2l): Remove inline functions.
14730 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
14731 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
14732 function.
14733 (floor): Remove inline function.
14734 (ceil): Likewise.
14735 [__FAST_MATH__] (__ldexp_code): Remove macro.
14736 [__FAST_MATH__] (ldexp): Remove inline function.
14737 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
14738 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
14739 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
14740 [__USE_ISOC99] (__lrint_code): Remove macro.
14741 [__USE_ISOC99] (__llrint_code): Likewise.
14742 [__USE_ISOC99] (lrintf): Remove inline function.
14743 [__USE_ISOC99] (lrint): Likewise.
14744 [__USE_ISOC99] (lrintl): Likewise.
14745 [__USE_ISOC99] (llrint): Likewise.
14746 [__USE_ISOC99] (llrintf): Likewise.
14747 [__USE_ISOC99] (llrintl): Likewise.
14748
14749 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14750
14751 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
14752 (__ieee754_sqrtf): Remove.
14753 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
14754 (__ieee754_sqrtf): Remove.
14755 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
14756 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14757 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
14758 (__ieee754_sqrtf): Remove.
14759 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
14760 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
14761 (sqrtf): Remove.
14762 (sqrtl): Remove.
14763 (__ieee754_sqrt): Remove.
14764 (__ieee754_sqrtf): Remove.
14765 (__ieee754_sqrtl): Remove.
14766 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14767 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
14768 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
14769 (__ieee754_sqrtf): Remove.
14770 (__ieee754_sqrtl): Remove.
14771
14772 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14773
14774 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
14775 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
14776 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
14777 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
14778 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
14779 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14780 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
14781 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
14782 Likewise.
14783 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
14784 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
14785 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
14786 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
14787 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
14788 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
14789 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14790 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
14791 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
14792 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14793 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
14794 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
14795 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
14796 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
14797 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
14798 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
14799 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14800 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
14801 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
14802 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
14803 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
14804 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
14805 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
14806 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
14807 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
14808 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
14809 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14810 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
14811 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
14812 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14813 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
14814 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
14815 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
14816 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
14817 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14818 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14819 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
14820 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
14821 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
14822 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
14823
14824 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14825
14826 * include/math.h (sqrt): Declare with asm redirect.
14827 (sqrtf): Likewise.
14828 (sqrtl): Likewise.
14829 (sqrtf128): Likewise.
14830 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
14831 nonlib and libnldbl with -fmath-errno.
14832 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
14833 * math/w_sqrt_template.c: Likewise.
14834 * math/w_sqrtf_compat.c: Likewise.
14835 * math/w_sqrtl_compat.c: Likewise.
14836 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
14837 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
14838 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
14839 complex.h.
14840
14841 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14842
14843 * benchtests/Makefile: Define _ISOMAC.
14844 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
14845 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
14846 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
14847 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
14848 * benchtests/bench-timing.h: Define attribute_hidden.
14849
14850 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
14851
14852 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
14853 mov + lsr.
14854
14855 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14856
14857 [BZ #22963]
14858 * localedata/locales/cs_CZ (mon): Rename to...
14859 (alt_mon): This.
14860 (mon): Import from CLDR (genitive case).
14861
14862 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14863
14864 [BZ #22937]
14865 * localedata/locales/el_CY (abmon): Rename to...
14866 (ab_alt_mon): This.
14867 (abmon): Import from CLDR (abbreviated genitive case).
14868 * localedata/locales/el_GR (abmon): Rename to...
14869 (ab_alt_mon): This.
14870 (abmon): Import from CLDR (abbreviated genitive case).
14871
14872 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14873
14874 [BZ #22932]
14875 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
14876
14877 2018-03-15 Robert Buj <robert.buj@gmail.com>
14878
14879 [BZ #22848]
14880 * localedata/locales/ca_ES (abmon): Rename to...
14881 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
14882 (mon): Rename to...
14883 (alt_mon): This.
14884 (abmon): Import from CLDR (genitive case, month names preceded by
14885 "de" or "d’").
14886 (mon): Likewise.
14887 (abday): Synchronize with CLDR.
14888 (d_t_fmt): Likewise.
14889 (d_fmt): Likewise.
14890 (am_pm): Likewise.
14891
14892 (LC_TIME): Improve indentation.
14893 (LC_TELEPHONE): Likewise.
14894 (LC_NAME): Likewise.
14895 (LC_ADDRESS): Likewise.
14896
14897 2018-03-14 Joseph Myers <joseph@codesourcery.com>
14898
14899 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
14900 (lrintf): Remove definitions used only with old GCC.
14901 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
14902 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
14903 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
14904 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
14905 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
14906 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
14907 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
14908 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
14909 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
14910 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
14911 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
14912 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
14913 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
14914 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
14915 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
14916 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
14917 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
14918 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
14919 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
14920 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
14921 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
14922 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
14923 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
14924 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
14925 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
14926 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
14927 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
14928 [__FAST_MATH__] (__M_SQRT2): Remove macro.
14929
14930 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
14931
14932 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
14933 instruction to unbreak builds with binutils 2.26 and older.
14934
14935 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
14936
14937 * sysdeps/aarch64/strncmp.S (count): New macro.
14938 (strncmp): Store misaligned length in SRC1 in COUNT.
14939 (mutual_align): Adjust.
14940 (misaligned8): Load dword at a time when it is safe.
14941
14942 2018-03-12 Zack Weinberg <zackw@panix.com>
14943
14944 [BZ #1190]
14945 [BZ #19476]
14946 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
14947 if the _IO_EOF_SEEN bit is already set; update commentary.
14948 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
14949 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
14950
14951 * support/support_openpty.c, support/tty.h: New files.
14952 * support/Makefile (libsupport-routines): Add support_openpty.
14953
14954 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
14955 New test cases.
14956 * libio/Makefile (tests): Add tst-fgetc-after-eof.
14957 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
14958
14959 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
14960
14961 * po/pt_BR.po: Update translations.
14962
14963 2018-03-12 David Michael <fedora.dm0@gmail.com>
14964
14965 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
14966 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
14967 get a port to the startup server.
14968
14969 2018-03-11 Zack Weinberg <zackw@panix.com>
14970
14971 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
14972 before nldbl-compat.h.
14973
14974 2018-03-10 Zack Weinberg <zackw@panix.com>
14975
14976 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
14977 math.h or math_private.h.
14978
14979 * sysdeps/alpha/fpu/s_isnan.c
14980 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14981 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14982 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14983 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14984 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14985 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14986 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14987 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14988 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14989 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14990 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14991 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14992 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14993 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14994 Include math_private.h.
14995
14996 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14997 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14998 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14999 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
15000 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
15001 * sysdeps/powerpc/power7/fpu/s_logb.c:
15002 Include math.h and math_private.h.
15003
15004 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
15005 uses of $at in .set noat / .set at.
15006
15007 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
15008
15009 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
15010 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
15011 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
15012 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
15013 Likewise.
15014
15015 2018-03-09 Florian Weimer <fweimer@redhat.com>
15016
15017 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
15018 in comment.
15019
15020 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
15021
15022 [BZ #22919]
15023 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
15024 Add nop before __startcontext, add explaining comments.
15025
15026 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15027
15028 [BZ #22926]
15029 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
15030 empty for __SPE__.
15031 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
15032 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
15033 Do not build hardware transactional code for __SPE__.
15034 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
15035 (__lll_trylock_elision): Likewise.
15036 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
15037 (__lll_unlock_elision): Likewise.
15038
15039 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
15040 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
15041 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
15042 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
15043 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
15044 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
15045 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
15046 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
15047 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
15048 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
15049 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
15050 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
15051 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
15052 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
15053 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
15054 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
15055 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
15056 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
15057 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
15058 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
15059 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
15060 * sysdeps/unix/sysv/linux/arm/kernel-features.h
15061 (__ASSUME_CLONE_BACKWARDS): Define.
15062 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
15063 __clone2 if __NR_clone2 is defined.
15064 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
15065 (__ASSUME_CLONE_BACKWARDS): Likewise.
15066 * sysdeps/unix/sysv/linux/i386/kernel-features.h
15067 (__ASSUME_CLONE_BACKWARDS): Likewise.
15068 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
15069 (__ASSUME_CLONE2): Likewise.
15070 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15071 (__ASSUME_CLONE_BACKWARDS3): Likewise.
15072 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
15073 variants and the define architecture can use.
15074 (__ASSUME_CLONE_DEFAULT): Define as default.
15075 * sysdeps/unix/sysv/linux/mips/kernel-features.h
15076 (__ASSUME_CLONE_BACKWARDS): Likewise.
15077 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
15078 (__ASSUME_CLONE_BACKWARDS): Likewise.
15079 * sysdeps/unix/sysv/linux/s390/kernel-features.h
15080 (__ASSUME_CLONE_BACKWARDS2): Likewise.
15081
15082 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
15083
15084 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
15085
15086 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
15087 time.
15088
15089 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
15090 (do_test_limit): Likewise.
15091
15092 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
15093 for every implementation.
15094 (do_test): Likewise.
15095
15096 * benchtests/bench-strncmp.c: Convert output to json.
15097
15098 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
15099
15100 * io/futimens.c: Add missing start-of-file descriptive comment.
15101 * io/utime.c: Likewise.
15102 * misc/futimesat.c: Likewise.
15103 * misc/utimes.c: Likewise.
15104 * sysdeps/mach/hurd/futimesat.c: Likewise.
15105 * sysdeps/mach/hurd/utimes.c: Likewise.
15106 * sysdeps/posix/utime.c: Likewise.
15107 * sysdeps/posix/utimes.c: Likewise.
15108 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
15109 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
15110 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
15111 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
15112
15113 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15114
15115 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
15116 hurd_futimes.
15117 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
15118 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
15119 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
15120 (__futimens): Move implementation to...
15121 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
15122 utime_tvalue_from_tspec): ... new helper functions.
15123 (hurd_futimens): New function.
15124 * sysdeps/mach/hurd/futimesat.c: New file.
15125 * sysdeps/mach/hurd/utimensat.c: New file.
15126
15127 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
15128
15129 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
15130 UTIME_OMIT): New macros.
15131 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
15132 before reverting to converting time spec to time value and calling
15133 __file_utimes.
15134 * sysdeps/mach/hurd/utime-helper.c: New file.
15135 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
15136 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
15137 reverting to utime_tvalue_from_tval and __file_utimes.
15138 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
15139 (__lutimes): Just call hurd_futimens after lookup.
15140 * sysdeps/mach/hurd/utimes.c: Likewise.
15141
15142 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15143
15144 * bits/sigaction.h: Add include guard.
15145 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
15146 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
15147 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
15148 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
15149 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
15150 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
15151 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
15152 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
15153 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
15154
15155 2018-03-05 Joseph Myers <joseph@codesourcery.com>
15156
15157 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
15158 -Wmaybe-uninitialized for -Os.
15159 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
15160 this disabling.
15161
15162 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15163
15164 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
15165 __INO_T_MATCHES_INO64_T is defined.
15166 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
15167 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
15168 of definition.
15169 * dirent/alphasort64.c: Likewise.
15170 * dirent/scandir.c: Likewise.
15171 * dirent/scandir64-tail.c: Likewise.
15172 * dirent/scandir64.c: Likewise.
15173 * dirent/scandirat.c: Likewise.
15174 * dirent/scandirat64.c: Likewise.
15175 * dirent/versionsort.c: Likewise.
15176 * dirent/versionsort64.c: Likewise.
15177 * include/dirent.h: Likewise.
15178
15179 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
15180 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
15181 for socketpair endpoint.
15182 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
15183 WRITE_BUFFER_SIZE as buffer size for sending socket.
15184 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
15185 issue on system where send is implemented with sendto syscall.
15186 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
15187 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
15188 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
15189 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
15190
15191 [BZ #21269]
15192 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
15193 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
15194 sa_restorer for vDSO case.
15195 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
15196
15197 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15198
15199 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
15200 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
15201 * hurd/hurd/ioctl.h: Include <mach/port.h>
15202 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
15203 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
15204 <mach/mach_types.h> and <mach/message.h>.
15205 (headers): Move mach/param.h to bits/mach/param.h.
15206 * sysdeps/mach/i386/mach/param.h: Move file to ...
15207 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
15208 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
15209 of <mach/param.h>.
15210 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
15211 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
15212 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
15213 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
15214 trivial, for C++ conformity.
15215 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
15216 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
15217 Process mig output through $(migheadersed).
15218 * hurd/Makefile (migheadersed): Define variable.
15219 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
15220 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
15221 headers.
15222 * hurd/hurd.h: Include <bits/types/sigset_t.h>
15223 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
15224 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
15225 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
15226 <bits/types/sigset_t.h>.
15227 [!defined __USE_GNU]: Do not #error out.
15228 (struct hurd_sigstate): Use _NSIG instead of NSIG.
15229 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
15230 Include <stddef.h> and <bits/types/sigset_t.h>
15231 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
15232 instead of sighandler_t.
15233 * stdlib/errno.h (error_t): Move definition to...
15234 * bits/types/error_t.h: ... new header.
15235 * stdlib/Makefile (headers): Add bits/types/error_t.h.
15236 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
15237 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
15238 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
15239 * hurd/hurd.h: Include <bits/types/error_t.h>
15240 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
15241 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
15242 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
15243 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
15244 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
15245 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
15246 * sysdeps/mach/hurd/futimens.c: New file.
15247
15248 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
15249
15250 [BZ #22918]
15251 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
15252 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
15253 * nscd/gai.c (__nss_hosts_database): Readd definition.
15254 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
15255 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
15256 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
15257
15258 2018-03-02 Joseph Myers <joseph@codesourcery.com>
15259
15260 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
15261 (ifunc_one): Likewise.
15262
15263 2018-03-01 DJ Delorie <dj@delorie.com>
15264
15265 [BZ #22342]
15266 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
15267 key value.
15268
15269 2018-03-01 Maciej W. Rozycki <macro@mips.com>
15270
15271 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
15272 `match_pid' parameter.
15273 (td_ta_thr_iter): Update accordingly.
15274
15275 2018-03-01 Florian Weimer <fweimer@redhat.com>
15276
15277 * nptl/Makefile (install-lib-ldscripts): Remove.
15278 (install): Remove rule.
15279 ($(inst_libdir)/libpthread.so): Likewise.
15280
15281 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15282
15283 [BZ #22896]
15284 * localedata/locales/an_ES: update month and day names,
15285 improve d_fmt, improve postal_fmt, add country_post,
15286 add country_isbn
15287
15288 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15289
15290 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
15291 Ukrainian instead of Bulgarian.
15292
15293 2018-03-01 Florian Weimer <fweimer@redhat.com>
15294
15295 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
15296 reference.
15297
15298 2018-03-01 Florian Weimer <fweimer@redhat.com>
15299
15300 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
15301 * nptl/Makefile (routines): Add pthread_atfork.
15302 (static-only-routines): Set to pthread_atfork.
15303 (libpthread-routines): Remove pthread_atfork.
15304 (libpthread-static-only-routines): Remove.
15305 (install): Update comment.
15306 (libpthread.so): Do not install libpthread_nonshared.a.
15307 (tests): Do not link with libpthread_nonshared.a.
15308 (generated): Remove libpthread_nonshared.a.
15309 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
15310 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
15311 with libpthread_nonshared.a.
15312
15313 2018-02-28 Joseph Myers <joseph@codesourcery.com>
15314
15315 [BZ #22902]
15316 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
15317 (libc_feholdexcept_setroundf128): New macro.
15318 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
15319
15320 [BZ #15105]
15321 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
15322 libc_hidden_def.
15323 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
15324 * include/inttypes.h: New file.
15325
15326 2018-02-27 Joseph Myers <joseph@codesourcery.com>
15327
15328 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
15329 -Os in two more places.
15330
15331 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15332
15333 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
15334 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
15335 be sorted correctly at the moment because of a bug.
15336
15337 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15338
15339 [BZ #22550] - es_ES locale (and other es_* locales): collation should
15340 treat ñ as a primary different character, sync the collation
15341 for Spanish with CLDR.
15342 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
15343 * localedata/Makefile: Add new test files.
15344 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
15345 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
15346 collation order.
15347 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
15348 * localedata/am_ET.UTF-8.in: New test file.
15349 * localedata/az_AZ.UTF-8.in: Likewise.
15350 * localedata/be_BY.UTF-8.in: Likewise.
15351 * localedata/ber_DZ.UTF-8.in: Likewise.
15352 * localedata/ber_MA.UTF-8.in: Likewise.
15353 * localedata/bg_BG.UTF-8.in: Likewise.
15354 * localedata/br_FR.UTF-8.in: Likewise.
15355 * localedata/cmn_TW.UTF-8.in: Likewise.
15356 * localedata/crh_UA.UTF-8.in: Likewise.
15357 * localedata/csb_PL.UTF-8.in: Likewise.
15358 * localedata/cv_RU.UTF-8.in: Likewise.
15359 * localedata/cy_GB.UTF-8.in: Likewise.
15360 * localedata/dz_BT.UTF-8.in: Likewise.
15361 * localedata/eo.UTF-8.in: Likewise.
15362 * localedata/es_ES.UTF-8.in: Likewise.
15363 * localedata/fa_IR.UTF-8.in: Likewise.
15364 * localedata/fi_FI.UTF-8.in: Likewise.
15365 * localedata/fil_PH.UTF-8.in: Likewise.
15366 * localedata/fur_IT.UTF-8.in: Likewise.
15367 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
15368 * localedata/ha_NG.UTF-8.in: Likewise.
15369 * localedata/ig_NG.UTF-8.in: Likewise.
15370 * localedata/ik_CA.UTF-8.in: Likewise.
15371 * localedata/kk_KZ.UTF-8.in: Likewise.
15372 * localedata/ku_TR.UTF-8.in: Likewise.
15373 * localedata/ky_KG.UTF-8.in: Likewise.
15374 * localedata/ln_CD.UTF-8.in: Likewise.
15375 * localedata/mi_NZ.UTF-8.in: Likewise.
15376 * localedata/ml_IN.UTF-8.in: Likewise.
15377 * localedata/mn_MN.UTF-8.in: Likewise.
15378 * localedata/mr_IN.UTF-8.in: Likewise.
15379 * localedata/mt_MT.UTF-8.in: Likewise.
15380 * localedata/nb_NO.UTF-8.in: Likewise.
15381 * localedata/om_KE.UTF-8.in: Likewise.
15382 * localedata/os_RU.UTF-8.in: Likewise.
15383 * localedata/ps_AF.UTF-8.in: Likewise.
15384 * localedata/ro_RO.UTF-8.in: Likewise.
15385 * localedata/ru_RU.UTF-8.in: Likewise.
15386 * localedata/sc_IT.UTF-8.in: Likewise.
15387 * localedata/se_NO.UTF-8.in: Likewise.
15388 * localedata/sq_AL.UTF-8.in: Likewise.
15389 * localedata/sv_SE.UTF-8.in: Likewise.
15390 * localedata/szl_PL.UTF-8.in: Likewise.
15391 * localedata/tg_TJ.UTF-8.in: Likewise.
15392 * localedata/tk_TM.UTF-8.in: Likewise.
15393 * localedata/tt_RU.UTF-8.in: Likewise.
15394 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
15395 * localedata/ug_CN.UTF-8.in: Likewise.
15396 * localedata/uz_UZ.UTF-8.in: Likewise.
15397 * localedata/vi_VN.UTF-8.in: Likewise.
15398 * localedata/yi_US.UTF-8.in: Likewise.
15399 * localedata/yo_NG.UTF-8.in: Likewise.
15400 * localedata/zh_CN.UTF-8.in: Likewise.
15401 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
15402 file and fix bugs in the collation.
15403 * localedata/locales/az_AZ: Likewise.
15404 * localedata/locales/be_BY: Likewise.
15405 * localedata/locales/ber_DZ: Likewise.
15406 * localedata/locales/ber_MA: Likewise.
15407 * localedata/locales/bg_BG: Likewise.
15408 * localedata/locales/br_FR: Likewise.
15409 * localedata/locales/br_FR@euro: Likewise.
15410 * localedata/locales/ca_ES: Likewise.
15411 * localedata/locales/cns11643_stroke: Likewise.
15412 * localedata/locales/crh_UA: Likewise.
15413 * localedata/locales/cs_CZ: Likewise.
15414 * localedata/locales/csb_PL: Likewise.
15415 * localedata/locales/cv_RU: Likewise.
15416 * localedata/locales/cy_GB: Likewise.
15417 * localedata/locales/da_DK: Likewise.
15418 * localedata/locales/dz_BT: Likewise.
15419 * localedata/locales/en_CA: Likewise.
15420 * localedata/locales/eo: Likewise.
15421 * localedata/locales/es_CU: Likewise.
15422 * localedata/locales/es_EC: Likewise.
15423 * localedata/locales/es_ES: Likewise.
15424 * localedata/locales/es_US: Likewise.
15425 * localedata/locales/et_EE: Likewise.
15426 * localedata/locales/fa_IR: Likewise.
15427 * localedata/locales/fi_FI: Likewise.
15428 * localedata/locales/fil_PH: Likewise.
15429 * localedata/locales/fur_IT: Likewise.
15430 * localedata/locales/gez_ER@abegede: Likewise.
15431 * localedata/locales/ha_NG: Likewise.
15432 * localedata/locales/hr_HR: Likewise.
15433 * localedata/locales/hsb_DE: Likewise.
15434 * localedata/locales/hu_HU: Likewise.
15435 * localedata/locales/ig_NG: Likewise.
15436 * localedata/locales/ik_CA: Likewise.
15437 * localedata/locales/is_IS: Likewise.
15438 * localedata/locales/iso14651_t1_pinyin: Likewise.
15439 * localedata/locales/kk_KZ: Likewise.
15440 * localedata/locales/ku_TR: Likewise.
15441 * localedata/locales/ky_KG: Likewise.
15442 * localedata/locales/ln_CD: Likewise.
15443 * localedata/locales/lt_LT: Likewise.
15444 * localedata/locales/lv_LV: Likewise.
15445 * localedata/locales/mi_NZ: Likewise.
15446 * localedata/locales/ml_IN: Likewise.
15447 * localedata/locales/mn_MN: Likewise.
15448 * localedata/locales/mr_IN: Likewise.
15449 * localedata/locales/mt_MT: Likewise.
15450 * localedata/locales/nb_NO: Likewise.
15451 * localedata/locales/om_KE: Likewise.
15452 * localedata/locales/os_RU: Likewise.
15453 * localedata/locales/pl_PL: Likewise.
15454 * localedata/locales/ps_AF: Likewise.
15455 * localedata/locales/ro_RO: Likewise.
15456 * localedata/locales/ru_RU: Likewise.
15457 * localedata/locales/ru_UA: Likewise.
15458 * localedata/locales/sc_IT: Likewise.
15459 * localedata/locales/se_NO: Likewise.
15460 * localedata/locales/si_LK: Likewise.
15461 * localedata/locales/sq_AL: Likewise.
15462 * localedata/locales/sv_FI: Likewise.
15463 * localedata/locales/sv_FI@euro: Likewise.
15464 * localedata/locales/sv_SE: Likewise.
15465 * localedata/locales/szl_PL: Likewise.
15466 * localedata/locales/tg_TJ: Likewise.
15467 * localedata/locales/ti_ER: Likewise.
15468 * localedata/locales/tk_TM: Likewise.
15469 * localedata/locales/tl_PH: Likewise.
15470 * localedata/locales/tr_TR: Likewise.
15471 * localedata/locales/tt_RU: Likewise.
15472 * localedata/locales/tt_RU@iqtelif: Likewise.
15473 * localedata/locales/ug_CN: Likewise.
15474 * localedata/locales/uk_UA: Likewise.
15475 * localedata/locales/uz_UZ: Likewise.
15476 * localedata/locales/uz_UZ@cyrillic: Likewise.
15477 * localedata/locales/vi_VN: Likewise.
15478 * localedata/locales/yi_US: Likewise.
15479 * localedata/locales/yo_NG: Likewise.
15480
15481 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15482
15483 * gen-locales.mk: Make test files which contain @ modifiers in their
15484 name work.
15485 * localedata/gen-locale.sh: Likewise.
15486
15487 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15488
15489 * posix/tst-fnmatch.input: Fix results for range expressions
15490 for non C locales.
15491 * posix/tst-regexloc.c: Do not use a range expression for
15492 de_DE.ISO-8859-1 locale.
15493
15494 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15495
15496 * posix/bug-regex5.c: Fix test case because with the new
15497 iso14651_t1_common file, the da_DK locale now has 6 collating elements
15498 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
15499 file.
15500
15501 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15502
15503 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
15504 downloaded from ISO, the collation order of @-. and space has changed.
15505 Therefore, this test file needed to be adapted.
15506 * localedata/fr_CA.UTF-8.in: Likewise.
15507 * localedata/fr_FR.UTF-8.in: Likewise.
15508 * localedata/uk_UA.UTF-8.in: Likewise.
15509
15510 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15511
15512 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
15513 order of ȥ in the new iso14651_t1_common file.
15514 * localedata/pl_PL.UTF-8.in: Likewise.
15515
15516 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15517
15518 * localedata/locales/iso14651_t1_common: Add sections for various
15519 scripts to the iso14651_t1_common file.
15520
15521 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15522
15523 * localedata/locales/iso14651_t1_common: Use the code point of a
15524 character in the fourth collation level instead of IGNORE for all
15525 entries which have IGNORE on all 4 levels.
15526
15527 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15528
15529 * localedata/locales/iso14651_t1_common: Add some convenient collation
15530 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
15531 rules similar to those in CLDR.
15532
15533 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15534
15535 * localedata/locales/iso14651_t1_common: The new version of this
15536 file downloaded from ISO contained several syntax errors which
15537 are fixed by this patch.
15538
15539 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15540
15541 * localedata/locales/iso14651_t1_common: replace all <U.....>
15542 with <U000.....> because glibc understands only 4 digit or 8 digit
15543
15544 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15545
15546 * localedata/locales/iso14651_t1_common: Necessary changes
15547 to make the file downloaded from ISO usable by glibc.
15548
15549 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15550
15551 [BZ #14095]
15552 * localedata/locales/iso14651_t1_common: Update file to
15553 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
15554
15555 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15556
15557 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
15558 of <nptl/pthreadP.h>
15559 (thread_attr_compare): Move function to...
15560 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
15561 * sysdeps/nptl/timer_routines.h: ... new header.
15562 * sysdeps/mach/hurd/gai_misc.h: New file.
15563
15564 2018-02-26 Joseph Myers <joseph@codesourcery.com>
15565
15566 * string/strcoll_l.c: Include <libc-diag.h>.
15567 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
15568 declarations of seq1 and seq2.
15569
15570 [BZ #15105]
15571 * stdlib/atoi.c (atoi): Use libc_hidden_def.
15572 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
15573
15574 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
15575
15576 [BZ #22433]
15577 [BZ #22807]
15578 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
15579 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
15580 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
15581 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
15582 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
15583 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
15584
15585 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15586
15587 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
15588 macros used in __ptrace_request.
15589
15590 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
15591
15592 [BZ #22792]
15593 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
15594 to $(CC).
15595 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
15596 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
15597 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
15598 <tcb-offsets.h>.
15599
15600 2018-02-23 Joseph Myers <joseph@codesourcery.com>
15601
15602 [BZ #15105]
15603 * ctype/ctype.c (tolower): Use libc_hidden_def.
15604 (toupper): Likewise.
15605 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
15606 [!_ISOMAC] (toupper): Likewise.
15607
15608 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15609
15610 * localedata/Makefile: Remove --quiet argument when
15611 installing locales
15612
15613 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15614
15615 [BZ #17438]
15616 * localedata/locales/pt_BR (LC_TIME): use / instead of -
15617 in d_fmt.
15618 * localedata/locales/pt_PT (LC_TIME): likewise
15619
15620 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15621
15622 [BZ #22646]
15623 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
15624 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
15625 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
15626
15627 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15628
15629 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15630
15631 * nptl/Makefile (routines): Remove unregister-atfork.
15632 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
15633 (fork_handler_alloc): Remove function.
15634 (fork_handlers, fork_handler_init): New variables.
15635 (__fork_lock): Rename to atfork_lock.
15636 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
15637 to use a dynamic array to add/remove atfork handlers.
15638 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15639 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
15640 Remove declaration.
15641 (fork_handler): Remove next, refcntr, and need_signal member.
15642 (__run_fork_handler_type): New enum.
15643 (__run_fork_handlers): New prototype.
15644 * nptl/register-atfork.c: Remove file.
15645 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
15646
15647 * sysdeps/nptl/nptl-signals.h: Move to ...
15648 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
15649 comments.
15650 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
15651 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
15652 unnecessary check for SIGTIMER.
15653 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
15654 remove unnecessary removal of SIGTIMER.
15655 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
15656 include-signals.h rename.
15657 * nptl/pthreadP.h: Likewise.
15658 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
15659 __is_internal_signal instead of __nptl_is_internal_signal.
15660
15661 2018-02-22 Andrew Waterman <andrew@sifive.com>
15662
15663 [BZ # 22884]
15664 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
15665 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
15666 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
15667 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
15668
15669 2018-02-22 DJ Delorie <dj@delorie.com>
15670
15671 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
15672
15673 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
15674
15675 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
15676 do_misaligned, not misaligned8.
15677
15678 2018-02-22 Steve Ellcey <sellcey@cavium.com>
15679
15680 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
15681 Add memcpy_thunderx2.
15682 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
15683 Increment to 4.
15684 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
15685 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
15686 and IS_THUNDERX2PA checks.
15687 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
15688 Use macro to set name appropriately.
15689 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
15690 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
15691 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
15692 New macro.
15693 (IS_THUNDERX2): New macro.
15694
15695 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
15696
15697 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15698
15699 2018-02-21 Zack Weinberg <zackw@panix.com>
15700
15701 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
15702 Define here, unconditionally.
15703 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
15704 * libio/libioP.h: Remove #if 0 blocks.
15705 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
15706 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
15707 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
15708
15709 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
15710 Assume weak_alias is always defined.
15711
15712 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
15713 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
15714 Remove #if 0 and #ifdef TODO blocks.
15715 Assume text_set_element is always defined.
15716
15717 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
15718 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
15719 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
15720
15721 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
15722 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
15723 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
15724 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
15725 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
15726 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
15727 Reformat bit flags for _flags field to make occupancy clearer.
15728 Update commentary.
15729 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
15730 Keep definitions consistent with those in libio/libio.h.
15731
15732 * libio/libio.h (_IO_file_flags): Remove macro.
15733 All uses changed to _flags.
15734
15735 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
15736 (__HAVE_COLUMN, _IO_BE): Don't define.
15737 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
15738 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
15739 * libio/libioP.h (EOF): Don't define.
15740 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
15741 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
15742 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
15743 testing _IO_UNIFIED_JUMPTABLES.
15744
15745 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
15746 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
15747 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
15748 (_IO_size_t): Delete; all uses changed to size_t.
15749 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
15750 (_IO_off_t): Delete; all uses changed to off_t.
15751 (_IO_off64_t): Delete; all uses changed to off64_t.
15752 (_IO_pid_t): Delete; all uses changed to pid_t.
15753 (_IO_uid_t): Delete; all uses changed to uid_t.
15754 (_IO_wint_t): Delete; all uses changed to wint_t.
15755 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
15756 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
15757 (_IO_cookie_io_functions_t): Delete; all uses changed to
15758 cookie_io_functions_t.
15759 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
15760 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
15761 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
15762 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
15763
15764 * libio/iofopncook.c: Remove unnecessary forward declarations.
15765 * libio/iolibio.h: Correct outdated commentary.
15766 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
15767 * stdio-common/fxprintf.c (__fxprintf_nocancel):
15768 Remove unnecessary casts.
15769 * stdio-common/getline.c: Use _IO_getdelim directly.
15770 Don't redefine ssize_t.
15771 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
15772 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
15773 Remove outdated comments.
15774 * stdio-common/vfscanf.c: Don't redefine va_list.
15775
15776 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
15777 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
15778 Remove preprocessor conditionals on _LIBC and __USE_GNU,
15779 which are always true, and __cplusplus, which is always false.
15780
15781 2018-02-21 Joseph Myers <joseph@codesourcery.com>
15782
15783 [BZ #15105]
15784 [BZ #19463]
15785 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
15786 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
15787 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
15788 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
15789 libc_hidden_proto.
15790 [!_ISOMAC] (putc_unlocked): Likewise.
15791 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
15792 define inline if [__USE_EXTERN_INLINES].
15793 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
15794 putc_unlocked.
15795
15796 [BZ #15105]
15797 [BZ #19463]
15798 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
15799 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
15800 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
15801 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
15802 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
15803 getc_unlocked.
15804 * time/tzfile.c (__tzfile_read): Likewise.
15805
15806 2018-02-21 Mike FABIAN <mfabian@redhat.com>
15807
15808 [BZ #22517]
15809 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
15810
15811 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15812
15813 * io/fcntl.h: Fix a typo in a comment.
15814
15815 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15816
15817 [BZ #22862]
15818 * include/features.h: Add _ISOC11_SOURCE to test for whether to
15819 define _DEFAULT_SOURCE.
15820 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
15821
15822 2018-02-21 Florian Weimer <fweimer@redhat.com>
15823
15824 [BZ #20890]
15825 * elf/cache.c (save_cache): Call fsync on temporary file before
15826 renaming it.
15827 (save_aux_cache): Call fdatasync on temporary file before renaming
15828 it.
15829
15830 2018-02-21 Florian Weimer <fweimer@redhat.com>
15831
15832 [BZ #22787]
15833 * include/caller.h: Remove file.
15834 * elf/dl-caller.c: Likewise.
15835 * elf/Makefile (dl-routines): Remove dl-caller.
15836 (shared-only-routines): Do not add dl-caller.
15837 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
15838 __check_caller.
15839 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
15840 member.
15841 (dl_open_worker): Do not call __check_caller.
15842 (_dl_open): Do not set caller_dl_open member.
15843 * elf/rtld.c (_rtld_global_ro): Do not initialize
15844 _dl_check_caller member.
15845 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
15846 _dl_check_caller member.
15847 (_dl_check_caller): Remove declaration.
15848 * sysdeps/unix/sysv/linux/dl-execstack.c
15849 (_dl_make_stack_executable): Do not call __check_caller.
15850
15851 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
15852
15853 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
15854 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
15855
15856 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15857
15858 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
15859 description.
15860
15861 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15862
15863 [BZ #16335]
15864 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
15865 of 199606L, 200112L, and 200809L.
15866 (_XOPEN_SOURCE): Document special values of 600 and 700.
15867 (_ISOC11_SOURCE): Document macro.
15868 (_ATFILE_SOURCE): Likewise.
15869 (_FORTIFY_SOURCE): Likewise.
15870
15871 2018-02-19 Joseph Myers <joseph@codesourcery.com>
15872
15873 [BZ #15105]
15874 [BZ #19463]
15875 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
15876 and define as weak alias of __ferror_unlocked. Use
15877 libc_hidden_weak.
15878 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
15879 libc_hidden_proto.
15880 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
15881 function if [__USE_EXTERN_INLINES].
15882 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
15883 ferror_unlocked.
15884
15885 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
15886
15887 [BZ #6889]
15888 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
15889
15890 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15891
15892 [BZ #22818]
15893 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
15894 the GLIBC_2.1 version.
15895
15896 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15897
15898 [BZ #21508]
15899 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
15900 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
15901 intl/tst-gettext-de.po from po/de.po by removing the
15902 POT-Creation-Date line.
15903 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
15904 ../po/de.po.
15905 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
15906 ../po/de.po.
15907
15908 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
15909
15910 * mach/Makefile (headers): Add mach/param.h.
15911 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
15912 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
15913 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
15914 (__ptsname_r): Move implementation to...
15915 (__ptsname_internal): ... new function. Add filling the STP
15916 structure.
15917
15918 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
15919
15920 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
15921 idouble to 1 ULP.
15922
15923 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
15924
15925 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
15926 syntax.
15927
15928 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
15929
15930 * nptl/Makefile (tst-mutex8-ENV): Delete.
15931 * nptl/tst-mutex8.c (check_type):
15932 Add runtime check if mutex will be elided.
15933
15934 2018-02-15 Joseph Myers <joseph@codesourcery.com>
15935
15936 [BZ #20980]
15937 [BZ #21234]
15938 * manual/install.texi (Configuring and compiling): Describe
15939 passing CC and CFLAGS on configure command line, not as
15940 environment variables. Use @code markup on those variables.
15941 Specify what options go in CC and what go in CFLAGS. Note the
15942 requirement to compile with optimization.
15943 * INSTALL: Regenerated.
15944
15945 [BZ #18124]
15946 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
15947 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
15948 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
15949 __sigprocmask instead of sigprocmask.
15950 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
15951 Likewise.
15952 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
15953 __sigsetjmp and sigprocmask.
15954
15955 [BZ #15105]
15956 * include/argz.h (argz_next): Use libc_hidden_proto.
15957 (__argz_next): Likewise.
15958 * string-argz-next.c (__argz_next): Use libc_hidden_def.
15959 (argz_next): Use libc_hidden_weak.
15960
15961 [BZ #15105]
15962 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
15963 libc_hidden_proto.
15964 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
15965 libc_hidden_def.
15966
15967 [BZ #15105]
15968 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
15969 libc_hidden_proto.
15970 * libio/iofputs.c (fputs): Use libc_hidden_weak.
15971
15972 [BZ #15105]
15973 [BZ #19463]
15974 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
15975 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
15976 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
15977 (__feof_unlocked): New declaration, and inline function if
15978 [__USE_EXTERN_INLINES].
15979 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15980 instead of feof_unlocked.
15981 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15982 * nss/nsswitch.c (nss_parse_file): Likewise.
15983 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15984 Likewise.
15985 * time/getdate.c (__getdate_r): Likewise.
15986 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15987 Define as macro to call __feof_unlocked.
15988
15989 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15990
15991 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15992
15993 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15994
15995 * math/Makefile: Remove mpexp.c and mplog.c
15996 * sysdeps/i386/fpu/mpexp.c: Delete file.
15997 * sysdeps/i386/fpu/mplog.c: Likewise.
15998 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15999 * sysdeps/ia64/fpu/mplog.c: Likewise.
16000 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
16001 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
16002 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
16003 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
16004 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
16005 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
16006 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
16007 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
16008 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
16009 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
16010 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
16011 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
16012 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
16013 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
16014 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
16015 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
16016
16017 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
16018
16019 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
16020
16021 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16022
16023 * sysdeps/sh/libm-test-ulps: Update.
16024
16025 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16026
16027 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
16028 idouble to 1 ULP.
16029
16030 2018-02-12 Zack Weinberg <zackw@panix.com>
16031
16032 [BZ #19239]
16033 * posix/sys/types.h: Don't include sys/sysmacros.h.
16034 * misc/sys/sysmacros.h: Remove the conditional deprecation
16035 warnings for the macros defined by this header.
16036
16037 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16038
16039 * manual/probes.texi: Remove slowexp probes.
16040 * math/Makefile: Remove slowexp.
16041 * sysdeps/generic/math_private.h (__slowexp): Remove.
16042 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
16043 document error bounds.
16044 * sysdeps/i386/fpu/slowexp.c: Remove.
16045 * sysdeps/ia64/fpu/slowexp.c: Remove.
16046 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
16047 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
16048 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
16049 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
16050 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
16051 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
16052 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
16053 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
16054 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
16055 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
16056 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
16057
16058 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
16059
16060 [BZ #13932]
16061 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
16062 * benchtests/pow-inputs: Update comment for slow path cases.
16063 * manual/probes.texi (slowpow_p10): Delete removed probe.
16064 (slowpow_p10): Likewise.
16065 * math/Makefile: Remove halfulp.c and slowpow.c.
16066 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
16067 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
16068 (__halfulp): Remove.
16069 (__slowpow): Remove.
16070 * sysdeps/i386/fpu/halfulp.c: Delete file.
16071 * sysdeps/i386/fpu/slowpow.c: Likewise.
16072 * sysdeps/ia64/fpu/halfulp.c: Likewise.
16073 * sysdeps/ia64/fpu/slowpow.c: Likewise.
16074 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
16075 improve comments and add error analysis.
16076 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
16077 (power1): Remove function:
16078 (log1): Remove error argument, add error analysis.
16079 (my_log2): Remove function.
16080 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
16081 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16082 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
16083 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
16084 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
16085 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
16086 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
16087 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
16088 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
16089 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
16090 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
16091 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
16092 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
16093 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
16094
16095 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
16096
16097 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
16098 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
16099
16100 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
16101
16102 [BZ #22433]
16103 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
16104 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
16105 and PTRACE_SETHBPREGS.
16106
16107 2018-02-10 Zack Weinberg <zackw@panix.com>
16108
16109 [BZ #22830]
16110 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
16111 correctly.
16112 * malloc/tst-malloc-stats-cancellation.c: New test case.
16113 * malloc/Makefile: Add new test case.
16114
16115 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
16116
16117 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
16118
16119 2018-02-10 Joseph Myers <joseph@codesourcery.com>
16120
16121 * math/Makefile (libm-narrow-fns): Add add.
16122 (libm-test-funcs-narrow): Likewise.
16123 * math/Versions (GLIBC_2.28): Add narrowing add functions.
16124 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
16125 * math/gen-auto-libm-tests.c (test_functions): Add add.
16126 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
16127 (NARROW_ADD_ROUND_TO_ODD): Likewise.
16128 (NARROW_ADD_TRIVIAL): Likewise.
16129 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
16130 macro.
16131 (__daddl): Likewise.
16132 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
16133 dadd.
16134 (CFLAGS-nldbl-dadd.c): New variable.
16135 (CFLAGS-nldbl-fadd.c): Likewise.
16136 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16137 __nldbl_daddl.
16138 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
16139 prototype.
16140 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
16141 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
16142 * math/auto-libm-test-in: Add tests of add.
16143 * math/auto-libm-test-out-narrow-add: New generated file.
16144 * math/libm-test-narrow-add.inc: New file.
16145 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
16146 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
16147 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
16148 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
16149 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
16150 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
16151 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
16152 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
16153 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
16154 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
16155 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
16156 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
16157 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
16158 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
16159 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
16160 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
16161 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
16162 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
16163 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16164 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16165 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16166 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16167 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16168 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16169 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16170 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16171 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16172 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16173 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16174 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16175 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16176 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16177 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16178 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16179 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16180 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16181 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16182 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16183 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16184 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16185 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16186 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16187 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16188 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16189 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16190 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16191
16192 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
16193 (f128-pairs): New variable.
16194 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
16195 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
16196 to CFLAGS.
16197 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
16198 Also make tests add $(f128-loader-link) to gnulib-tests.
16199
16200 2018-02-09 DJ Delorie <dj@redhat.com>
16201
16202 [BZ #22827]
16203 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
16204 64-bit ELF type for 64-bit ELF objects.
16205
16206 2018-02-09 Joseph Myers <joseph@codesourcery.com>
16207
16208 * math/libm-test-driver.c (snan_tests_arg): New variable.
16209 * math/libm-test-support.h (snan_tests_arg): New declaration.
16210 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
16211
16212 * math/Makefile (test-type-pairs): New variable.
16213 (test-type-pairs-f64xf128-yes): Likewise.
16214 (tests): Add test-narrow-macros.
16215 (libm-test-funcs-narrow): New variable.
16216 (libm-test-c-narrow): Likewise.
16217 (generated): Add $(libm-test-c-narrow).
16218 (libm-tests-base-narrow): New variable.
16219 (libm-tests-narrow): Likewise.
16220 (libm-tests): Add $(libm-tests-narrow).
16221 (libm-tests-for-type): Handle $(libm-tests-narrow).
16222 (libm-test-c-narrow-obj): New variable.
16223 ($(libm-test-c-narrow-obj)): New rule.
16224 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
16225 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
16226 $(o-iterator) to set dependencies and CFLAGS.
16227 * math/gen-auto-libm-tests.c: Document use for narrowing
16228 functions.
16229 (output_for_one_input_case): Take argument NARROW.
16230 (generate_output): Likewise. Update call to
16231 output_for_one_input_case.
16232 (main): Take --narrow option. Update call to generate_output.
16233 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
16234 (apply_lit): Update call to _apply_lit.
16235 (apply_arglit): New function.
16236 (parse_args): Handle "a" arguments.
16237 (parse_auto_input): Handle format names using ":".
16238 * math/README.libm-test: Document "a" parameter type.
16239 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
16240 (ARG_TYPE_TRUE_MIN): Likewise.
16241 (ARG_TYPE_MAX): Likwise.
16242 (ARG_MIN_EXP): Likewise.
16243 (ARG_MAX_EXP): Likewise.
16244 (ARG_MANT_DIG): Likewise.
16245 (TEST_COND_arg_ibm128): Likewise.
16246 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
16247 (TEST_COND_arg_fmt): New macro.
16248 (init_max_error): Update prototype.
16249 * math/libm-test-support.c (test_ibm128): New variable.
16250 (init_max_error): Take argument testing_ibm128 and set test_ibm128
16251 instead of using [TEST_COND_ibm128] conditional.
16252 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
16253 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
16254 [TEST_NARROW] (TEST_MSG): New definition.
16255 (arg_plus_zero): New macro.
16256 (arg_minus_zero): Likewise.
16257 (arg_plus_infty): Likewise.
16258 (arg_minus_infty): Likewise.
16259 (arg_qnan_value_pl): Likewise.
16260 (arg_qnan_value): Likewise.
16261 (arg_snan_value_pl): Likewise.
16262 (arg_snan_value): Likewise.
16263 (arg_max_value): Likewise.
16264 (arg_min_value): Likewise.
16265 (arg_min_subnorm_value): Likewise.
16266 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
16267 (RUN_TEST_LOOP_aa_f): New macro.
16268 (TEST_SUFF): New macro.
16269 (TEST_SUFF_STR): Likewise.
16270 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
16271 (TEST_COND_any_ibm128): New macro.
16272 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
16273 this_func. Update call to init_max_error.
16274 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
16275 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
16276 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
16277 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
16278 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
16279 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
16280 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
16281 * math/test-math-scalar.h (TEST_NARROW): Likewise.
16282 * math/test-math-vector.h (TEST_NARROW): Likewise.
16283 * math/test-arg-double.h: New file.
16284 * math/test-arg-float128.h: Likewise.
16285 * math/test-arg-float32x.h: Likewise.
16286 * math/test-arg-float64.h: Likewise.
16287 * math/test-arg-float64x.h: Likewise.
16288 * math/test-arg-ldouble.h: Likewise.
16289 * math/test-math-narrow.h: Likewise.
16290 * math/test-narrow-macros.c: Likewise.
16291 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
16292 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
16293 test-narrow-macros-ldbl-64.
16294 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
16295
16296 * math/bits/mathcalls-narrow.h: New file.
16297 * include/bits/mathcalls-narrow.h: Likewise.
16298 * math/math-narrow.h: Likewise.
16299 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
16300 (__MATHCALL_NARROW_ARGS_2): Likewise.
16301 (__MATHCALL_NARROW_ARGS_3): Likewise.
16302 (__MATHCALL_NARROW_NORMAL): Likewise.
16303 (__MATHCALL_NARROW_REDIR): Likewise.
16304 (__MATHCALL_NARROW): Likewise.
16305 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
16306 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
16307 defined.
16308 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16309 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
16310 (libm-narrow-fns): New variable.
16311 (libm-narrow-types-basic): Likewise.
16312 (libm-narrow-types-ldouble-yes): Likewise.
16313 (libm-narrow-types-float128-yes): Likewise.
16314 (libm-narrow-types-float128-alias-yes): Likewise.
16315 (libm-narrow-types): Likewise.
16316 (libm-routines): Add narrowing functions.
16317 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
16318 (libc_feholdexcept_setroundf128): New macro.
16319 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
16320 * sysdeps/ieee754/float128/float128_private.h: Include
16321 <math/math-narrow.h>.
16322 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
16323 Undefine and redefine.
16324 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
16325 (libm_alias_float_ldouble): Undefine and redefine.
16326 (libm_alias_double_ldouble): Likewise.
16327
16328 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
16329
16330 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
16331
16332 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
16333 FPCR/FPSR.
16334
16335 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
16336
16337 * manual/creature.texi: Convert references to gcc.info to gcc.
16338 * manual/stdio.texi: Likewise.
16339 * manual/string.texi: Likewise.
16340
16341 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16342
16343 [BZ #17979]
16344 * posix/bits/types.h (__int_least8_t): New typedef.
16345 (__uint_least8_t): Likewise.
16346 (__int_least16_t): Likewise.
16347 (__uint_least16_t): Likewise.
16348 (__int_least32_t): Likewise.
16349 (__uint_least32_t): Likewise.
16350 (__int_least64_t): Likewise.
16351 (__uint_least64_t): Likewise.
16352 * sysdeps/generic/stdint.h (int_least8_t): Define using
16353 __int_least8_t.
16354 (int_least16_t): Define using __int_least16_t.
16355 (int_least32_t): Define using __int_least32_t.
16356 (int_least64_t): Define using __int_least64_t.
16357 (uint_least8_t): Define using __uint_least8_t.
16358 (uint_least16_t): Define using __uint_least16_t.
16359 (uint_least32_t): Define using __uint_least32_t.
16360 (uint_least64_t): Define using __uint_least64_t.
16361 * wcsmbs/uchar.h: Include <bits/types.h>.
16362 (char16_t): Define using __uint_least16_t conditional only on
16363 [!__USE_ISOCXX11].
16364 (char32_t): Define using __uint_least32_t conditional only on
16365 [!__USE_ISOCXX11].
16366 * wcsmbs/test-char-types.c: New file.
16367 * wcsmbs/Makefile (tests): Add test-char-types.
16368
16369 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
16370 version to 4.0.1.
16371
16372 2018-02-07 Zack Weinberg <zackw@panix.com>
16373
16374 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
16375 Delete all contents except for definitions of _G_HAVE_MMAP and
16376 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
16377 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
16378 sysdeps/unix/sysv/linux/_G_config.h. Make same content
16379 change as above.
16380
16381 * libio/libio.h: Don't include bits/_G_config.h here.
16382 Include stddef.h with __need_wchar_t defined. Include
16383 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
16384 Define _IO_iconv_t here, directly.
16385 Don't define _IO_HAVE_ST_BLKSIZE.
16386 * libio/libioP.h: Include _G_config.h here. Move include of
16387 shlib-compat.h up with rest of includes. Simplify conditionals
16388 controlling definition of _IO_JUMPS_OFFSET.
16389
16390 * csu/init.c: Remove always-true #if around entire file.
16391 Don't include stdio.h. Set _IO_stdin_used to hardwired
16392 constant 0x20001, and update commentary.
16393 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
16394 Replace all uses of _G_va_list with __gnuc_va_list.
16395 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
16396 instead of #if _IO_HAVE_ST_BLKSIZE.
16397 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
16398 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
16399 not #ifdef.
16400
16401 * libio/bits/libio.h: Move back to libio/libio.h and adjust
16402 multiple-include guard to match.
16403 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
16404 into this file.
16405 Remove preprocessor conditionals that are always true and/or
16406 redundant to other preprocessor conditionals in the same nest.
16407 Include shlib-compat.h unconditionally.
16408 Error out if _LIBC is not defined, or if _ISOMAC is defined,
16409 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
16410 defined after including stdio.h.
16411 Use __BEGIN_DECLS/__END_DECLS.
16412
16413 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
16414 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
16415 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
16416
16417 2018-02-07 Zack Weinberg <zackw@panix.com>
16418
16419 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
16420 New single-type headers split from _G_config.h.
16421 * libio/bits/types/cookie_io_functions_t.h
16422 * libio/bits/types/struct_FILE.h
16423 New single-type headers split from libio.h.
16424
16425 * libio/Makefile: Install the above new headers. Don't install
16426 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
16427 bits/libio-ldbl.h.
16428 * libio/_G_config.h, libio/libio.h: Delete file.
16429
16430 * libio/bits/libio.h: Remove improper-inclusion guard.
16431 Include stdio.h and don't repeat anything that it does.
16432 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
16433 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
16434 __io_read_fn as cookie_read_function_t,
16435 __io_write_fn as cookie_write_function_t,
16436 __io_seek_fn as cookie_seek_function_t,
16437 __io_close_fn as cookie_close_function_t,
16438 and _IO_cookie_io_functions_t as cookie_io_functions_t.
16439 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
16440 here, in the "compatibility defines" section. Remove an #if 0
16441 block. Use the "body" macros from bits/types/struct_FILE.h to
16442 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
16443 and _IO_ferror_unlocked.
16444 Move prototypes of __uflow and __overflow...
16445
16446 * libio/stdio.h: ...here. Don't include bits/libio.h.
16447 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
16448 directly from stdarg.h. Include bits/types/__fpos_t.h,
16449 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
16450 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
16451 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
16452 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
16453 cookie_io_functions_t, not _IO_cookie_io_functions_t;
16454 __ssize_t, not _IO_ssize_t. Unconditionally define
16455 BUFSIZ as 8192 and EOF as (-1).
16456
16457 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
16458 macros from bits/types/struct_FILE.h instead of _IO_* macros
16459 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
16460 instead of _IO_ssize_t.
16461 * libio/bits/stdio2.h: Similarly.
16462
16463 * libio/iolibio.h: Add multiple-include guard.
16464 Include bits/libio.h after stdio.h.
16465 * libio/libioP.h: Add multiple-include guard.
16466 Include stdio.h and bits/libio.h before iolibio.h.
16467
16468 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
16469 * include/bits/types/cookie_io_functions_t.h
16470 * include/bits/types/struct_FILE.h: New wrappers.
16471
16472 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
16473 Get definitions of _G_fpos_t and _G_fpos64_t from
16474 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
16475 respectively. Remove improper-inclusion guards.
16476
16477 * conform/data/stdio.h-data: Update expectations of va_list.
16478 * scripts/check-installed-headers.sh: Remove special case for
16479 libio.h and _G_config.h.
16480
16481 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16482
16483 [BZ #15105]
16484 [BZ #19463]
16485 * include/sys/sysmacros.h [!_ISOMAC]
16486 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
16487 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
16488 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
16489 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
16490 libc_hidden_proto.
16491 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
16492 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
16493 Likewise.
16494 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
16495 Undefine and redefine to add use __gnu_dev_ prefix.
16496 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
16497 Likewise.
16498 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
16499 and define as hidden inline function.
16500 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
16501 Likewise.
16502 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
16503 Likewise.
16504 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
16505 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
16506 (gnu_dev_minor): Likewise.
16507 (gnu_dev_makedev): Likewise.
16508 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
16509 makedev.
16510 * posix/wordexp.c (exec_comm_child): Likewise.
16511 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
16512 instead of minor and __gnu_dev_major instead of major.
16513 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
16514 __gnu_dev_major instead of major.
16515 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
16516 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
16517 instead of gnu_dev_minor.
16518 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
16519 (SLAVE_P): Likewise.
16520 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
16521 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
16522 instead of major.
16523
16524 [BZ #21313]
16525 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
16526 in another place.
16527 * locale/weightwc.h (findidx): Likewise.
16528
16529 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
16530
16531 * manual/probes.texi (slowlog): Delete documentation of removed probe.
16532 (slowlog_inexact): Likewise
16533 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
16534 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
16535
16536 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
16537
16538 [BZ #22797]
16539 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
16540 missing second underscore to parameter name.
16541
16542 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16543
16544 [BZ #14508]
16545 [BZ #15512]
16546 [BZ #17082]
16547 [BZ #20530]
16548 * bits/byteswap.h: Update file comment. Do not include
16549 <bits/byteswap-16.h>.
16550 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
16551 constant.
16552 (__bswap_16): Define as inline function.
16553 (__bswap_constant_32): Reformat definition.
16554 (__bswap_32): Always define as inline function, not macro, using
16555 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
16556 otherwise __bswap_constant_32.
16557 (__bswap_constant_64): Reformat definition. Do not use
16558 __extension__ here.
16559 (__bswap_64): Always define as inline function, not macro. Use
16560 __extension__ on function definition. Use __builtin_bswap64 if
16561 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
16562 * string/test-endian-file-scope.c: New file.
16563 * string/test-endian-sign-conversion.c: Likewise.
16564 * string/Makefile (headers): Remove bits/byteswap-16.h.
16565 (tests): Add test-endian-file-scope and
16566 test-endian-sign-conversion.
16567 (CFLAGS-test-endian-sign-conversion.c): New variable.
16568 * bits/byteswap-16.h: Remove file.
16569 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
16570 * sysdeps/ia64/bits/byteswap.h: Likewise.
16571 * sysdeps/m68k/bits/byteswap.h: Likewise.
16572 * sysdeps/s390/bits/byteswap-16.h: Likewise.
16573 * sysdeps/s390/bits/byteswap.h: Likewise.
16574 * sysdeps/tile/bits/byteswap.h: Likewise.
16575 * sysdeps/x86/bits/byteswap-16.h: Likewise.
16576 * sysdeps/x86/bits/byteswap.h: Likewise.
16577
16578 [BZ #17721]
16579 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
16580 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
16581 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
16582 199901L] (__restrict): Define to restrict.
16583
16584 [BZ #19667]
16585 * string/testcopy.c: Include <support/support.h>. Do not include
16586 <malloc.h>. Use <support/test-driver.c>.
16587 (main): Rename to do_test. Make static. Use xmalloc instead of
16588 malloc.
16589
16590 [BZ #13575]
16591 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
16592 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
16593 (SSIZE_MAX): Define to INT_MAX.
16594 * posix/test-ssize-max.c: New file.
16595 * posix/Makefile (tests): Add test-ssize-max.
16596
16597 [BZ #19668]
16598 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
16599 <support/support.h>. Do not include <malloc.h>.
16600 (query_auxv): Use xmalloc instead of malloc.
16601
16602 [BZ #14553]
16603 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
16604 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
16605 instead of loff_t.
16606
16607 2018-02-06 Florian Weimer <fweimer@redhat.com>
16608
16609 [BZ #18023]
16610 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16611 Use scratch_buffer instead of extend_alloca.
16612
16613 2018-02-06 Zack Weinberg <zackw@panix.com>
16614
16615 * libio/stdio.h: Don't define getc or putc as macros.
16616 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
16617 not _IO_getc and _IO_putc.
16618
16619 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
16620 * stdio-common/tstgetln.c: Don't redefine ssize_t.
16621
16622 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16623
16624 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
16625 (TCP_FASTOPEN_NO_COOKIE): Likewise.
16626
16627 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
16628
16629 [BZ #14890]
16630 * elf/elf.h (NT_PRFPREG): New macro.
16631 (NT_S390_VXRS_LOW): Likewise.
16632 (NT_S390_VXRS_HIGH): Likewise.
16633 (NT_S390_GS_CB): Likewise.
16634 (NT_S390_GS_BC): Likewise.
16635 (NT_S390_RI_CB): Likewise.
16636
16637 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16638 (MAP_SYNC): New macro.
16639 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
16640 Likewise.
16641 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16642 (MAP_SYNC): Likewise.
16643 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16644 (MAP_SYNC): Likewise.
16645 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16646 (MAP_SYNC): Likewise.
16647 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16648 (MAP_SYNC): Likewise.
16649 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16650 (MAP_SYNC): Likewise.
16651 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16652 (MAP_SYNC): Likewise.
16653 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
16654 Likewise.
16655 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
16656 Likewise.
16657
16658 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
16659 (MAP_SHARED_VALIDATE): New macro.
16660 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16661 (MAP_SHARED_VALIDATE): Likewise.
16662
16663 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16664
16665 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
16666 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
16667 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
16668
16669 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16670
16671 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
16672 (DT_NUM): Updated to 35.
16673
16674 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16675
16676 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
16677 __builtin_expect with __glibc_likely and __glibc_unlikely.
16678 (elf_machine_rela): Likewise.
16679 (elf_machine_lazy_rel): Likewise.
16680
16681 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16682
16683 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
16684 __builtin_expect with __glibc_likely and __glibc_unlikely.
16685 (elf_machine_lazy_rel): Likewise.
16686
16687 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16688
16689 [BZ #22638]
16690 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
16691 SHARED.
16692 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
16693
16694 2018-02-05 Andreas Schwab <schwab@suse.de>
16695
16696 [BZ #22761]
16697 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
16698 string.
16699
16700 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
16701
16702 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
16703 not check against PTHREAD_STACK_MIN.
16704
16705 2018-02-02 Sean McKean <smckean83@gmail.com>
16706
16707 [BZ #22735]
16708 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
16709
16710 2018-02-02 Florian Weimer <fweimer@redhat.com>
16711
16712 [BZ #22753]
16713 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
16714 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
16715 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
16716 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
16717 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
16718 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
16719 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
16720 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
16721 * manual/llio.texi (Scatter-Gather): Mention offset -1.
16722 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
16723 * misc/tst-preadvwritev2.c (do_test): Call it.
16724 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
16725
16726 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
16727
16728 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
16729
16730 * benchtests/bench-memcmp.c: Print json instead of plain text.
16731
16732 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
16733 every test run.
16734
16735 2018-02-01 Joseph Myers <joseph@codesourcery.com>
16736
16737 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16738 version to 4.15.
16739 (s390_sthyi): New syscall.
16740
16741 * sysdeps/generic/ldbl-classify-compat.h: New file.
16742 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
16743 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
16744 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
16745 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
16746 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
16747 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
16748 * sysdeps/ieee754/dbl-64/s_finite.c: Include
16749 <ldbl-classify-compat.h>.
16750 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16751 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
16752 <ldbl-classify-compat.h>.
16753 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16754 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
16755 <ldbl-classify-compat.h>.
16756 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16757 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
16758 <ldbl-classify-compat.h>.
16759 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16760 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
16761 <ldbl-classify-compat.h>.
16762 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16763 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
16764 <ldbl-classify-compat.h>.
16765 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16766 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
16767 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
16768 * sysdeps/m68k/coldfire/math_private.h: Remove file.
16769 * sysdeps/microblaze/math_private.h: Likewise.
16770 * sysdeps/nios2/math_private.h: Likewise.
16771 * sysdeps/sh/math_private.h: Likewise.
16772
16773 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
16774 * sysdeps/m68k/coldfire/math_private.h: ... here.
16775 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
16776 * sysdeps/tile/math_private.h: Likewise.
16777 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
16778 Remove macro.
16779 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
16780 Likewise.
16781
16782 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
16783 Remove macro.
16784 (libc_fetestexcept): Likewise.
16785 (libc_feupdateenv_test): Likewise.
16786 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
16787 (libc_fetestexcept): Likewise.
16788 (libc_feupdateenv_test): Likewise.
16789 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
16790 (libc_fetestexcept): Likewise.
16791 (libc_feupdateenv_test): Likewise.
16792 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
16793 (libc_fetestexcept): Likewise.
16794 (libc_feupdateenv_test): Likewise.
16795
16796 * sysdeps/generic/math_private.h
16797 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
16798 New inline function.
16799 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
16800 Likewise.
16801
16802 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
16803 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
16804 * sysdeps/generic/math_private.h
16805 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
16806 inline function.
16807 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
16808 Likewise.
16809 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
16810 Likewise.
16811 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
16812 Likewise.
16813 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
16814 Likewise.
16815 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
16816 Likewise.
16817 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
16818 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
16819 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
16820 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
16821 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
16822 (__fegetenv): Likewise.
16823 (fesetenv): Likewise.
16824 (__fesetenv): Likewise.
16825 (feupdateenv): Likewise.
16826 (__feupdateenv): Likewise.
16827 (fegetround): Likewise.
16828 (__fegetround): Likewise.
16829 (fesetround): Likewise.
16830 (__fesetround): Likewise.
16831
16832 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
16833 (feraiseexcept): New macro.
16834 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
16835 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
16836 Remove macro.
16837 (__feraiseexcept): Likewise.
16838 (feclearexcept): Likewise.
16839 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
16840 (__feraiseexcept): Likewise.
16841 (feclearexcept): Likewise.
16842 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
16843 (__feraiseexcept): Likewise.
16844 (feclearexcept): Likewise.
16845 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
16846 (__feraiseexcept): Likewise.
16847 (feclearexcept): Likewise.
16848 (fetestexcept): Likewise.
16849
16850 * sysdeps/m68k/coldfire/math-tests.h: New file.
16851
16852 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
16853 * sysdeps/m68k/bits/fenv.h: ... here.
16854 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
16855 not define.
16856 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
16857 Likewise.
16858 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
16859 Likewise.
16860 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
16861 Likewise.
16862 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
16863 Likewise.
16864 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
16865 Define to 0.
16866 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
16867 (__FE_UNDEFINED): New enum constant.
16868 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
16869 Do not define.
16870 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
16871 Likewise.
16872 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
16873 Likewise.
16874 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
16875 to match generic bits/fenv.h.
16876 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
16877 Do not define.
16878
16879 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
16880 packed on bits.
16881 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
16882 * soft-fp/half.h (union _FP_UNION_H): Likewise.
16883 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
16884 * soft-fp/single.h (union _FP_UNION_S): Likewise.
16885
16886 2018-02-01 Carlos O'Donell <carlos@redhat.com>
16887 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
16888 Joseph Myers <joseph@codesourcery.com>
16889
16890 [BZ #21314]
16891 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
16892 (__log1p): Disable -Wmaybe-uninitialized for -Os around
16893 computation using c.
16894 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
16895 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
16896 computation using c.
16897
16898 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16899
16900 * version.h (RELEASE): Set to "development".
16901 (VERSION): Set to "2.27.9000".
16902 * NEWS (2.28): New section.
16903
16904 * version.h (RELEASE): Set to "stable".
16905 (VERSION): Set to "2.27".
16906 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
16907
16908 * NEWS: Add the list of bugs fixed in 2.27.
16909
16910 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16911
16912 * stdlib/test-atexit-race-common.c (do_test): Check stack size
16913 against PTHREAD_STACK_MIN.
16914
16915 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16916
16917 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
16918 New entries.
16919 (Rafal Luzynski, Andreas Schwab): Update.
16920
16921 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
16922
16923 [BZ #10871]
16924 * NEWS: List the languages which actually use the alternative
16925 months feature in this release. Also explain that "alt_mon" and
16926 "ab_alt_mon" are optional.
16927
16928 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
16929
16930 [BZ #22765]
16931 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
16932
16933 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
16934
16935 * manual/install.texi (Tools for Compilation): Update the newest
16936 versions of gcc, binutils, texinfo, gawk, bison, and sed.
16937 * INSTALL: Regenerated.
16938
16939 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
16940
16941 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
16942 instead of __builtin_expect.
16943
16944 2018-01-30 Florian Weimer <fweimer@redhat.com>
16945
16946 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
16947 data.
16948 * nss/tst-nss-getpwent.c (do_test): Likewise.
16949
16950 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
16951
16952 [BZ #10871]
16953 * localedata/locales/hr_HR (mon): Rename to...
16954 (alt_mon): This.
16955 (mon): Import from CLDR (genitive case).
16956 (d_t_fmt): Update the comment.
16957
16958 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
16959
16960 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
16961 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
16962 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
16963
16964 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16965
16966 * mach/Versions: Fix version when __mach_host_self_ was added.
16967 * hurd/Versions: Fix version when _hurd_exec_paths was added.
16968 * sysdeps/mach/hurd/i386/ld.abilist: New file.
16969 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
16970 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
16971 * sysdeps/mach/hurd/i386/libc.abilist: New file.
16972 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
16973 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
16974 * sysdeps/mach/hurd/i386/libm.abilist: New file.
16975 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
16976 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
16977 * sysdeps/mach/hurd/i386/librt.abilist: New file.
16978 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16979 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16980 || to respect codestyle.
16981 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16982 (do_test_bz20181): Rename accordingly.
16983 * malloc/malloc.c: Include <assert.h>.
16984 (assert): Do not define.
16985 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16986 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16987 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16988 * sysdeps/mach/hurd/hp-timing.h: New file.
16989 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16990
16991 2018-01-29 Darius Rad <darius@bluespec.com>
16992
16993 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16994
16995 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16996
16997 * sysdeps/init_array/crti.S (.section .init_array): Add
16998 PREINIT_FUNCTION when defined.
16999 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
17000 * config.h.in: Regenerate.
17001 * manual/platform.texi: Add RISC-V documenation for
17002 __riscv_flush_icache.
17003 * sysdeps/riscv/__longjmp.S: New file.
17004 * sysdeps/riscv/backtrace.c: Likewise.
17005 * sysdeps/riscv/bits/endian.h: Likewise.
17006 * sysdeps/riscv/bits/setjmp.h: Likewise.
17007 * sysdeps/riscv/bits/wordsize.h: Likewise.
17008 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
17009 * sysdeps/riscv/bsd-setjmp.c: Likewise.
17010 * sysdeps/riscv/dl-trampoline.S: Likewise.
17011 * sysdeps/riscv/gccframe.h: Likewise.
17012 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
17013 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
17014 * sysdeps/riscv/machine-gmon.h: Likewise.
17015 * sysdeps/riscv/memusage.h: Likewise.
17016 * sysdeps/riscv/setjmp.S: Likewise.
17017 * sysdeps/riscv/sys/asm.h: Likewise.
17018 * sysdeps/riscv/tls-macros.h: Likewise.
17019 * sysdeps/riscv/dl-tls.h: New file.
17020 * sysdeps/riscv/libc-tls.c: Likewise.
17021 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
17022 * sysdeps/riscv/nptl/tls.h: Likewise.
17023 * sysdeps/riscv/stackinfo.h: Likewise.
17024 * sysdeps/riscv/bits/fenv.h: New file.
17025 * sysdeps/riscv/e_sqrtl.c: Likewise.
17026 * sysdeps/riscv/fpu_control.h: Likewise.
17027 * sysdeps/riscv/math-tests.h: Likewise.
17028 * sysdeps/riscv/nofpu/Implies: Likewise.
17029 * sysdeps/riscv/sfp-machine.h: Likewise.
17030 * sysdeps/riscv/tininess.h: Likewise.
17031 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
17032 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
17033 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
17034 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
17035 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
17036 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
17037 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
17038 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
17039 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
17040 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
17041 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
17042 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
17043 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
17044 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
17045 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
17046 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
17047 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
17048 * sysdeps/riscv/rvd/s_finite.c: Likewise.
17049 * sysdeps/riscv/rvd/s_fma.c: Likewise.
17050 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
17051 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
17052 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
17053 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
17054 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
17055 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
17056 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
17057 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
17058 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
17059 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
17060 * sysdeps/riscv/rvf/fegetround.c: Likewise.
17061 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
17062 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
17063 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
17064 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
17065 * sysdeps/riscv/rvf/fesetround.c: Likewise.
17066 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
17067 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
17068 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
17069 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
17070 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
17071 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
17072 * sysdeps/riscv/rvf/math_private.h: Likewise.
17073 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
17074 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
17075 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
17076 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
17077 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
17078 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
17079 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
17080 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
17081 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
17082 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
17083 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
17084 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
17085 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
17086 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
17087 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
17088 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
17089 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
17090 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
17091 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
17092 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
17093 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
17094 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
17095 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
17096 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
17097 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
17098 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
17099 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
17100 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
17101 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
17102 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
17103 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
17104 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
17105 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
17106 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
17107 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
17108 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
17109 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
17110 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
17111 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
17112 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
17113 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
17114 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
17115 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
17116 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
17117 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
17118 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
17119 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
17120 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
17121 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
17122 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
17123 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
17124 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
17125 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
17126 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
17127 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
17128 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
17129 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
17130 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
17131 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
17132 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
17133 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
17134 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
17135 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
17136 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
17137 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17138 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
17139 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
17140 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
17141 * sysdeps/riscv/Implies: New file.
17142 * sysdeps/riscv/Makefile: Likewise.
17143 * sysdeps/riscv/configure: Likewise.
17144 * sysdeps/riscv/configure.ac: Likewise.
17145 * sysdeps/riscv/nptl/Makefile: Likewise.
17146 * sysdeps/riscv/preconfigure: Likewise.
17147 * sysdeps/riscv/rv64/Implies-after: Likewise.
17148 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
17149 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
17150 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
17151 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
17152 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
17153 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
17154 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
17155 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
17156 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
17157 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
17158 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
17159 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
17160 (Config): Likewise.
17161
17162 2018-01-29 Florian Weimer <fweimer@redhat.com>
17163
17164 [BZ #22701]
17165 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
17166 libnsl_hidden_proto.
17167 * include/rpcsvc/yp.h (yp_xdrall): Declare with
17168 libnsl_hidden_proto.
17169 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
17170 * nis/Makefile (libnsl-routines): Add nss-default only for
17171 build-obsolete-nsl.
17172 * nis/nis_defaults.c (__nis_default_ttl): Add
17173 libnsl_hidden_nolink_def.
17174 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
17175 declaration.
17176 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
17177 * nis/ypclnt.c (yp_maplist): Likewise.
17178
17179 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
17180
17181 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17182 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
17183
17184 2018-01-29 Joseph Myers <joseph@codesourcery.com>
17185
17186 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
17187 clean -dxfq for git updates when replacing sources.
17188
17189 * scripts/build-many-glibcs.py (Config.build_gcc): Use
17190 --disable-libcilkrts unconditionally, not just for the final GCC
17191 build for Hurd.
17192
17193 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
17194 version to 4.15.
17195
17196 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17197
17198 [BZ #10871]
17199 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
17200 case).
17201
17202 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17203
17204 [BZ #10871]
17205 * localedata/locales/be_BY (mon): Rename to...
17206 (alt_mon): This, then synchronize with CLDR (nominative case).
17207 (abmon): Rename to...
17208 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
17209 (mon): Import from CLDR (genitive case).
17210 (abmon): Likewise.
17211 * localedata/locales/be_BY@latin (mon): Rename to...
17212 (alt_mon): This.
17213 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
17214
17215 * localedata/locales/be_BY@latin (lang_name): Reworded to
17216 "biełaruskaja mova".
17217
17218 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17219
17220 [BZ #10871]
17221 * localedata/locales/el_CY (mon): Renamed to...
17222 (alt_mon): This.
17223 (mon): Import from CLDR (genitive case).
17224 * localedata/locales/el_GR: Likewise.
17225
17226 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17227
17228 [BZ #10871]
17229 * localedata/locales/ru_RU (mon): Rename to...
17230 (alt_mon): This.
17231 (abmon): Rename to...
17232 (ab_alt_mon): This.
17233 (mon): Import from CLDR (genitive case).
17234 (abmon): Copy from the old content except the 5th month which is
17235 now in the genitive case, even when abbreviated.
17236 * localedata/locales/ru_UA: Likewise.
17237 * time/tst-strptime.c (day_tests): Add an actual example of
17238 a difference between %b and %Ob in Russian.
17239
17240 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
17241
17242 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
17243 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
17244 a `c' variable.
17245 * resolv/res-close.c: Include <stdlib.h>.
17246 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
17247 <sys/wait.h>, <time.h>, <sys/uio.h>.
17248 (NOT_CANCEL_H): Add inclusion guard.
17249 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
17250 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
17251 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
17252 return 0.
17253 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
17254 vm_address_t * to ElfW(Addr) * for dl_main parameter.
17255 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
17256 instead of void *.
17257 * sysdeps/pthread/timer_create.c (timer_create): Do not use
17258 timer_ptr2id to cast struct timer_node * to void *.
17259 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
17260 --disable-libcilkrts to gcc configure.
17261 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
17262 and make them the default for now.
17263 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
17264 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
17265 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
17266 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
17267 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
17268 MACH_IPC_COMPAT.
17269 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
17270 __task_terminate would ever return successfully.
17271 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
17272 to global scope.
17273 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
17274 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
17275 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
17276 critical section to make code simpler and avoid warning.
17277 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
17278 critical section to make code simpler and avoid warning.
17279 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
17280 const char * instead of char *.
17281 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
17282 __hurd_file_name_split, hurd_file_name_split,
17283 __hurd_directory_name_split, hurd_directory_name_split,
17284 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
17285 hurd_file_name_path_lookup): Make lookup function parameter take a
17286 const char *name instead of char *name.
17287 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
17288 __hurd_directory_name_split): Likewise.
17289 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
17290 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
17291 * sysdeps/mach/hurd/check_native.c: New file.
17292 * sysdeps/mach/hurd/check_pf.c: New file.
17293 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
17294 (__freeifaddrs): Define macro to freeifaddrs.
17295 * sysdeps/mach/hurd/libhurduser.abilist: New file.
17296 * sysdeps/mach/libmachuser.abilist: New file.
17297 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
17298 (do_test_bz20181): Rename accordingly.
17299 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
17300 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
17301 <sys/mount.h>.
17302 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
17303 version only if __USE_EXTERN_INLINES is defined.
17304 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
17305 __hurd_sockfail): Likewise.
17306 (_hurd_fd_get): Always declare functions, and provide inline versions
17307 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
17308 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
17309 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
17310 _hurd_port_set): Always declare functions, and provide inline versions
17311 only if __USE_EXTERN_INLINES and _LIBC are defined and
17312 IS_IN(libc).
17313 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
17314 _hurd_critical_section_unlock): Likewise.
17315 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
17316 * __hurd_threadvar_location): Likewise.
17317 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
17318 _hurd_userlink_clear): Likewise.
17319 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
17320 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
17321 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
17322 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
17323 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
17324 __spin_lock_locked): Likewise.
17325 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
17326 __spin_lock_locked): Likewise.
17327 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
17328 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
17329 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
17330 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
17331 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
17332 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
17333 _POSIX_NO_TRUNC): Define to 0.
17334 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
17335 check size against PTHREAD_STACK_MIN.
17336 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
17337 IS_IN(libpthread)]: Include <sigsetops.h>.
17338 * mach/Makefile (user-interfaces): Add mach/gnumach.
17339 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
17340 * sysdeps/mach/configure (mach_interface_list): Regenerate.
17341 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
17342 instead of invalid -1.
17343 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
17344 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
17345 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
17346 <net/ppp_defs.h>.
17347
17348 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
17349
17350 * hurd/fcntl-internal.h: New file.
17351
17352 2018-01-27 James Clarke <jrtc27@jrtc27.com>
17353
17354 * sysdeps/hppa/fpu/libm-test-ulps: Update.
17355
17356 * sysdeps/alpha/fpu/libm-test-ulps: Update.
17357
17358 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
17359
17360 [BZ #22701]
17361 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
17362 Build only shared objects.
17363
17364 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17365
17366 * README: Update for hppa.
17367
17368 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17369
17370 * sysdeps/sparc/fpu/libm-test-ulps: Update
17371 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
17372
17373 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17374
17375 Revert:
17376
17377 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17378
17379 [BZ #22563]
17380 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17381 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17382 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17383 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17384 to feature_1.
17385
17386 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17387
17388 [BZ #22563]
17389 * bits/types/__cancel_jmp_buf_tag.h: New file.
17390 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17391 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17392 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17393 * nptl/Makefile (headers): Add
17394 bits/types/__cancel_jmp_buf_tag.h.
17395 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17396 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17397 * sysdeps/nptl/pthread.h: Include
17398 <bits/types/__cancel_jmp_buf_tag.h>.
17399 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17400 __cancel_jmp_buf.
17401 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17402
17403 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
17404
17405 [BZ #10871]
17406 * localedata/locales/uk_UA (mon): Renamed to...
17407 (alt_mon): This.
17408 (alt_digits): "0" removed and then renamed to...
17409 (mon): This.
17410 (date_fmt): Definition changed not to use the alternative
17411 digits hack.
17412
17413 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
17414
17415 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
17416 FLAG_RISCV_FLOAT_ABI_DOUBLE.
17417 * elf/elf.h (EF_RISCV_RVC): New define.
17418 (EF_RISCV_FLOAT_ABI): Likewise.
17419 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
17420 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
17421 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17422 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
17423 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
17424 define.
17425 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17426
17427 2018-01-25 Andreas Schwab <schwab@suse.de>
17428
17429 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
17430 single quotes.
17431 * sysdeps/gnu/configure: Regenerate.
17432 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
17433 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
17434 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
17435 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
17436 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
17437 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
17438 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
17439 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
17440
17441 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
17442
17443 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
17444 URL, and run autoconf, make it the default for now.
17445
17446 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17447
17448 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17449 soft-float ColdFire configuration.
17450
17451 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
17452 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
17453 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
17454
17455 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
17456 MicroBlaze file.
17457
17458 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
17459 ....
17460 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
17461 ... here.
17462 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
17463 New file.
17464
17465 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
17466 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
17467 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
17468 file.
17469
17470 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
17471
17472 [BZ #22742]
17473 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
17474 Rename to __reserved and add comment.
17475 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
17476 Rename to __reserved.
17477
17478 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17479
17480 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17481 i686-gnu configurations.
17482 (Context.run_builds): Include mig, gnumach and hurd in components
17483 considered.
17484 (Context.checkout): Add mig, gnumach and hurd to components.
17485 (Context.checkout_tar): Add URL mappings for mig, gnumach and
17486 hurd.
17487 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
17488 (Config.build): Install gnumach headers, build mig and install
17489 hurd headers for 'gnu' OS.
17490 (Config.install_gnumach_headers): New function.
17491 (Config.install_hurd_headers): Likewise.
17492 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
17493 when building for 'gnu' OS.
17494
17495 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
17496
17497 * manual/tunables.texi (Hardware Capability Tunables): Fix
17498 spelling.
17499
17500 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
17501
17502 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
17503 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
17504 (ALTMON_11, ALTMON_12): Improve documentation.
17505 * manual/time.texi (strftime): Likewise.
17506
17507 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17508
17509 [BZ #10871]
17510 * localedata/locales/pl_PL: Alternative month names added,
17511 primary month names are genitive now.
17512 * time/tst-strptime.c (day_tests): Actually use a genitive case
17513 of a month name in Polish language.
17514
17515 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17516
17517 [BZ #10871]
17518 * manual/locale.texi: Document ALTMON_1..12 constants for
17519 nl_langinfo. Specify when to use ALTMON instead of MON.
17520 * manual/time.texi (strftime, strptime): Document GNU extension
17521 permitting O modifier with %B and %b. Specify when to use
17522 %OB instead of %B.
17523
17524 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17525
17526 [BZ #10871]
17527 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
17528 names, define them as the same as abbreviated month names explicitly.
17529 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
17530 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
17531 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
17532 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
17533 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
17534 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
17535 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
17536 _NL_WABALTMON_12): New enum constants.
17537 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
17538 wab_alt_mon, and ab_alt_mon_defined members.
17539 (time_output): Output ab_alt_mon and wab_alt_mon members.
17540 (time_read): Read them, initialize them as copies of abmon and wabmon
17541 respectively if they are missing, initialize ab_alt_mon_defined.
17542 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
17543 * locale/programs/locfile-kw.h: Regenerate.
17544 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
17545 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
17546 and ru_RU.UTF-8.
17547 * time/strftime_l.c (a_altmonth, aam_len): New macros.
17548 [!COMPILE_WIDE] (ABALTMON_1): New macro.
17549 (__strftime_internal): Handle %Ob and %Oh formats.
17550 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
17551 (__strptime_internal): Handle %Ob and %Oh formats.
17552 * time/tst-strptime.c (day_tests): Add more tests to parse different
17553 forms of month names including the new %Ob format specifier.
17554
17555 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17556
17557 [BZ #10871]
17558 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
17559 define them as the same as primary full month names explicitly.
17560 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
17561 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
17562 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
17563 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
17564 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
17565 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
17566 _NL_WALTMON_12): New enum constants.
17567 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
17568 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
17569 macros.
17570 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
17571 walt_mon, and alt_mon_defined members.
17572 (time_output): Output alt_mon and walt_mon members.
17573 (time_read): Read them, initialize them as copies of mon and wmon
17574 respectively if they are missing, initialize alt_mon_defined.
17575 * locale/programs/locfile-kw.gperf (alt_mon): Define.
17576 * locale/programs/locfile-kw.h: Regenerate.
17577 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
17578 * localedata/tst-langinfo.c (map): Add tests for the new constants
17579 ALTMON_1 .. ALTMON_12.
17580 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
17581 and pl_PL.UTF-8.
17582 * time/strftime_l.c (f_altmonth): New macro.
17583 (__strftime_internal): Handle %OB format.
17584 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
17585 (__strptime_internal): Handle %OB format.
17586 * time/tst-strptime.c (day_tests): Add tests to parse different forms
17587 of month names including the new %OB format specifier.
17588
17589 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17590
17591 [BZ #22685]
17592 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
17593 from ABORT_TRANSACTION.
17594 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
17595 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
17596 ABORT_TRANSACTION_IMPL): Likewise.
17597 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
17598 Linux code, but remove the code that aborts transactions.
17599
17600 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
17601
17602 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
17603
17604 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
17605
17606 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
17607 in date: "2004-14-09" should be "2004-09-14".
17608 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
17609 "2003-15-09" should be "2003-09-15".
17610
17611 2018-01-18 Arjun Shankar <arjun@redhat.com>
17612
17613 [BZ #22343]
17614 [BZ #22774]
17615 CVE-2018-6485
17616 CVE-2018-6551
17617 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
17618 after padding.
17619 (_int_memalign): check for integer overflow before calling
17620 _int_malloc.
17621 * malloc/tst-malloc-too-large.c: New test.
17622 * malloc/Makefile: Add tst-malloc-too-large.
17623
17624 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
17625
17626 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
17627 in date: "2017-24-07" should be "2017-07-24".
17628 * localedata/locales/mai_IN: Likewise.
17629 * localedata/locales/mai_NP: Likewise.
17630
17631 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
17632
17633 * po/ru.po: Update translations.
17634
17635 2018-01-17 Joseph Myers <joseph@codesourcery.com>
17636
17637 [BZ #22719]
17638 * sysdeps/hppa/backtrace.c: New file.
17639
17640 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
17641
17642 [BZ #22715]
17643 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
17644 align La_x86_64_retval to VEC_SIZE.
17645
17646 2018-01-16 Joseph Myers <joseph@codesourcery.com>
17647
17648 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
17649 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
17650
17651 2018-01-16 Florian Weimer <fweimer@redhat.com>
17652
17653 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
17654 Move tst-thread-exit-clobber ...
17655 [$(CXX)] (tests-unsupported): ... to here.
17656
17657 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17658
17659 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
17660 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
17661 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17662 (_dl_aarch64_cap_flags): Update.
17663 (_DL_HWCAP_COUNT): Update.
17664
17665 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17666
17667 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
17668 (_DL_HWCAP_LAST): Remove.
17669 (_DL_HWCAP_COUNT): Move to ...
17670 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17671 (_DL_HWCAP_COUNT): ... here.
17672
17673 2018-01-16 Florian Weimer <fweimer@redhat.com>
17674
17675 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
17676 mode with GNU extensions.
17677
17678 2018-01-15 Alan Hayward <alan.hayward@arm.com>
17679
17680 * elf/elf.h (NT_ARM_SVE): Define.
17681
17682 2018-01-15 Florian Weimer <fweimer@redhat.com>
17683
17684 [BZ #22636]
17685 * nptl/tst-minstack-throw.cc: New file.
17686 * nptl/Makefile (tests): Add tst-minstack-throw.
17687 (LDLIBS-tst-minstack-throw): Link with libstdc++.
17688 [!CXX] (tests-unsupported): Add tst-minstack-throw.
17689
17690 2018-01-15 Joseph Myers <joseph@codesourcery.com>
17691
17692 * scripts/build-many-glibcs.py (Context.checkout): Default
17693 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
17694 version to 1.1.0.
17695
17696 2018-01-13 Carlos O'Donell <carlos@redhat.com>
17697
17698 [BZ #22707]
17699 * elf/elf.h (DF_1_STUB): Define.
17700 (DF_1_PIE): Define.
17701
17702 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17703
17704 [BZ #22697]
17705 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
17706 Do not add 0.5 to integer or out-of-range arguments.
17707
17708 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17709
17710 * po/bg.po: Update translations.
17711 * po/cs.po: Likewise.
17712 * po/de.po: Likewise.
17713 * po/ko.po: Likewise.
17714 * po/pl.po: Likewise.
17715 * po/sv.po: Likewise.
17716 * po/uk.po: Likewise.
17717 * po/vi.po: Likewise.
17718
17719 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17720
17721 * aarch64/start.S (_start): Use __wrap_main.
17722 (__wrap_main): New local symbol.
17723
17724 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17725
17726 [BZ #22679]
17727 CVE-2018-1000001
17728 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
17729 generic_getcwd if the path returned by getcwd syscall is not absolute.
17730 * io/tst-getcwd-abspath.c: New test.
17731 * io/Makefile (tests): Add tst-getcwd-abspath.
17732
17733 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
17734
17735 * malloc/malloc.c (malloc_consolidate): Add size check.
17736
17737 2018-01-12 Florian Weimer <fweimer@redhat.com>
17738
17739 * support/write_message.c (write_message): Preserve errno.
17740 * support/check.c (print_failure): Likewise.
17741 * support/support_test_verify_impl.c (support_test_verify_impl):
17742 Likewise.
17743 * support/support_test_compare_failure.c
17744 (support_test_compare_failure): Likewise.
17745
17746 2018-01-12 Florian Weimer <fweimer@redhat.com>
17747
17748 [BZ #22701]
17749 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
17750 Prevent installation of libnsl.so.
17751 (libnsl-inhibit-o): Do not build (or install) static libraries.
17752
17753 2018-01-12 Egmont Koblinger <egmont@gmail.com>
17754
17755 [BZ #22657]
17756 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
17757 before the day number which may produce a double space.
17758 (date_fmt): Likewise.
17759
17760 2018-01-12 Joseph Myers <joseph@codesourcery.com>
17761
17762 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
17763 instead of fegetenv.
17764
17765 2018-01-11 Joseph Myers <joseph@codesourcery.com>
17766
17767 [BZ #22702]
17768 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
17769 comment to say exceptions are discarded.
17770 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
17771 __fegetenv.
17772 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
17773 be enabled.
17774
17775 2018-01-11 Florian Weimer <fweimer@redhat.com>
17776
17777 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
17778 and error message.
17779
17780 2018-01-11 Florian Weimer <fweimer@redhat.com>
17781
17782 [BZ #22636]
17783 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
17784 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
17785
17786 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17787
17788 [BZ #22693]
17789 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
17790 negative arguments in test for NaN or infinity argument.
17791
17792 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
17793
17794 * po/libc.pot: Regenerate.
17795
17796 2018-01-10 Florian Weimer <fweimer@redhat.com>
17797
17798 [BZ #22636]
17799 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
17800 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
17801
17802 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
17803
17804 * hurd/hurd/fd.h: Include <fcntl.h>
17805 (__hurd_at_flags): New function.
17806 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
17807 with call to __hurd_at_flags.
17808 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
17809 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
17810 __faccessat
17811 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
17812 (__access_noerrno): Use __faccessat_common instead of access_common.
17813 (__access): Likewise.
17814 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
17815 with a call to __faccessat.
17816 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
17817 (__faccessat_common): ... this. Move implementation of __access into it when
17818 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
17819 reauthenticate_cwdir_at helper to implement AT mechanism.
17820 (__faccessat_noerrno): New function, just calls __faccessat_common.
17821 (__faccessat): New function, just calls __faccessat_common.
17822 (faccessat): Define weak alias.
17823
17824 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17825
17826 [BZ #22691]
17827 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17828 (CFLAGS-s_fmaxmagl.c): New variable.
17829 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
17830
17831 [BZ #22690]
17832 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
17833 long int for arguments of possibly overflowing addition or
17834 subtraction.
17835 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
17836
17837 2018-01-09 Joseph Myers <joseph@codesourcery.com>
17838
17839 [BZ #22688]
17840 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17841 (CFLAGS-e_remainderl.c): New variable.
17842
17843 [BZ #22687]
17844 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
17845 variable.
17846 (CFLAGS-s_cacoshl.c): Likewise.
17847 (CFLAGS-s_casinhl.c): Likewise.
17848 (CFLAGS-s_catanl.c): Likewise.
17849 (CFLAGS-s_catanhl.c): Likewise.
17850 (CFLAGS-s_cexpl.c): Likewise.
17851 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
17852 (CFLAGS-s_csinhl.c): Likewise.
17853 (CFLAGS-s_clogl.c): Likewise.
17854 (CFLAGS-s_clog10l.c): Likewise.
17855 (CFLAGS-s_csinl.c): Likewise.
17856 (CFLAGS-s_csqrtl.c): Likewise.
17857
17858 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
17859 2017-01-09 Svante Signell <svante.signell@gmail.com>
17860
17861 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
17862 (_hurd_exec_paths): New function.
17863 * hurd/hurd.h (_hurd_exec): Deprecate function.
17864 (_hurd_exec_paths): Declare function.
17865 * hurd/Versions: Export _hurd_exec_paths.
17866 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
17867 (__execve): Use __getcwd to build absolute path, and use
17868 _hurd_exec_paths instead of _hurd_exec.
17869 * sysdeps/mach/hurd/spawni.c: Likewise.
17870 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
17871 _hurd_exec.
17872
17873 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
17874
17875 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
17876 test instead of failing in case of ENOENT returned by posix_openpt.
17877
17878 2018-01-08 Florian Weimer <fweimer@redhat.com>
17879
17880 resolv: Support binary labels in test framework.
17881 * support/resolv_test.c (struct to_be_freed): Remove.
17882 (struct compressed_name): New.
17883 (allocate_compressed_name, ascii_tolower)
17884 (compare_compressed_name): New functions.
17885 (struct resolv_response_builder): Update type of
17886 compression_offsets for use with tsearch. Rempve to_be_freed.
17887 (response_push_pointer_to_free): Remove function.
17888 (resolv_response_add_name): Rewrite using struct compressed_name
17889 and tsearch instead of hsearch_r.
17890 (response_builder_allocate): Remove initialization of
17891 compression_offsets.
17892 (response_builder_free): Update for removal of to_be_freed. Use
17893 tdestroy instead of hdestroy_r.
17894 * resolv/Makefile (tests): Add tst-resolv-binary.
17895 (tst-resolv-binary): Link with -lresolv -lpthread.
17896
17897 2018-01-08 Florian Weimer <fweimer@redhat.com>
17898
17899 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
17900 time. Pass positive flag instead of negative flag to
17901 support_test_compare_failure.
17902 (support_test_compare_failure): Change negative parameter to
17903 positive.
17904 * support/support_test_compare_failure.c (report)
17905 (support_test_compare_failure): Likewise.
17906 * support/tst-test_compare.c (return_ssize_t, return_int): New.
17907 (do_test): Check int/size_t, ssize_t/size_t comparisons.
17908
17909 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
17910
17911 [BZ #22637]
17912 * nptl/descr.h (stackblock, stackblock_size): Update comments.
17913 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
17914 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
17915 stacksize.
17916 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
17917
17918 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
17919
17920 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17921 Add s_sincosf-sse2 and s_sincosf-fma.
17922 (CFLAGS-s_sincosf-fma.c): New.
17923 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
17924 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
17925 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
17926 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
17927 __sincosf is defined.
17928
17929 2018-01-08 Florian Weimer <fweimer@redhat.com>
17930
17931 * nptl/tst-thread-exit-clobber.cc: New file.
17932 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
17933 C++11 mode.
17934 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
17935 (tests): Add tst-thread-exit-clobber.
17936 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
17937
17938 2018-01-08 Florian Weimer <fweimer@redhat.com>
17939
17940 * support/check.h (support_static_assert): Define.
17941 (TEST_COMPARE): Use it.
17942
17943 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
17944
17945 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
17946 [!__RLIM_T_MATCHES_RLIM64_T]
17947 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
17948 __getrlimit64. Add libc_hidden_weak.
17949
17950 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
17951
17952 * elf/elf.h (R_RISCV_NONE): New define.
17953 (R_RISCV_32): Likewise.
17954 (R_RISCV_64): Likewise.
17955 (R_RISCV_RELATIVE): Likewise.
17956 (R_RISCV_COPY): Likewise.
17957 (R_RISCV_JUMP_SLOT): Likewise.
17958 (R_RISCV_TLS_DTPMOD32): Likewise.
17959 (R_RISCV_TLS_DTPMOD64): Likewise.
17960 (R_RISCV_TLS_DTPREL32): Likewise.
17961 (R_RISCV_TLS_DTPREL64): Likewise.
17962 (R_RISCV_TLS_TPREL32): Likewise.
17963 (R_RISCV_TLS_TPREL64): Likewise.
17964 * Makerules (make-link-multidir): Make directories before linking into
17965 them.
17966 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
17967 define.
17968 (VDSO_HASH_LINUX_4_15): Likewise.
17969 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
17970 in subdirectories of lib.
17971 * nptl/Makefile (/librt.so): Always depend on
17972 "$(shared-thread-library)".
17973
17974 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17975
17976 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
17977 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
17978 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17979 (___tls_get_addr).
17980 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17981 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17982 "-O2 -march=i686".
17983 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17984 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17985 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17986 * sysdeps/gnu/glob-lstat-compat.c: New file.
17987 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17988 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17989
17990 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17991
17992 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17993 Reserve 16 chars to reloc_addr before calling _itoa_word.
17994
17995 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17996
17997 [BZ #22678]
17998 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17999 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
18000
18001 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
18002 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
18003
18004 * resource/tst-getrlimit.c: Add copyright header.
18005
18006 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18007 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18008
18009 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
18010 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
18011 Define __GI_getrlimit64 as weak alias of __getrlimit64.
18012 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
18013 instead.
18014 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
18015 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
18016 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
18017 RLIM64_INFINITY): Fix values to match the kernel ones.
18018 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
18019 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
18020 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
18021 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
18022 getrlimit64@@GLIBC_2_27.
18023 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
18024 and setrlimit64.
18025 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
18026 getrlimit, setrlimit, getrlimit64 and setrlimit64.
18027 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
18028 setrlimit, getrlimit64 and setrlimit64.
18029
18030 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18031
18032 [BZ #22648]
18033 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
18034 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
18035
18036 2018-01-04 Joseph Myers <joseph@codesourcery.com>
18037
18038 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
18039 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
18040 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
18041
18042 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18043
18044 [BZ #15479]
18045 [BZ #22666]
18046 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
18047 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
18048
18049 [BZ #15479]
18050 [BZ #22665]
18051 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
18052 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
18053 * sysdeps/alpha/fpu/s_floor.c: Likewise.
18054 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
18055
18056 2018-01-04 Florian Weimer <fweimer@redhat.com>
18057
18058 [BZ #22667]
18059 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
18060 Align the stack before calling exit.
18061 * stdlib/tst-makecontext-align.c: New file.
18062 * stdlib/Makefile (tests): Add tst-makecontext-align.
18063
18064 2018-01-04 Florian Weimer <fweimer@redhat.com>
18065
18066 Add support for calling dlvsym from libc.so.
18067 * include/dlfcn.h (__libc_dlvsym): Declare.
18068 * elf/Makefile (tests-static-internal): Add
18069 tst-libc_dlvsym-static.
18070 (tests-internal): Add tst-libc_dlvsym.
18071 (modules-names): Add tst-libc_dlvsym-dso.
18072 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
18073 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
18074 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
18075 object tst-libc_dlvsym-dso.so needs to be built before running
18076 these tests.
18077 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
18078 * elf/Versions: Export __libc_dlvsym.
18079 * elf/dl-libc.c (struct do_dlvsym_args): New.
18080 (do_dlvsym, __libc_dlvsym): New functions.
18081 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
18082 (_dl_open_hook2): New variable.
18083 (__libc_register_dl_open_hook): Set it.
18084 * elf/tst-libc_dlvsym-dso.c: New file.
18085 * elf/tst-libc_dlvsym-static.c: Likewise.
18086 * elf/tst-libc_dlvsym.c: Likewise.
18087 * elf/tst-libc_dlvsym.h: Likewise.
18088
18089 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
18090
18091 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
18092 include <sys/mount.h>.
18093
18094 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
18095
18096 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
18097 Add __NO_MATH_ERRNO__ check.
18098
18099 2018-01-02 Joseph Myers <joseph@codesourcery.com>
18100
18101 * sysdeps/mips/mips32/libm-test-ulps: Update.
18102 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18103
18104 2018-01-02 Florian Weimer <fweimer@redhat.com>
18105
18106 * misc/tst-pselect.c: Add copyright header.
18107
18108 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
18109
18110 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
18111 comment.
18112 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
18113 comment.
18114 (settrlimit): Rename into setrlimit.
18115 (__sttrlimit): Rename into __setrlimit.
18116
18117 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
18118 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
18119 never defined in that case.
18120
18121 2018-01-02 Joseph Myers <joseph@codesourcery.com>
18122
18123 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
18124
18125 * sysdeps/arm/libm-test-ulps: Update.
18126
18127 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
18128 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
18129
18130 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18131
18132 * NEWS: Add cosf and sincosf to list of optimized functions.
18133
18134 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
18135
18136 [BZ #22660]
18137 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
18138 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
18139 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
18140 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
18141
18142 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
18143
18144 [BZ #22433]
18145 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
18146
18147 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
18148 making a copy of it.
18149
18150 2018-01-01 Joseph Myers <joseph@codesourcery.com>
18151
18152 * manual/texinfo.tex: Update to version 2017-12-26.21 with
18153 trailing whitespace removed.
18154 * scripts/config.guess: Update to version 2018-01-01.
18155 * scripts/config.sub: Update to version 2018-01-01.
18156 * scripts/move-if-change: Update from gnulib.
18157
18158 * NEWS: Update copyright dates.
18159 * catgets/gencat.c (print_version): Likewise.
18160 * csu/version.c (banner): Likewise.
18161 * debug/catchsegv.sh: Likewise.
18162 * debug/pcprofiledump.c (print_version): Likewise.
18163 * debug/xtrace.sh (do_version): Likewise.
18164 * elf/ldconfig.c (print_version): Likewise.
18165 * elf/ldd.bash.in: Likewise.
18166 * elf/pldd.c (print_version): Likewise.
18167 * elf/sotruss.sh: Likewise.
18168 * elf/sprof.c (print_version): Likewise.
18169 * iconv/iconv_prog.c (print_version): Likewise.
18170 * iconv/iconvconfig.c (print_version): Likewise.
18171 * locale/programs/locale.c (print_version): Likewise.
18172 * locale/programs/localedef.c (print_version): Likewise.
18173 * login/programs/pt_chown.c (print_version): Likewise.
18174 * malloc/memusage.sh (do_version): Likewise.
18175 * malloc/memusagestat.c (print_version): Likewise.
18176 * malloc/mtrace.pl: Likewise.
18177 * manual/libc.texinfo: Likewise.
18178 * nptl/version.c (banner): Likewise.
18179 * nscd/nscd.c (print_version): Likewise.
18180 * nss/getent.c (print_version): Likewise.
18181 * nss/makedb.c (print_version): Likewise.
18182 * posix/getconf.c (main): Likewise.
18183 * scripts/test-installation.pl: Likewise.
18184 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
18185
18186 * All files with FSF copyright notices: Update copyright dates
18187 using scripts/update-copyrights.
18188 * locale/programs/charmap-kw.h: Regenerated.
18189 * locale/programs/locfile-kw.h: Likewise.
18190
18191 2017-12-31 Zack Weinberg <zackw@panix.com>
18192
18193 * libio/bits/libio-ldbl.h: Correct check for improper
18194 inclusion. Add own multiple include guard.
18195
18196 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
18197 Dmitry V. Levin <ldv@altlinux.org>
18198
18199 [BZ #22625]
18200 CVE-2017-16997
18201 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
18202 string token expansion. Check for NULL pointer or empty string possibly
18203 returned by expand_dynamic_string_token.
18204 (decompose_rpath): Check for empty path after dynamic string
18205 token expansion.
18206
18207 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
18208
18209 [BZ #22433]
18210 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
18211
18212 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
18213 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
18214 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
18215 and PTRACE_SYSCALL.
18216 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
18217 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18218 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18219 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18220 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18221 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18222
18223 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
18224 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18225 __ptrace_peeksiginfo_flags, ptrace): Move to ...
18226 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
18227 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18228 bits/ptrace-shared.h.
18229 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
18230 <bits/ptrace-shared.h>.
18231 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18232 __ptrace_peeksiginfo_flags, ptrace): Remove.
18233 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18234 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18235 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18236 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18237 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18238
18239 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
18240
18241 [BZ #17804]
18242 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
18243 end of the loop. Improve comments.
18244
18245 2017-12-29 Zack Weinberg <zackw@panix.com>
18246
18247 [BZ #22615]
18248 * manual/errno.texi (Checking for Errors): Explicitly say that errno
18249 might be set on success.
18250
18251 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
18252
18253 [BZ #22611]
18254 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
18255 is unchanged on success.
18256
18257 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
18258
18259 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
18260 updated.
18261 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
18262 expand_dynamic_string_token): Likewise.
18263 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
18264 is_path argument.
18265
18266 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
18267 contains ':'.
18268
18269 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
18270 is set and name contains ':', and all code depending on these checks.
18271
18272 2017-12-24 Zack Weinberg <zackw@panix.com>
18273
18274 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
18275 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
18276 respectively.
18277 * libio/libio.h: Rename the original version of this file to
18278 libio/bits/libio.h. Error out if not included by stdio.h or the
18279 stub libio.h.
18280 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
18281 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
18282 if not included by bits/libio.h or the stub _G_config.h.
18283 * sysdeps/unix/sysv/linux/_G_config.h: Move to
18284 sysdeps/unix/sysv/linux/bits. Error out if not included by
18285 bits/libio.h or the stub _G_config.h.
18286 * libio/stdio.h: Include bits/libio.h, not libio.h.
18287 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
18288 well as libio.h and _G_config.h.
18289
18290 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
18291 * libio/strfile.h, stdio-common/vfscanf.c
18292 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
18293 Include stdio.h, not _G_config.h nor libio.h.
18294 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
18295 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
18296
18297 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
18298
18299 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
18300
18301 [BZ #22347]
18302 * stdlib/getrandom.c (getrandom): Fix comment.
18303 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
18304
18305 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
18306
18307 [BZ #21161]
18308 * manual/arith.texi (strtoul): Fix a typo.
18309
18310 [BZ #22596]
18311 * manual/arith.texi (finite): Fix the description of the return
18312 value.
18313
18314 2017-12-22 Eric Blake <ebb9@byu.net>
18315
18316 Avoid gcc warnings on cygwin
18317 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18318 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18319 Avoid unused variable.
18320
18321 2017-12-22 Florian Weimer <fweimer@redhat.com>
18322
18323 * io/Makefile (routines): Add copy_file_range.
18324 (tests): Add tst-copy_file_range.
18325 (tests-static, tests-internal): Add tst-copy_file_range-compat.
18326 * io/Versions (GLIBC_2.27): Export copy_file_range.
18327 * io/copy_file_range-compat.c: New file.
18328 * io/copy_file_range.c: Likewise.
18329 * io/tst-copy_file_range-compat.c: Likewise.
18330 * io/tst-copy_file_range.c: Likewise.
18331 * manual/llio.texi (Copying File Data): New section.
18332 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
18333 * support/Makefile (libsupport-routines): Add support-xfstat,
18334 xftruncate, xlseek.
18335 * support/support-xfstat.c: New file.
18336 * support/xftruncate.c: Likewise.
18337 * support/xlseek.c: Likewise.
18338 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
18339 * sysdeps/unix/sysv/linux/**.abilist: Update.
18340 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
18341
18342 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
18343
18344 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18345 disable-multi-arch variant to aarch64-linux-gnu.
18346
18347 2017-12-20 Joseph Myers <joseph@codesourcery.com>
18348
18349 * manual/texinfo.tex: Update to version 2017-12-18.20 with
18350 trailing whitespace removed.
18351 * scripts/config.guess: Update to version 2017-12-17.
18352 * scripts/config.sub: Update to version 2017-11-23.
18353 * scripts/install-sh: Update to version 2017-09-23.17.
18354 * scripts/move-if-change: Update to version 2017-09-13 06:45.
18355
18356 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18357
18358 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
18359 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18360 * sysdeps/tile/_mcount.S (__mcount): Likewise.
18361 * sysdeps/tile/crti.S (_init, _fini): Likewise.
18362 * sysdeps/tile/crtn.S: Likewise.
18363 * sysdeps/tile/dl-start.S (_start): Likewise.
18364 * sysdeps/tile/dl-trampoline.S: Likewise.
18365 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
18366 * sysdeps/tile/start.S (_start): Likewise.
18367 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
18368 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
18369 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
18370 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
18371 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
18372 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
18373 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
18374
18375 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
18376 comment.
18377 * sysdeps/tile/preconfigure: Remove tilegx folder.
18378 * sysdeps/tile/tilegx/Implies: Move definitions to ...
18379 * sysdeps/tile/Implies: ... here.
18380 * sysdeps/tile/tilegx/Makefile: Move rules to ...
18381 * sysdeps/tile/Makefile: ... here.
18382 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
18383 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
18384 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
18385 * sysdeps/tile/bits/wordsize.h: ... here.
18386 * sysdeps/tile/tilegx/*: Move to ...
18387 * sysdeps/tile/*: ... here.
18388 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
18389 * sysdeps/tile/tilegx32/Implies: ... here.
18390 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
18391 * sysdeps/tile/tilegx64/Implies: ... here.
18392 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
18393 to ...
18394 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
18395 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
18396 * sysdeps/unix/sysv/linux/tile/*: ... here.
18397 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
18398 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
18399 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
18400 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
18401
18402 * README: Remove tilepro-*-linux-gnu from supported architecture.
18403 * scripts/build-many-glibcs.py: Likewise.
18404 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18405 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
18406 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
18407 elf_machine_matches_host, elf_machine_dynamic,
18408 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
18409 howto, elf_machine_rela): Likewise.
18410 * sysdeps/tile/dl-start.S (_start): Likewise.
18411 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
18412 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
18413 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
18414 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
18415 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
18416 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
18417 Likewise.
18418 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
18419 * sysdeps/tile/preconfigure: Likewise.
18420 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
18421 POINTER_CHK_GUARD): Likewise.
18422 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
18423 * sysdeps/tile/start.S (_start): Likewise.
18424 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
18425 Likewise.
18426 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
18427 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
18428 CMOVNEZ): Remove.
18429 * sysdeps/unix/sysv/linux/tile/bits/environments.h
18430 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
18431 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
18432 Likewise.
18433 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
18434 * sysdeps/tile/tilepro/Implies: Remove file.
18435 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
18436 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
18437 * sysdeps/tile/tilepro/memchr.c: Likewise.
18438 * sysdeps/tile/tilepro/memcpy.S: Likewise.
18439 * sysdeps/tile/tilepro/memset.c: Likewise.
18440 * sysdeps/tile/tilepro/memusage.h: Likewise.
18441 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
18442 * sysdeps/tile/tilepro/strchr.c: Likewise.
18443 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
18444 * sysdeps/tile/tilepro/strlen.c: Likewise.
18445 * sysdeps/tile/tilepro/strrchr.c: Likewise.
18446 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
18447 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
18448 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
18449 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
18450 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
18451 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
18452 Likewise.
18453 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
18454 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18455 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
18456 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
18457 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18458 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
18459 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
18460 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
18461 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
18462 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
18463 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
18464 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
18465 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
18466 tilepro mention in comment.
18467
18468 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
18469 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
18470 * nptl/pthread_join_common.c: New file: common function used on
18471 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
18472 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
18473 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
18474 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
18475 (cleanup): Move definition to pthread_join_common.c.
18476 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
18477 Remove superflous checks.
18478 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
18479 Likewise.
18480
18481 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
18482
18483 * sysdeps/aarch64/libm-test-ulps: Update.
18484
18485 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18486
18487 * sysdeps/aarch64/memset.S (MEMSET): Define.
18488
18489 2017-12-20 Florian Weimer <fweimer@redhat.com>
18490
18491 [BZ #22635]
18492 nptl: Provide full implementation of pthread_self in libc.so.
18493 * nptl/Makefile (routines): Add pthread_self.
18494 (libpthread-routines): Replace pthread_self with
18495 compat-pthread_self.
18496 * nptl/forward.c (pthread_self): Remove.
18497 * nptl/nptl-init.c (pthread_functions): Do not initialize
18498 ptr_pthread_self.
18499 * nptl/pthread_self.c (pthread_self): Remove weak alias.
18500 * nptl/compat-pthread_self.c: New file.
18501 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
18502 Remove ptr_pthread_self.
18503
18504 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
18505
18506 * posix/regcomp.c: Fix spelling in comments.
18507 * posix/regex.h: Likewise.
18508 * posix/regex_internal.c: Likewise.
18509 * posix/regexec.c: Likewise.
18510
18511 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18512
18513 [BZ #22377]
18514 * math/Makefile [C++] (tests): Add test for iseqsig.
18515 * math/math.h [C++] (iseqsig): New implementation, which does
18516 not rely on __MATH_TG/__builtin_types_compatible_p.
18517 * math/test-math-iseqsig.cc: New file.
18518 * sysdeps/powerpc/powerpc64le/Makefile
18519 (CFLAGS-test-math-iseqsig.cc): New variable.
18520
18521 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
18522
18523 * elf/dl-load.c (is_trusted_path): Remove.
18524 (fillin_rpath): Remove check_trusted argument and its use,
18525 all callers changed.
18526
18527 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18528
18529 [BZ #22630]
18530 * Makeconfig (link-pie-before-libc): Replace -pie with
18531 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
18532 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
18533 (tst-dlopen-aout-no-pie): New.
18534 (LDFLAGS-tst-prelink): Removed.
18535 (tst-prelink-no-pie): New.
18536 (LDFLAGS-tst-main1): Removed.
18537 (tst-main1-no-pie): New.
18538 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
18539 (tst-gmon-no-pie): New.
18540
18541 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18542
18543 * manual/install.texi: Document that --enable-static-pie
18544 implies PIE.
18545 * INSTALL: Regenerated.
18546
18547 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18548
18549 [BZ #21309]
18550 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
18551 unsigned.
18552
18553 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18554
18555 Revert:
18556
18557 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18558
18559 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18560
18561 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18562
18563 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18564 <errno.h>. Include "eexp.tbl".
18565 (half): New constant.
18566 (one): Likewise.
18567 (__ieee754_exp): Rewrite.
18568 (__slowexp): Remove prototype.
18569 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18570 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18571 * sysdeps/i386/fpu/slowexp.c: Likewise.
18572 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18573 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18574 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18575 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18576 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18577 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18578 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18579 comment.
18580 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18581 (CPPFLAGS-slowexp.c): Remove variable.
18582 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18583 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18584 (CFLAGS-slowexp-fma.c): Remove variable.
18585 (CFLAGS-slowexp-fma4.c): Likewise.
18586 (CFLAGS-slowexp-avx.c): Likewise.
18587 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18588 define as macro.
18589 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18590 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18591 * math/Makefile (type-double-routines): Remove slowexp.
18592 * manual/probes.texi (slowexp_p6): Remove.
18593 (slowexp_p32): Likewise.
18594
18595 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18596
18597 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
18598 arithmetic.
18599
18600 * lib/glob.c (glob): Do not pass NULL to mempcpy.
18601
18602 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18603
18604 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18605
18606 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18607
18608 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18609 <errno.h>. Include "eexp.tbl".
18610 (half): New constant.
18611 (one): Likewise.
18612 (__ieee754_exp): Rewrite.
18613 (__slowexp): Remove prototype.
18614 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18615 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18616 * sysdeps/i386/fpu/slowexp.c: Likewise.
18617 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18618 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18619 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18620 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18621 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18622 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18623 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18624 comment.
18625 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18626 (CPPFLAGS-slowexp.c): Remove variable.
18627 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18628 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18629 (CFLAGS-slowexp-fma.c): Remove variable.
18630 (CFLAGS-slowexp-fma4.c): Likewise.
18631 (CFLAGS-slowexp-avx.c): Likewise.
18632 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18633 define as macro.
18634 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18635 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18636 * math/Makefile (type-double-routines): Remove slowexp.
18637 * manual/probes.texi (slowexp_p6): Remove.
18638 (slowexp_p32): Likewise.
18639
18640 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18641 James Clarke <jrtc27@jrtc27.com>
18642
18643 [BZ #22603]
18644 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
18645 addition.
18646
18647 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18648
18649 [BZ #22605]
18650 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
18651 code.
18652
18653 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18654
18655 [BZ #22563]
18656 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18657 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18658 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18659 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18660 to feature_1.
18661
18662 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18663
18664 [BZ #22563]
18665 * bits/types/__cancel_jmp_buf_tag.h: New file.
18666 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18667 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18668 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18669 * nptl/Makefile (headers): Add
18670 bits/types/__cancel_jmp_buf_tag.h.
18671 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18672 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18673 * sysdeps/nptl/pthread.h: Include
18674 <bits/types/__cancel_jmp_buf_tag.h>.
18675 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18676 __cancel_jmp_buf.
18677 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18678
18679 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18680
18681 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18682 --enable-static-pie variants to x86_64, x32 and i686.
18683
18684 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18685
18686 [BZ #22631]
18687 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
18688 argument for attrubutes. All callers changed.
18689 (__inline_mathop1): Likewise. All callers changed.
18690 (__inline_mathop): Likewise. All callers changed.
18691 [__USE_MISC] (scalbn): Use __inline_forward instead of
18692 __inline_forward_c.
18693 [__USE_ISOC99] (scalbln): Likewise.
18694 [__USE_ISOC99] (nearbyint): Likewise.
18695 [__USE_ISOC99] (lrint): Likewise.
18696 [__USE_MISC] (scalbnf): Likewise.
18697 [__USE_ISOC99] (scalblnf): Likewise.
18698 [__USE_ISOC99] (nearbyintf): Likewise.
18699 [__USE_ISOC99] (lrintf): Likewise.
18700 [__USE_MISC] (scalbnl): Likewise.
18701 [__USE_ISOC99] (scalblnl): Likewise.
18702 [__USE_ISOC99] (nearbyintl): Likewise.
18703 [__USE_ISOC99] (lrintl): Likewise.
18704 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
18705 __inline_mathop and __m81_defun changed.
18706
18707 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
18708 CPU or FPU for ARM hard-float configurations.
18709
18710 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18711
18712 * nptl/tst-attr3.c: Include <libc-diag.h>.
18713 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
18714
18715 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
18716
18717 * string/tester.c (test_strncat): Also disable -Warray-bounds
18718 warnings for two tests.
18719
18720 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18721
18722 [BZ #22614]
18723 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
18724 $(cc-pie-default) == yes.
18725 * config.make.in (cc-pie-default): New.
18726 * configure.ac (libc_cv_pie_default): Renamed to ...
18727 (libc_cv_cc_pie_default): This.
18728 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
18729 * configure: Regenerated.
18730
18731 2017-12-18 Florian Weimer <fweimer@redhat.com>
18732
18733 [BZ #20204]
18734 ld.so: Harden dl-libc/libdl hooks.
18735 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
18736 (rtld_active): New function.
18737 * dlfcn/dladdr.c (__dladdr): Call it.
18738 * dlfcn/dladdr1.c (__dladdr1): Likewise.
18739 * dlfcn/dlclose.c (__dlcose): Likewise.
18740 * dlfcn/dlerror.c (__dlerror): Likewise.
18741 * dlfcn/dlinfo.c (__dlinfo): Likewise.
18742 * dlfcn/dlmopen.c (__dlmopen): Likewise.
18743 * dlfcn/dlopen.c (__dlopen): Likewise.
18744 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
18745 * dlfcn/dlsym.c (__dlsym): Likewise.
18746 * dlfcn/dlvsym.c (__dlvsym): Likewise.
18747 * libio/vtables.c (_IO_vtable_check): Likewise.
18748 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
18749 (__libc_dlclose): Likewise.
18750 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
18751 assignment.
18752
18753 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18754
18755 [BZ #22446]
18756 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
18757 buffers for readlink input and output.
18758
18759 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
18760
18761 [BZ #22624]
18762 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
18763 inhibit_stack_protector.
18764
18765 [BZ #22624]
18766 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
18767 inhibit_stack_protector.
18768
18769 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
18770
18771 [BZ #22627]
18772 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
18773 code and invocation.
18774
18775 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
18776
18777 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
18778
18779 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
18780
18781 [BZ #22505]
18782 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
18783
18784 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18785
18786 * sysdeps/s390/fpu/libm-test-ulps: Update.
18787
18788 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18789
18790 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18791
18792 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18793
18794 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
18795 constants to s_sincosf.h file.
18796 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18797 * sysdeps/ieee754/flt-32/s_sincosf.c: New
18798 implementation.
18799 * sysdeps/ieee754/flt-32/s_sincosf.h:
18800 New file.
18801
18802 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18803
18804 [BZ #14681]
18805 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
18806 before mtrace.
18807
18808 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
18809
18810 [BZ #19574]
18811 * INSTALL: Regenerated.
18812 * Makeconfig (real-static-start-installed-name): New.
18813 (pic-default): Updated for --enable-static-pie.
18814 (pie-default): New for --enable-static-pie.
18815 (default-pie-ldflag): Likewise.
18816 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
18817 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
18818 Replace $(static-start-installed-name) with
18819 $(real-static-start-installed-name).
18820 (+prectorT): Updated for --enable-static-pie.
18821 (+postctorT): Likewise.
18822 (CFLAGS-.o): Add $(pie-default).
18823 (CFLAGS-.op): Likewise.
18824 * NEWS: Mention --enable-static-pie.
18825 * config.h.in (ENABLE_STATIC_PIE): New.
18826 * configure.ac (--enable-static-pie): New configure option.
18827 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
18828 (have-static-pie): Likewise.
18829 Enable static PIE if linker supports --no-dynamic-linker.
18830 (ENABLE_STATIC_PIE): New AC_DEFINE.
18831 (enable-static-pie): New LIBC_CONFIG_VAR.
18832 * configure: Regenerated.
18833 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
18834 gr$(start-installed-name) for --enable-static-pie.
18835 (extra-objs): Likewise.
18836 (install-lib): Likewise.
18837 (extra-objs): Add static-reloc.o and static-reloc.os
18838 ($(objpfx)$(start-installed-name)): Also depend on
18839 $(objpfx)static-reloc.o.
18840 ($(objpfx)r$(start-installed-name)): New.
18841 ($(objpfx)g$(start-installed-name)): Also depend on
18842 $(objpfx)static-reloc.os.
18843 ($(objpfx)gr$(start-installed-name)): New.
18844 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
18845 in libc.a.
18846 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
18847 initimage.
18848 * csu/static-reloc.c: New file.
18849 * elf/Makefile (routines): Add dl-reloc-static-pie.
18850 (elide-routines.os): Likewise.
18851 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
18852 (tst-tls1-static-non-pie-no-pie): New.
18853 * elf/dl-reloc-static-pie.c: New file.
18854 * elf/dl-support.c (_dl_get_dl_main_map): New function.
18855 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
18856 STATIC_PIE_BOOTSTRAP.
18857 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18858 * gmon/Makefile (tests): Add tst-gmon-static-pie.
18859 (tests-static): Likewise.
18860 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
18861 (tst-gmon-static-no-pie): New.
18862 (CFLAGS-tst-gmon-static-pie.c): Likewise.
18863 (CRT-tst-gmon-static-pie): Likewise.
18864 (tst-gmon-static-pie-ENV): Likewise.
18865 (tests-special): Likewise.
18866 ($(objpfx)tst-gmon-static-pie.out): Likewise.
18867 (clean-tst-gmon-static-pie-data): Likewise.
18868 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
18869 * gmon/tst-gmon-static-pie.c: New file.
18870 * manual/install.texi: Document --enable-static-pie.
18871 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
18872 (_dl_get_dl_main_map): Likewise.
18873 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
18874 * sysdeps/x86_64/configure.ac: Likewise.
18875 * sysdeps/i386/configure: Regenerated.
18876 * sysdeps/x86_64/configure: Likewise.
18877 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
18878 (ASFLAGS-.op): Likewise.
18879
18880 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18881
18882 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
18883 * posix/tst-mmap-offset.c (fname): Use /tmp.
18884 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
18885
18886 2017-12-15 Steve Ellcey <sellcey@cavium.com>
18887
18888 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
18889
18890 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
18891
18892 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
18893 errno.
18894
18895 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18896
18897 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18898 --with-float=hard for arm-linux-gnueabihf configurations.
18899
18900 [BZ #14121]
18901 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
18902 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
18903 ($(mo-installed)): Use $(objpfx)%.mo.
18904 (realclean): Remove rule.
18905
18906 * po/Makefile (linguas): Remove rule and dependencies.
18907 (linguas.mo): Likewise.
18908 (.PHONY): Do not depend on linguas and linguas.mo.
18909 (podir): Remove variable.
18910 (pofiles): Likewise.
18911 [$(pofiles)] (%.po): Remove rule.
18912
18913 * sysdeps/sparc/sparc32/Makefile
18914 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
18915 start-of-line whitespace in argument of echo.
18916 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
18917 with whitespace. Generate __wrap_.udiv alias.
18918 * sysdeps/sparc/sparc32/rem.S: Regenerated.
18919 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
18920 * sysdeps/sparc/sparc32/udiv.S: Likewise.
18921 * sysdeps/sparc/sparc32/urem.S: Likewise.
18922
18923 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18924
18925 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
18926 for aligned inputs.
18927
18928 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
18929
18930 * benchtests/bench-strcmp.c: Print output in JSON format.
18931
18932 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
18933
18934 2017-12-14 Florian Weimer <fweimer@redhat.com>
18935
18936 [BZ #22607]
18937 CVE-2017-1000409
18938 * elf/dl-load.c (_dl_init_paths): Compute number of components in
18939 the expanded path string.
18940
18941 2017-12-14 Florian Weimer <fweimer@redhat.com>
18942
18943 [BZ #22606]
18944 CVE-2017-1000408
18945 * elf/dl-load.c (system_dirs): Update comment.
18946 (nsystem_dirs_len): Use array_length.
18947 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
18948
18949 2017-12-14 Florian Weimer <fweimer@redhat.com>
18950
18951 Simplify compiling most of support/ outside of glibc.
18952 * support/check_addrinfo.c: Include <string.h>.
18953 * support/check_dns_packet.c: Likewise.
18954 * support/check_hostent.c: Likewise.
18955 * support/support_can_chroot.c: Include <support/xunistd.h>.
18956 * support/support_format_addrinfo.c: Include <stdlib.h>
18957 * support/support_format_dns_packet.c: Include <stdbool.h>.
18958 * support/support_format_hostent.c: Include <stdlib.h>.
18959 * support/support_format_netent.c: Likewise.
18960 * support/support_write_string.c: Include <support/xunistd.h>.
18961 * support/xdlfcn.c: Include <stddef.h>.
18962
18963 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
18964
18965 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
18966
18967 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18968 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18969
18970 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18971 (sysdeps_routines): Add memset-niagara7.
18972 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
18973 Likewise.
18974 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
18975 file.
18976 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
18977 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18978 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18979 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18980 Add niagara7 option.
18981 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18982 memset.
18983
18984 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18985 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18986 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18987 Likewise.
18988 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18989 New file.
18990 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18991 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18992 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18993 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18994 and __memmove_niagara7.
18995 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18996 Add niagara7 option.
18997 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18998 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18999 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
19000 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
19001 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
19002
19003 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
19004
19005 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
19006 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
19007 * sysdeps/sparc/sparc64/memmove.S: Likewise.
19008 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
19009
19010 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
19011 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
19012 _dl_sparc_cap_flags array.
19013 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
19014
19015 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
19016
19017 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
19018 time whenever possible.
19019
19020 2017-12-12 Carlos O'Donell <carlos@redhat.com>
19021
19022 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
19023 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
19024
19025 2017-12-12 Joseph Myers <joseph@codesourcery.com>
19026
19027 * soft-fp/fmadf4.c: Move to ....
19028 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
19029 * soft-fp/fmasf4.c: Move to ....
19030 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
19031 * soft-fp/fmatf4.c: Move to ....
19032 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
19033 * sysdeps/ieee754/soft-fp/Makefile: New file.
19034 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
19035 * sysdeps/arm/preconfigure: Regenerated.
19036 * sysdeps/arm/nofpu/Implies: New file.
19037 * sysdeps/arm/s_fma.c: Remove file.
19038 * sysdeps/arm/s_fmaf.c: Likewise.
19039 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
19040 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
19041 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
19042 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
19043 * sysdeps/microblaze/s_fma.c: Remove file.
19044 * sysdeps/microblaze/s_fmaf.c: Likewise.
19045 * sysdeps/mips/mips32/nofpu/Implies: New file.
19046 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
19047 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
19048 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
19049 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
19050 * sysdeps/mips/ieee754/s_fma.c: Remove file.
19051 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
19052 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
19053 implementation.
19054 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
19055 * sysdeps/nios2/s_fma.c: Remove file.
19056 * sysdeps/nios2/s_fmaf.c: Likewise.
19057 * sysdeps/sh/nofpu/Implies: New file.
19058 * sysdeps/sh/s_fma.c: Remove file.
19059 * sysdeps/sh/s_fmaf.c: Likewise.
19060 * sysdeps/tile/Implies: Add ieee754/soft-fp.
19061 * sysdeps/tile/s_fma.c: Remove file.
19062 * sysdeps/tile/s_fmaf.c: Likewise.
19063
19064 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
19065
19066 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19067 Add s_cosf-sse2 and s_cosf-fma.
19068 (CFLAGS-s_cosf-fma.c): New.
19069 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
19070 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
19071 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
19072
19073 2017-12-12 Steve Ellcey <sellcey@cavium.com>
19074
19075 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
19076
19077 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19078
19079 * libio/Makefile (tests): Add tst-bz22415.
19080 (tst-bz22415-ENV): New rule.
19081 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
19082 (tests-special): Add tst-bz22415-mem.out.
19083 ($(objpfx)tst-bz22415-mem.out): New rule.
19084 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
19085 in case of a successful seek operation.
19086 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
19087 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
19088 buffer is required.
19089 * libio/tst-bz22415.c: New test.
19090
19091 * sysdeps/ia64/fpu/libm-test-ulps: Update.
19092
19093 2017-12-12 James Clarke <jrtc27@jrtc27.com>
19094
19095 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
19096 __IPC_64 to 0 to avoid IPC_64 being set.
19097
19098 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
19099
19100 [BZ #22593]
19101 * math/bits/mathcalls.h (nextafter): Remove const.
19102 (nexttoward): Likewise.
19103
19104 2017-12-12 Joseph Myers <joseph@codesourcery.com>
19105
19106 * configure.ac (--with-fp): Remove configure option.
19107 (with_fp_cond): New variable.
19108 (libc_cv_with_fp): New configure test. Use this variable instead
19109 of with_fp.
19110 * configure: Regenerated.
19111 * config.make.in (with-fp): Use @libc_cv_with_fp@.
19112 * manual/install.texi (Configuring and compiling): Remove
19113 --without-fp.
19114 * INSTALL: Regenerated.
19115 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
19116 * sysdeps/mips/preconfigure (with_fp_cond): Define.
19117 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
19118 * sysdeps/sh/preconfigure (with_fp_cond): Define.
19119 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
19120 use --without-fp to configure glibc.
19121
19122 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
19123
19124 * manual/locale.texi (nl_langinfo): Fix a typo.
19125
19126 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
19127
19128 [BZ #22588]
19129 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
19130
19131 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19132
19133 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
19134 (CFLAGS-argp-parse.c): Likewise.
19135 (CFLAGS-argp-fmtstream.c): Likewise.
19136 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
19137 (CPPFLAGS-sha512-crypt.c): Likewise.
19138 (CPPFLAGS-md5-crypt.c): Likewise.
19139 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
19140 (CFLAGS-stack_chk_fail_local.c): Likewise.
19141 (CFLAGS-backtrace.c): Likewise.
19142 (CFLAGS-sprintf_chk.c): Likewise.
19143 (CFLAGS-snprintf_chk.c): Likewise.
19144 (CFLAGS-vsprintf_chk.c): Likewise.
19145 (CFLAGS-vsnprintf_chk.c): Likewise.
19146 (CFLAGS-asprintf_chk.c): Likewise.
19147 (CFLAGS-vasprintf_chk.c): Likewise.
19148 (CFLAGS-obprintf_chk.c): Likewise.
19149 (CFLAGS-dprintf_chk.c): Likewise.
19150 (CFLAGS-vdprintf_chk.c): Likewise.
19151 (CFLAGS-printf_chk.c): Likewise.
19152 (CFLAGS-fprintf_chk.c): Likewise.
19153 (CFLAGS-vprintf_chk.c): Likewise.
19154 (CFLAGS-vfprintf_chk.c): Likewise.
19155 (CFLAGS-gets_chk.c): Likewise.
19156 (CFLAGS-fgets_chk.c): Likewise.
19157 (CFLAGS-fgets_u_chk.c): Likewise.
19158 (CFLAGS-fread_chk.c): Likewise.
19159 (CFLAGS-fread_u_chk.c): Likewise.
19160 (CFLAGS-swprintf_chk.c): Likewise.
19161 (CFLAGS-vswprintf_chk.c): Likewise.
19162 (CFLAGS-wprintf_chk.c): Likewise.
19163 (CFLAGS-fwprintf_chk.c): Likewise.
19164 (CFLAGS-vwprintf_chk.c): Likewise.
19165 (CFLAGS-vfwprintf_chk.c): Likewise.
19166 (CFLAGS-fgetws_chk.c): Likewise.
19167 (CFLAGS-fgetws_u_chk.c): Likewise.
19168 (CFLAGS-read_chk.c): Likewise.
19169 (CFLAGS-pread_chk.c): Likewise.
19170 (CFLAGS-pread64_chk.c): Likewise.
19171 (CFLAGS-recv_chk.c): Likewise.
19172 (CFLAGS-recvfrom_chk.c): Likewise.
19173 (CFLAGS-tst-longjmp_chk.c): Likewise.
19174 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
19175 (CFLAGS-tst-longjmp_chk2.c): Likewise.
19176 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
19177 (CFLAGS-tst-longjmp_chk3.c): Likewise.
19178 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
19179 (CFLAGS-tst-chk1.c): Likewise.
19180 (CFLAGS-tst-chk2.c): Likewise.
19181 (CFLAGS-tst-chk3.c): Likewise.
19182 (CFLAGS-tst-chk4.cc): Likewise.
19183 (CFLAGS-tst-chk5.cc): Likewise.
19184 (CFLAGS-tst-chk6.cc): Likewise.
19185 (CFLAGS-tst-lfschk1.c): Likewise.
19186 (CFLAGS-tst-lfschk2.c): Likewise.
19187 (CFLAGS-tst-lfschk3.c): Likewise.
19188 (CFLAGS-tst-lfschk4.cc): Likewise.
19189 (CFLAGS-tst-lfschk5.cc): Likewise.
19190 (CFLAGS-tst-lfschk6.cc): Likewise.
19191 (CFLAGS-tst-ssp-1.c): Likewise.
19192 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
19193 (CFLAGS-scandir64.c): Likewise.
19194 (CFLAGS-scandir-tail.c): Likewise.
19195 (CFLAGS-scandir64-tail.c): Likewise.
19196 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
19197 (CFLAGS-dl-tunables.c): Likewise.
19198 (CFLAGS-dl-runtime.c): Likewise.
19199 (CFLAGS-dl-lookup.c): Likewise.
19200 (CFLAGS-dl-iterate-phdr.c): Likewise.
19201 (CFLAGS-vismain.c): Likewise.
19202 (CFLAGS-tst-linkall-static.c): Likewise.
19203 (CFLAGS-tst-linkall-static.c): Likewise.
19204 (CPPFLAGS-dl-load.c): Likewise.
19205 (CFLAGS-ldconfig.c): Likewise.
19206 (CFLAGS-dl-cache.c): Likewise.
19207 (CFLAGS-cache.c): Likewise.
19208 (CFLAGS-rtld.c): Likewise.
19209 (CFLAGS-multiload.c): Likewise.
19210 (CFLAGS-filtmod1.c): Likewise.
19211 (CFLAGS-tst-align.c): Likewise.
19212 (CFLAGS-tst-align2.c): Likewise.
19213 (CFLAGS-tst-alignmod.c): Likewise.
19214 (CFLAGS-tst-alignmod2.c): Likewise.
19215 (CPPFLAGS-tst-execstack.c): Likewise.
19216 (CFLAGS-tst-ptrguard1-static.c): Likewise.
19217 (CFLAGS-tst-latepthreadmod.c): Likewise.
19218 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
19219 (CFLAGS-getgrnam_r.c): Likewise.
19220 (CFLAGS-getgrent_r.c): Likewise.
19221 (CFLAGS-getgrent.c): Likewise.
19222 (CFLAGS-fgetgrent.c): Likewise.
19223 (CFLAGS-fgetgrent_r.c): Likewise.
19224 (CFLAGS-putgrent.c): Likewise.
19225 (CFLAGS-initgroups.c): Likewise.
19226 (CFLAGS-getgrgid.c): Likewise.
19227 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
19228 (CFLAGS-getsgent.c): Likewise.
19229 (CFLAGS-fgetsgent.c): Likewise.
19230 (CFLAGS-fgetsgent_r.c): Likewise.
19231 (CFLAGS-putsgent.c): Likewise.
19232 (CFLAGS-getsgnam.c): Likewise.
19233 (CFLAGS-getsgnam_r.c): Likewise.
19234 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
19235 (CFLAGS-iconv_charmap.c): Likewise.
19236 (CFLAGS-dummy-repertoire.c): Likewise.
19237 (CFLAGS-charmap.c): Likewise.
19238 (CFLAGS-linereader.c): Likewise.
19239 (CFLAGS-simple-hash.c): Likewise.
19240 (CFLAGS-gconv_conf.c): Likewise.
19241 (CFLAGS-iconvconfig.c): Likewise.
19242 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
19243 (CFLAGS-gethstbyad.c): Likewise.
19244 (CFLAGS-gethstbynm_r.c): Likewise.
19245 (CFLAGS-gethstbynm.c): Likewise.
19246 (CFLAGS-gethstbynm2_r.c): Likewise.
19247 (CFLAGS-gethstbynm2.c): Likewise.
19248 (CFLAGS-gethstent_r.c): Likewise.
19249 (CFLAGS-gethstent.c): Likewise.
19250 (CFLAGS-rcmd.c): Likewise.
19251 (CFLAGS-getnetbynm_r.c): Likewise.
19252 (CFLAGS-getnetbynm.c): Likewise.
19253 (CFLAGS-getnetbyad_r.c): Likewise.
19254 (CFLAGS-getnetbyad.c): Likewise.
19255 (CFLAGS-getnetent_r.c): Likewise.
19256 (CFLAGS-getnetent.c): Likewise.
19257 (CFLAGS-getaliasent_r.c): Likewise.
19258 (CFLAGS-getaliasent.c): Likewise.
19259 (CFLAGS-getrpcent_r.c): Likewise.
19260 (CFLAGS-getrpcent.c): Likewise.
19261 (CFLAGS-getservent_r.c): Likewise.
19262 (CFLAGS-getservent.c): Likewise.
19263 (CFLAGS-getprtent_r.c): Likewise.
19264 (CFLAGS-getprtent.c): Likewise.
19265 (CFLAGS-either_ntoh.c): Likewise.
19266 (CFLAGS-either_hton.c): Likewise.
19267 (CFLAGS-getnetgrent.c): Likewise.
19268 (CFLAGS-getnetgrent_r.c): Likewise.
19269 (CFLAGS-tst-checks-posix.c): Likewise.
19270 (CFLAGS-tst-sockaddr.c): Likewise.
19271 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
19272 (CFLAGS-tst-translit.c): Likewise.
19273 (CFLAGS-tst-gettext2.c): Likewise.
19274 (CFLAGS-tst-codeset.c): Likewise.
19275 (CFLAGS-tst-gettext3.c): Likewise.
19276 (CFLAGS-tst-gettext4.c): Likewise.
19277 (CFLAGS-tst-gettext5.c): Likewise.
19278 (CFLAGS-tst-gettext6.c): Likewise.
19279 * io/Makefile (CFLAGS-open.c): Likewise.
19280 (CFLAGS-open64.c): Likewise.
19281 (CFLAGS-creat.c): Likewise.
19282 (CFLAGS-creat64.c): Likewise.
19283 (CFLAGS-fcntl.c): Likewise.
19284 (CFLAGS-poll.c): Likewise.
19285 (CFLAGS-ppoll.c): Likewise.
19286 (CFLAGS-lockf.c): Likewise.
19287 (CFLAGS-statfs.c): Likewise.
19288 (CFLAGS-fstatfs.c): Likewise.
19289 (CFLAGS-statvfs.c): Likewise.
19290 (CFLAGS-fstatvfs.c): Likewise.
19291 (CFLAGS-fts.c): Likewise.
19292 (CFLAGS-fts64.c): Likewise.
19293 (CFLAGS-ftw.c): Likewise.
19294 (CFLAGS-ftw64.c): Likewise.
19295 (CFLAGS-lockf.c): Likewise.
19296 (CFLAGS-posix_fallocate.c): Likewise.
19297 (CFLAGS-posix_fallocate64.c): Likewise.
19298 (CFLAGS-fallocate.c): Likewise.
19299 (CFLAGS-fallocate64.c): Likewise.
19300 (CFLAGS-read.c): Likewise.
19301 (CFLAGS-write.c): Likewise.
19302 (CFLAGS-test-stat.c): Likewise.
19303 (CFLAGS-test-lfs.c): Likewise.
19304 * libio/Makefile (CFLAGS-fileops.c): Likewise.
19305 (CFLAGS-fputc.c): Likewise.
19306 (CFLAGS-fputwc.c): Likewise.
19307 (CFLAGS-freopen64.c): Likewise.
19308 (CFLAGS-freopen.c): Likewise.
19309 (CFLAGS-fseek.c): Likewise.
19310 (CFLAGS-fseeko64.c): Likewise.
19311 (CFLAGS-fseeko.c): Likewise.
19312 (CFLAGS-ftello64.c): Likewise.
19313 (CFLAGS-ftello.c): Likewise.
19314 (CFLAGS-fwide.c): Likewise.
19315 (CFLAGS-genops.c): Likewise.
19316 (CFLAGS-getc.c): Likewise.
19317 (CFLAGS-getchar.c): Likewise.
19318 (CFLAGS-getwc.c): Likewise.
19319 (CFLAGS-getwchar.c): Likewise.
19320 (CFLAGS-iofclose.c): Likewise.
19321 (CFLAGS-iofflush.c): Likewise.
19322 (CFLAGS-iofgetpos64.c): Likewise.
19323 (CFLAGS-iofgetpos.c): Likewise.
19324 (CFLAGS-iofgets.c): Likewise.
19325 (CFLAGS-iofgetws.c): Likewise.
19326 (CFLAGS-iofputs.c): Likewise.
19327 (CFLAGS-iofputws.c): Likewise.
19328 (CFLAGS-iofread.c): Likewise.
19329 (CFLAGS-iofsetpos64.c): Likewise.
19330 (CFLAGS-iofsetpos.c): Likewise.
19331 (CFLAGS-ioftell.c): Likewise.
19332 (CFLAGS-iofwrite.c): Likewise.
19333 (CFLAGS-iogetdelim.c): Likewise.
19334 (CFLAGS-iogetline.c): Likewise.
19335 (CFLAGS-iogets.c): Likewise.
19336 (CFLAGS-iogetwline.c): Likewise.
19337 (CFLAGS-ioputs.c): Likewise.
19338 (CFLAGS-ioseekoff.c): Likewise.
19339 (CFLAGS-ioseekpos.c): Likewise.
19340 (CFLAGS-iosetbuffer.c): Likewise.
19341 (CFLAGS-iosetvbuf.c): Likewise.
19342 (CFLAGS-ioungetc.c): Likewise.
19343 (CFLAGS-ioungetwc.c): Likewise.
19344 (CFLAGS-oldfileops.c): Likewise.
19345 (CFLAGS-oldiofclose.c): Likewise.
19346 (CFLAGS-oldiofgetpos64.c): Likewise.
19347 (CFLAGS-oldiofgetpos.c): Likewise.
19348 (CFLAGS-oldiofsetpos64.c): Likewise.
19349 (CFLAGS-oldiofsetpos.c): Likewise.
19350 (CFLAGS-peekc.c): Likewise.
19351 (CFLAGS-putc.c): Likewise.
19352 (CFLAGS-putchar.c): Likewise.
19353 (CFLAGS-putwc.c): Likewise.
19354 (CFLAGS-putwchar.c): Likewise.
19355 (CFLAGS-rewind.c): Likewise.
19356 (CFLAGS-wfileops.c): Likewise.
19357 (CFLAGS-wgenops.c): Likewise.
19358 (CFLAGS-oldiofopen.c): Likewise.
19359 (CFLAGS-iofopen.c): Likewise.
19360 (CFLAGS-iofopen64.c): Likewise.
19361 (CFLAGS-oldtmpfile.c): Likewise.
19362 (CFLAGS-tst_putwc.c): Likewise.
19363 * locale/Makefile (CFLAGS-md5.c): Likewise.
19364 (CFLAGS-charmap.c): Likewise.
19365 (CFLAGS-locfile.c): Likewise.
19366 (CFLAGS-charmap-dir.c): Likewise.
19367 * login/Makefile (CFLAGS-grantpt.c): Likewise.
19368 (CFLAGS-getpt.c): Likewise.
19369 (CFLAGS-pt_chown.c): Likewise.
19370 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
19371 (CFLAGS-obstack.c): Likewise.
19372 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
19373 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
19374 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
19375 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
19376 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
19377 (CFLAGS-test-tgmath.c): Likewise.
19378 (CFLAGS-test-tgmath2.c): Likewise.
19379 (CFLAGS-test-tgmath-ret.c): Likewise.
19380 (CFLAGS-test-powl.c): Likewise.
19381 (CFLAGS-test-snan.c): Likewise.
19382 (CFLAGS-test-signgam-finite.c): Likewise.
19383 (CFLAGS-test-signgam-finite-c99.c): Likewise.
19384 (CFLAGS-test-signgam-finite-c11.c): Likewise.
19385 (CFLAGS-test-signgam-uchar.c): Likewise.
19386 (CFLAGS-test-signgam-uchar-init.c): Likewise.
19387 (CFLAGS-test-signgam-uchar-static.c): Likewise.
19388 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
19389 (CFLAGS-test-signgam-uint.c): Likewise.
19390 (CFLAGS-test-signgam-uint-init.c): Likewise.
19391 (CFLAGS-test-signgam-uint-static.c): Likewise.
19392 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
19393 (CFLAGS-test-signgam-ullong.c): Likewise.
19394 (CFLAGS-test-signgam-ullong-init.c): Likewise.
19395 (CFLAGS-test-signgam-ullong-static.c): Likewise.
19396 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
19397 (CFLAGS-test-math-cxx11.cc): Likewise.
19398 (CFLAGS-test-math-isinff.cc): Likewise.
19399 (CFLAGS-test-math-iszero.cc): Likewise.
19400 (CFLAGS-test-math-issignaling.cc): Likewise.
19401 (CFLAGS-test-math-iscanonical.cc): Likewise.
19402 (CFLAGS-test-iszero-excess-precision.c): Likewise.
19403 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
19404 (CFLAGS-test-flt-eval-method.c): Likewise.
19405 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
19406 (CFLAGS-test-finite-macros.c): Likewise.
19407 * misc/Makefile (CFLAGS-select.c): Likewise.
19408 (CFLAGS-tsearch.c): Likewise.
19409 (CFLAGS-lsearch.c): Likewise.
19410 (CFLAGS-pselect.c): Likewise.
19411 (CFLAGS-readv.c): Likewise.
19412 (CFLAGS-writev.c): Likewise.
19413 (CFLAGS-preadv.c): Likewise.
19414 (CFLAGS-preadv64.c): Likewise.
19415 (CFLAGS-pwritev.c): Likewise.
19416 (CFLAGS-pwritev64.c): Likewise.
19417 (CFLAGS-preadv2.c): Likewise.
19418 (CFLAGS-preadv64v2.c): Likewise.
19419 (CFLAGS-pwritev2.c): Likewise.
19420 (CFLAGS-pwritev64v2.c): Likewise.
19421 (CFLAGS-usleep.c): Likewise.
19422 (CFLAGS-syslog.c): Likewise.
19423 (CFLAGS-error.c): Likewise.
19424 (CFLAGS-getpass.c): Likewise.
19425 (CFLAGS-mkstemp.c): Likewise.
19426 (CFLAGS-mkstemp64.c): Likewise.
19427 (CFLAGS-getsysstats.c): Likewise.
19428 (CFLAGS-getusershell.c): Likewise.
19429 (CFLAGS-err.c): Likewise.
19430 (CFLAGS-tst-tsearch.c): Likewise.
19431 (CFLAGS-msync.c): Likewise.
19432 (CFLAGS-fdatasync.c): Likewise.
19433 (CFLAGS-fsync.c): Likewise.
19434 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
19435 (CFLAGS-unwind.c): Likewise.
19436 (CFLAGS-unwind-forcedunwind.c): Likewise.
19437 (CFLAGS-pthread_cancel.c): Likewise.
19438 (CFLAGS-pthread_setcancelstate.c): Likewise.
19439 (CFLAGS-pthread_setcanceltype.c): Likewise.
19440 (CFLAGS-cancellation.c): Likewise.
19441 (CFLAGS-libc-cancellation.c): Likewise.
19442 (CFLAGS-pthread_exit.c): Likewise.
19443 (CFLAGS-forward.c): Likewise.
19444 (CFLAGS-pthread_testcancel.c): Likewise.
19445 (CFLAGS-pthread_join.c): Likewise.
19446 (CFLAGS-pthread_timedjoin.c): Likewise.
19447 (CFLAGS-pthread_once.c): Likewise.
19448 (CFLAGS-pthread_cond_wait.c): Likewise.
19449 (CFLAGS-sem_wait.c): Likewise.
19450 (CFLAGS-sem_timedwait.c): Likewise.
19451 (CFLAGS-fcntl.c): Likewise.
19452 (CFLAGS-lockf.c): Likewise.
19453 (CFLAGS-pread.c): Likewise.
19454 (CFLAGS-pread64.c): Likewise.
19455 (CFLAGS-pwrite.c): Likewise.
19456 (CFLAGS-pwrite64.c): Likewise.
19457 (CFLAGS-wait.c): Likewise.
19458 (CFLAGS-waitpid.c): Likewise.
19459 (CFLAGS-sigwait.c): Likewise.
19460 (CFLAGS-msgrcv.c): Likewise.
19461 (CFLAGS-msgsnd.c): Likewise.
19462 (CFLAGS-tcdrain.c): Likewise.
19463 (CFLAGS-open.c): Likewise.
19464 (CFLAGS-open64.c): Likewise.
19465 (CFLAGS-pause.c): Likewise.
19466 (CFLAGS-recv.c): Likewise.
19467 (CFLAGS-send.c): Likewise.
19468 (CFLAGS-accept.c): Likewise.
19469 (CFLAGS-sendto.c): Likewise.
19470 (CFLAGS-connect.c): Likewise.
19471 (CFLAGS-recvfrom.c): Likewise.
19472 (CFLAGS-recvmsg.c): Likewise.
19473 (CFLAGS-sendmsg.c): Likewise.
19474 (CFLAGS-close.c): Likewise.
19475 (CFLAGS-read.c): Likewise.
19476 (CFLAGS-write.c): Likewise.
19477 (CFLAGS-nanosleep.c): Likewise.
19478 (CFLAGS-sigsuspend.c): Likewise.
19479 (CFLAGS-msync.c): Likewise.
19480 (CFLAGS-fdatasync.c): Likewise.
19481 (CFLAGS-fsync.c): Likewise.
19482 (CFLAGS-pt-system.c): Likewise.
19483 (CFLAGS-tst-cleanup2.c): Likewise.
19484 (CFLAGS-tst-cleanupx2.c): Likewise.
19485 (CFLAGS-flockfile.c): Likewise.
19486 (CFLAGS-ftrylockfile.c): Likewise.
19487 (CFLAGS-funlockfile.c): Likewise.
19488 (CFLAGS-tst-initializers1.c): Likewise.
19489 (CFLAGS-tst-initializers1-c89.c): Likewise.
19490 (CFLAGS-tst-initializers1-c99.c): Likewise.
19491 (CFLAGS-tst-initializers1-c11.c): Likewise.
19492 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
19493 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
19494 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
19495 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
19496 (CFLAGS-nscd_getgr_r.c): Likewise.
19497 (CFLAGS-nscd_gethst_r.c): Likewise.
19498 (CFLAGS-nscd_getai.c): Likewise.
19499 (CFLAGS-nscd_initgroups.c): Likewise.
19500 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
19501 (CFLAGS-pause.c): Likewise.
19502 (CFLAGS-pread.c): Likewise.
19503 (CFLAGS-pread64.c): Likewise.
19504 (CFLAGS-pwrite.c): Likewise.
19505 (CFLAGS-pwrite64.c): Likewise.
19506 (CFLAGS-sleep.c): Likewise.
19507 (CFLAGS-wait.c): Likewise.
19508 (CFLAGS-waitid.c): Likewise.
19509 (CFLAGS-waitpid.c): Likewise.
19510 (CFLAGS-getopt.c): Likewise.
19511 (CFLAGS-wordexp.c): Likewise.
19512 (CFLAGS-sysconf.c): Likewise.
19513 (CFLAGS-pathconf.c): Likewise.
19514 (CFLAGS-fpathconf.c): Likewise.
19515 (CFLAGS-spawn.c): Likewise.
19516 (CFLAGS-spawnp.c): Likewise.
19517 (CFLAGS-spawni.c): Likewise.
19518 (CFLAGS-glob.c): Likewise.
19519 (CFLAGS-glob64.c): Likewise.
19520 (CFLAGS-getconf.c): Likewise.
19521 (CFLAGS-nanosleep.c): Likewise.
19522 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
19523 (CFLAGS-getpwent.c): Likewise.
19524 (CFLAGS-getpw.c): Likewise.
19525 (CFLAGS-fgetpwent_r.c): Likewise.
19526 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
19527 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
19528 (CFLAGS-mq_timedreceive.c): Likewise.
19529 (CFLAGS-mq_timedsend.c): Likewise.
19530 (CFLAGS-clock_nanosleep.c): Likewise.
19531 (CFLAGS-librt-cancellation.c): Likewise.
19532 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
19533 (CFLAGS-getspent.c): Likewise.
19534 (CFLAGS-fgetspent.c): Likewise.
19535 (CFLAGS-fgetspent_r.c): Likewise.
19536 (CFLAGS-putspent.c): Likewise.
19537 (CFLAGS-getspnam.c): Likewise.
19538 (CFLAGS-getspnam_r.c): Likewise.
19539 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
19540 (CFLAGS-sigsuspend.c): Likewise.
19541 (CFLAGS-sigtimedwait.c): Likewise.
19542 (CFLAGS-sigwait.c): Likewise.
19543 (CFLAGS-sigwaitinfo.c): Likewise.
19544 (CFLAGS-sigreturn.c): Likewise.
19545 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
19546 (CFLAGS-vfwprintf.c): Likewise.
19547 (CFLAGS-tmpfile.c): Likewise.
19548 (CFLAGS-tmpfile64.c): Likewise.
19549 (CFLAGS-tempname.c): Likewise.
19550 (CFLAGS-psignal.c): Likewise.
19551 (CFLAGS-vprintf.c): Likewise.
19552 (CFLAGS-cuserid.c): Likewise.
19553 (CFLAGS-errlist.c): Likewise.
19554 (CFLAGS-siglist.c): Likewise.
19555 (CFLAGS-scanf15.c): Likewise.
19556 (CFLAGS-scanf17.c): Likewise.
19557 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
19558 (CFLAGS-msort.c): Likewise.
19559 (CFLAGS-qsort.c): Likewise.
19560 (CFLAGS-system.c): Likewise.
19561 (CFLAGS-fmtmsg.c): Likewise.
19562 (CFLAGS-strfmon.c): Likewise.
19563 (CFLAGS-strfmon_l.c): Likewise.
19564 (CFLAGS-strfromd.c): Likewise.
19565 (CFLAGS-strfromf.c): Likewise.
19566 (CFLAGS-strfroml.c): Likewise.
19567 (CFLAGS-tst-bsearch.c): Likewise.
19568 (CFLAGS-tst-qsort.c): Likewise.
19569 (CFLAGS-tst-makecontext2.c): Likewise.
19570 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
19571 (CFLAGS-xnlm_prot.c): Likewise.
19572 (CFLAGS-xrstat.c): Likewise.
19573 (CFLAGS-xyppasswd.c): Likewise.
19574 (CFLAGS-xklm_prot.c): Likewise.
19575 (CFLAGS-xrex.c): Likewise.
19576 (CFLAGS-xsm_inter.c): Likewise.
19577 (CFLAGS-xmount.c): Likewise.
19578 (CFLAGS-xrusers.c): Likewise.
19579 (CFLAGS-xspray.c): Likewise.
19580 (CFLAGS-xnfs_prot.c): Likewise.
19581 (CFLAGS-xrquota.c): Likewise.
19582 (CFLAGS-xkey_prot.c): Likewise.
19583 (CFLAGS-auth_unix.c): Likewise.
19584 (CFLAGS-key_call.c): Likewise.
19585 (CFLAGS-pmap_rmt.c): Likewise.
19586 (CFLAGS-clnt_perr.c): Likewise.
19587 (CFLAGS-openchild.c): Likewise.
19588 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
19589 (CFLAGS-msgsnd.c): Likewise.
19590 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
19591 * time/Makefile (CFLAGS-tzfile.c): Likewise.
19592 (CFLAGS-tzset.c): Likewise.
19593 (CFLAGS-getdate.c): Likewise.
19594 (CFLAGS-test_time.c): Likewise.
19595 (CPPFLAGS-tst-tzname.c): Likewise.
19596 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
19597 (CFLAGS-zic.c): Likewise.
19598 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
19599 (CFLAGS-wcswidth.c): Likewise.
19600 (CFLAGS-wcstol.c): Likewise.
19601 (CFLAGS-wcstoul.c): Likewise.
19602 (CFLAGS-wcstoll.c): Likewise.
19603 (CFLAGS-wcstoull.c): Likewise.
19604 (CFLAGS-wcstod.c): Likewise.
19605 (CFLAGS-wcstold.c): Likewise.
19606 (CFLAGS-wcstof128.c): Likewise.
19607 (CFLAGS-wcstof.c): Likewise.
19608 (CFLAGS-wcstol_l.c): Likewise.
19609 (CFLAGS-wcstoul_l.c): Likewise.
19610 (CFLAGS-wcstoll_l.c): Likewise.
19611 (CFLAGS-wcstoull_l.c): Likewise.
19612 (CFLAGS-wcstod_l.c): Likewise.
19613 (CFLAGS-wcstold_l.c): Likewise.
19614 (CFLAGS-wcstof128_l.c): Likewise.
19615 (CFLAGS-wcstof_l.c): Likewise.
19616 (CPPFLAGS-tst-wchar-h.c): Likewise.
19617 (CPPFLAGS-wcstold_l.c): Likewise.
19618
19619 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
19620
19621 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
19622
19623 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
19624 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19625
19626 * manual/tunables.texi (Hardware Capability Tunables): Document
19627 glibc.tune.cached_memopt.
19628 * sysdeps/powerpc/cpu-features.c: New file.
19629 * sysdeps/powerpc/cpu-features.h: New file.
19630 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
19631 _dl_powerpc_cpu_features.
19632 * sysdeps/powerpc/dl-tunables.list: New file.
19633 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
19634 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
19635 (INIT_ARCH): Initialize use_aligned_memopt.
19636 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
19637 IS_IN(rtld))]: Restrict dl_platform_init availability and
19638 initialize CPU features used by tunables.
19639 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
19640 Add memcpy-power8-cached.
19641 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
19642 __memcpy_power8_cached.
19643 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
19644 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
19645 New file.
19646
19647 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19648
19649 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
19650 (CFLAGS-noinl-tester.c): Likewise.
19651 (CFLAGS-tst-strlen.c): Likewise.
19652 (CFLAGS-stratcliff.c): Likewise.
19653 (CFLAGS-test-ffs.c): Likewise.
19654 (CFLAGS-tst-inlcall.c): Likewise.
19655 (CFLAGS-tst-xbzero-opt.c): Likewise.
19656 (CFLAGS-memcpy.c): Likewise.
19657 (CFLAGS-wordcopy.c): Likewise.
19658
19659 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
19660
19661 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
19662 Store r15 on stack and add cfi rule.
19663 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
19664 Likewise.
19665
19666 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
19667
19668 [BZ #22577]
19669 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
19670 call.
19671
19672 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19673
19674 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19675 Add s_sinf-sse2 and s_sinf-fma.
19676 (CFLAGS-s_sinf-fma.c): New.
19677 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
19678 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
19679 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
19680
19681 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19682
19683 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
19684
19685 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19686
19687 [BZ #22568]
19688 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
19689 part of result to imaginary part of argument if it is zero and the
19690 real part of the argument is not finite.
19691 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
19692 of result to real part of argument if it is zero and the imaginary
19693 part of the argument is not finite.
19694
19695 2017-12-07 Mike FABIAN <mfabian@redhat.com>
19696
19697 [BZ #22524]
19698 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
19699 and to the list of locales to be built for testing.
19700 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
19701 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
19702 and build the collation rules upon that.
19703
19704 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19705
19706 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
19707 * manual/math.texi (Mathematics): Document support for _Float32.
19708 * math/Makefile (test-types): Add float32.
19709 * math/Versions (GLIBC_2.27): Add _Float32 functions.
19710 * stdlib/Versions (GLIBC_2.27): Likewise.
19711 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19712 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19713 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19714 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19715 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19716 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19717 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19718 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19719 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19720 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19721 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19722 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19723 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19724 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19725 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19726 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19727 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19728 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19729 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19730 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19731 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19732 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19733 Likewise.
19734 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19735 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19736 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19737 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19738 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19739 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19740 Likewise.
19741 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19742 Likewise.
19743 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19744 Likewise.
19745 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19746 Likewise.
19747
19748 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19749 Likewise.
19750 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19751 Likewise.
19752 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19753 Likewise.
19754 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19755 Likewise.
19756 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19757 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19758 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19759 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19760 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19761 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19762 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19763 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19764 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19765 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19766 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19767 Likewise.
19768 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19769 Likewise.
19770 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19771 Likewise.
19772 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19773 Likewise.
19774 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19775 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19776 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19777 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19778 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19779 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19780 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19781 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19782
19783 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19784
19785 * stdlib/strtof.c: Include <bits/floatn.h>
19786 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
19787 and later undefine as macro. Define as weak alias if
19788 [!USE_WIDE_CHAR].
19789 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
19790 and later undefine as macro. Define as weak alias if
19791 [USE_WIDE_CHAR].
19792 * stdlib/strtof_l.c: Include <bits/floatn.h>
19793 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
19794 and later undefine as macro. Define as weak alias if
19795 [!USE_WIDE_CHAR].
19796 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
19797 and later undefine as macro. Define as weak alias if
19798 [USE_WIDE_CHAR].
19799
19800 * stdlib/strfromf.c: Include <bits/floatn.h>.
19801 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
19802 and later undefine as macro and define as weak alias.
19803
19804 * math/test-float32.h: New file.
19805
19806 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
19807 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
19808 (libm_alias_float_other_r): Create f32 alias.
19809 (libm_alias_float_r): Use semicolon before call to
19810 libm_alias_float_other_r.
19811
19812 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
19813 second argument to libm_alias_float_other.
19814 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
19815 second argument to libm_alias_float_other.
19816 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
19817 argument to libm_alias_float_other.
19818
19819 [BZ #22561]
19820 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
19821 real part of result for argument 0 + i * NaN.
19822 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
19823 results for tests of 0 + i * NaN.
19824
19825 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19826
19827 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19828
19829 2017-12-06 David S. Miller <davem@davemloft.net>
19830
19831 * sysdeps/sparc/fpu/libm-test-ulps: Update
19832 exp_{downward,towardzero,upward} ulps.
19833
19834 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19835
19836 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
19837 variables static.
19838
19839 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
19840 (Y0_2D): Likewise.
19841 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
19842 (Y0_2D): Likewise.
19843 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
19844 (Y0_2D): Likewise.
19845 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
19846 (Y0_2D): Likewise.
19847
19848 2017-12-06 Mike FABIAN <mfabian@redhat.com>
19849
19850 [BZ #22515]
19851 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
19852 and to the list of locales to be built for testing.
19853 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
19854 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
19855 and build the collation rules upon that.
19856
19857 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19858
19859 * NEWS: Add sinf to list of optimized functions.
19860
19861 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19862
19863 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
19864 (__HAVE_FLOAT32X): Likewise.
19865 * manual/math.texi (Mathematics): Document support for _Float64
19866 and _Float32x.
19867 * math/Makefile (test-types): Add float64 and float32x.
19868 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
19869 functions.
19870 * stdlib/Versions (GLIBC_2.27): Likewise.
19871 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19872 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19873 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19874 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19875 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19876 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19877 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19878 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19879 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19880 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19881 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19882 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19883 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19884 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19885 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19886 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19887 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19888 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19889 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19890 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19891 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19892 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19893 Likewise.
19894 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19895 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19896 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19897 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19898 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19899 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19900 Likewise.
19901 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19902 Likewise.
19903 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19904 Likewise.
19905 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19906 Likewise.
19907 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19908 Likewise.
19909 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19910 Likewise.
19911 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19912 Likewise.
19913 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19914 Likewise.
19915 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19916 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19917 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19918 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19919 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19920 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19921 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19922 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19923 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19924 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19925 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19926 Likewise.
19927 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19928 Likewise.
19929 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19930 Likewise.
19931 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19932 Likewise.
19933 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19934 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19935 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19936 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19937 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19938 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19939 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19940 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19941
19942 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19943
19944 * bits/floatn-common.h: Include <bits/long-double.h>.
19945 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19946 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
19947 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19948 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
19949 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19950 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
19951 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19952 (__builtin_huge_valf64): Use __builtin_huge_vall.
19953 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19954 (__builtin_inff64): Use __builtin_infl.
19955 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19956 (__builtin_nanf64): Use __builtin_nanl.
19957 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19958 (__builtin_nansf64): Use __builtin_nansl.
19959
19960 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
19961 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
19962 Carlos O'Donnell <carlos@redhat.com>
19963
19964 * elf/dl-tunables.list: Add elision parameters.
19965 * manual/tunables.texi: Add entries about elision tunable.
19966 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
19967 Add callback functions to dynamically enable/disable elision.
19968 Add multiple callbacks functions to set elision parameters.
19969 Deleted __libc_enable_secure check.
19970 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
19971 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
19972 * configure: Regenerated.
19973 * configure.ac: Option enable_lock_elision was deleted.
19974 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
19975 * config.make.in: Remove references to enable_lock_elision.
19976 * manual/install.texi: Elision configure option was removed.
19977 * INSTALL: Regenerated to remove enable_lock_elision.
19978 * nptl/Makefile:
19979 Disable elision so it can verify error case for destroying a mutex.
19980 * sysdeps/powerpc/nptl/elide.h:
19981 Cleanup ENABLE_LOCK_ELISION check.
19982 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19983 * sysdeps/s390/configure: Regenerated.
19984 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19985 * nptl/tst-mutex8.c:
19986 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19987 * sysdeps/powerpc/powerpc32/sysdep.h:
19988 Deleted all ENABLE_LOCK_ELISION checks.
19989 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19990 * sysdeps/powerpc/sysdep.h: Likewise.
19991 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19992 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19993 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19994 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19995 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19996 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19997 enable-lock-elision.
19998
19999 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20000
20001 * stdlib/strtod.c: Include <bits/floatn.h>.
20002 (BUILD_DOUBLE): New macro.
20003 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20004 (strtof64): Define and later undefine as macro. Define as weak
20005 alias if [!USE_WIDE_CHAR].
20006 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20007 (wcstof64): Define and later undefine as macro. Define as weak
20008 alias if [USE_WIDE_CHAR].
20009 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20010 (strtof32x): Define and later undefine as macro. Define as weak
20011 alias if [!USE_WIDE_CHAR].
20012 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20013 (wcstof32x): Define and later undefine as macro. Define as weak
20014 alias if [USE_WIDE_CHAR].
20015 * stdlib/strtod_l.c: Include <bits/floatn.h>.
20016 (BUILD_DOUBLE): New macro.
20017 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20018 (strtof64_l): Define and later undefine as macro. Define as weak
20019 alias if [!USE_WIDE_CHAR].
20020 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20021 (wcstof64_l): Define and later undefine as macro. Define as weak
20022 alias if [USE_WIDE_CHAR].
20023 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20024 (strtof32x_l): Define and later undefine as macro. Define as weak
20025 alias if [!USE_WIDE_CHAR].
20026 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20027 (wcstof32x_l): Define and later undefine as macro. Define as weak
20028 alias if [USE_WIDE_CHAR].
20029
20030 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20031
20032 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
20033 (reduced): Use ones as double instead of integer.
20034
20035 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
20036
20037 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
20038
20039 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20040
20041 * stdlib/strfromd.c: Include <bits/floatn.h>.
20042 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
20043 and later undefine as macro and define as weak alias.
20044 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
20045 Likewise.
20046
20047 * math/test-float32x.h: New file.
20048 * math/test-float64.h: Likewise.
20049
20050 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
20051 (libm_alias_double_other_r_f64): New macro.
20052 (libm_alias_double_other_r_f32x): Likewise.
20053 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
20054 libm_alias_double_other_r_f32x.
20055 (libm_alias_double_r): Use semicolon before call to
20056 libm_alias_double_other_r.
20057 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
20058 <bits/floatn.h>.
20059 (libm_alias_double_other_r_f64): New macro.
20060 (libm_alias_double_other_r_f32x): Likewise.
20061 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
20062 libm_alias_double_other_r_f32x.
20063
20064 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
20065
20066 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
20067 int.
20068 (SINF_FUNC): Likewise. Replace floor with simple casts.
20069
20070 2017-12-05 Mike FABIAN <mfabian@redhat.com>
20071
20072 [BZ #22517]
20073 * localedata/Makefile: Add et_EE.UTF-8 to test-input
20074 and to the list of locales to be built for testing.
20075 * localedata/et_EE.UTF-8.in: New file for testing the collation.
20076 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
20077 and build the collation rules upon that.
20078
20079 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
20080
20081 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
20082 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
20083 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
20084 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
20085 instead of __insn__xxx.
20086 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
20087 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
20088 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
20089 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
20090 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
20091 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
20092
20093 2017-12-05 Florian Weimer <fweimer@redhat.com>
20094
20095 Linux: Implement interfaces for memory protection keys
20096 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
20097 xsignal, xsysconf.
20098 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
20099 * support/xunistd.h (xsysconf): Declare.
20100 * support/xraise.c: New file.
20101 * support/xsigaction.c: Likewise.
20102 * support/xsignal.c: Likewise.
20103 * support/xsysconf.c: Likewise.
20104 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
20105 pkey_set, pkey_get, pkey_mprotect.
20106 [misc] (tests): Add tst-pkey.
20107 (tst-pkey): Link with -lpthread.
20108 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
20109 pkey_free, pkey_set, pkey_get, pkey_mprotect.
20110 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
20111 (PKEY_DISABLE_WRITE): Define.
20112 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
20113 Declare.
20114 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
20115 (SEGV_PKUERR): Add.
20116 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
20117 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
20118 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
20119 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
20120 Add.
20121 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
20122 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
20123 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
20124 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
20125 * sysdeps/unix/sysv/linux/**.abilist: Update.
20126
20127 2017-12-05 Florian Weimer <fweimer@redhat.com>
20128
20129 * support/tst-test_compare.c (subprocess): Use long long instead
20130 of long argument for consistent type width across 32-bit and
20131 64-bit architectures.
20132 (do_test): Adjust expected output.
20133
20134 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20135
20136 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
20137 (cosf): Define using libm_alias_float.
20138 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
20139 (fabsf): Define using libm_alias_float.
20140 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
20141 (fmaf): Define using libm_alias_float.
20142 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
20143 (rintf): Define using libm_alias_float.
20144 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
20145 (sinf): Define using libm_alias_float.
20146 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
20147 <libm-alias-float.h>.
20148 (modff): Define using libm_alias_float.
20149 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
20150 <libm-alias-float.h>.
20151 (logbf): Define using libm_alias_float.
20152 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
20153 <libm-alias-float.h>.
20154 (ceilf): Define using libm_alias_float.
20155 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20156 <libm-alias-float.h>.
20157 (copysignf): Define using libm_alias_float.
20158 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
20159 <libm-alias-float.h>.
20160 (floorf): Define using libm_alias_float.
20161 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
20162 <libm-alias-float.h>.
20163 (llrintf): Define using libm_alias_float.
20164 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
20165 <libm-alias-float.h>.
20166 (llroundf): Define using libm_alias_float.
20167 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20168 <libm-alias-float.h>.
20169 (lrintf): Define using libm_alias_float.
20170 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20171 <libm-alias-float.h>.
20172 (lroundf): Define using libm_alias_float.
20173 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
20174 <libm-alias-float.h>.
20175 (nearbyintf): Define using libm_alias_float.
20176 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
20177 <libm-alias-float.h>.
20178 (rintf): Define using libm_alias_float.
20179 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
20180 <libm-alias-float.h>.
20181 (roundf): Define using libm_alias_float.
20182 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
20183 <libm-alias-float.h>.
20184 (truncf): Define using libm_alias_float.
20185 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
20186 Include <libm-alias-float.h>.
20187 (ceilf): Define using libm_alias_float.
20188 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
20189 Include <libm-alias-float.h>.
20190 (copysignf): Define using libm_alias_float.
20191 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
20192 Include <libm-alias-float.h>.
20193 (floorf): Define using libm_alias_float.
20194 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
20195 Include <libm-alias-float.h>.
20196 (llrintf): Define using libm_alias_float.
20197 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
20198 Include <libm-alias-float.h>.
20199 (llroundf): Define using libm_alias_float.
20200 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
20201 Include <libm-alias-float.h>.
20202 (logbf): Define using libm_alias_float.
20203 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
20204 Include <libm-alias-float.h>.
20205 (lrintf): Define using libm_alias_float.
20206 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
20207 Include <libm-alias-float.h>.
20208 (lroundf): Define using libm_alias_float.
20209 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
20210 Include <libm-alias-float.h>.
20211 (modff): Define using libm_alias_float.
20212 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
20213 Include <libm-alias-float.h>.
20214 (roundf): Define using libm_alias_float.
20215 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
20216 Include <libm-alias-float.h>.
20217 (truncf): Define using libm_alias_float.
20218 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
20219 <libm-alias-float.h>.
20220 (llrintf): Define using libm_alias_float.
20221 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20222 <libm-alias-float.h>.
20223 (llroundf): Define using libm_alias_float.
20224 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
20225 <libm-alias-float.h>.
20226 (ceilf): Define using libm_alias_float.
20227 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
20228 <libm-alias-float.h>.
20229 (floorf): Define using libm_alias_float.
20230 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20231 <libm-alias-float.h>.
20232 (llroundf): Define using libm_alias_float.
20233 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20234 <libm-alias-float.h>.
20235 (lroundf): Define using libm_alias_float.
20236 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
20237 <libm-alias-float.h>.
20238 (roundf): Define using libm_alias_float.
20239 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
20240 <libm-alias-float.h>.
20241 (truncf): Define using libm_alias_float.
20242 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20243 <libm-alias-float.h>.
20244 (copysignf): Define using libm_alias_float.
20245 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
20246 <libm-alias-float.h>.
20247 (llrintf): Define using libm_alias_float.
20248 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20249 <libm-alias-float.h>.
20250 (llroundf): Define using libm_alias_float.
20251 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20252 <libm-alias-float.h>.
20253 (lrintf): Define using libm_alias_float.
20254 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20255 <libm-alias-float.h>.
20256 (lroundf): Define using libm_alias_float.
20257 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
20258 <libm-alias-float.h>.
20259 (ceilf): Define using libm_alias_float.
20260 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
20261 <libm-alias-float.h>.
20262 (copysignf): Define using libm_alias_float.
20263 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
20264 <libm-alias-float.h>.
20265 (cosf): Define using libm_alias_float.
20266 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
20267 <libm-alias-float.h>.
20268 (floorf): Define using libm_alias_float.
20269 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
20270 <libm-alias-float.h>.
20271 (llrintf): Define using libm_alias_float.
20272 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
20273 <libm-alias-float.h>.
20274 (llroundf): Define using libm_alias_float.
20275 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
20276 <libm-alias-float.h>.
20277 (logbf): Define using libm_alias_float.
20278 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
20279 <libm-alias-float.h>.
20280 (modff): Define using libm_alias_float.
20281 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
20282 <libm-alias-float.h>.
20283 (roundf): Define using libm_alias_float.
20284 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
20285 <libm-alias-float.h>.
20286 (sinf): Define using libm_alias_float.
20287 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
20288 <libm-alias-float.h>.
20289 (truncf): Define using libm_alias_float.
20290 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
20291 <libm-alias-float.h>.
20292 (ceilf): Define using libm_alias_float.
20293 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20294 <libm-alias-float.h>.
20295 (copysignf): Define using libm_alias_float.
20296 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
20297 <libm-alias-float.h>.
20298 (floorf): Define using libm_alias_float.
20299 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20300 <libm-alias-float.h>.
20301 (llrintf): Define using libm_alias_float.
20302 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
20303 <libm-alias-float.h>.
20304 (llroundf): Define using libm_alias_float.
20305 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
20306 <libm-alias-float.h>.
20307 (nearbyintf): Define using libm_alias_float.
20308 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
20309 <libm-alias-float.h>.
20310 (rintf): Define using libm_alias_float.
20311 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
20312 <libm-alias-float.h>.
20313 (roundf): Define using libm_alias_float.
20314 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
20315 <libm-alias-float.h>.
20316 (truncf): Define using libm_alias_float.
20317 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
20318 <libm-alias-float.h>.
20319 (ceilf): Define using libm_alias_float.
20320 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
20321 <libm-alias-float.h>.
20322 (floorf): Define using libm_alias_float.
20323 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20324 <libm-alias-float.h>.
20325 (llroundf): Define using libm_alias_float.
20326 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
20327 <libm-alias-float.h>.
20328 (roundf): Define using libm_alias_float.
20329 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
20330 <libm-alias-float.h>.
20331 (truncf): Define using libm_alias_float.
20332 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20333 <libm-alias-float.h>.
20334 (copysignf): Define using libm_alias_float.
20335 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20336 <libm-alias-float.h>.
20337 (llrintf): Define using libm_alias_float.
20338 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20339 <libm-alias-float.h>.
20340 (llroundf): Define using libm_alias_float.
20341 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
20342 <libm-alias-float.h>.
20343 (cosf): Define using libm_alias_float.
20344 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20345 <libm-alias-float.h>.
20346 (llrintf): Define using libm_alias_float.
20347 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20348 <libm-alias-float.h>.
20349 (llroundf): Define using libm_alias_float.
20350 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
20351 <libm-alias-float.h>.
20352 (sinf): Define using libm_alias_float.
20353
20354 2017-12-04 Florian Weimer <fweimer@redhat.com>
20355
20356 * support/check.h (TEST_COMPARE): Define.
20357 (support_test_compare_failure): Declare.
20358 * support/Makefile (libsupport-routines): Add
20359 support_test_compare_failure.
20360 (tests): Add tst-test_compare.
20361 * support /support_test_compare_failure.c: New file.
20362 * support/tst-test_compare.c: Likewise.
20363
20364 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20365
20366 [BZ #22527]
20367 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
20368 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
20369 available, this rewrite of the collation rules does reproduce
20370 the test file in the same order.
20371
20372 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20373
20374 [BZ #10580]
20375 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
20376 digraphs in the month and day names. Using single code points for
20377 digraphs is deprecated. While there are dedicated Unicode
20378 codepoints, for the digraphs, these are included for backwards
20379 compatibility and modern texts use a sequence of Basic Latin
20380 characters. See: https://www.unicode.org/faq/ligature_digraph.html
20381 This makes the month and day names agree exactly with CLDR now,
20382 CLDR does not use the single code points for the digraphs either.
20383
20384 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
20385
20386 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
20387
20388 2017-12-04 Joseph Myers <joseph@codesourcery.com>
20389
20390 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
20391 of floor.
20392
20393 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
20394
20395 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
20396 Define only for libc.so.
20397
20398 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
20399
20400 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
20401 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
20402 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
20403 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
20404 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
20405
20406 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20407
20408 [BZ #5997]
20409 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
20410
20411 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
20412
20413 [BZ libc/19170]
20414 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
20415 PREINIT_FUNCTION_WEAK is nonzero.
20416 (gmon_initializer): New function. Put procedure label for it in
20417 .init_array section.
20418 (_init): Don't call PREINIT_FUNCTION.
20419 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
20420 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
20421 value when map argument is null.
20422
20423 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
20424 depi instruction from PIC pc-relative sequence.
20425 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
20426 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
20427 (elf_machine_load_address): Likewise.
20428 (elf_machine_runtime_setup): Likewise.
20429
20430 2017-12-02 Joseph Myers <joseph@codesourcery.com>
20431
20432 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
20433 <libm-alias-double.h>.
20434 (logb): Define using libm_alias_double.
20435 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20436 <libm-alias-double.h>.
20437 (copysign): Define using libm_alias_double.
20438 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
20439 <libm-alias-double.h>.
20440 (llrint): Define using libm_alias_double.
20441 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
20442 <libm-alias-double.h>.
20443 (llround): Define using libm_alias_double.
20444 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20445 <libm-alias-double.h>.
20446 (lrint): Define using libm_alias_double.
20447 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20448 <libm-alias-double.h>.
20449 (lround): Define using libm_alias_double.
20450 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
20451 Include <libm-alias-double.h>.
20452 (copysign): Define using libm_alias_double.
20453 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
20454 Include <libm-alias-double.h>.
20455 (llrint): Define using libm_alias_double.
20456 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
20457 Include <libm-alias-double.h>.
20458 (llround): Define using libm_alias_double.
20459 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
20460 <libm-alias-double.h>.
20461 (logb): Define using libm_alias_double.
20462 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
20463 Include <libm-alias-double.h>.
20464 (lrint): Define using libm_alias_double.
20465 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
20466 Include <libm-alias-double.h>.
20467 (lround): Define using libm_alias_double.
20468 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
20469 <libm-alias-double.h>.
20470 (llrint): Define using libm_alias_double.
20471 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20472 <libm-alias-double.h>.
20473 (llround): Define using libm_alias_double.
20474 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20475 <libm-alias-double.h>.
20476 (llround): Define using libm_alias_double.
20477 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20478 <libm-alias-double.h>.
20479 (lround): Define using libm_alias_double.
20480 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20481 <libm-alias-double.h>.
20482 (copysign): Define using libm_alias_double.
20483 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
20484 <libm-alias-double.h>.
20485 (llrint): Define using libm_alias_double.
20486 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20487 <libm-alias-double.h>.
20488 (llround): Define using libm_alias_double.
20489 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20490 <libm-alias-double.h>.
20491 (lrint): Define using libm_alias_double.
20492 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20493 <libm-alias-double.h>.
20494 (lround): Define using libm_alias_double.
20495 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
20496 <libm-alias-double.h>.
20497 (copysign): Define using libm_alias_double.
20498 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
20499 <libm-alias-double.h>.
20500 (llrint): Define using libm_alias_double.
20501 (lrint): Likewise.
20502 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
20503 <libm-alias-double.h>.
20504 (llround): Define using libm_alias_double.
20505 (lround): Likewise.
20506 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
20507 <libm-alias-double.h>.
20508 (logb): Define using libm_alias_double.
20509 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20510 <libm-alias-double.h>.
20511 (copysign): Define using libm_alias_double.
20512 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20513 <libm-alias-double.h>.
20514 (llrint): Define using libm_alias_double.
20515 (lrint): Likewise.
20516 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
20517 <libm-alias-double.h>.
20518 (llround): Define using libm_alias_double.
20519 (lround): Likewise.
20520 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20521 <libm-alias-double.h>.
20522 (llround): Define using libm_alias_double.
20523 (lround): Likewise.
20524 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20525 <libm-alias-double.h>.
20526 (copysign): Define using libm_alias_double.
20527 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20528 <libm-alias-double.h>.
20529 (llrint): Define using libm_alias_double.
20530 (lrint): Likewise.
20531 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20532 <libm-alias-double.h>.
20533 (llround): Define using libm_alias_double.
20534 (lround): Likewise.
20535 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20536 <libm-alias-double.h>.
20537 (llrint): Define using libm_alias_double.
20538 (lrint): Likewise.
20539 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20540 <libm-alias-double.h>.
20541 (llround): Define using libm_alias_double.
20542 (lround): Likewise.
20543
20544 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20545
20546 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
20547 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
20548 compat symbol based on llround.
20549
20550 * sysdeps/powerpc/power7/fpu/s_logb.c
20551 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
20552 symbol based on __logb, not on logb.
20553 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
20554 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20555 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
20556 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20557
20558 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
20559 (rint): Define using libm_alias_double.
20560 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
20561 <libm-alias-double.h>.
20562 (modf): Define using libm_alias_double.
20563 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
20564 <libm-alias-double.h>.
20565 (ceil): Define using libm_alias_double.
20566 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
20567 <libm-alias-double.h>.
20568 (floor): Define using libm_alias_double.
20569 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
20570 <libm-alias-double.h>.
20571 (nearbyint): Define using libm_alias_double.
20572 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
20573 <libm-alias-double.h>.
20574 (rint): Define using libm_alias_double.
20575 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
20576 <libm-alias-double.h>.
20577 (round): Define using libm_alias_double.
20578 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
20579 <libm-alias-double.h>.
20580 (trunc): Define using libm_alias_double.
20581 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
20582 <libm-alias-double.h>.
20583 (ceil): Define using libm_alias_double.
20584 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
20585 Include <libm-alias-double.h>.
20586 (floor): Define using libm_alias_double.
20587 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
20588 <libm-alias-double.h>.
20589 (modf): Define using libm_alias_double.
20590 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
20591 Include <libm-alias-double.h>.
20592 (round): Define using libm_alias_double.
20593 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
20594 Include <libm-alias-double.h>.
20595 (trunc): Define using libm_alias_double.
20596 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
20597 <libm-alias-double.h>.
20598 (ceil): Define using libm_alias_double.
20599 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
20600 <libm-alias-double.h>.
20601 (floor): Define using libm_alias_double.
20602 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
20603 <libm-alias-double.h>.
20604 (round): Define using libm_alias_double.
20605 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
20606 <libm-alias-double.h>.
20607 (trunc): Define using libm_alias_double.
20608 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
20609 <libm-alias-double.h>.
20610 (ceil): Define using libm_alias_double.
20611 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
20612 <libm-alias-double.h>.
20613 (floor): Define using libm_alias_double.
20614 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
20615 <libm-alias-double.h>.
20616 (modf): Define using libm_alias_double.
20617 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
20618 <libm-alias-double.h>.
20619 (round): Define using libm_alias_double.
20620 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
20621 <libm-alias-double.h>.
20622 (trunc): Define using libm_alias_double.
20623 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
20624 <libm-alias-double.h>.
20625 (ceil): Define using libm_alias_double.
20626 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
20627 <libm-alias-double.h>.
20628 (floor): Define using libm_alias_double.
20629 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
20630 <libm-alias-double.h>.
20631 (nearbyint): Define using libm_alias_double.
20632 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
20633 <libm-alias-double.h>.
20634 (rint): Define using libm_alias_double.
20635 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
20636 <libm-alias-double.h>.
20637 (round): Define using libm_alias_double.
20638 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
20639 <libm-alias-double.h>.
20640 (trunc): Define using libm_alias_double.
20641 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
20642 <libm-alias-double.h>.
20643 (ceil): Define using libm_alias_double.
20644 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
20645 <libm-alias-double.h>.
20646 (floor): Define using libm_alias_double.
20647 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
20648 <libm-alias-double.h>.
20649 (round): Define using libm_alias_double.
20650 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
20651 <libm-alias-double.h>.
20652 (trunc): Define using libm_alias_double.
20653
20654 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
20655 (fabs): Define using libm_alias_double.
20656 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
20657 (fma): Define using libm_alias_double.
20658 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
20659 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
20660 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
20661 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
20662
20663 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20664
20665 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
20666
20667 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
20668 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
20669 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20670
20671 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
20672 due redirect macro.
20673
20674 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
20675
20676 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
20677
20678 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20679
20680 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
20681 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
20682 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
20683 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
20684
20685 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20686 (libm-sysdep_routines): Add s_nearbyintf-generic and
20687 s_nearbyint-generic.
20688 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
20689 New file.
20690 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
20691 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
20692 Likewise.
20693 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
20694 Likewise.
20695 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
20696 file.
20697 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20698 Likewise.
20699
20700 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20701 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
20702 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
20703 file.
20704 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
20705 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
20706 Likewise.
20707 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
20708 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
20709 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
20710
20711 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20712 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
20713 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
20714 file.
20715 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
20716 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
20717 Likewise.
20718 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
20719 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
20720 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
20721
20722 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20723 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
20724 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
20725 file.
20726 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
20727 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
20728 Likewise.
20729 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
20730 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
20731 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
20732
20733 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20734 (sysdep_calls): New rule.
20735 (sysdep_routines): Use sysdep_calls as base.
20736 (libm-sysdep_routines): Add generic rule for symbols shared with
20737 libc. Add s_copysign-generic and s_copysign-generic objects.
20738 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
20739 New file.
20740 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
20741 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
20742 Likewise.
20743 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
20744 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
20745 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
20746
20747 2017-12-01 Mike FABIAN <mfabian@redhat.com>
20748
20749 [BZ #22519]
20750 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
20751 the list of locales to be built for testing.
20752 * localedata/is_IS.UTF-8.in: New file.
20753 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
20754 on iso14651_t1.
20755
20756 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20757
20758 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
20759 <libm-alias-float.h>.
20760 (fabsf): Define using libm_alias_float.
20761
20762 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20763
20764 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
20765
20766 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20767
20768 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
20769 <libm-alias-float.h>.
20770 (fabsf): Define using libm_alias_float.
20771 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
20772 <libm-alias-float.h>.
20773 (lrintf): Define using libm_alias_float.
20774 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
20775 <libm-alias-float.h>.
20776 (rintf): Define using libm_alias_float.
20777
20778 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
20779 <libm-alias-double.h>.
20780 (fabs): Define using libm_alias_double.
20781 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
20782 <libm-alias-double.h>.
20783 (lrint): Define using libm_alias_double.
20784 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
20785 <libm-alias-double.h>.
20786 (rint): Define using libm_alias_double.
20787
20788 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
20789 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
20790 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
20791 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
20792 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
20793 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
20794 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
20795 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
20796 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
20797 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
20798 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
20799 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
20800 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
20801 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
20802 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
20803 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
20804 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
20805 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
20806 s_atan_template.c.
20807 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
20808 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
20809 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
20810 s_ceil_template.c.
20811 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
20812 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
20813 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
20814 s_cos_template.c.
20815 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
20816 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
20817 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
20818 s_expm1_template.c.
20819 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
20820 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
20821 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
20822 s_fabs_template.c.
20823 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
20824 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
20825 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
20826 s_floor_template.c.
20827 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
20828 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
20829 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
20830 s_frexp_template.c.
20831 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
20832 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
20833 s_lrint_template.c.
20834 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
20835 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
20836 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
20837 s_modf_template.c.
20838 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
20839 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
20840 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
20841 s_nearbyint_template.c.
20842 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
20843 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
20844 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
20845 s_remquo_template.c.
20846 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
20847 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
20848 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
20849 s_rint_template.c.
20850 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
20851 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
20852 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
20853 s_sin_template.c.
20854 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
20855 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
20856 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
20857 s_sincos_template.c.
20858 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
20859 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
20860 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
20861 s_tan_template.c.
20862 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
20863 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
20864 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
20865 s_tanh_template.c.
20866 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
20867 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
20868 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
20869 s_trunc_template.c.
20870 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
20871 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
20872 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
20873 s_atan.c instead of including s_atan.c.
20874 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
20875 s_atanf.c instead of including s_atanf.c.
20876 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
20877 s_atanl.c instead of including s_atanl.c.
20878 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
20879 instead of s_atan.c.
20880 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
20881 instead of s_atanf.c.
20882 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
20883 instead of s_atanl.c.
20884
20885 * scripts/update-copyrights: Do not handle intl/plural.c
20886 specially.
20887
20888 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
20889
20890 [BZ #22432]
20891 * configure.ac (BISON): Require to be present.
20892 * configure: Regenerated.
20893 * intl/Makefile (generated): Add plural.c.
20894 [$(BISON) != no]: Make code unconditional.
20895 (plural.c): Change rule to $(objpfx)plural.c.
20896 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
20897 * intl/plural.c: Remove.
20898 * manual/install.texi (Tools for Compilation): Document bison as
20899 required.
20900 * INSTALL: Regenerated.
20901
20902 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20903
20904 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
20905 <libm-alias-double.h>.
20906 (llrint): Define using libm_alias_double.
20907 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
20908 <libm-alias-float.h>.
20909 (llrintf): Define using libm_alias_float.
20910 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
20911 <libm-alias-ldouble.h>.
20912 (llrintl): Define using libm_alias_ldouble.
20913
20914 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
20915 declare_mgen_alias instead of weak_alias.
20916 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
20917 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
20918 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
20919
20920 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20921
20922 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20923 Add add_n-generic.
20924 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
20925 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
20926 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
20927
20928 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20929 Add submul_1-generic.
20930 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
20931 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
20932 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
20933
20934 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20935 Add addmul_1-generic.
20936 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
20937 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
20938 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
20939
20940 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20941 Add sub_n-generic.
20942 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
20943 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
20944 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
20945
20946 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20947 Add mul_1-generic.
20948 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
20949 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
20950 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
20951
20952 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20953
20954 According to CLDR, collation rules for Serbian and Bosnian
20955 should be the same as for Croatian.
20956
20957 [BZ #22534]
20958 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
20959 and to the list of locales to be built for testing.
20960 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20961 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20962 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
20963 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
20964
20965 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20966
20967 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
20968 to make test case pass.
20969 * localedata/hr_HR.UTF-8.in: Add more test strings.
20970
20971 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20972
20973 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
20974
20975 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20976
20977 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
20978 the list of locales to built for testing.
20979 * localedata/hr_HR.UTF-8.in: New file.
20980
20981 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20982
20983 [BZ #10580]
20984 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20985 iso14651_t1.
20986 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20987 CLDR (except use ligatures for the digraphs, CLDR does not use
20988 the ligatures), add first_workday, some fixes in the date and time
20989 formats.
20990 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20991 for Đ and đ.
20992 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20993 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20994 Add int_p_cs_precedes and int_n_cs_precedes.
20995 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20996 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20997 LC_MONETARY now).
20998 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20999 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
21000 name_miss.
21001 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
21002 and lang_lib. Change postal_fmt.
21003
21004 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
21005
21006 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
21007 <setjmp.h>.
21008 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
21009 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
21010 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
21011 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
21012 * sysdeps/generic/setjmpP.h: New file.
21013 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
21014 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
21015 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
21016 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
21017 Add jmp_buf-ssp.sym.
21018 (tests): Add tst-saved_mask-1.
21019
21020 2017-11-30 Arjun Shankar <arjun@redhat.com>
21021
21022 [BZ #22375]
21023 CVE-2017-17426
21024 * malloc/malloc.c (__libc_malloc): Use checked_request2size
21025 instead of request2size.
21026
21027 2017-11-30 Joseph Myers <joseph@codesourcery.com>
21028
21029 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
21030 (__lllrint): Remove alias.
21031 (lllrint): Likewise.
21032 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
21033 (__lllrintf): Likewise.
21034 (lllrintf): Likewise.
21035
21036 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
21037 <libm-alias-float.h>.
21038 (copysignf): Define using libm_alias_float.
21039 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
21040 <libm-alias-float.h>.
21041 (fabsf): Define using libm_alias_float.
21042 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
21043 Include <libm-alias-float.h>.
21044 (copysignf): Define using libm_alias_float.
21045 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
21046 <libm-alias-float.h>.
21047 (fabsf): Define using libm_alias_float.
21048 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
21049 <libm-alias-float.h>.
21050 (fdimf): Define using libm_alias_float.
21051 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
21052 <libm-alias-float.h>.
21053 (fmaf): Define using libm_alias_float.
21054 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
21055 <libm-alias-float.h>.
21056 (llrintf): Define using libm_alias_float.
21057 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
21058 Include <libm-alias-float.h>.
21059 (nearbyintf): Define using libm_alias_float.
21060 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
21061 <libm-alias-float.h>.
21062 (rintf): Define using libm_alias_float.
21063 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
21064 <libm-alias-float.h>.
21065 (llrintf): Define using libm_alias_float.
21066 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
21067 <libm-alias-float.h>.
21068 (lrintf): Define using libm_alias_float.
21069 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
21070 <libm-alias-float.h>.
21071 (nearbyintf): Define using libm_alias_float.
21072 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
21073 <libm-alias-float.h>.
21074 (rintf): Define using libm_alias_float.
21075 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
21076 <libm-alias-float.h>.
21077 (ceilf): Define using libm_alias_float.
21078 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
21079 <libm-alias-float.h>.
21080 (floorf): Define using libm_alias_float.
21081 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
21082 <libm-alias-float.h>.
21083 (fmaf): Define using libm_alias_float.
21084 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
21085 <libm-alias-float.h>.
21086 (lrintf): Define using libm_alias_float.
21087 (llrintf): Likewise.
21088 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
21089 <libm-alias-float.h>.
21090 (nearbyintf): Define using libm_alias_float.
21091 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
21092 <libm-alias-float.h>.
21093 (rintf): Define using libm_alias_float.
21094 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
21095 <libm-alias-float.h>.
21096 (truncf): Define using libm_alias_float.
21097 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
21098 <libm-alias-float.h>.
21099 (copysignf): Define using libm_alias_float.
21100 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
21101 <libm-alias-float.h>.
21102 (fabsf): Define using libm_alias_float.
21103 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
21104 <libm-alias-float.h>.
21105 (lrintf): Define using libm_alias_float.
21106 (llrintf): Likewise.
21107 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
21108 <libm-alias-float.h>.
21109 (nearbyintf): Define using libm_alias_float.
21110 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
21111 <libm-alias-float.h>.
21112 (rintf): Define using libm_alias_float.
21113
21114 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21115
21116 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
21117 <libm-alias-double.h>.
21118 (copysign): Define using libm_alias_double.
21119 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
21120 <libm-alias-double.h>.
21121 (fabs): Define using libm_alias_double.
21122 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
21123 Include <libm-alias-double.h>.
21124 (copysign): Define using libm_alias_double.
21125 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
21126 <libm-alias-double.h>.
21127 (fabs): Define using libm_alias_double.
21128 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
21129 <libm-alias-double.h>.
21130 (fdim): Define using libm_alias_double.
21131 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
21132 <libm-alias-double.h>.
21133 (fma): Define using libm_alias_double.
21134 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
21135 <libm-alias-double.h>.
21136 (llrint): Define using libm_alias_double.
21137 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
21138 Include <libm-alias-double.h>.
21139 (nearbyint): Define using libm_alias_double.
21140 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
21141 <libm-alias-double.h>.
21142 (rint): Define using libm_alias_double.
21143 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21144 <libm-alias-double.h>.
21145 (fabs): Define using libm_alias_double.
21146 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
21147 <libm-alias-double.h>.
21148 (llrint): Define using libm_alias_double.
21149 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
21150 <libm-alias-double.h>.
21151 (nearbyint): Define using libm_alias_double.
21152 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
21153 <libm-alias-double.h>.
21154 (rint): Define using libm_alias_double.
21155 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
21156 <libm-alias-double.h>.
21157 (ceil): Define using libm_alias_double.
21158 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
21159 <libm-alias-double.h>.
21160 (floor): Define using libm_alias_double.
21161 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
21162 <libm-alias-double.h>.
21163 (fma): Define using libm_alias_double.
21164 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
21165 <libm-alias-double.h>.
21166 (lrint): Define using libm_alias_double.
21167 (llrint): Likewise.
21168 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
21169 <libm-alias-double.h>.
21170 (nearbyint): Define using libm_alias_double.
21171 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
21172 <libm-alias-double.h>.
21173 (rint): Define using libm_alias_double.
21174 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
21175 <libm-alias-double.h>.
21176 (trunc): Define using libm_alias_double.
21177 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
21178 <libm-alias-double.h>.
21179 (copysign): Define using libm_alias_double.
21180 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
21181 <libm-alias-double.h>.
21182 (fabs): Define using libm_alias_double.
21183 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
21184 <libm-alias-double.h>.
21185 (lrint): Define using libm_alias_double.
21186 (llrint): Likewise.
21187 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
21188 <libm-alias-double.h>.
21189 (nearbyint): Define using libm_alias_double.
21190 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
21191 <libm-alias-double.h>.
21192 (rint): Define using libm_alias_double.
21193
21194 [BZ #22229]
21195 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21196 <math_ldbl_opt.h>.
21197 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
21198
21199 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
21200 SPARC --disable-multi-arch glibc variants.
21201
21202 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
21203 <libm-alias-float.h>.
21204 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21205 if [SHARED].
21206 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
21207 <libm-alias-float.h>.
21208 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21209 if [SHARED].
21210 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
21211 <libm-alias-float.h>.
21212 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21213 if [SHARED].
21214 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
21215 <libm-alias-float.h>.
21216 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21217 if [SHARED].
21218 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
21219 <libm-alias-float.h>.
21220 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21221 if [SHARED].
21222 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
21223 <libm-alias-float.h>.
21224 (ceilf): Define using libm_alias_float.
21225 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
21226 <libm-alias-float.h>.
21227 (floorf): Define using libm_alias_float.
21228 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
21229 <libm-alias-float.h>.
21230 (fmaf): Define using libm_alias_float.
21231 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
21232 <libm-alias-float.h>.
21233 (nearbyintf): Define using libm_alias_float.
21234 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
21235 <libm-alias-float.h>.
21236 (rintf): Define using libm_alias_float.
21237 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
21238 <libm-alias-float.h>.
21239 (truncf): Define using libm_alias_float.
21240 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21241 (copysignf): Define using libm_alias_float.
21242 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
21243 (cosf): Define using libm_alias_float.
21244 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21245 (fabsf): Define using libm_alias_float.
21246 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21247 (fmaxf): Define using libm_alias_float.
21248 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
21249 (fminf): Define using libm_alias_float.
21250 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21251 (llrintf): Define using libm_alias_float.
21252 [!__ILP32__] (lrintf): Likewise.
21253 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
21254 (sincosf): Define using libm_alias_float.
21255 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
21256 (sinf): Define using libm_alias_float.
21257 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21258 (lrintf): Define using libm_alias_float.
21259
21260 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
21261 <libm-alias-double.h>.
21262 (atan): Define using libm_alias_double.
21263 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
21264 <libm-alias-double.h>.
21265 (ceil): Define using libm_alias_double.
21266 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
21267 <libm-alias-double.h>.
21268 (floor): Define using libm_alias_double.
21269 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
21270 <libm-alias-double.h>.
21271 (fma): Define using libm_alias_double.
21272 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
21273 <libm-alias-double.h>.
21274 (nearbyint): Define using libm_alias_double.
21275 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
21276 <libm-alias-double.h>.
21277 (rint): Define using libm_alias_double.
21278 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
21279 <libm-alias-double.h>.
21280 (sin): Define using libm_alias_double.
21281 (cos): Likewise.
21282 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
21283 <libm-alias-double.h>.
21284 (tan): Define using libm_alias_double.
21285 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
21286 <libm-alias-double.h>.
21287 (trunc): Define using libm_alias_double.
21288 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
21289 (copysign): Define using libm_alias_double.
21290 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
21291 (fabs): Define using libm_alias_double.
21292 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
21293 (fmax): Define using libm_alias_double.
21294 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
21295 (fmin): Define using libm_alias_double.
21296 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
21297 (llrint): Define using libm_alias_double.
21298 [!__ILP32__] (lrint): Likewise.
21299 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
21300 (lrint): Define using libm_alias_double.
21301
21302 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21303
21304 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21305 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
21306 objects.
21307 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
21308 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
21309 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
21310 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
21311 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
21312 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
21313
21314 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21315 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
21316 objects.
21317 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
21318 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
21319 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
21320 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
21321 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
21322 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
21323
21324 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21325 (libm-sysdep_routines): Add s_nearbyint-generic and
21326 s_nearbyintf-generic objects.
21327 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
21328 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
21329 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
21330 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
21331 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
21332 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
21333
21334 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21335 Add s_finitef-generic and s_finite-generic objects.
21336 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
21337 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
21338 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
21339 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
21340 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
21341 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
21342
21343 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21344 Add s_isinff-generic and s_isinf-generic objects.
21345 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
21346 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
21347 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
21348 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
21349 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
21350 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
21351
21352 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21353 Add s_isnanf-generic and s_isnan-generic objects.
21354 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
21355 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
21356 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
21357 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
21358 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
21359 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
21360
21361 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
21362 macro.
21363 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
21364 rule.
21365 (sysdep_routines): Use sysdep_calls as base.
21366 (libm-sysdep_routines): Add generic rule for symbols shared with
21367 libc. Add s_signbit-generic and s_signbitf-generic objects.
21368 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
21369 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
21370 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
21371 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
21372 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
21373 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
21374
21375 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21376
21377 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
21378 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
21379 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
21380 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
21381 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
21382 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
21383 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
21384 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
21385 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
21386 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
21387 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
21388 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
21389 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
21390 libm_alias_float_r.
21391 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
21392 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
21393 (logf): Likewise.
21394 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
21395 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
21396 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
21397 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
21398 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
21399 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
21400 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
21401 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
21402 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
21403 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
21404 libm_alias_float.
21405 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
21406 (cosf): Likewise.
21407 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
21408 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
21409 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
21410 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
21411 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
21412 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
21413 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
21414 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
21415 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
21416 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
21417 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
21418 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
21419 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
21420 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
21421 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
21422 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
21423 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
21424 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
21425 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
21426 libm_alias_float.
21427 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
21428 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
21429 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
21430 * sysdeps/ia64/fpu/w_lgammaf_main.c
21431 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
21432 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
21433
21434 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21435 Alexandre Oliva <aoliva@redhat.com>
21436
21437 [BZ #17750]
21438 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
21439 * localedata/fr_CA.UTF-8.in: New file with test data for backward
21440 accents sorting.
21441 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
21442 sorting.
21443 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
21444 * localedata/locales/de_DE (LC_COLLATE): Likewise.
21445 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
21446 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
21447 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
21448 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
21449 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
21450 instead of “ifdef DIACRIT_BACKWARD”.
21451
21452 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21453
21454 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
21455 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
21456 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
21457 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
21458 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
21459 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
21460 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
21461 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
21462 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
21463 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
21464 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
21465 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
21466 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
21467 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
21468 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
21469 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
21470 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
21471 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
21472 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21473 ($(have-as-vis3) == yes): Remove conditional.
21474 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
21475 Likewise.
21476 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
21477 file.
21478 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
21479 file.
21480 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
21481 file.
21482 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
21483 file.
21484 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
21485 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
21486 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
21487 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
21488 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
21489 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
21490 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
21491 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
21492
21493 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21494
21495 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
21496 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
21497 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
21498 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
21499 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
21500 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
21501 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
21502 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
21503 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
21504 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
21505 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
21506 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
21507 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
21508 libm_alias_double_r.
21509 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
21510 (log): Likewise.
21511 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
21512 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
21513 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
21514 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
21515 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
21516 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
21517 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
21518 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
21519 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
21520 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
21521 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
21522 libm_alias_double.
21523 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
21524 (cos): Likewise.
21525 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
21526 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
21527 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
21528 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
21529 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
21530 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
21531 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
21532 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
21533 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
21534 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
21535 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
21536 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
21537 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
21538 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
21539 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
21540 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
21541 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
21542 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
21543 libm_alias_double.
21544 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
21545 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
21546 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
21547 * sysdeps/ia64/fpu/w_lgamma_main.c
21548 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
21549 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
21550
21551 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
21552
21553 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
21554 address of $global$ into %dp register earlier. Use pc-relative
21555 instruction sequence for PIC case.
21556
21557 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21558
21559 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
21560 (asinhf): Define using libm_alias_float.
21561 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
21562 (atanf): Define using libm_alias_float.
21563 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
21564 (cbrtf): Define using libm_alias_float.
21565 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
21566 (ceilf): Define using libm_alias_float.
21567 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21568 (copysignf): Define using libm_alias_float.
21569 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
21570 (expm1f): Define using libm_alias_float.
21571 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
21572 (fabsf): Define using libm_alias_float.
21573 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
21574 (floorf): Define using libm_alias_float.
21575 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21576 (fmaxf): Define using libm_alias_float.
21577 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
21578 (fminf): Define using libm_alias_float.
21579 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
21580 (frexpf): Define using libm_alias_float.
21581 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21582 (llrintf): Define using libm_alias_float.
21583 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
21584 (logbf): Define using libm_alias_float.
21585 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21586 (lrintf): Define using libm_alias_float.
21587 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
21588 (nearbyintf): Define using libm_alias_float.
21589 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
21590 (remquof): Define using libm_alias_float.
21591 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
21592 (rintf): Define using libm_alias_float.
21593 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
21594 (truncf): Define using libm_alias_float.
21595 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
21596 <libm-alias-float.h>.
21597 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21598 if [SHARED].
21599 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
21600 <libm-alias-float.h>.
21601 (expf): Define using libm_alias_float, or libm_alias_float_other
21602 if [SHARED].
21603 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
21604 <libm-alias-float.h>.
21605 (log2f): Define using libm_alias_float, or libm_alias_float_other
21606 if [SHARED].
21607 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
21608 <libm-alias-float.h>.
21609 (logf): Define using libm_alias_float, or libm_alias_float_other
21610 if [SHARED].
21611 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
21612 <libm-alias-float.h>.
21613 (powf): Define using libm_alias_float, or libm_alias_float_other
21614 if [SHARED].
21615 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
21616 <libm-alias-float.h>.
21617 (cosf): Define using libm_alias_float.
21618 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
21619 <libm-alias-float.h>.
21620 (sincosf): Define using libm_alias_float.
21621 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
21622 <libm-alias-float.h>.
21623 (sinf): Define using libm_alias_float.
21624 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21625 (fmaxf): Define using libm_alias_float.
21626 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
21627 (fminf): Define using libm_alias_float.
21628 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21629 <libm-alias-float.h>.
21630 (fmaf): Define using libm_alias_float.
21631
21632 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
21633 (asinh): Define using libm_alias_double.
21634 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
21635 (atan): Define using libm_alias_double.
21636 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
21637 (cbrt): Define using libm_alias_double.
21638 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
21639 (ceil): Define using libm_alias_double.
21640 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
21641 (copysign): Define using libm_alias_double.
21642 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
21643 (expm1): Define using libm_alias_double.
21644 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
21645 (fabs): Define using libm_alias_double.
21646 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
21647 (fdim): Define using libm_alias_double.
21648 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
21649 (floor): Define using libm_alias_double.
21650 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
21651 (fmax): Define using libm_alias_double.
21652 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
21653 (fmin): Define using libm_alias_double.
21654 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
21655 (frexp): Define using libm_alias_double.
21656 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
21657 (llrint): Define using libm_alias_double.
21658 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
21659 (logb): Define using libm_alias_double.
21660 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
21661 (lrint): Define using libm_alias_double.
21662 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
21663 (nearbyint): Define using libm_alias_double.
21664 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
21665 (remquo): Define using libm_alias_double.
21666 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
21667 (rint): Define using libm_alias_double.
21668 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
21669 (trunc): Define using libm_alias_double.
21670 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
21671 (fmax): Define using libm_alias_double.
21672 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
21673 (fmin): Define using libm_alias_double.
21674 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
21675 (fma): Define using libm_alias_double.
21676
21677 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
21678
21679 [BZ #22370]
21680 * elf/dl-hwcaps.c (ROUND): Removed.
21681 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
21682 and ELF_NOTE_NEXT_OFFSET.
21683 * elf/dl-load.c (ROUND): Removed.
21684 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21685 * elf/readelflib.c (ROUND): Removed.
21686 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21687 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
21688 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
21689 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
21690
21691 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21692
21693 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21694 [!__fmaf] (fmaf): Define using libm_alias_float.
21695
21696 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
21697 [!__fma] (fma): Define using libm_alias_double.
21698 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
21699
21700 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21701
21702 [BZ #22336]
21703 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
21704 and implement the collation rules for cs from CLDR on top of that.
21705 * Makefile: Add cs_CZ.UTF-8 to test-input.
21706 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
21707
21708 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
21709
21710 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
21711
21712 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21713 Icarus Sparry <icarus.w.sparry@intel.com>
21714
21715 * benchtests/Makefile:Add BENCHSET to allow subsets of
21716 benchmarks to be run.
21717 * benchtests/README: Add documentation for: Running subsets of
21718 benchmarks.
21719
21720 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21721
21722 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
21723 range of tests names.
21724
21725 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
21726 result from property and remove "max", min" and "mean" from
21727 required properties based on benchtests/bench-skeleton.c.
21728
21729 2017-11-28 Florian Weimer <fweimer@redhat.com>
21730
21731 [BZ #20826]
21732 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
21733 due to Internet requirement.
21734 * posix/Makefile (tests): Remove tst-getaddrinfo4,
21735 tst-getaddrinfo5.
21736 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
21737
21738 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21739
21740 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21741 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
21742 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21743 (sysdep_routines): Add memset-ultra1.
21744 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
21745 file.
21746 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
21747 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
21748 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
21749 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
21750 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
21751 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
21752 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
21753 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21754
21755 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
21756 file.
21757 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
21758 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
21759 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
21760 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
21761 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
21762 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
21763 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
21764 macro.
21765 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21766 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
21767 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21768 (sysdep_routines): Add memcpy-ultra1.
21769 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
21770 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
21771
21772 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21773
21774 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
21775 (cfloat_versions): Take function argument without trailing 'f'.
21776 Call libm_alias_float_other.
21777 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
21778 * sysdeps/alpha/fpu/cargf.c: Likewise.
21779 * sysdeps/alpha/fpu/cimagf.c: Likewise.
21780 * sysdeps/alpha/fpu/conjf.c: Likewise.
21781 * sysdeps/alpha/fpu/crealf.c: Likewise.
21782 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
21783 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
21784 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
21785 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
21786 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
21787 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
21788 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
21789 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
21790 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
21791 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
21792 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
21793 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
21794 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
21795 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
21796 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
21797 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
21798 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
21799 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
21800 (clog10f): Use libm_alias_float_other.
21801 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21802 (ceilf): Define using libm_alias_float.
21803 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
21804 (copysignf): Define using libm_alias_float.
21805 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21806 (fabsf): Define using libm_alias_float.
21807 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
21808 (floorf): Define using libm_alias_float.
21809 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
21810 (fmaxf): Define using libm_alias_float.
21811 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
21812 (fminf): Define using libm_alias_float.
21813 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21814 (lrintf): Define using libm_alias_float.
21815 (llrintf): Likewise.
21816 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21817 (lroundf): Define using libm_alias_float.
21818 (llroundf): Likewise.
21819 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
21820 (rintf): Define using libm_alias_float.
21821 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
21822 (truncf): Define using libm_alias_float.
21823
21824 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21825 (ceilf): Define using libm_alias_float.
21826 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
21827 (floorf): Define using libm_alias_float.
21828 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21829 (fmaf): Define using libm_alias_float.
21830 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
21831 (fmaxf): Define using libm_alias_float.
21832 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
21833 (fminf): Define using libm_alias_float.
21834 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
21835 (llrintf): Define using libm_alias_float.
21836 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
21837 (llroundf): Define using libm_alias_float.
21838 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21839 (lrintf): Define using libm_alias_float.
21840 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21841 (lroundf): Define using libm_alias_float.
21842 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
21843 <libm-alias-float.h>.
21844 (nearbyintf): Define using libm_alias_float.
21845 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
21846 (rintf): Define using libm_alias_float.
21847 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
21848 (roundf): Define using libm_alias_float.
21849 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
21850 (truncf): Define using libm_alias_float.
21851
21852 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
21853 (ceil): Define using libm_alias_double.
21854 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
21855 (copysign): Define using libm_alias_double.
21856 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
21857 (fabs): Define using libm_alias_double.
21858 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
21859 (floor): Define using libm_alias_double.
21860 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
21861 (fmax): Define using libm_alias_double.
21862 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
21863 (fmin): Define using libm_alias_double.
21864 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
21865 (lrint): Define using libm_alias_double.
21866 (llrint): Likewise.
21867 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
21868 (lround): Define using libm_alias_double.
21869 (llround): Likewise.
21870 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
21871 (rint): Define using libm_alias_double.
21872 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
21873 (trunc): Define using libm_alias_double.
21874
21875 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
21876 (libm_alias_double_r): Add semicolon after weak_alias call.
21877
21878 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21879
21880 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
21881 (ceil): Define using libm_alias_double.
21882 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
21883 (floor): Define using libm_alias_double.
21884 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
21885 (fma): Define using libm_alias_double.
21886 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
21887 (fmax): Define using libm_alias_double.
21888 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
21889 (fmin): Define using libm_alias_double.
21890 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
21891 (llrint): Define using libm_alias_double.
21892 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
21893 (llround): Define using libm_alias_double.
21894 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
21895 (lrint): Define using libm_alias_double.
21896 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
21897 (lround): Define using libm_alias_double.
21898 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
21899 (nearbyint): Define using libm_alias_double.
21900 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
21901 (rint): Define using libm_alias_double.
21902 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
21903 (round): Define using libm_alias_double.
21904 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
21905 (trunc): Define using libm_alias_double.
21906
21907 2017-11-27 Florian Weimer <fweimer@redhat.com>
21908
21909 * sysdeps/unix/sysv/linux/mlock2.c: New file.
21910 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
21911 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
21912 (tests): Add tst-mlock2.
21913 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
21914 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
21915 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
21916 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
21917 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
21918 for mlock. Document mlock2.
21919
21920 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21921
21922 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
21923 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
21924 Likewise.
21925 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
21926 Likewise.
21927 * sysdeps/x86/Makeconfig: New file.
21928 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
21929 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21930 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
21931 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21932 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21933 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21934 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
21935 Likewise.
21936 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21937 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21938 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21939 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21940 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21941 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21942 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21943 * manual/math.texi (Mathematics): Document support for _Float64x.
21944 * math/Versions (GLIBC_2.27): Add _Float64x functions.
21945 * stdlib/Versions (GLIBC_2.27): Likewise.
21946 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21947 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21948 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21949 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21950 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21951 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21952 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21953 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21954 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21955 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21956 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21957 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21958 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21959 Likewise.
21960 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21961 Likewise.
21962 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21963 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21964 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21965 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21966 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21967 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21968 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21969 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21970 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21971 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21972 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21973 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21974 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21975 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21976
21977 2017-11-27 Andreas Schwab <schwab@suse.de>
21978
21979 * elf/Makefile (dl-routines): Add dl-sort-maps.
21980 * elf/dl-sort-maps.c: New file.
21981 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21982 (_dl_sort_maps): Declare.
21983 * elf/dl-fini.c (_dl_sort_fini): Remove.
21984 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21985 * elf/dl-close.c (_dl_close_worker): Likewise.
21986 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21987 open-coding it.
21988 * elf/dl-open.c (dl_open_worker): Likewise.
21989
21990 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21991
21992 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21993 using libm_alias_float128.
21994 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21995 Likewise.
21996 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21997 Likewise.
21998 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21999 (setpayloadsigf128): Likewise.
22000 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
22001 Likewise.
22002 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
22003 Likewise.
22004
22005 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
22006 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
22007 -mfloat128 to CFLAGS.
22008 ($(foreach
22009 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
22010 Likewise.
22011 (CFLAGS-libm-test-support-float64x.c): New variable.
22012 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
22013 $(f128-loader-link) to gnulib-tests.
22014
22015 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
22016 (libm_alias_float128_other_r): If
22017 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
22018 alias.
22019 (libm_alias_float128_r): Add semicolon after weak_alias call.
22020 * sysdeps/generic/libm-alias-ldouble.h
22021 (libm_alias_ldouble_other_r_f128): New macro.
22022 (libm_alias_ldouble_other_r_f64x): Likewise.
22023 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
22024 and libm_alias_ldouble_other_r_f64x.
22025 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
22026 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
22027 (libm_alias_ldouble_other_r_f128): New macro.
22028 (libm_alias_ldouble_other_r_f64x): Likewise.
22029 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
22030 and libm_alias_ldouble_other_r_f64x.
22031
22032 * stdlib/strfroml.c: Always include <stdlib.h>.
22033 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
22034 undefine as macro and define as weak alias.
22035 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
22036 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
22037 <stdlib.h>.
22038 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
22039 Define and later undefine as macro and define as weak alias.
22040
22041 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
22042 Define and later undefine as macro. Define as weak alias if
22043 [!USE_WIDE_CHAR].
22044 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
22045 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22046 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
22047 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
22048 Define and later undefine as macro. Define as weak alias if
22049 [!USE_WIDE_CHAR].
22050 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
22051 Define and later undefine as macro. Define as weak alias if
22052 [USE_WIDE_CHAR].
22053 * sysdeps/ieee754/float128/strtof128_l.c
22054 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
22055 Define and later undefine as macro. Define as weak alias if
22056 [!USE_WIDE_CHAR].
22057 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
22058 Define and later undefine as macro. Define as weak alias if
22059 [USE_WIDE_CHAR].
22060 * sysdeps/ieee754/ldbl-128/strtold_l.c
22061 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22062 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22063 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22064 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22065 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
22066 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22067 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22068 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22069 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22070 * sysdeps/ieee754/ldbl-96/strtold_l.c
22071 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22072 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22073 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22074 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22075
22076 * math/test-float64x.h: New file.
22077 * math/Makefile (type-float64x-yes): New variable.
22078 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
22079
22080 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
22081 function-like macro.
22082 (min_of_type_): Likewise.
22083 (min_of_type_l): Likewise.
22084 (min_of_type_f128): Likewise.
22085 (min_of_type): Pass () as last argument of __MATH_TG.
22086
22087 * stdlib/tst-strtod-round-skeleton.c
22088 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
22089 headers.
22090
22091 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
22092 for combinations of long double with _Float64 and _Float64x.
22093
22094 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
22095 (__DECL_SIMD_cosf32): Likewise.
22096 (__DECL_SIMD_cosf64): Likewise.
22097 (__DECL_SIMD_cosf32x): Likewise.
22098 (__DECL_SIMD_cosf64x): Likewise.
22099 (__DECL_SIMD_cosf128x): Likewise.
22100 (__DECL_SIMD_sinf16): Likewise.
22101 (__DECL_SIMD_sinf32): Likewise.
22102 (__DECL_SIMD_sinf64): Likewise.
22103 (__DECL_SIMD_sinf32x): Likewise.
22104 (__DECL_SIMD_sinf64x): Likewise.
22105 (__DECL_SIMD_sinf128x): Likewise.
22106 (__DECL_SIMD_sincosf16): Likewise.
22107 (__DECL_SIMD_sincosf32): Likewise.
22108 (__DECL_SIMD_sincosf64): Likewise.
22109 (__DECL_SIMD_sincosf32x): Likewise.
22110 (__DECL_SIMD_sincosf64x): Likewise.
22111 (__DECL_SIMD_sincosf128x): Likewise.
22112 (__DECL_SIMD_logf16): Likewise.
22113 (__DECL_SIMD_logf32): Likewise.
22114 (__DECL_SIMD_logf64): Likewise.
22115 (__DECL_SIMD_logf32x): Likewise.
22116 (__DECL_SIMD_logf64x): Likewise.
22117 (__DECL_SIMD_logf128x): Likewise.
22118 (__DECL_SIMD_expf16): Likewise.
22119 (__DECL_SIMD_expf32): Likewise.
22120 (__DECL_SIMD_expf64): Likewise.
22121 (__DECL_SIMD_expf32x): Likewise.
22122 (__DECL_SIMD_expf64x): Likewise.
22123 (__DECL_SIMD_expf128x): Likewise.
22124 (__DECL_SIMD_powf16): Likewise.
22125 (__DECL_SIMD_powf32): Likewise.
22126 (__DECL_SIMD_powf64): Likewise.
22127 (__DECL_SIMD_powf32x): Likewise.
22128 (__DECL_SIMD_powf64x): Likewise.
22129 (__DECL_SIMD_powf128x): Likewise.
22130
22131 * stdlib/Versions (libc): Move entries for wcstof128 and
22132 wcstof128_l to ....
22133 * wcsmbs/Versions (libc): ... here.
22134 Include <float128-abi.h>.
22135
22136 2017-11-24 Florian Weimer <fweimer@redhat.com>
22137
22138 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22139 bits/mman-shared.h.
22140 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
22141 <bits/mman-shared.h>.
22142 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
22143 to ...
22144 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
22145 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
22146 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
22147 <bits/mman-shared.h>.
22148
22149 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22150
22151 [BZ #22457]
22152 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
22153 posix_memalign/free.
22154 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
22155
22156 2017-11-22 Mike FABIAN <mfabian@redhat.com>
22157
22158 [BZ #22469]
22159 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
22160 and implement the collation rules for pl from CLDR on top of that.
22161 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
22162 of locales to be built for testing.
22163 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
22164
22165 2017-11-23 Joseph Myers <joseph@codesourcery.com>
22166
22167 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
22168 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
22169 libm_alias_ldouble_other.
22170 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
22171 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
22172 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
22173 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
22174 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
22175 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
22176 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
22177 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
22178 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
22179 libm_alias_ldouble_r.
22180 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
22181 libm_alias_ldouble_other.
22182 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
22183 (log10l): Likewise.
22184 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
22185 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
22186 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
22187 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
22188 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
22189 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
22190 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
22191 (atan2l): Likewise.
22192 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
22193 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
22194 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
22195 libm_alias_ldouble.
22196 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
22197 (cosl): Likewise.
22198 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
22199 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
22200 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
22201 (expl): Likewise.
22202 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
22203 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
22204 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
22205 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
22206 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
22207 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
22208 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
22209 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
22210 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
22211 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
22212 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
22213 libm_alias_ldouble.
22214 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
22215 libm_alias_ldouble_other.
22216 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
22217 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
22218 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
22219 libm_alias_ldouble.
22220 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
22221 libm_alias_ldouble_other.
22222 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
22223 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
22224 * sysdeps/ia64/fpu/w_lgammal_main.c
22225 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
22226 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
22227
22228 2017-11-23 Florian Weimer <fweimer@redhat.com>
22229
22230 * malloc/malloc.c (tcache_thread_shutdown): Rename from
22231 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
22232 alike. Remove freeres marker.
22233 * malloc/arena.c (arena_thread_freeres): Call
22234 tcache_thread_shutdown.
22235
22236 2017-11-23 Florian Weimer <fweimer@redhat.com>
22237
22238 [BZ #22459]
22239 Export nscd hash function as __nss_hash.
22240 * include/nss.h (__nss_hash): Declare.
22241 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
22242 symbol.
22243 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
22244 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
22245 of __nscd_hash.
22246 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
22247 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
22248 * nss/Makefiles (routines): Add nss_hash.
22249 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
22250 * nss/nss_hash.c: Rename from nis/nis_hash.c.
22251 (__nss_hash): Rename from __nis_hash. Define hidden alias.
22252 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
22253
22254 2017-11-23 Florian Weimer <fweimer@redhat.com>
22255
22256 [BZ #22478]
22257 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
22258 Return error code, not -1.
22259 * signal/tst-sigwait-eintr.c: New file.
22260 * signal/Makefile (tests): Add tst-sigwait-eintr.
22261
22262 2017-11-23 Florian Weimer <fweimer@redhat.com>
22263
22264 Linux: Add memfd_create system call wrapper
22265 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
22266 tst-memfd_create.
22267 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
22268 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
22269 [__USE_GNU] (memfd_create): Declare.
22270 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
22271 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
22272 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
22273 * sysdeps/unix/sysv/linux/**.abilist: Update.
22274 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
22275
22276 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22277
22278 * localedata/gen-locale.sh: Fix typo in variable name.
22279
22280 * resolv/res_debug.c (p_secstodate): Condition definition on
22281 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
22282 directly as __p_secstodate, and as a compat symbol. Do not use
22283 libresolv_hidden_def.
22284 * resolv/resolv.h (p_secstodate): Remove macro and function
22285 declaration.
22286 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
22287 using p_secstodate.
22288 * include/resolv.h (__p_secstodate): Do not use
22289 libresolv_hidden_proto.
22290 * resolv/Makefile (tests): Move tst-p_secstodate to ....
22291 (tests-internal): ... here.
22292 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
22293 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
22294 and declare and use __p_secstodate and use compat_symbol_reference
22295 in that case.
22296 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
22297 implementation returning 77.
22298
22299 [BZ #22463]
22300 * resolv/res_debug.c: Include <libc-diag.h>.
22301 (p_secstodate): Assert time_t at least as wide as u_long. On
22302 overflow, use integer seconds since the epoch as output, or use
22303 "<overflow>" as output and set errno to EOVERFLOW if integer
22304 seconds since the epoch would be 14 or more characters.
22305 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
22306 for sprintf call.
22307 * resolv/tst-p_secstodate.c: New file.
22308 * resolv/Makefile (tests): Add tst-p_secstodate.
22309 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
22310
22311 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
22312 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
22313 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
22314
22315 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
22316
22317 * posix/regcomp.c (init_word_char): Add comments.
22318
22319 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22320
22321 [BZ #22447]
22322 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
22323 strlen to compute length of ut_user and set trailing NUL byte of
22324 result explicitly.
22325
22326 2017-11-21 Mike FABIAN <mfabian@redhat.com>
22327
22328 [BZ #15537]
22329 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
22330 using “copy "iso14651_t1"” and then implementing the
22331 collation rules for lv from CLDR on top of that.
22332 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
22333 of locales to be built for testing.
22334 * lv_LV.UTF-8.in: New file with test data to test the Latvian
22335 sorting.
22336
22337 2017-11-21 Joseph Myers <joseph@codesourcery.com>
22338
22339 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22340 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
22341 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
22342 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
22343 [__USE_MISC] (MADV_HWPOISON): New macro.
22344 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
22345
22346 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22347
22348 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
22349 -Wmissing-braces on GCC 4.9.
22350
22351 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22352
22353 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
22354 * sysdeps/s390/s390-32/start.S (_start): Likewise
22355 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
22356 (thread_start): Likewise.
22357 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
22358 (thread_start): Likewise.
22359 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
22360 (__makecontext_ret): Likewise.
22361 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
22362 (__makecontext_ret): Likewise.
22363
22364 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22365
22366 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
22367 __wcschrnul): Remove attribute_hidden.
22368
22369 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
22370
22371 regex: don't assume uint64_t or uint32_t
22372 This avoids -Werror=overflow errors for 32-bit systems in
22373 the 64-bit case. Problem reported by Joseph Myers in:
22374 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
22375 Also, when this code is used in Gnulib it ports to platforms
22376 that lack uint64_t and uint32_t. The C standard doesn't guarantee
22377 them, and on some 32-bit compilers there is no uint64_t.
22378 Problem reported by Gianluigi Tiesi in:
22379 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
22380 * posix/regcomp.c (init_word_char): Don't assume that the types
22381 uint64_t and uint32_t exist. Adapted from Gnulib patch
22382 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
22383 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
22384
22385 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
22386
22387 * sysdeps/aarch64/memset-reg.h: New file.
22388 * sysdeps/aarch64/memset.S: Use it.
22389 (__memset): Rename to MEMSET macro.
22390 [ZVA_MACRO]: Use zva_macro.
22391 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
22392 Add memset_generic and memset_falkor.
22393 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
22394 (__libc_ifunc_impl_list): Add memset ifuncs.
22395 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
22396 local variable zva_size.
22397 * sysdeps/aarch64/multiarch/memset.c: New file.
22398 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
22399 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
22400 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
22401 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
22402 (DCZID_DZP_MASK): New macro.
22403 (DCZID_BS_MASK): Likewise.
22404 (init_cpu_features): Read and set zva_size.
22405 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
22406 (struct cpu_features): New member zva_size.
22407
22408 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
22409 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
22410 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
22411
22412 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
22413 backwards. Fix timing computation.
22414 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
22415 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
22416 on memset by N at a time. Fix timing computation.
22417
22418 2017-11-20 Florian Weimer <fweimer@redhat.com>
22419
22420 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
22421 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
22422
22423 2017-11-19 Florian Weimer <fweimer@redhat.com>
22424
22425 manual: Document mprotect
22426 * manual/memory.texi (Memory Protection): New section.
22427 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
22428 documentation of PROT_* flags and reference the Memory Protection
22429 section instead.
22430
22431 2017-11-19 Florian Weimer <fweimer@redhat.com>
22432
22433 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
22434 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
22435 (Scatter-Gather): ... to here. Remove misleading comment.
22436
22437 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
22438
22439 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
22440 style.
22441
22442 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
22443 when /proc/<pid>/setgroups does not exist.
22444
22445 2017-11-18 Florian Weimer <fweimer@redhat.com>
22446
22447 * sysdeps/unix/sysv/linux/tst-ttyname.c
22448 (become_root_in_mount_ns): Remove.
22449 (do_in_chroot_1): Call support_enter_mount_namespace.
22450 (do_in_chroot_2): Likewise.
22451 (do_test): Call support_become_root early.
22452
22453 2017-11-18 Florian Weimer <fweimer@redhat.com>
22454
22455 * support/namespace.h (support_enter_mount_namespace): Declare.
22456 * support/support_enter_mount_namespace.c: New file.
22457 * support/Makefile (libsupport-routines): Add
22458 support_enter_mount_namespace.
22459
22460 2017-11-18 Florian Weimer <fweimer@redhat.com>
22461
22462 * support/temp_file.c (support_create_temp_directory): Use
22463 test_dir and do not rely on the presence of the XXXXXX suffix.
22464 * support/temp_file.h (support_create_temp_directory): Update
22465 comment.
22466 * support/tst-xreadlink.c (do_test): Adjust.
22467 * support/support_chroot.c (support_chroot_create): Likewise.
22468
22469 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22470
22471 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
22472 macro.
22473 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
22474 htm-no-suspend.
22475
22476 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22477
22478 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22479 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22480 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22481 (ceill): Define using libm_alias_ldouble.
22482 * sysdeps/x86_64/fpu/s_copysignl.S: Include
22483 <libm-alias-ldouble.h>.
22484 (copysignl): Define using libm_alias_ldouble.
22485 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22486 (fabsl): Define using libm_alias_ldouble.
22487 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22488 (floorl): Define using libm_alias_ldouble.
22489 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22490 (fmaxl): Define using libm_alias_ldouble.
22491 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22492 (fminl): Define using libm_alias_ldouble.
22493 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22494 (llrintl): Define using libm_alias_ldouble.
22495 (lrintl): Likewise.
22496 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
22497 <libm-alias-ldouble.h>.
22498 (nearbyintl): Define using libm_alias_ldouble.
22499 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22500 (truncl): Define using libm_alias_ldouble.
22501 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
22502 <libm-alias-ldouble.h>.
22503 (lrintl): Define using libm_alias_ldouble.
22504
22505 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22506 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22507 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
22508 (asinhl): Define using libm_alias_ldouble.
22509 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
22510 (atanl): Define using libm_alias_ldouble.
22511 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
22512 (cbrtl): Define using libm_alias_ldouble.
22513 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22514 (ceill): Define using libm_alias_ldouble.
22515 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
22516 (copysignl): Define using libm_alias_ldouble.
22517 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22518 (fabsl): Define using libm_alias_ldouble.
22519 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22520 (floorl): Define using libm_alias_ldouble.
22521 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22522 (fmaxl): Define using libm_alias_ldouble.
22523 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22524 (fminl): Define using libm_alias_ldouble.
22525 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
22526 (frexpl): Define using libm_alias_ldouble.
22527 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22528 (llrintl): Define using libm_alias_ldouble.
22529 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
22530 (logbl): Define using libm_alias_ldouble.
22531 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
22532 (lrintl): Define using libm_alias_ldouble.
22533 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
22534 (nearbyintl): Define using libm_alias_ldouble.
22535 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
22536 (nextafterl): Define using libm_alias_ldouble.
22537 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
22538 (remquol): Define using libm_alias_ldouble.
22539 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
22540 (rintl): Define using libm_alias_ldouble.
22541 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22542 (truncl): Define using libm_alias_ldouble.
22543 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22544 (fmaxl): Define using libm_alias_ldouble.
22545 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22546 (fminl): Define using libm_alias_ldouble.
22547
22548 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
22549 to C syntax instead of availability and properties of types.
22550 * bits/floatn.h [!__ASSEMBLER]: Likewise.
22551 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
22552 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
22553 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
22554 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
22555 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
22556
22557 2017-11-17 Florian Weimer <fweimer@redhat.com>
22558
22559 support_become_root: Enable file creation in namespaces.
22560 * support/support_become_root.c (setup_mapping): New function.
22561 (support_become_root): Call it.
22562
22563 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22564
22565 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
22566 macro.
22567
22568 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22569
22570 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
22571 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
22572
22573 2017-11-16 Joseph Myers <joseph@codesourcery.com>
22574
22575 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
22576
22577 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22578 version to 4.14.
22579
22580 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
22581
22582 * INSTALL: Fix botched up regeneration.
22583
22584 * NEWS: Update sourceare link to https.
22585 * configure.ac: Likewise.
22586 * crypt/md5test-giant.c: Likewise.
22587 * dlfcn/bug-atexit1.c: Likewise.
22588 * dlfcn/bug-atexit2.c: Likewise.
22589 * localedata/README: Likewise.
22590 * malloc/tst-mallocfork.c: Likewise.
22591 * manual/install.texi: Likewise.
22592 * nptl/tst-pthread-getattr.c: Likewise.
22593 * stdio-common/tst-fgets.c: Likewise.
22594 * stdio-common/tst-fwrite.c: Likewise.
22595 * sunrpc/Makefile: Likewise.
22596 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
22597 * wcsmbs/tst-mbrtowc2.c: Likewise.
22598 * configure: Regenerate.
22599 * INSTALL: Regenerate.
22600
22601 2017-11-15 Martin Sebor <msebor@redhat.com>
22602
22603 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
22604 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
22605 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
22606
22607 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22608
22609 [BZ #22145]
22610 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
22611 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
22612
22613 [BZ #22145]
22614 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
22615 Defer is_pty check until end of the function.
22616 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
22617
22618 [BZ #22145]
22619 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
22620 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
22621 (ttyname): Likewise.
22622 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
22623 (__ttyname_r): Likewise.
22624
22625 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
22626 int to bool.
22627
22628 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
22629
22630 * manual/terminal.texi (Is It a Terminal):
22631 Mention ENODEV for ttyname and ttyname_r.
22632
22633 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22634
22635 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
22636 constant and macro.
22637
22638 * sysdeps/unix/sysv/linux/bits/mman-linux.h
22639 [__USE_MISC] (MADV_WIPEONFORK): New macro.
22640 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22641 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22642 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
22643 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22644
22645 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22646
22647 * signal/sigrelse.c (sigrelse): Optimize implementation.
22648
22649 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
22650 (__sigpause): Rely on __sigsuspend to implement single thread
22651 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
22652
22653 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22654
22655 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22656 kernel version to 4.14.
22657
22658 2017-11-15 Steve Ellcey <sellcey@cavium.com>
22659
22660 [BZ #22442]
22661 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
22662 Check if ifname is too long.
22663
22664 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22665
22666 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
22667
22668 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22669
22670 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
22671 was accidentally lost.
22672
22673 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22674
22675 * localedata/locales/az_IR: Add standard copyright header.
22676
22677 2017-11-15 Florian Weimer <fweimer@redhat.com>
22678
22679 [BZ #22439]
22680 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
22681 not just the top one. Output a new "subheaps" statistic.
22682
22683 2017-11-15 Florian Weimer <fweimer@redhat.com>
22684
22685 [BZ #22408]
22686 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
22687 under the per-arena lock.
22688 * malloc/Makefile (tests): Add tst-malloc_info.
22689 (tst-malloc_info): Link with libpthread.
22690 * malloc/tst-malloc_info.c: New file.
22691
22692 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22693
22694 [BZ #21660]
22695 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
22696 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
22697 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
22698 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
22699 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
22700 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
22701 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
22702 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
22703 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
22704 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
22705 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
22706 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
22707 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
22708 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
22709 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
22710 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
22711 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
22712 (__floating_type): Likewise.
22713 (__real_integer_type): Likewise.
22714 (__complex_integer_type): Likewise.
22715 (__expr_is_real): Likewise.
22716 (__tgmath_real_type_sub): Likewise.
22717 (__tgmath_real_type): Likewise.
22718 (__tgmath_complex_type_sub): Likewise.
22719 (__tgmath_complex_type): Likewise.
22720 (__TGMATH_F128): Likewise.
22721 (__TGMATH_CF128): Likewise.
22722 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
22723 new macros.
22724 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
22725 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
22726 Likewise.
22727 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
22728 Likewise.
22729 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
22730 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
22731 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
22732 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
22733 Likewise.
22734 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
22735 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
22736 Likewise.
22737 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
22738 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
22739 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
22740 Likewise.
22741 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
22742 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
22743 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
22744 (cimag): Likewise.
22745 (creal): Likewise.
22746
22747 2017-11-14 Joseph Myers <joseph@codesourcery.com>
22748
22749 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
22750 for stpncpy calls for GCC 8.
22751 (test_strncat): Disable -Wstringop-truncation warning for strncat
22752 calls for GCC 8. Disable -Wstringop-overflow= warning for one
22753 strncat call for GCC 7.
22754 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
22755 calls for GCC 8.
22756 (test_memcmp): Use memcpy instead of strncpy for calls not copying
22757 trailing NUL.
22758
22759 * string/bug-strncat1.c: Include <libc-diag.h>.
22760 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
22761
22762 2017-11-13 Claude Paroz <claude@2xlibre.net>
22763
22764 [BZ #22387]
22765 * localedata/locales/aa_DJ: Improved readibility by replacing
22766 <Uxxxx> sequences in the ASCII printable range by their ASCII
22767 character equivalents.
22768 * localedata/locales/aa_ER: Likewise.
22769 * localedata/locales/aa_ER@saaho: Likewise.
22770 * localedata/locales/aa_ET: Likewise.
22771 * localedata/locales/af_ZA: Likewise.
22772 * localedata/locales/agr_PE: Likewise.
22773 * localedata/locales/ak_GH: Likewise.
22774 * localedata/locales/am_ET: Likewise.
22775 * localedata/locales/anp_IN: Likewise.
22776 * localedata/locales/ar_AE: Likewise.
22777 * localedata/locales/ar_BH: Likewise.
22778 * localedata/locales/ar_DZ: Likewise.
22779 * localedata/locales/ar_EG: Likewise.
22780 * localedata/locales/ar_IN: Likewise.
22781 * localedata/locales/ar_IQ: Likewise.
22782 * localedata/locales/ar_JO: Likewise.
22783 * localedata/locales/ar_KW: Likewise.
22784 * localedata/locales/ar_LB: Likewise.
22785 * localedata/locales/ar_LY: Likewise.
22786 * localedata/locales/ar_MA: Likewise.
22787 * localedata/locales/ar_OM: Likewise.
22788 * localedata/locales/ar_QA: Likewise.
22789 * localedata/locales/ar_SA: Likewise.
22790 * localedata/locales/ar_SD: Likewise.
22791 * localedata/locales/ar_SS: Likewise.
22792 * localedata/locales/ar_SY: Likewise.
22793 * localedata/locales/ar_TN: Likewise.
22794 * localedata/locales/ar_YE: Likewise.
22795 * localedata/locales/as_IN: Likewise.
22796 * localedata/locales/ast_ES: Likewise.
22797 * localedata/locales/ayc_PE: Likewise.
22798 * localedata/locales/az_AZ: Likewise.
22799 * localedata/locales/az_IR: Likewise.
22800 * localedata/locales/be_BY: Likewise.
22801 * localedata/locales/be_BY@latin: Likewise.
22802 * localedata/locales/bem_ZM: Likewise.
22803 * localedata/locales/ber_DZ: Likewise.
22804 * localedata/locales/ber_MA: Likewise.
22805 * localedata/locales/bg_BG: Likewise.
22806 * localedata/locales/bhb_IN: Likewise.
22807 * localedata/locales/bho_IN: Likewise.
22808 * localedata/locales/bi_VU: Likewise.
22809 * localedata/locales/bn_BD: Likewise.
22810 * localedata/locales/bn_IN: Likewise.
22811 * localedata/locales/bo_CN: Likewise.
22812 * localedata/locales/bo_IN: Likewise.
22813 * localedata/locales/br_FR: Likewise.
22814 * localedata/locales/brx_IN: Likewise.
22815 * localedata/locales/bs_BA: Likewise.
22816 * localedata/locales/byn_ER: Likewise.
22817 * localedata/locales/ca_AD: Likewise.
22818 * localedata/locales/ca_ES: Likewise.
22819 * localedata/locales/ca_FR: Likewise.
22820 * localedata/locales/ca_IT: Likewise.
22821 * localedata/locales/ce_RU: Likewise.
22822 * localedata/locales/chr_US: Likewise.
22823 * localedata/locales/cmn_TW: Likewise.
22824 * localedata/locales/crh_UA: Likewise.
22825 * localedata/locales/cs_CZ: Likewise.
22826 * localedata/locales/csb_PL: Likewise.
22827 * localedata/locales/cv_RU: Likewise.
22828 * localedata/locales/cy_GB: Likewise.
22829 * localedata/locales/da_DK: Likewise.
22830 * localedata/locales/de_AT: Likewise.
22831 * localedata/locales/de_BE: Likewise.
22832 * localedata/locales/de_CH: Likewise.
22833 * localedata/locales/de_DE: Likewise.
22834 * localedata/locales/de_IT: Likewise.
22835 * localedata/locales/de_LI: Likewise.
22836 * localedata/locales/de_LU: Likewise.
22837 * localedata/locales/doi_IN: Likewise.
22838 * localedata/locales/dv_MV: Likewise.
22839 * localedata/locales/dz_BT: Likewise.
22840 * localedata/locales/el_CY: Likewise.
22841 * localedata/locales/el_GR: Likewise.
22842 * localedata/locales/en_AG: Likewise.
22843 * localedata/locales/en_AU: Likewise.
22844 * localedata/locales/en_BW: Likewise.
22845 * localedata/locales/en_CA: Likewise.
22846 * localedata/locales/en_DK: Likewise.
22847 * localedata/locales/en_GB: Likewise.
22848 * localedata/locales/en_HK: Likewise.
22849 * localedata/locales/en_IE: Likewise.
22850 * localedata/locales/en_IL: Likewise.
22851 * localedata/locales/en_IN: Likewise.
22852 * localedata/locales/en_NG: Likewise.
22853 * localedata/locales/en_NZ: Likewise.
22854 * localedata/locales/en_PH: Likewise.
22855 * localedata/locales/en_SG: Likewise.
22856 * localedata/locales/en_US: Likewise.
22857 * localedata/locales/en_ZA: Likewise.
22858 * localedata/locales/en_ZM: Likewise.
22859 * localedata/locales/en_ZW: Likewise.
22860 * localedata/locales/eo: Likewise.
22861 * localedata/locales/es_AR: Likewise.
22862 * localedata/locales/es_BO: Likewise.
22863 * localedata/locales/es_CL: Likewise.
22864 * localedata/locales/es_CO: Likewise.
22865 * localedata/locales/es_CR: Likewise.
22866 * localedata/locales/es_CU: Likewise.
22867 * localedata/locales/es_DO: Likewise.
22868 * localedata/locales/es_EC: Likewise.
22869 * localedata/locales/es_ES: Likewise.
22870 * localedata/locales/es_GT: Likewise.
22871 * localedata/locales/es_HN: Likewise.
22872 * localedata/locales/es_MX: Likewise.
22873 * localedata/locales/es_NI: Likewise.
22874 * localedata/locales/es_PA: Likewise.
22875 * localedata/locales/es_PE: Likewise.
22876 * localedata/locales/es_PR: Likewise.
22877 * localedata/locales/es_PY: Likewise.
22878 * localedata/locales/es_SV: Likewise.
22879 * localedata/locales/es_US: Likewise.
22880 * localedata/locales/es_UY: Likewise.
22881 * localedata/locales/es_VE: Likewise.
22882 * localedata/locales/et_EE: Likewise.
22883 * localedata/locales/eu_ES: Likewise.
22884 * localedata/locales/eu_ES@euro: Likewise.
22885 * localedata/locales/fa_IR: Likewise.
22886 * localedata/locales/ff_SN: Likewise.
22887 * localedata/locales/fi_FI: Likewise.
22888 * localedata/locales/fil_PH: Likewise.
22889 * localedata/locales/fo_FO: Likewise.
22890 * localedata/locales/fr_BE: Likewise.
22891 * localedata/locales/fr_CA: Likewise.
22892 * localedata/locales/fr_CH: Likewise.
22893 * localedata/locales/fr_FR: Likewise.
22894 * localedata/locales/fr_LU: Likewise.
22895 * localedata/locales/fur_IT: Likewise.
22896 * localedata/locales/fy_DE: Likewise.
22897 * localedata/locales/fy_NL: Likewise.
22898 * localedata/locales/ga_IE: Likewise.
22899 * localedata/locales/gd_GB: Likewise.
22900 * localedata/locales/gez_ER: Likewise.
22901 * localedata/locales/gez_ET: Likewise.
22902 * localedata/locales/gl_ES: Likewise.
22903 * localedata/locales/gu_IN: Likewise.
22904 * localedata/locales/gv_GB: Likewise.
22905 * localedata/locales/ha_NG: Likewise.
22906 * localedata/locales/hak_TW: Likewise.
22907 * localedata/locales/he_IL: Likewise.
22908 * localedata/locales/hi_IN: Likewise.
22909 * localedata/locales/hif_FJ: Likewise.
22910 * localedata/locales/hne_IN: Likewise.
22911 * localedata/locales/hr_HR: Likewise.
22912 * localedata/locales/hsb_DE: Likewise.
22913 * localedata/locales/ht_HT: Likewise.
22914 * localedata/locales/hu_HU: Likewise.
22915 * localedata/locales/hy_AM: Likewise.
22916 * localedata/locales/i18n: Likewise.
22917 * localedata/locales/ia_FR: Likewise.
22918 * localedata/locales/id_ID: Likewise.
22919 * localedata/locales/ig_NG: Likewise.
22920 * localedata/locales/ik_CA: Likewise.
22921 * localedata/locales/is_IS: Likewise.
22922 * localedata/locales/it_CH: Likewise.
22923 * localedata/locales/it_IT: Likewise.
22924 * localedata/locales/iu_CA: Likewise.
22925 * localedata/locales/ja_JP: Likewise.
22926 * localedata/locales/ka_GE: Likewise.
22927 * localedata/locales/kk_KZ: Likewise.
22928 * localedata/locales/kl_GL: Likewise.
22929 * localedata/locales/kn_IN: Likewise.
22930 * localedata/locales/ko_KR: Likewise.
22931 * localedata/locales/kok_IN: Likewise.
22932 * localedata/locales/ks_IN: Likewise.
22933 * localedata/locales/ks_IN@devanagari: Likewise.
22934 * localedata/locales/ku_TR: Likewise.
22935 * localedata/locales/kw_GB: Likewise.
22936 * localedata/locales/ky_KG: Likewise.
22937 * localedata/locales/lb_LU: Likewise.
22938 * localedata/locales/lg_UG: Likewise.
22939 * localedata/locales/li_BE: Likewise.
22940 * localedata/locales/li_NL: Likewise.
22941 * localedata/locales/lij_IT: Likewise.
22942 * localedata/locales/ln_CD: Likewise.
22943 * localedata/locales/lo_LA: Likewise.
22944 * localedata/locales/lt_LT: Likewise.
22945 * localedata/locales/lv_LV: Likewise.
22946 * localedata/locales/lzh_TW: Likewise.
22947 * localedata/locales/mag_IN: Likewise.
22948 * localedata/locales/mai_IN: Likewise.
22949 * localedata/locales/mg_MG: Likewise.
22950 * localedata/locales/mhr_RU: Likewise.
22951 * localedata/locales/mi_NZ: Likewise.
22952 * localedata/locales/mk_MK: Likewise.
22953 * localedata/locales/ml_IN: Likewise.
22954 * localedata/locales/mn_MN: Likewise.
22955 * localedata/locales/mni_IN: Likewise.
22956 * localedata/locales/mr_IN: Likewise.
22957 * localedata/locales/ms_MY: Likewise.
22958 * localedata/locales/mt_MT: Likewise.
22959 * localedata/locales/my_MM: Likewise.
22960 * localedata/locales/nan_TW: Likewise.
22961 * localedata/locales/nan_TW@latin: Likewise.
22962 * localedata/locales/nb_NO: Likewise.
22963 * localedata/locales/nds_DE: Likewise.
22964 * localedata/locales/nds_NL: Likewise.
22965 * localedata/locales/ne_NP: Likewise.
22966 * localedata/locales/nhn_MX: Likewise.
22967 * localedata/locales/niu_NU: Likewise.
22968 * localedata/locales/niu_NZ: Likewise.
22969 * localedata/locales/nl_AW: Likewise.
22970 * localedata/locales/nl_BE: Likewise.
22971 * localedata/locales/nl_NL: Likewise.
22972 * localedata/locales/nn_NO: Likewise.
22973 * localedata/locales/nr_ZA: Likewise.
22974 * localedata/locales/nso_ZA: Likewise.
22975 * localedata/locales/oc_FR: Likewise.
22976 * localedata/locales/om_ET: Likewise.
22977 * localedata/locales/om_KE: Likewise.
22978 * localedata/locales/or_IN: Likewise.
22979 * localedata/locales/os_RU: Likewise.
22980 * localedata/locales/pa_IN: Likewise.
22981 * localedata/locales/pa_PK: Likewise.
22982 * localedata/locales/pap_AW: Likewise.
22983 * localedata/locales/pap_CW: Likewise.
22984 * localedata/locales/pl_PL: Likewise.
22985 * localedata/locales/ps_AF: Likewise.
22986 * localedata/locales/pt_BR: Likewise.
22987 * localedata/locales/pt_PT: Likewise.
22988 * localedata/locales/quz_PE: Likewise.
22989 * localedata/locales/raj_IN: Likewise.
22990 * localedata/locales/ro_RO: Likewise.
22991 * localedata/locales/ru_RU: Likewise.
22992 * localedata/locales/ru_UA: Likewise.
22993 * localedata/locales/rw_RW: Likewise.
22994 * localedata/locales/sa_IN: Likewise.
22995 * localedata/locales/sat_IN: Likewise.
22996 * localedata/locales/sc_IT: Likewise.
22997 * localedata/locales/sd_IN: Likewise.
22998 * localedata/locales/sd_IN@devanagari: Likewise.
22999 * localedata/locales/se_NO: Likewise.
23000 * localedata/locales/sgs_LT: Likewise.
23001 * localedata/locales/shs_CA: Likewise.
23002 * localedata/locales/si_LK: Likewise.
23003 * localedata/locales/sid_ET: Likewise.
23004 * localedata/locales/sk_SK: Likewise.
23005 * localedata/locales/sl_SI: Likewise.
23006 * localedata/locales/sm_WS: Likewise.
23007 * localedata/locales/so_DJ: Likewise.
23008 * localedata/locales/so_ET: Likewise.
23009 * localedata/locales/so_KE: Likewise.
23010 * localedata/locales/so_SO: Likewise.
23011 * localedata/locales/sq_AL: Likewise.
23012 * localedata/locales/sq_MK: Likewise.
23013 * localedata/locales/sr_ME: Likewise.
23014 * localedata/locales/sr_RS: Likewise.
23015 * localedata/locales/sr_RS@latin: Likewise.
23016 * localedata/locales/ss_ZA: Likewise.
23017 * localedata/locales/st_ZA: Likewise.
23018 * localedata/locales/sv_FI: Likewise.
23019 * localedata/locales/sv_SE: Likewise.
23020 * localedata/locales/sw_KE: Likewise.
23021 * localedata/locales/sw_TZ: Likewise.
23022 * localedata/locales/szl_PL: Likewise.
23023 * localedata/locales/ta_IN: Likewise.
23024 * localedata/locales/ta_LK: Likewise.
23025 * localedata/locales/tcy_IN: Likewise.
23026 * localedata/locales/te_IN: Likewise.
23027 * localedata/locales/tg_TJ: Likewise.
23028 * localedata/locales/th_TH: Likewise.
23029 * localedata/locales/the_NP: Likewise.
23030 * localedata/locales/ti_ER: Likewise.
23031 * localedata/locales/ti_ET: Likewise.
23032 * localedata/locales/tig_ER: Likewise.
23033 * localedata/locales/tk_TM: Likewise.
23034 * localedata/locales/tl_PH: Likewise.
23035 * localedata/locales/tn_ZA: Likewise.
23036 * localedata/locales/to_TO: Likewise.
23037 * localedata/locales/tpi_PG: Likewise.
23038 * localedata/locales/tr_CY: Likewise.
23039 * localedata/locales/tr_TR: Likewise.
23040 * localedata/locales/ts_ZA: Likewise.
23041 * localedata/locales/tt_RU: Likewise.
23042 * localedata/locales/tt_RU@iqtelif: Likewise.
23043 * localedata/locales/ug_CN: Likewise.
23044 * localedata/locales/uk_UA: Likewise.
23045 * localedata/locales/unm_US: Likewise.
23046 * localedata/locales/ur_IN: Likewise.
23047 * localedata/locales/ur_PK: Likewise.
23048 * localedata/locales/uz_UZ: Likewise.
23049 * localedata/locales/uz_UZ@cyrillic: Likewise.
23050 * localedata/locales/ve_ZA: Likewise.
23051 * localedata/locales/vi_VN: Likewise.
23052 * localedata/locales/wa_BE: Likewise.
23053 * localedata/locales/wae_CH: Likewise.
23054 * localedata/locales/wal_ET: Likewise.
23055 * localedata/locales/wo_SN: Likewise.
23056 * localedata/locales/xh_ZA: Likewise.
23057 * localedata/locales/yi_US: Likewise.
23058 * localedata/locales/yo_NG: Likewise.
23059 * localedata/locales/yue_HK: Likewise.
23060 * localedata/locales/yuw_PG: Likewise.
23061 * localedata/locales/zh_CN: Likewise.
23062 * localedata/locales/zh_HK: Likewise.
23063 * localedata/locales/zh_SG: Likewise.
23064 * localedata/locales/zh_TW: Likewise.
23065 * localedata/locales/zu_ZA: Likewise.
23066
23067 2017-11-13 Florian Weimer <fweimer@redhat.com>
23068
23069 * support/next_to_fault.h, support/next_to_fault.c: New files.
23070 * support/Makefile (libsupport-routines): Add next_to_fault.
23071 * resolv/tst-inet_pton.c (struct next_to_fault)
23072 (next_to_fault_allocate, next_to_fault_free): Remove.
23073 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
23074
23075 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
23076
23077 * elf/dl-support.c: Include <dl-procruntime.c>.
23078 * include/link.h: Include <link_map.h>.
23079 * sysdeps/generic/dl-procruntime.c: New file.
23080 * sysdeps/generic/link_map.h: Likewise.
23081 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
23082 the writable ld.so namespace.
23083
23084 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
23085
23086 timezone: pacify GCC -Wstringop-truncation
23087 Problem reported by Martin Sebor in:
23088 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
23089 * timezone/zic.c (writezone): Use memcpy, not strncpy.
23090
23091 2017-11-12 Florian Weimer <fweimer@redhat.com>
23092
23093 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
23094 tst-xreadlink.
23095 (tests): Add tst-xreadlink.
23096 * support/support.h (xstrndup): Declare.
23097 * support/xunistd.h (xunlink, xreadlink): Declare.
23098 * support/temp_file.h (support_create_temp_directory): Declare.
23099 * support/temp_file.c (support_create_temp_directory): New function.
23100 * support/support_chroot.c (support_chroot_create): Use it.
23101 * support/xreadlink.c: New file.
23102 * support/xstrndup.c: Likewise.
23103 * support/xunlink.c: Likewise.
23104 * support/tst-xreadlink.c: Likewise.
23105
23106 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
23107
23108 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
23109
23110 2017-11-11 Florian Weimer <fweimer@redhat.com>
23111
23112 [BZ #22409]
23113 [BZ #22412]
23114 * resolv/res_comp.c (printable_string, binary_hnok)
23115 (binary_leading_dash): New functions.
23116 (res_hnok): Reimplement using these functions and ns_name_pton.
23117 (res_ownok): Likewise.
23118 (res_mailok): Reimplement using printable_string, ns_name_pton and
23119 binary_hnok.
23120 (res_dnok): Reimplement using printable_string and ns_name_pton.
23121 * resolv/tst-res_hnok.c (tests): Add additional tests.
23122 (LETTERDIGITS, PRINTABLE): Define.
23123 (do_test): Adjust one_char results.
23124
23125 2017-11-11 Florian Weimer <fweimer@redhat.com>
23126
23127 [BZ #22413]
23128 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
23129 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
23130
23131 2017-11-11 Florian Weimer <fweimer@redhat.com>
23132
23133 * resolv/tst-ns_name_pton.c: New file.
23134 * resolv/Makefile (tests): Add tst-ns_name_pton.
23135 (tst-ns_name_pton): Link against libresolv.
23136
23137 2017-11-11 Florian Weimer <fweimer@redhat.com>
23138
23139 * resolv/tst-res_hnok.c: New file.
23140 * resolv/Makefile (tests): Add tst-res_hnok.
23141 (tst-res_hnok): Link against libresolv.
23142
23143 2017-11-11 Florian Weimer <fweimer@redhat.com>
23144
23145 * resolv/tst-resolv-network.c: Use test framework instead explicit
23146 main function.
23147
23148 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
23149
23150 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
23151 <jmp_buf-macros.h>.
23152 [!_ISOMAC] (STR_HELPER): New.
23153 [!_ISOMAC] (STR): Likewise.
23154 [!_ISOMAC] (TEST_SIZE): Likewise.
23155 [!_ISOMAC] (TEST_ALIGN): Likewise.
23156 [!_ISOMAC] (TEST_OFFSET): Likewise.
23157 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
23158 field offsets of jmp_buf as well as sigjmp_buf.
23159 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
23160 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
23161 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
23162 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
23163 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
23164 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
23165 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
23166 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
23167 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
23168 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
23169 Likewise.
23170 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
23171 Likewise.
23172 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
23173 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
23174 Likewise.
23175 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
23176 Likewise.
23177 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
23178 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
23179 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
23180 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
23181 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
23182 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
23183 Likewise.
23184 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
23185 Likewise.
23186 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
23187 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
23188 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
23189
23190 2017-11-07 Joseph Myers <joseph@codesourcery.com>
23191
23192 * include/float.h
23193 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23194 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
23195 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23196 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
23197 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23198 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
23199 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23200 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
23201 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23202 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
23203 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23204 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
23205 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23206 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
23207 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23208 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
23209 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23210 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
23211 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23212 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
23213 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23214 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
23215 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23216 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
23217 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23218 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
23219 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23220 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
23221 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23222 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
23223 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23224 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
23225 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23226 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
23227 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23228 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
23229 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23230 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
23231 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23232 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
23233 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23234 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
23235 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23236 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
23237 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23238 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
23239 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23240 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
23241 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23242 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
23243 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23244 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
23245 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23246 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
23247 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23248 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
23249 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23250 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
23251 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23252 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
23253 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23254 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
23255 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23256 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
23257 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23258 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
23259 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23260 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
23261 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23262 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
23263 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23264 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
23265 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23266 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
23267 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23268 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
23269 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23270 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
23271 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23272 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
23273 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23274 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
23275 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23276 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
23277 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23278 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
23279 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23280 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
23281
23282 * stdlib/tst-strtod.h (F16): New macro.
23283 (F32): Likewise.
23284 (F64): Likewise.
23285 (F32X): Likewise.
23286 (F64X): Likewise.
23287 (F128X): Likewise.
23288 (IF_FLOAT16): Likewise.
23289 (IF_FLOAT32): Likewise.
23290 (IF_FLOAT64): Likewise.
23291 (IF_FLOAT32X): Likewise.
23292 (IF_FLOAT64X): Likewise.
23293 (IF_FLOAT128X): Likewise.
23294 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
23295 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
23296 (STRTOD_TEST_FOREACH): Likewise.
23297 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
23298 (CHOOSE_f64): Likewise.
23299 (CHOOSE_f32x): Likewise.
23300 (CHOOSE_f64x): Likewise.
23301
23302 2017-11-07 Andreas Schwab <schwab@suse.de>
23303
23304 * nptl/Makefile (tests-internal): Remove tst-typesizes.
23305
23306 2017-11-07 Mike FABIAN <mfabian@redhat.com>
23307
23308 [BZ #22403]
23309 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
23310 to be escaped.
23311 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
23312 to be escaped.
23313
23314 2017-11-07 Claude Paroz <claude@2xlibre.net>
23315
23316 [BZ #22403]
23317 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
23318 to be escaped.
23319 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
23320 to be escaped.
23321 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
23322 to be escaped.
23323
23324 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23325
23326 [BZ #22298]
23327 * nptl/allocatestack.c (allocate_stack): Check if
23328 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
23329 __PTHREAD_MUTEX_HAVE_PREV is defined.
23330 * nptl/descr.h (pthread): Likewise.
23331 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
23332 Likewise.
23333 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
23334 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
23335 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
23336 * sysdeps/nptl/bits/thread-shared-types.h
23337 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23338 defines.
23339 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
23340 of __WORDSIZE for internal layout.
23341 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
23342 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
23343 instead of __WORDSIZE whether to use an union for __spins and __list
23344 fields.
23345 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
23346 case.
23347 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
23348 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23349 defines.
23350 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
23351 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23352 Likewise.
23353 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
23354 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23355 Likewise.
23356 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
23357 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23358 Likewise.
23359 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
23360 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23361 Likewise.
23362 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
23363 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23364 Likewise.
23365 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
23366 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23367 Likewise.
23368 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
23369 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23370 Likewise.
23371 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
23372 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23373 Likewise.
23374 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
23375 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23376 Likewise.
23377 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
23378 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23379 Likewise.
23380 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
23381 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23382 Likewise.
23383 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
23384 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23385 Likewise.
23386 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
23387 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23388 Likewise.
23389 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
23390 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23391 Likewise.
23392
23393 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
23394 New macros.
23395 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
23396 checks for expected input type size.
23397 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
23398 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
23399 Likewise.
23400 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
23401 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
23402 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23403 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
23404 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
23405 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
23406 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
23407 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
23408 superflous runtime assert check.
23409 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
23410 Likewise.
23411 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
23412 Likewise.
23413 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
23414 Likewise.
23415 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
23416 Likewise.
23417 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
23418 Likewise.
23419 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
23420 Likewise.
23421 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
23422 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
23423 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
23424 Likewise.
23425 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
23426 Likewise.
23427 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
23428 Likewise.
23429 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
23430 Likewise.
23431 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
23432 Likewise.
23433 * nptl/pthread_attr_setinheritsched.c
23434 (__pthread_attr_setinheritsched): Likewise.
23435 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
23436 Likewise.
23437 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
23438 Likewise.
23439 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
23440 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
23441 __old_pthread_attr_setstack): Likewise.
23442 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
23443 Likewise.
23444 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
23445 Likewise.
23446 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
23447 Likewise.
23448 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
23449 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
23450 Likewise.
23451 * nptl/tst-typesizes.c: Remove file.
23452
23453 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
23454 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
23455 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
23456 checks for internal pthread_mutex_t offsets.
23457 * sysdeps/aarch64/nptl/pthread-offsets.h
23458 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
23459 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
23460 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
23461 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
23462 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
23463 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
23464 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
23465 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
23466 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
23467 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
23468 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
23469 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
23470 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
23471 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
23472 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
23473 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
23474 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
23475 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
23476
23477 2017-11-07 Florian Weimer <fweimer@redhat.com>
23478
23479 * bits/mman-linux.h: Move ...
23480 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
23481 comment.
23482 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
23483 outdated comment.
23484
23485 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23486
23487 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
23488 Redefine STRNLEN as __strnlen_power8.
23489
23490 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23491
23492 * signal/sighold.c (sighold): Optimize implementation.
23493
23494 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
23495 __NR_rt_sigqueueinfo.
23496
23497 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23498 __sigtimedwait.
23499 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
23500 assume __NR_rt_sigtimedwait.
23501 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
23502 and add LIBC_CANCEL_HANDLED for cancellation marking.
23503 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23504
23505 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23506 (sysdeps_routines): Add memchr_noneon.
23507 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
23508 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
23509 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
23510 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
23511 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
23512 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
23513 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
23514
23515 * sysdeps/arm/arm-ifunc.h: New file.
23516 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
23517 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
23518 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
23519 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
23520 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
23521 (__memcpy_neon): Avoid create hidden alias.
23522 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
23523 (__memcpy_vfp): Likewise.
23524 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23525 (sysdep_routines): Add memcpy_arm.
23526 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
23527
23528 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
23529
23530 [BZ #22362]
23531 * Makerules (make-link-multidir): New.
23532 * config.make.in (multidir): New.
23533 * configure.ac (libc_cv_multidir): New. AC_SUBST.
23534 * configure: Regenerated.
23535 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
23536 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
23537 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
23538 New target.
23539
23540 2017-11-06 Joseph Myers <joseph@codesourcery.com>
23541
23542 [BZ #22402]
23543 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
23544 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
23545
23546 2017-11-04 Mike FABIAN <mfabian@redhat.com>
23547
23548 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
23549 to be escaped.
23550
23551 2017-11-04 Florian Weimer <fweimer@redhat.com>
23552
23553 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
23554
23555 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23556
23557 * math/math.h [__HAVE_DISTINCT_FLOAT16
23558 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23559 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23560 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23561 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
23562 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
23563 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
23564 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23565 (__MATH_TG_F32): New macro.
23566 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23567 (__MATH_TG_F64X): Likewise.
23568 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23569 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
23570
23571 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
23572
23573 * po/de.po: Update translations.
23574 * po/ru.po: Likewise.
23575
23576 2017-11-03 Florian Weimer <fweimer@redhat.com>
23577
23578 * manual/filesys.texi (Hard Links): Document linkat.
23579
23580 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23581
23582 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
23583 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23584 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23585 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23586 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23587 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23588 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
23589 the same as _Float128.
23590 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23591 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23592 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
23593
23594 * stdlib/stdlib.h
23595 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
23596 Declare.
23597 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
23598 Likewise.
23599 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
23600 Likewise.
23601 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23602 (strtof32x): Likewise.
23603 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23604 (strtof64x): Likewise.
23605 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23606 (strtof128x): Likewise.
23607 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23608 (strfromf16): Likewise.
23609 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23610 (strfromf32): Likewise.
23611 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23612 (strfromf64): Likewise.
23613 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23614 (strfromf32x): Likewise.
23615 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23616 (strfromf64x): Likewise.
23617 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23618 (strfromf128x): Likewise.
23619 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
23620 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
23621 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
23622 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
23623 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
23624 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
23625
23626 2017-11-03 Richard Henderson <rth@twiddle.net>
23627
23628 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
23629
23630 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23631
23632 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
23633
23634 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23635
23636 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
23637 DT_TLSDESC_GOT initialization.
23638 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
23639 (_dl_tlsdesc_resolve_hold): Likewise.
23640 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
23641 (_dl_tlsdesc_resolve_hold): Likewise.
23642 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
23643 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23644
23645 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23646
23647 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
23648
23649 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23650
23651 [BZ #18572]
23652 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
23653 non-lazily for R_ARM_TLS_DESC.
23654
23655 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23656
23657 [BZ #17078]
23658 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
23659 R_ARM_TLS_DESC case.
23660 (elf_machine_lazy_rel): Remove the prelink check.
23661
23662 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23663
23664 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
23665 DT_TLSDESC_GOT initialization.
23666 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
23667 (_dl_tlsdesc_resolve_rela): Likewise.
23668 (_dl_tlsdesc_resolve_hold): Likewise.
23669 (_dl_tlsdesc_undefweak): Remove ldar.
23670 (_dl_tlsdesc_dynamic): Likewise.
23671 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
23672 (_dl_tlsdesc_resolve_rela): Likewise.
23673 (_dl_tlsdesc_resolve_hold): Likewise.
23674 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
23675 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23676 (_dl_tlsdesc_resolve_rela): Likewise.
23677 (_dl_tlsdesc_resolve_hold): Likewise.
23678
23679 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23680
23681 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
23682 binding and initialization non-lazily for R_AARCH64_TLSDESC.
23683
23684 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23685
23686 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
23687 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
23688
23689 2017-11-02 Joseph Myers <joseph@codesourcery.com>
23690
23691 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
23692 Declare.
23693 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
23694 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
23695 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
23696 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
23697 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
23698 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
23699 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
23700 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
23701 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
23702 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
23703 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
23704
23705 2017-11-02 Mike FABIAN <mfabian@redhat.com>
23706
23707 [BZ #22382]
23708 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
23709 * localedata/locales/tpi_PG: Add standard header.
23710
23711 2017-11-02 Florian Weimer <fweimer@redhat.com>
23712
23713 test-errno-linux: quotactl can fail with EPERM in containers.
23714 * sysdeps/unix/sysv/linux/test-errno-linux.c
23715 (LIST, LIST_FORWARD): New macros.
23716 (check_error_in_list): New function.
23717 (test_wrp_rv): Accept list of permitted error codes.
23718 (test_wrp_rv2): Remove.
23719 (test_wrp): Call test_wrp_rv with list of error codes.
23720 (test_wrp2): Accept list of error codes.
23721 (do_test): Adjust. Allow EPERM for quotactl.
23722
23723 2017-11-02 Florian Weimer <fweimer@redhat.com>
23724
23725 * stdio-common/bug16.c (do_test): Use array_length.
23726 * stdio-common/errlist.c (_sys_nerr): Likewise.
23727 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
23728 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
23729 * stdio-common/psiginfo.c (psiginfo): Use array_length.
23730 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
23731 (do_test): Use array_length.
23732 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
23733 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
23734 * stdio-common/tst-printf-round.c (do_test): Likewise.
23735 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
23736 (CHECK): Use array_length.
23737 * stdio-common/tstdiomisc.c (t3, F): Likewise.
23738 * stdio-common/tstscanf.c (main): Likewise.
23739 * stdio-common/vfprintf.c (process_string_arg): Likewise.
23740
23741 2017-11-02 Florian Weimer <fweimer@redhat.com>
23742
23743 Add array_length and array_end macros.
23744 * include/array_length.h: New file.
23745
23746 2017-11-02 Florian Weimer <fweimer@redhat.com>
23747
23748 [BZ #22332]
23749 * posix/tst-glob-tilde.c (do_noescape): New variable.
23750 (one_test): Process it.
23751 (do_test): Set do_noescape. Add unescaping test case.
23752
23753 2017-11-01 Joseph Myers <joseph@codesourcery.com>
23754
23755 * math/complex.h
23756 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
23757 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
23758 with appropriate macros defined and undefined.
23759 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
23760 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23761 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
23762 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23763 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
23764 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23765 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
23766 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23767 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
23768 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23769
23770 * math/complex.h
23771 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
23772 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
23773 that for long double. Do not condition define and undefine of
23774 _Mdouble_complex_ on [__CFLOAT128].
23775
23776 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
23777
23778 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23779 of <sysdeps/generic/sysdep.h>.
23780 (ALIGNARG): Removed.
23781 (ASM_SIZE_DIRECTIVE): Likewise.
23782 (ENTRY): Likewise.
23783 (END): Likewise.
23784 (ENTRY_CHK): Likewise.
23785 (END_CHK): Likewise.
23786 (syscall_error): Likewise.
23787 (mcount): Likewise.
23788 (PSEUDO_END): Likewise.
23789 (L): Likewise.
23790 (atom_text_section): Likewise.
23791 * sysdeps/x86/sysdep.h: New file.
23792 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23793 of <sysdeps/generic/sysdep.h>.
23794 (ALIGNARG): Removed.
23795 (ASM_SIZE_DIRECTIVE): Likewise.
23796 (ENTRY): Likewise.
23797 (END): Likewise.
23798 (ENTRY_CHK): Likewise.
23799 (END_CHK): Likewise.
23800 (syscall_error): Likewise.
23801 (mcount): Likewise.
23802 (PSEUDO_END): Likewise.
23803 (L): Likewise.
23804 (atom_text_section): Likewise.
23805
23806 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
23807
23808 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
23809 category of LC_CTYPE set to "i18n:2012".
23810 * localedata/locales/i18n_ctype: Regenerate.
23811
23812 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
23813
23814 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
23815 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
23816 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
23817 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
23818
23819 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
23820 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
23821 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
23822 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
23823
23824 2017-10-31 Joseph Myers <joseph@codesourcery.com>
23825
23826 * math/complex.h
23827 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
23828 New macro.
23829 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
23830 Likewise.
23831 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
23832 Likewise.
23833 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23834 (CMPLXF32X): Likewise.
23835 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23836 (CMPLXF64X): Likewise.
23837 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23838 (CMPLXF128X): Likewise.
23839
23840 * math/math.h
23841 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
23842 (__MATH_EVAL_FMT2): Define to add 0.0f.
23843
23844 2017-10-31 Alan Modra <amodra@gmail.com>
23845
23846 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
23847 include sysdep.h.
23848 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
23849 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
23850 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
23851 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
23852 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
23853 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
23854 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
23855 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
23856 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
23857 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
23858 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
23859 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
23860 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
23861 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
23862 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
23863 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
23864 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
23865 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
23866 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
23867 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
23868 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
23869 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
23870 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
23871 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
23872 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23873 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
23874 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
23875 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
23876 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
23877 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
23878 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
23879 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
23880 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
23881 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
23882 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
23883 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
23884 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
23885 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
23886 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
23887 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
23888 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
23889 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
23890 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
23891 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
23892 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
23893 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
23894 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
23895 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
23896 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23897 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23898 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
23899 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
23900 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
23901 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
23902 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23903 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
23904 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
23905 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
23906 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23907 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23908 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23909 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
23910 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
23911 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
23912 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
23913 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
23914 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
23915 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
23916 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
23917
23918 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
23919 include sysdep.h and math_ldbl_opt.h.
23920
23921 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
23922 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
23923 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
23924 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
23925 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
23926 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
23927 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
23928 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
23929 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
23930 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
23931 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
23932 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
23933 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
23934 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
23935 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
23936 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
23937 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
23938 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
23939 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
23940 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
23941 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
23942 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
23943 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
23944 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
23945 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
23946 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
23947
23948 2017-10-31 Alan Modra <amodra@gmail.com>
23949
23950 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
23951 string/strncase_l.c, not string/strncase.c.
23952 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
23953 (libc_hidden_def): Redefine.
23954
23955 2017-10-31 Alan Modra <amodra@gmail.com>
23956
23957 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
23958 (__STRCMP, STRCMP, __strcasecmp_l): Define.
23959 (__strcasecmp): Don't define.
23960
23961 2017-10-31 Alan Modra <amodra@gmail.com>
23962
23963 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
23964 IS_IN (libc).
23965 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23966 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23967 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23968
23969 2017-10-31 Alan Modra <amodra@gmail.com>
23970
23971 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
23972 USE_AS_STPNCPY.
23973
23974 2017-10-31 Alan Modra <amodra@gmail.com>
23975
23976 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
23977 Redefine only when SHARED.
23978
23979 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23980
23981 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23982 Include <bits/math-finite.h> with appropriate macros defined and
23983 undefined.
23984 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23985 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23986 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23987 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23988 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23989
23990 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23991 [!_Mlong_double_] (_Mlong_double_): Likewise.
23992 [!_Mfloat16_] (_Mfloat16_): Likewise.
23993 [!_Mfloat32_] (_Mfloat32_): Likewise.
23994 [!_Mfloat64_] (_Mfloat64_): Likewise.
23995 [!_Mfloat128_] (_Mfloat128_): Likewise.
23996 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23997 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23998 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23999 (_Mdouble_): Define without indirection through those macros.
24000 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
24001 [!_Mfloat128_] (_Mfloat128_): Likewise.
24002 [_Mlong_double_] (_Mlong_double_): Likewise.
24003 (_Mdouble_): Define without indirection through those macros.
24004 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
24005 not add -D_Mlong_double_=double.
24006 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
24007 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
24008
24009 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24010
24011 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
24012
24013 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24014
24015 * sysdeps/x86/libc-start.c: Reformat.
24016
24017 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24018
24019 [BZ #22353]
24020 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
24021 (1): Renamed to ...
24022 (L(Src0)): This.
24023 (L(Src1)): New.
24024 (L(Src2)): Likewise.
24025 (L(1)): Renamed to ...
24026 (L(Src3)): This.
24027
24028 2017-10-30 Joseph Myers <joseph@codesourcery.com>
24029
24030 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
24031 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
24032 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
24033 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
24034 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
24035 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
24036 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
24037 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
24038 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
24039 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
24040 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
24041 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
24042 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
24043 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
24044 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
24045 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
24046 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
24047 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
24048 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
24049 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
24050 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
24051 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
24052 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
24053 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
24054 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
24055 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
24056 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
24057 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
24058 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
24059 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
24060 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
24061 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
24062 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
24063 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
24064 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
24065 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
24066 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
24067 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
24068 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
24069 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
24070 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
24071 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
24072 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
24073 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
24074 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
24075 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
24076 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
24077 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
24078 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
24079 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
24080 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
24081 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
24082 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
24083 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
24084 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
24085 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
24086 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
24087 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
24088 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
24089 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
24090 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
24091 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
24092 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
24093 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
24094 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
24095 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
24096
24097 2017-10-30 Florian Weimer <fweimer@redhat.com>
24098
24099 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
24100 always defined.
24101 * io/tst-mkdirat.c (do_test): Likewise.
24102 * io/tst-mkfifoat.c (do_test): Likewise.
24103 * io/tst-mknodat.c (do_test): Likewise.
24104 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
24105 * locale/programs/locale.c (select_dirs): Likewise.
24106 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
24107 * posix/bug-glob2.c (my_readdir): Likewise.
24108 * posix/tst-dir.c (main): Likewise.
24109 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
24110 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
24111
24112 2017-10-30 Florian Weimer <fweimer@redhat.com>
24113
24114 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
24115 just __USE_GNU.
24116
24117 2017-10-30 Florian Weimer <fweimer@redhat.com>
24118
24119 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
24120 Convert to support/test-driver.c.
24121 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
24122 New macro parameters.
24123 (PRINTF): Remove macro. Use test_verbose conditionals instead.
24124 * posix/tst-gnuglob.c: New file.
24125 * posix/tst-gnuglob64.c: Likewise.
24126 * posix/Makefile (tests): Add tst-gnuglob64.
24127
24128 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
24129
24130 [BZ #19485]
24131 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
24132 and use a better translation for March in “mon”.
24133 * localedata/locales/csb_PL: Use more ASCII to improve the
24134 readability of the source.
24135
24136 2017-10-30 Mike FABIAN <mfabian@redhat.com>
24137
24138 [BZ #13953]
24139 * localedata/locales/km_KH: Use ASCII as much
24140 as possible for better readability of the source and
24141 remove useless comments.
24142 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
24143 was commented out and apparently wrong anyway because it was
24144 using Lao characters. If Buddhist era should be used
24145 for km_KH, a native speaker should write the correct formaat
24146 for Khmer.
24147 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
24148 (According to CLDR, the first weekday for Cambodia is Sunday).
24149 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
24150 (These were using Lao characters which must be wrong. If we get
24151 the correct data from a native speaker, we could add it back, until
24152 then it is better not to have name_mr and name_mrs at all than
24153 having it wrong).
24154
24155 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
24156
24157 * locale/loadlocale.c: Correct size of
24158 _nl_value_type_LC_<category> arrays.
24159
24160 2017-10-27 Joseph Myers <joseph@codesourcery.com>
24161
24162 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
24163 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
24164 with appropriate macros defined and undefined.
24165 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
24166 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
24167 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
24168 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
24169 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
24170
24171 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
24172
24173 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
24174 "-O2 -march=i586".
24175
24176 2017-10-27 Mike FABIAN <mfabian@redhat.com>
24177
24178 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
24179 with lowercase letters to make it agree with CLDR.
24180
24181 2017-10-27 Mike FABIAN <mfabian@redhat.com>
24182
24183 [BZ #15260]
24184 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
24185 first letters of yesstr and nostr in yesexpr and noexpr,
24186 not for the full words.
24187 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24188 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
24189 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
24190 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
24191 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
24192 first letters of yesstr and nostr in yesexpr and noexpr,
24193 until now only English was matched in yesexpr and noexpr.
24194 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
24195 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
24196 fil but not for tl. As tl and fil are very similar, using fil
24197 is probably better than using English.
24198
24199 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
24200
24201 [BZ #21706]
24202 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
24203 in yesstr and nostr.
24204
24205 2017-10-26 Joseph Myers <joseph@codesourcery.com>
24206
24207 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24208 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
24209 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
24210 Likewise.
24211 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
24212 Likewise.
24213 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
24214 Likewise.
24215 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
24216 Likewise.
24217 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24218 (SNANF128X): Likewise.
24219
24220 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24221 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
24222 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24223 (HUGE_VAL_F32): Likewise.
24224 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24225 (HUGE_VAL_F64): Likewise.
24226 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24227 (HUGE_VAL_F32X): Likewise.
24228 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24229 (HUGE_VAL_F64X): Likewise.
24230 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24231 (HUGE_VAL_F128X): Likewise.
24232
24233 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
24234
24235 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
24236 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
24237 for the br_FR locale.
24238
24239 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
24240
24241 [BZ #21706]
24242 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
24243
24244 2017-10-25 Carlos O'Donell <carlos@redhat.com>
24245
24246 * locale/programs/record-status.h: Define globals, and function
24247 prototypes. Move function bodies...
24248 * locale/programs/record-status.c: ... to here. New file.
24249 * iconv/Makefile (iconv_prog-modules): Add record-status.
24250 * locale/Makefile (lib-modules): Likewise.
24251 * iconv/iconv_prog.c: Remove verbose.
24252 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
24253 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
24254 record a warning about ASCII compatibility.
24255 * locale/programs/ld-monetary.c (monetary_finish): If
24256 warn_int_curr_symbol is true then record a warning about the symbol
24257 not being in our ISO 4217 list.
24258 * locale/programs/locale.c: Include record-status.h. Remove verbose.
24259 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
24260 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
24261 (OPT_NO_WARN): Define.
24262 (OPT_WARN): Define.
24263 (options): Add entry for --no-warnings, and --warnings.
24264 (set_warnings): New function to enable/disable warnings.
24265 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
24266 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
24267 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
24268 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
24269 Pass flags to generate_locale.
24270 (generate_locale): Accept new flag argument and pass it to localedef
24271 invocation.
24272 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
24273 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
24274
24275 * localedata/Makefile (test-input-data): Use full file name.
24276 * localedata/da_DK.in: Rename to...
24277 * localedata/da_DK.ISO-8859-1.in: ...this.
24278 * localedata/de_DE.in: Rename to...
24279 * localedata/de_DE.ISO-8859-1.in: ...this.
24280 * localedata/en_US.in: Rename to...
24281 * localedata/en_US.ISO-8859-1.in: ...this.
24282 * localedata/fr_FR.in: Rename to...
24283 * localedata/fr_FR.UTF-8.in: ... this.
24284 * localedata/hr_HR.in: Rename to...
24285 * localedata/hr_HR.ISO-8859-2.in: ...this.
24286 * localedata/hu_HU.in: Rename to...
24287 * localedata/hu_HU.UTF-8.in: ...this.
24288 * localedata/si_LK.in: Rename to...
24289 * localedata/si_LK.UTF-8.in: ...this.
24290 * localedata/sv_SE.in: Rename to...
24291 * localedata/sv_SE.ISO-8859-1.in: ...this.
24292 * localedata/tr_TR.in: Rename to...
24293 * localedata/tr_TR.UTF-8.in: ...this.
24294 * localedata/uk_UA.in: Rename to...
24295 * localedata/uk_UA.UTF-8.in: ...this.
24296 * localedata/sort-test.sh: Test file is locale name with the
24297 suffix.
24298
24299 * localedata/unicode-gen/Makefile (check_i18n): Rename to
24300 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
24301 file.
24302 * localedata/locales/i18n_ctype: Regenerate.
24303 * localedata/locales/tr_TR: Likewise.
24304 * localedata/locales/translit_circle: Likewise.
24305 * localedata/locales/translit_cjk_compat: Likewise.
24306 * localedata/locales/translit_combining: Likewise.
24307 * localedata/locales/translit_compat: Likewise.
24308 * localedata/locales/translit_font: Likewise.
24309 * localedata/locales/translit_fraction: Likewise.
24310
24311 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24312
24313 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
24314 lxvd2x/stxvd2x with lvx/stvx.
24315 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
24316
24317 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
24318
24319 * include/alloc_buffer.h: Replace "if if " with "if " in
24320 comments.
24321 * sysdeps/mips/memcpy.S: Likkewise.
24322 * sysdeps/mips/memset.S: Likewise.
24323 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
24324 Likewise.
24325 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
24326 Likewise.
24327 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
24328 Likewise.
24329
24330 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24331
24332 [BZ #15261]
24333 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
24334 yesexpr and noexpr.
24335 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24336 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24337 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24338 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24339 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24340 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24341 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24342
24343 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24344
24345 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
24346 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24347 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24348 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24349 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24350 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
24351 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24352 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24353 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24354 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24355 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24356 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24357
24358 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24359
24360 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
24361 as possible for better readability of the source.
24362 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
24363 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
24364 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
24365 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
24366 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
24367 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
24368 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
24369 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
24370 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24371 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
24372 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
24373 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
24374 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
24375 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
24376 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
24377 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
24378 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
24379 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
24380 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
24381 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
24382 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
24383 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
24384 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
24385 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
24386 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
24387 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
24388 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
24389 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
24390 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
24391 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
24392 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
24393 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24394 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
24395 * localedata/locales/en_US (LC_MESSAGES): Likewise.
24396 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
24397 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
24398 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
24399 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
24400 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
24401 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
24402 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
24403 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
24404 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
24405 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
24406 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
24407 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
24408 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
24409 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
24410 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
24411 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
24412 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
24413 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
24414 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
24415 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24416 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24417 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
24418 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
24419 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24420 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
24421 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
24422 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
24423 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
24424 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
24425 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
24426 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
24427 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
24428 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
24429 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
24430 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
24431 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
24432 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
24433 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
24434 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
24435 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
24436 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24437 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
24438 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
24439 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
24440 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
24441 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
24442 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
24443 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
24444 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
24445 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24446 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
24447 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
24448 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
24449 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24450 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
24451 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
24452 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
24453 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
24454 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24455 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
24456 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
24457 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24458 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
24459 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24460 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
24461 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
24462 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
24463 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
24464 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
24465 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
24466 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
24467 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
24468 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
24469 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
24470 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
24471 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
24472 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
24473 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
24474 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24475 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
24476 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
24477 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
24478 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
24479 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
24480 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
24481 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
24482 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
24483 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
24484 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
24485 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
24486 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
24487 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
24488 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
24489 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
24490 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
24491 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
24492 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
24493 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
24494 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
24495 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
24496 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
24497 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
24498 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
24499 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
24500 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
24501 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
24502 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
24503 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
24504 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
24505 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
24506 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
24507 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24508 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
24509 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
24510 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
24511 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
24512 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
24513 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
24514 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
24515 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
24516 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24517 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
24518 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
24519 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
24520 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
24521 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
24522 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
24523 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
24524 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
24525 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
24526 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
24527 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24528 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
24529 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
24530 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
24531 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
24532 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24533 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24534 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24535 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
24536
24537 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24538
24539 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
24540 (Use first letters of yesstr and nostr correctly instead of using
24541 full words).
24542
24543 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24544
24545 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
24546 (Use first letters of yesstr and nostr correctly).
24547
24548 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24549
24550 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
24551 also check for the first characters of yesstr and nostr.
24552 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
24553 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
24554
24555 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24556
24557 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
24558 also check for Chinese characters.
24559
24560 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24561
24562 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
24563 match also for the contents of yesstr and nostr. As the first letter
24564 of yesstr and nostr is equal, checking only for the first letter
24565 is not enough.
24566
24567 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24568
24569 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
24570 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
24571
24572 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24573
24574 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
24575 of main contributor.
24576
24577 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24578
24579 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
24580 instead of using English.
24581
24582 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24583
24584 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
24585 by including the first letters of nostr and yesexpr in the regexp.
24586 Also make it more readable by using ASCII where possible.
24587
24588 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24589
24590 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
24591 the first letter of nostr in the regexp. It agrees with CLDR now.
24592 Also make it more readable by using ASCII where possible.
24593
24594 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24595
24596 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
24597 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
24598 these strings contain a U+17D6 (which somewhat looks like a colon)
24599 instead of a real colon to separate the full words for “yes”
24600 and “no” from the single letter responses.
24601
24602 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24603
24604 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
24605 it agree with CLDR (include the first letter of yesstr).
24606 Also make it more readable by using ASCII where possible.
24607
24608 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24609
24610 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
24611 and improve yesexpr and noexpr. The yesstr and nostr apparently
24612 came from CLDR. And CLDR has a bug there: these strings contain
24613 a U+0903 (which looks like a colon) instead of a real colon
24614 to separate the full words for “yes” and “no” from the single
24615 letter responses.
24616
24617 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24618
24619 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
24620 letters of the full yesstr and nostr in yesexpr and noexpr.
24621
24622 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24623
24624 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
24625 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
24626 * localedata/locales/an_ES: Make source more readable by using ASCII
24627 where possible.
24628
24629 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24630
24631 [BZ #20952]
24632 * localedata/locales/yuw_PG: New file.
24633 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
24634 * locale/iso-639.def: Add Yau (Uruwa).
24635
24636 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24637
24638 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
24639
24640 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24641
24642 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
24643 (__libc_realloc): Likewise.
24644 (_mid_memalign): Likewise.
24645 (__libc_calloc): Likewise.
24646
24647 2017-10-23 Mike FABIAN <mfabian@redhat.com>
24648
24649 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
24650 by adding the generic +1 and -0 as in all other locales.
24651 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
24652 day names and make it more readable by using ASCII where possible.
24653
24654 2017-10-24 Joseph Myers <joseph@codesourcery.com>
24655
24656 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
24657 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
24658
24659 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24660
24661 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
24662 WNOHANG in waitpid call.
24663
24664 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
24665
24666 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
24667 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
24668
24669 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
24670 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
24671 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
24672 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
24673 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
24674 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
24675 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
24676 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
24677 variables.
24678
24679 2017-10-23 Michael Collison <michael.collison@arm.com>
24680
24681 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
24682 with __builtin_sqrt.
24683 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
24684 with __builtin_sqrtf.
24685 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
24686 with __builtin_ceil.
24687 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
24688 with __builtin_ceilf.
24689 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
24690 with __builtin_floor.
24691 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
24692 with __builtin_floorf.
24693 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
24694 with __builtin_fma.
24695 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
24696 with __builtin_fmaf.
24697 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
24698 with __builtin_fmax.
24699 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
24700 with __builtin_fmaxf.
24701 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
24702 with __builtin_fmin.
24703 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
24704 with __builtin_fminf.
24705 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
24706 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
24707 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
24708 with builtin_rint and conversion to int.
24709 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
24710 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
24711 with builtin_llround.
24712 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
24713 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
24714 with builtin_rint and conversion to long int.
24715 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
24716 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
24717 with builtin_lround.
24718 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
24719 with builtin_lroundf.
24720 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
24721 statements with __builtin_nearbyint.
24722 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
24723 statements with __builtin_nearbyintf.
24724 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
24725 with __builtin_rint.
24726 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
24727 with __builtin_rintf.
24728 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
24729 with __builtin_round.
24730 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
24731 with __builtin_roundf.
24732 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
24733 with __builtin_trunc.
24734 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
24735 with __builtin_truncf.
24736 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
24737 and s_l[l]round[f].c too.
24738
24739 2017-10-23 Alan Modra <amodra@gmail.com>
24740
24741 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
24742 Adjust stack after restoring regs. Add missing LR cfi_restore.
24743
24744 2017-10-23 Alan Modra <amodra@gmail.com>
24745
24746 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
24747 Move LR save and frame setup/teardown and LR restore to
24748 immediately around memset call. Provide cfi.
24749
24750 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24751
24752 * sysdeps/i386/fpu/e_powf.S: Removed.
24753 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
24754 * sysdeps/i386/fpu/w_powf.c: Likewise.
24755 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
24756 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24757 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24758 Add e_powf-sse2.
24759 (CFLAGS-e_powf-sse2.c): New.
24760 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
24761 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
24762
24763 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24764
24765 * sysdeps/i386/fpu/e_log2f.S: Removed.
24766 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
24767 * sysdeps/i386/fpu/w_log2f.c: Likewise.
24768 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
24769 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24770 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24771 Add e_log2f-sse2.
24772 (CFLAGS-e_log2f-sse2.c): New.
24773 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
24774 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
24775
24776 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24777
24778 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24779 Add e_powf-fma.
24780 (CFLAGS-e_powf-fma.c): New.
24781 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
24782 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
24783
24784 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24785
24786 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24787 Add e_log2f-fma.
24788 (CFLAGS-e_log2f-fma.c): New.
24789 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
24790 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
24791
24792 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24793
24794 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24795 Add e_logf-fma.
24796 (CFLAGS-e_logf-fma.c): New.
24797 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
24798 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
24799
24800 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24801
24802 * sysdeps/i386/fpu/e_logf.S: Removed.
24803 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
24804 * sysdeps/i386/fpu/w_logf.c: Likewise.
24805 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
24806 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
24807 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24808 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24809 Add e_logf-sse2.
24810 (CFLAGS-e_logf-sse2.c): New.
24811 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
24812 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
24813
24814 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24815
24816 * sysdeps/i386/fpu/e_exp2f.S: Removed.
24817 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
24818 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
24819 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24820 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24821 Add e_exp2f-sse2.
24822 (CFLAGS-e_exp2f-sse2.c): New.
24823 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
24824 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
24825
24826 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24827
24828 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24829 Add e_exp2f-fma.
24830 (CFLAGS-e_exp2f-fma.c): New.
24831 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
24832 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
24833
24834 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24835
24836 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
24837 * sysdeps/i386/fpu/e_expf.S: Likewise.
24838 * sysdeps/i386/fpu/math_errf.c: Likewise.
24839 * sysdeps/i386/fpu/w_expf.c: Likewise.
24840 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
24841 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
24842 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
24843 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
24844 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24845 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24846 Remove e_expf-ia32.
24847 (CFLAGS-e_expf-sse2.c): New.
24848 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
24849 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
24850
24851 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24852
24853 * sysdeps/x86_64/fpu/e_expf.S: Removed.
24854 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
24855 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
24856 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
24857 e_expf.c.
24858 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
24859 New.
24860 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
24861 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
24862 Renamed to ...
24863 (__redirect_expf): This.
24864 (SYMBOL_NAME): Changed to expf.
24865 (__ieee754_expf): Renamed to ...
24866 (__expf): This.
24867 (__GI___expf): This.
24868 (__ieee754_expf): Add strong_alias.
24869 (__expf_finite): Likewise.
24870 (__expf): New.
24871 Include <sysdeps/ieee754/flt-32/e_expf.c>.
24872
24873 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
24874
24875 [BZ #22332]
24876 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
24877 unescaping.
24878
24879 2017-10-21 Florian Weimer <fweimer@redhat.com>
24880
24881 * posix/Makefile (tests): Add tst-glob-tilde.
24882 (tests-special): Add tst-glob-tilde-mem.out
24883 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
24884 (tst-glob-tilde-mem.out): Add mtrace check.
24885 * posix/tst-glob-tilde.c: New file.
24886
24887 2017-10-20 Joseph Myers <joseph@codesourcery.com>
24888
24889 * bits/floatn-common.h: New file.
24890 * math/Makefile (headers): Add bits/floatn-common.h.
24891 * bits/floatn.h: Include <bits/floatn-common.h>.
24892 * sysdeps/ia64/bits/floatn.h: Likewise.
24893 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24894 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
24895 * sysdeps/powerpc/bits/floatn.h: Likewise.
24896 * sysdeps/x86/bits/floatn.h: Likewise.
24897
24898 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24899
24900 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
24901 indicates whether compiler emits an warning for alias for
24902 functions with incompatible types.
24903
24904 [BZ #22273]
24905 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
24906 the auxiliary process is terminated by a signal before calling _exit
24907 or execve.
24908
24909 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24910
24911 [BZ #21265]
24912 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
24913 New.
24914 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
24915 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
24916 and bit_arch_XSAVEC_Usable if needed.
24917 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
24918 and bit_arch_Use_dl_runtime_resolve_opt.
24919 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
24920 Removed.
24921 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
24922 (bit_arch_Prefer_No_AVX512): Updated.
24923 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
24924 (bit_arch_XSAVEC_Usable): New.
24925 (STATE_SAVE_OFFSET): Likewise.
24926 (STATE_SAVE_MASK): Likewise.
24927 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
24928 (cpu_features): Add xsave_state_size and xsave_state_full_size.
24929 (index_arch_Use_dl_runtime_resolve_opt): Removed.
24930 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
24931 (index_arch_XSAVEC_Usable): New.
24932 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24933 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
24934 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
24935 is enabled.
24936 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
24937 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
24938 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
24939 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
24940 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
24941 _dl_runtime_resolve_xsavec.
24942 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
24943 Removed.
24944 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
24945 instead of VEC_SIZE.
24946 (REGISTER_SAVE_BND0): Removed.
24947 (REGISTER_SAVE_BND1): Likewise.
24948 (REGISTER_SAVE_BND3): Likewise.
24949 (REGISTER_SAVE_RAX): Always defined to 0.
24950 (VMOV): Removed.
24951 (_dl_runtime_resolve_avx): Likewise.
24952 (_dl_runtime_resolve_avx_slow): Likewise.
24953 (_dl_runtime_resolve_avx_opt): Likewise.
24954 (_dl_runtime_resolve_avx512): Likewise.
24955 (_dl_runtime_resolve_avx512_opt): Likewise.
24956 (_dl_runtime_resolve_sse): Likewise.
24957 (_dl_runtime_resolve_sse_vex): Likewise.
24958 (USE_FXSAVE): New.
24959 (_dl_runtime_resolve_fxsave): Likewise.
24960 (USE_XSAVE): Likewise.
24961 (_dl_runtime_resolve_xsave): Likewise.
24962 (USE_XSAVEC): Likewise.
24963 (_dl_runtime_resolve_xsavec): Likewise.
24964 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
24965 Removed.
24966 (_dl_runtime_resolve_avx512_opt): Likewise.
24967 (_dl_runtime_resolve_avx): Likewise.
24968 (_dl_runtime_resolve_avx_opt): Likewise.
24969 (_dl_runtime_resolve_sse): Likewise.
24970 (_dl_runtime_resolve_sse_vex): Likewise.
24971 (_dl_runtime_resolve_fxsave): New.
24972 (_dl_runtime_resolve_xsave): Likewise.
24973 (_dl_runtime_resolve_xsavec): Likewise.
24974
24975 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
24976
24977 [BZ #22320]
24978 CVE-2017-15670
24979 * posix/glob.c (__glob): Fix one-byte overflow.
24980
24981 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24982
24983 * malloc/malloc.c (sysdep-cancel.h): Add include.
24984
24985 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24986
24987 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24988
24989 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24990
24991 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24992 (tests): Remove $(objpfx)ga_test depdendency.
24993 * resolv/ga_test.c: Remove file.
24994
24995 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24996
24997 [BZ #18812]
24998 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24999 * localedata/locales/kab_DZ: New file.
25000
25001 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
25002
25003 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
25004 _dl_relocate_static_pie instead of _dl_start to compute load
25005 address in static PIE.
25006
25007 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
25008
25009 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
25010
25011 2017-10-20 Mike FABIAN <mfabian@redhat.com>
25012
25013 [BZ #13605]
25014 * localedata/SUPPORTED: Add shn_MM/UTF-8.
25015 * localedata/locales/shn_MM: New file.
25016
25017 2017-10-20 Florian Weimer <fweimer@redhat.com>
25018
25019 [BZ #22321]
25020 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
25021 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
25022 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
25023 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
25024 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
25025 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
25026
25027 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
25028
25029 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
25030
25031 2017-10-19 Joseph Myers <joseph@codesourcery.com>
25032
25033 * sysdeps/mips/ieee754/bits/floatn.h: New file.
25034
25035 [BZ #22322]
25036 * sysdeps/mips/bits/long-double.h: Move to ....
25037 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
25038
25039 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
25040
25041 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
25042
25043 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
25044 H.J. Lu <hongjiu.lu@intel.com>
25045
25046 [BZ #22299]
25047 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
25048 GLRO(dl_platform) to NULL.
25049 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
25050 (modules-names): Add tst-platformmod-1 and
25051 x86_64/tst-platformmod-2.
25052 (CFLAGS-tst-platform-1.c): New.
25053 (CFLAGS-tst-platformmod-1.c): Likewise.
25054 (CFLAGS-tst-platformmod-2.c): Likewise.
25055 (LDFLAGS-tst-platformmod-2.so): Likewise.
25056 ($(objpfx)tst-platform-1): Likewise.
25057 ($(objpfx)tst-platform-1.out): Likewise.
25058 (tst-platform-1-ENV): Likewise.
25059 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
25060 * sysdeps/x86_64/tst-platform-1.c: New file.
25061 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
25062 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
25063
25064 2017-10-19 Mike FABIAN <mfabian@redhat.com>
25065
25066 [BZ #13994]
25067 * locale/iso-639.def: Add Karbi.
25068 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
25069 * localedata/locales/mjw_IN: New file.
25070
25071 2017-10-18 Joseph Myers <joseph@codesourcery.com>
25072
25073 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
25074 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
25075 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
25076 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
25077 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
25078 (libm_alias_ldouble_other_r): Also create _Float128 alias.
25079 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
25080 <bits/floatn.h>.
25081 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
25082 (libm_alias_ldouble_other_r): Also create _Float128 alias.
25083 * manual/math.texi (Mathematics): Document additional architecture
25084 support for _Float128.
25085 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25086 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25087 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25088 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25089 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25090 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25091 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25092 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25093 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25094 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25095 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25096 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25097 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25098 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25099 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25100
25101 2017-10-18 Renlin Li <renlin.li@arm.com>
25102
25103 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
25104 _DYNAMIC symbol to calculate load address.
25105
25106 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
25107
25108 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
25109 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
25110 summary bits.
25111 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
25112 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
25113
25114 2017-10-18 Mike FABIAN <mfabian@redhat.com>
25115
25116 [BZ #16777]
25117 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
25118 and improve readability by using more ASCII.
25119 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
25120 and improve readability by using more ASCII.
25121
25122 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
25123
25124 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
25125 not all targets support atomics on bool.
25126
25127 2017-10-17 Joseph Myers <joseph@codesourcery.com>
25128
25129 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
25130 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
25131 __f128.
25132 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25133 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
25134 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25135 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
25136 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25137 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
25138
25139 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25140
25141 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
25142 defines.
25143
25144 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25145
25146 [BZ #22159]
25147 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
25148 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
25149 (do_check_remalloced_chunk): Fix build bug.
25150 (do_check_malloc_state): Add assert that checks arena->top.
25151 (malloc_consolidate): Remove initialization.
25152 (int_mallinfo): Remove call to malloc_consolidate.
25153 (__libc_mallopt): Clarify why malloc_consolidate is needed.
25154
25155 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25156
25157 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
25158 (have_fastchunks): Remove.
25159 (clear_fastchunks): Remove.
25160 (set_fastchunks): Remove.
25161 (malloc_state): Add have_fastchunks.
25162 (malloc_init_state): Use have_fastchunks.
25163 (do_check_malloc_state): Remove incorrect invariant checks.
25164 (_int_malloc): Use have_fastchunks.
25165 (_int_free): Likewise.
25166 (malloc_consolidate): Likewise.
25167
25168 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25169
25170 * malloc/malloc.c (tcache_put): Inline.
25171 (tcache_get): Inline.
25172
25173 2017-10-17 Jordi Mallach <jordi@gnu.org>
25174
25175 Aurelien Jarno <aurelien@aurel32.net>
25176 [BZ #2522]
25177 * localedata/locales/ca_ES@valencia: New file.
25178 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
25179
25180 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
25181
25182 [BZ #22296]
25183 * math/math.h: Let signbit use the builtin in C++ mode with gcc
25184 < 6.x
25185
25186 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25187
25188 * scripts/build-many-glibcs.py (Context.add_all_configs):
25189 Add arm-linux-gnueabihf multiarch extra_glibcs.
25190
25191 * sysdeps/generic/ifunc-init.h: New file.
25192 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
25193
25194 2017-10-17 Mike FABIAN <mfabian@redhat.com>
25195
25196 [BZ #22019]
25197 * localedata/locales/el_GR: Set n_cs_precedes to 0.
25198 * localedata/locales/el_CY: copy "el_GR" because it is identical.
25199 * stdlib/tst-strfmon_l.c: adapt test case.
25200
25201 2017-10-16 Joseph Myers <joseph@codesourcery.com>
25202
25203 * sysdeps/generic/float128-abi.h: New file.
25204 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
25205 non-__prefixed symbols to ....
25206 * math/Versions: ... here. Include <float128-abi.h>.
25207 * stdlib/Versions ... and here. Include <float128-abi.h>
25208
25209 2017-10-16 Florian Weimer <fweimer@redhat.com>
25210
25211 * version.h (VERSION): Switch to ".9000" as the development
25212 version suffix.
25213
25214 2017-10-16 Florian Weimer <fweimer@redhat.com>
25215
25216 [BZ #22050]
25217 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
25218 compat_symbol_reference to access non-default version.
25219
25220 2017-10-16 Florian Weimer <fweimer@redhat.com>
25221
25222 * malloc/Makefile (others-extras): Set to mcheck-init.o.
25223
25224 2017-10-16 Carlos O'Donell <carlos@redhat.com>
25225
25226 * include/shlib-compat.h (compat_symbol_reference): Update
25227 comment.
25228
25229 2017-10-16 Joseph Myers <joseph@codesourcery.com>
25230
25231 * math/Makefile (test-types): Add
25232 $(type-float128-$(float128-alias-fcts)).
25233 * math/test-float128.h (TYPE_STR): Define conditional on
25234 [FLT128_MANT_DIG == LDBL_MANT_DIG].
25235 (ULP_IDX): Likewise.
25236 (ULP_I_IDX): Likewise.
25237
25238 * stdlib/strtold.c: Include <bits/floatn.h>
25239 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
25240 and later undefine as macro. Define as weak alias if
25241 [!USE_WIDE_CHAR].
25242 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
25243 and later undefine as macro. Define as weak alias if
25244 [USE_WIDE_CHAR].
25245 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
25246 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
25247 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
25248 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25249 Define and later undefine as macro. Define as weak alias if
25250 [USE_WIDE_CHAR].
25251 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
25252 <bits/floatn.h>.
25253 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
25254 Define and later undefine as macro. Define as weak alias if
25255 [!USE_WIDE_CHAR].
25256 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25257 Define and later undefine as macro. Define as weak alias if
25258 [USE_WIDE_CHAR].
25259
25260 2017-10-15 Carlos O'Donell <carlos@redhat.com>
25261
25262 * localedata/collate-test.c (allocate_arrays): Don't use \n in
25263 record_verbose messages.
25264
25265 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
25266
25267 [BZ #22052]
25268 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
25269 to silence -O3 -Wall warning with GCC 7.
25270
25271 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
25272
25273 * Makeconfig (+link-static-before-libc): Use the first of
25274 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
25275 * gmon/Makefile (tests): Add tst-gmon-static.
25276 (tests-static): Likewise.
25277 (CFLAGS-tst-gmon-static.c): New.
25278 (CRT-tst-gmon-static): Likewise.
25279 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
25280 (tst-gmon-static-ENV): Likewise.
25281 (tests-special): Likewise.
25282 ($(objpfx)tst-gmon-static.out): Likewise.
25283 (clean-tst-gmon-static-data): Likewise.
25284 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
25285 * gmon/tst-gmon-static-gprof.sh: New file.
25286 * gmon/tst-gmon-static.c: Likewise.
25287
25288 2017-10-13 Carlos O'Donell <carlos@redhat.com>
25289
25290 [BZ #22295]
25291 * locale/programs/linereader.c (get_string): Don't warn on
25292 non-symbolic character.
25293
25294 [BZ #22294]
25295 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
25296 int_curr_symbol.
25297
25298 [BZ #22292]
25299 * locale/programs/record-status.h: New file
25300 * locale/programs/locale.c: Add comment.
25301 * locale/programs/charmap-dir.c: Don't include error.h.
25302 (charmap_opendir): Use record_error.
25303 * locale/programs/charmap.c: Don't include error.h.
25304 (charmap_read): Use record_error, and record_warning.
25305 (parse_charmap): Likewise.
25306 * locale/programs/ld-address.c: Don't include error.h.
25307 (address_finish): Use record_error, and record_warning.
25308 * locale/programs/ld-collate.c: Don't include error.h.
25309 (collate_finish): Use record_error, and record_error_at_line.
25310 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
25311 (ctype_class_new): Likewise.
25312 (ctype_map_new): Likewise.
25313 (set_one_default): Likewise.
25314 (set_class_defaults): Likewise.
25315 (translit_flatten): Likewise.
25316 (allocate_arrays): Use record_error, and record_verbose.
25317 * locale/programs/ld-identification.c: Don't include error.h.
25318 (indentation_finish): Use record_error and record_warning.
25319 * locale/programs/ld-measurement.c: Don't include error.h.
25320 (measurement_finish): Use record_error.
25321 * locale/programs/ld-messages.c
25322 (message_finish): Likewise.
25323 * locale/programs/ld-monetary.c
25324 (monetary_finish): Likewise.
25325 * locale/programs/ld-name.c (name_finish): Use record_error
25326 and record_warning.
25327 * locale/programs/ld-numeric.c
25328 (numeric_finish): Use record_error.
25329 * locale/programs/ld-paper.c: Don't include error.h.
25330 (paper_finish): Use record_error.
25331 * locale/programs/ld-telephone.c: Don't include error.h.
25332 (telephone_finish): Use record_error.
25333 * locale/programs/ld-time.c (time_finish): Likewise.
25334 * locale/programs/linereader.h (lr_error): Make inline func.
25335 * locale/programs/localedef.c: Define recorded_warning_count,
25336 and recorded_error_count.
25337 (main): Use record_error. Use recorded_error_count and
25338 recorded_warning_count to issue correct error returns.
25339 (add_to_readlist): Use record_error.
25340 (find_locale): Likewise.
25341 (load_locale): Likewise.
25342 * locale/programs/localedef.h: Remove be_quiet
25343 and WITH_CUR_LOCALE.
25344 * locale/programs/locarchive.c (compare_from_file): Use
25345 record_error.
25346 * locale/programs/locfile.c (write_locale_data): Use
25347 record_error.
25348 * locale/programs/repertoire.c: Dont include error.h.
25349 (repertoire_complain): Use record_error.
25350 * localedata/tst-fmon.sh: Expect failures from localedef.
25351 * localedata/tst-locale.sh: Likewise.
25352 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
25353
25354 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
25355 (REPORTS): Likewise.
25356 (check): Likewise.
25357 (i18n): Rename to...
25358 (i18n_ctype): ...this.
25359 (i18n-report): Rename to...
25360 (i18n_ctype-report): ...this.
25361 * localedata/locales/i18n_ctype: Regenerate.
25362 * localedata/locales/i18n: copy i18n_ctype.
25363
25364 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25365
25366 * stdlib/strfroml.c: Include <bits/floatn.h>.
25367 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
25368 Define before include of <stdlib.h> and undefine afterwards, then
25369 define as weak alias.
25370
25371 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
25372 Undefine and restore default definition. Use
25373 libm_alias_ldouble_other.
25374
25375 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
25376
25377 [BZ #22153]
25378 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
25379 in coredumps.
25380
25381 2017-10-13 James Clarke <jrtc27@jrtc27.com>
25382
25383 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
25384 Assign sym_map to be map for local symbols, as TLS relocations
25385 use sym_map to determine whether the symbol is defined and to
25386 extract the TLS information.
25387 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
25388 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
25389
25390 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
25391
25392 [BZ #22189]
25393 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
25394 (math_force_eval): Add powerpc version.
25395
25396 [BZ #22142]
25397 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
25398 -DBL_MAX.
25399 (do_test): Likewise.
25400 * stdio-common/tst-printf.sh: Likewise.
25401 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
25402 ifdef clause in order to set the carry bit right. Replace r0 by
25403 0 without changing the behavior.
25404
25405 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25406
25407 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
25408 <libm-alias-ldouble.h>.
25409 (fabsl): Define using libm_alias_ldouble.
25410 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
25411 <libm-alias-ldouble.h>.
25412 (fabsl): Define using libm_alias_ldouble.
25413
25414 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
25415 Remove conditional code.
25416
25417 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
25418 Rename to __clog10_internal_l.
25419 (__clog10_internal_l): Define aliases using
25420 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
25421 with __clog10.
25422
25423 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25424
25425 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
25426 * benchtests/sincosf-inputs: New file.
25427 * benchtests/cosf-inputs: New file.
25428 * benchtests/sinf-inputs: New file.
25429
25430 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
25431
25432 * posix/tst-spawn.c (do_test): Wait for both children.
25433
25434 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
25435
25436 [BZ #22284]
25437 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
25438 tests-pie): Add tst-gmon-pie.
25439 (CFLAGS-tst-gmon-pie.c): New.
25440 (CRT-tst-gmon-pie): Likewise.
25441 (tst-gmon-pie-ENV): Likewise.
25442 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
25443 ($(objpfx)tst-gmon-pie.out): Likewise.
25444 (clean-tst-gmon-pie-data): Likewise.
25445 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
25446 * gmon/gmon.c [PIC]: Include <link.h>.
25447 [PIC] (callback): New function.
25448 (write_hist): Add an argument for load address. Subtract load
25449 address from PCs.
25450 (write_call_graph): Likewise.
25451 (write_gmon): Call __dl_iterate_phdr to get load address, pass
25452 it to write_hist and write_call_graph.
25453 * gmon/tst-gmon-pie.c: New file.
25454
25455 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25456
25457 * math/Makefile (test-types-basic): New variable.
25458 (test-types): Likewise.
25459 (libm-test-support): Use $(test-types) instead of $(types).
25460 (libm-tests-base-normal): Likewise.
25461 (libm-tests-base-finite): Likewise.
25462 (libm-tests-base-inline): Likewise.
25463 (generated): Likewise.
25464 ($(objpfx)libm-test-support-$(t).c): Likewise.
25465 (libm-tests-for-type iterator): Likewise.
25466 (libm-test-support iterator): Likewise.
25467 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
25468 (ulp_idx): Use ULP_IDX.
25469 * math/test-ldouble.h: Include <float.h>.
25470 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
25471 (ULP_IDX): New macro.
25472 (ULP_I_IDX): Likewise.
25473 * math/test-double.h (ULP_IDX): Likewise.
25474 (ULP_I_IDX): Likewise.
25475 * math/test-float.h (ULP_IDX): Likewise.
25476 (ULP_I_IDX): Likewise.
25477 * math/test-float128.h (ULP_IDX): Likewise.
25478 (ULP_I_IDX): Likewise.
25479
25480 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25481
25482 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
25483 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
25484 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
25485 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
25486 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
25487 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
25488 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
25489 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
25490 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
25491 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
25492 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
25493 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
25494 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
25495 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25496 (SINGLE_THREAD_BY_GLOBAL): Define.
25497 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25498 Likewise.
25499 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25500 Likewise.
25501 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25502 Likewise.
25503 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25504 Likewise.
25505 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
25506 (SINGLE_THREAD_BY_GLOBAL): Likewise.
25507 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25508 Likewise.
25509
25510 2017-10-11 Andreas Schwab <schwab@suse.de>
25511
25512 * nis/Makefile (aux): Remove.
25513 * nscd/Makefile (aux): Add nscd_hash.
25514 (nscd-modules): Likewise.
25515 ($(objpfx)nscd): Don't depend on libnsl.
25516 * nscd/nscd_hash.c: New file.
25517 * nscd/nscd_hash.h: Likewise.
25518 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
25519 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
25520 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
25521 instead of <nis/rpcsvc/nis.h>.
25522 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
25523
25524 2017-10-11 Florian Weimer <fweimer@redhat.com>
25525
25526 [BZ #22078]
25527 Avoid large NSS buffers with many addresses, aliases.
25528 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
25529 using dynarrays and struct alloc_buffer.
25530 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
25531 (tst-nss-files-hosts-multi): Link with -ldl.
25532 * nss/tst-nss-files-hosts-multi.c: New file.
25533
25534 2017-10-11 Florian Weimer <fweimer@redhat.com>
25535
25536 [BZ #18023]
25537 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
25538 scratch_buffer. Eliminate gotos.
25539
25540 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25541
25542 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
25543 libm_alias_ldouble_other.
25544 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
25545 undefine and redefine.
25546 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
25547 (exp10l): Do not define here.
25548 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
25549 (weak_alias): Undefine and redefine.
25550 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
25551 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
25552 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
25553 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
25554
25555 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
25556 [!__fma] (fma): Define using libm_alias_double.
25557 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
25558 [!__fmaf] (fmaf): Define using libm_alias_float.
25559 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
25560 (fmal): Define using libm_alias_ldouble.
25561
25562 2017-10-10 Joseph Myers <joseph@codesourcery.com>
25563
25564 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
25565 New macro.
25566 (libm_alias_double_other): Likewise.
25567 (libm_alias_double_r): Use libm_alias_double_other_r.
25568 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
25569 New macro.
25570 (libm_alias_float_other): Likewise.
25571 (libm_alias_float_r): Use libm_alias_float_other_r.
25572 * sysdeps/generic/libm-alias-float128.h
25573 (libm_alias_float128_other_r): New macro.
25574 (libm_alias_float128_other): Likewise.
25575 (libm_alias_float128_r): Use libm_alias_float128_other_r.
25576 * sysdeps/generic/libm-alias-ldouble.h
25577 (libm_alias_ldouble_other_r): New macro.
25578 (libm_alias_ldouble_other): Likewise.
25579 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25580 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
25581 (libm_alias_double_other_r): New macro.
25582 (libm_alias_double_other): Likewise.
25583 (libm_alias_double_r): Use libm_alias_double_other_r.
25584 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
25585 (libm_alias_ldouble_other_r): New macro.
25586 (libm_alias_ldouble_other): Likewise.
25587 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25588 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
25589 [!USE_AS_COMPAT]: Use libm_alias_double_other.
25590 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
25591 [!USE_AS_COMPAT]: Use libm_alias_float_other.
25592 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
25593 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
25594 * math/w_exp2f.c: Use libm_alias_float_other.
25595 * math/w_expf.c: Likewise.
25596 * math/w_log2f.c: Likewise.
25597 * math/w_logf.c: Likewise.
25598 * math/w_powf.c: Likewise.
25599 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
25600 [!__exp2f]: Use libm_alias_float_other.
25601 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
25602 [!__expf]: Use libm_alias_float_other.
25603 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
25604 [!__log2f]: Use libm_alias_float_other.
25605 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
25606 [!__logf]: Use libm_alias_float_other.
25607 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
25608 [!__powf]: Use libm_alias_float_other.
25609
25610 2017-10-10 Florian Weimer <fweimer@redhat.com>
25611
25612 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
25613 function.
25614 (_nss_files_gethostbyname3_r): Call it.
25615
25616 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25617
25618 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
25619 error. Remove default definition of declare_mgen_alias.
25620 [!declare_mgen_alias_r]: Likewise.
25621 * sysdeps/generic/math-type-macros-double.h
25622 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
25623 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
25624 (declare_mgen_alias_r): Likewise.
25625 * sysdeps/generic/math-type-macros-float128.h
25626 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25627 * sysdeps/generic/math-type-macros-ldouble.h
25628 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25629 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
25630 macro.
25631 (declare_mgen_alias_r_s): Likewise.
25632 (declare_mgen_alias_r): Likewise.
25633 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
25634 (lgamma_r): Define using libm_alias_double_r.
25635 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
25636 (lgammaf_r): Define using libm_alias_float_r.
25637 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
25638 (lgammal_r): Define using libm_alias_ldouble_r.
25639 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
25640 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25641
25642 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25643
25644 * lib/glob.c (__glob_pattern_type): Remove now-spurious
25645 extern declaration.
25646
25647 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25648
25649 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
25650
25651 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
25652
25653 [BZ #21326]
25654 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
25655 [__cplusplus >= 201103] (__USE_ISOC99): Define.
25656 * math/Makefile (test-math-cxx11): New test.
25657 * math/test-math-cxx11.cc: New file.
25658
25659 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
25660
25661 * login/openpty.c (openpty): Close slave pty file descriptor on error.
25662
25663 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
25664 call to allocate the slave pty file descriptor.
25665
25666 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25667
25668 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
25669 [!__fma] (fma): Define using libm_alias_double.
25670 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
25671 [!__fma] (fma): Define using libm_alias_double.
25672
25673 * sysdeps/ieee754/float128/float128_private.h: Include
25674 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
25675 (libm_alias_ldouble_r): Undefine and redefine.
25676 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
25677 <libm-alias-ldouble.h>.
25678 (asinhl): Define using libm_alias_ldouble.
25679 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
25680 <libm-alias-ldouble.h>.
25681 (atanl): Define using libm_alias_ldouble.
25682 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
25683 <libm-alias-ldouble.h>.
25684 (cbrtl): Define using libm_alias_ldouble.
25685 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
25686 <libm-alias-ldouble.h>.
25687 (ceill): Define using libm_alias_ldouble.
25688 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
25689 <libm-alias-ldouble.h>.
25690 (copysignl): Define using libm_alias_ldouble.
25691 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
25692 <libm-alias-ldouble.h>.
25693 (cosl): Define using libm_alias_ldouble.
25694 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
25695 <libm-alias-ldouble.h>.
25696 (erfl): Define using libm_alias_ldouble.
25697 (erfcl): Likewise.
25698 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
25699 <libm-alias-ldouble.h>.
25700 (expm1l): Define using libm_alias_ldouble.
25701 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
25702 <libm-alias-ldouble.h>.
25703 (fabsl): Define using libm_alias_ldouble.
25704 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
25705 <libm-alias-ldouble.h>.
25706 (floorl): Define using libm_alias_ldouble.
25707 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
25708 <libm-alias-ldouble.h>.
25709 (fmal): Define using libm_alias_ldouble.
25710 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
25711 <libm-alias-ldouble.h>.
25712 (frexpl): Define using libm_alias_ldouble.
25713 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
25714 libm_alias_ldouble.
25715 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
25716 <libm-alias-ldouble.h>.
25717 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
25718 libm_alias_ldouble.
25719 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
25720 <libm-alias-ldouble.h>.
25721 (getpayloadl): Define using libm_alias_ldouble.
25722 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
25723 <libm-alias-ldouble.h>.
25724 (llrintl): Define using libm_alias_ldouble.
25725 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
25726 <libm-alias-ldouble.h>.
25727 (llroundl): Define using libm_alias_ldouble.
25728 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
25729 <libm-alias-ldouble.h>.
25730 (logbl): Define using libm_alias_ldouble.
25731 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
25732 <libm-alias-ldouble.h>.
25733 (lrintl): Define using libm_alias_ldouble.
25734 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
25735 <libm-alias-ldouble.h>.
25736 (lroundl): Define using libm_alias_ldouble.
25737 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
25738 <libm-alias-ldouble.h>.
25739 (modfl): Define using libm_alias_ldouble.
25740 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
25741 <libm-alias-ldouble.h>.
25742 (nearbyintl): Define using libm_alias_ldouble.
25743 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
25744 <libm-alias-ldouble.h>.
25745 (nextafterl): Define using libm_alias_ldouble.
25746 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
25747 <libm-alias-ldouble.h>.
25748 (nextupl): Define using libm_alias_ldouble.
25749 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
25750 <libm-alias-ldouble.h>.
25751 (remquol): Define using libm_alias_ldouble.
25752 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
25753 <libm-alias-ldouble.h>.
25754 (rintl): Define using libm_alias_ldouble.
25755 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
25756 <libm-alias-ldouble.h>.
25757 (roundevenl): Define using libm_alias_ldouble.
25758 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
25759 <libm-alias-ldouble.h>.
25760 (roundl): Define using libm_alias_ldouble.
25761 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
25762 using libm_alias_ldouble.
25763 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
25764 <libm-alias-ldouble.h>.
25765 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
25766 Define using libm_alias_ldouble.
25767 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
25768 <libm-alias-ldouble.h>.
25769 (sincosl): Define using libm_alias_ldouble.
25770 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
25771 <libm-alias-ldouble.h>.
25772 (sinl): Define using libm_alias_ldouble.
25773 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
25774 <libm-alias-ldouble.h>.
25775 (tanhl): Define using libm_alias_ldouble.
25776 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
25777 <libm-alias-ldouble.h>.
25778 (tanl): Define using libm_alias_ldouble.
25779 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
25780 <libm-alias-ldouble.h>.
25781 (totalorderl): Define using libm_alias_ldouble.
25782 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
25783 <libm-alias-ldouble.h>.
25784 (totalordermagl): Define using libm_alias_ldouble.
25785 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
25786 <libm-alias-ldouble.h>.
25787 (truncl): Define using libm_alias_ldouble.
25788 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
25789 libm_alias_ldouble.
25790 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
25791 libm_alias_ldouble.
25792 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
25793 <libm-alias-ldouble.h>.
25794 (weak_alias): Do not undefine and redefine.
25795 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25796 (copysignl): Define with long_double_symbol only if [IS_IN
25797 (libc)].
25798 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
25799 <libm-alias-ldouble.h>.
25800 (weak_alias): Do not undefine and redefine.
25801 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25802 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
25803 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
25804 <libm-alias-ldouble.h>.
25805 (weak_alias): Do not undefine and redefine.
25806 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25807 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
25808 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
25809 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
25810 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
25811 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
25812 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
25813 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
25814 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
25815 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
25816 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
25817 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
25818 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
25819 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
25820 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
25821 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
25822 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
25823 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
25824 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
25825 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
25826 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
25827 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
25828 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
25829 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
25830 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
25831 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
25832
25833 2017-10-06 Carlos O'Donell <carlos@redhat.com>
25834
25835 [BZ #22111]
25836 * malloc/malloc.c (tcache_shutting_down): Use bool type.
25837 (tcache_thread_freeres): Set tcache_shutting_down before
25838 freeing the tcache.
25839 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
25840 * malloc/tst-malloc-tcache-leak.c: New file.
25841
25842 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25843
25844 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
25845 back to powerpc32 file.
25846 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25847 (memrchr): Add __memrchr_power8 to ifunc list.
25848 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
25849 extra bytes for unaligned inputs.
25850
25851 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25852
25853 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
25854 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
25855 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
25856 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
25857 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
25858
25859 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25860
25861 * sysdeps/arm/libm-test-ulps: Update.
25862
25863 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
25864 <libm-alias-ldouble.h>.
25865 (asinhl): Define using libm_alias_ldouble.
25866 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
25867 <libm-alias-ldouble.h>.
25868 (cbrtl): Define using libm_alias_ldouble.
25869 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
25870 <libm-alias-ldouble.h>.
25871 (copysignl): Define using libm_alias_ldouble.
25872 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
25873 <libm-alias-ldouble.h>.
25874 (cosl): Define using libm_alias_ldouble.
25875 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
25876 <libm-alias-ldouble.h>.
25877 (erfl): Define using libm_alias_ldouble.
25878 (erfcl): Likewise.
25879 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
25880 <libm-alias-ldouble.h>.
25881 (fmal): Define using libm_alias_ldouble.
25882 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
25883 <libm-alias-ldouble.h>.
25884 (frexpl): Define using libm_alias_ldouble.
25885 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
25886 libm_alias_ldouble.
25887 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
25888 <libm-alias-ldouble.h>.
25889 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
25890 libm_alias_ldouble.
25891 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
25892 <libm-alias-ldouble.h>.
25893 (getpayloadl): Define using libm_alias_ldouble.
25894 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
25895 <libm-alias-ldouble.h>.
25896 (llrintl): Define using libm_alias_ldouble.
25897 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
25898 <libm-alias-ldouble.h>.
25899 (llroundl): Define using libm_alias_ldouble.
25900 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
25901 <libm-alias-ldouble.h>.
25902 (lrintl): Define using libm_alias_ldouble.
25903 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
25904 <libm-alias-ldouble.h>.
25905 (lroundl): Define using libm_alias_ldouble.
25906 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
25907 <libm-alias-ldouble.h>.
25908 (modfl): Define using libm_alias_ldouble.
25909 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
25910 <libm-alias-ldouble.h>.
25911 (nextupl): Define using libm_alias_ldouble.
25912 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
25913 <libm-alias-ldouble.h>.
25914 (remquol): Define using libm_alias_ldouble.
25915 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
25916 <libm-alias-ldouble.h>.
25917 (roundevenl): Define using libm_alias_ldouble.
25918 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
25919 <libm-alias-ldouble.h>.
25920 (roundl): Define using libm_alias_ldouble.
25921 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
25922 using libm_alias_ldouble.
25923 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
25924 <libm-alias-ldouble.h>.
25925 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
25926 <libm-alias-ldouble.h>.
25927 (setpayloadsigl): Define using libm_alias_ldouble.
25928 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
25929 <libm-alias-ldouble.h>.
25930 (sincosl): Define using libm_alias_ldouble.
25931 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
25932 <libm-alias-ldouble.h>.
25933 (sinl): Define using libm_alias_ldouble.
25934 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
25935 <libm-alias-ldouble.h>.
25936 (tanhl): Define using libm_alias_ldouble.
25937 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
25938 <libm-alias-ldouble.h>.
25939 (tanl): Define using libm_alias_ldouble.
25940 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
25941 <libm-alias-ldouble.h>.
25942 (totalorderl): Define using libm_alias_ldouble.
25943 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
25944 <libm-alias-ldouble.h>.
25945 (totalordermagl): Define using libm_alias_ldouble.
25946 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
25947 libm_alias_ldouble.
25948 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
25949 libm_alias_ldouble.
25950
25951 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
25952
25953 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
25954 memmove_falkor.
25955 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25956 (__libc_ifunc_impl_list): Likewise.
25957 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
25958 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
25959
25960 * benchtests/bench-memmove-walk.c: New file.
25961 * benchtests/Makefile (string-benchset): Add it.
25962
25963 * benchtests/bench-memset-walk.c: New file.
25964 * benchtests/Makefile (string-benchset): Add it.
25965
25966 * benchtests/bench-memcpy-walk.c: New file.
25967 * benchtests/Makefile (string-benchset): Add it.
25968
25969 2017-10-05 Florian Weimer <fweimer@redhat.com>
25970
25971 nscd: Eliminate compilation time dependency in the build output.
25972 * nscd/nscd_stat.c (STATDATA_VERSION)
25973 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
25974 (STATDATA_VERSION_FULL): New macro definitions.
25975 (compilation): Remove.
25976 (struct statdata): Adjust version member.
25977 (send_stats): Set version from STATDATA_VERSION_FULL.
25978 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25979
25980 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25981
25982 * configure.ac (--enable-add-ons): Remove option.
25983 (machine): Do not mention add-ons in comment.
25984 (LIBC_PRECONFIGURE): Likewise.
25985 (add_ons): Remove variable and sanity checks and logic to locate
25986 add-ons.
25987 (add_ons_automatic): Remove variable.
25988 (configured_add_ons): Likewise.
25989 (add_ons_sfx): Likewise.
25990 (add_ons_pfx): Likewise.
25991 (add_on_subdirs): Likewise.
25992 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25993 consideration of add-ons in Implies handling.
25994 (sysdeps_add_ons): Likewise.
25995 * configure: Regenerated.
25996 * libidn/configure.ac: Remove.
25997 * libidn/configure: Likewise.
25998 * sysdeps/unix/inet/configure.ac: New file.
25999 * sysdeps/unix/inet/configure: New generated file.
26000 * sysdeps/unix/inet/Subdirs: Add libidn.
26001 * Makeconfig (sysdeps-srcdirs): Remove variable.
26002 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
26003 ($(common-objpfx)config.status): Do not depend on add-on files.
26004 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
26005 comment.
26006 (all-subdirs): Do not include $(add-on-subdirs).
26007 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
26008 * config.make.in (add-ons): Remove variable.
26009 (add-on-subdirs): Likewise.
26010 (sysdeps-add-ons): Likewise.
26011 * manual/Makefile (add-chapters): Remove.
26012 ($(objpfx)texis): Do not depend on $(add-chapters).
26013 (nonexamples): Do not handle $(add-chapters).
26014 (examples): Do not handle $(add-ons).
26015 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
26016 libc-texinfo.sh.
26017 * manual/install.texi (Installation): Do not mention add-ons.
26018 (--enable-add-ons): Do not document configure option.
26019 * INSTALL: Regenerated.
26020 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
26021 * manual/maint.texi (Hierarchy Conventions): Do not mention
26022 add-ons.
26023 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
26024 --enable-add-ons.
26025 * scripts/gen-sorted.awk: Do not handle Subdirs files from
26026 add-ons.
26027 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
26028 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
26029
26030 2017-10-05 Andreas Schwab <schwab@suse.de>
26031
26032 [BZ #15142]
26033 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
26034 (_IO_flush_all_lockp): Always lock list_all_lock.
26035 (_IO_flush_all_linebuffered): Likewise.
26036 (_IO_unbuffer_all): Likewise.
26037
26038 2017-10-05 Florian Weimer <fweimer@redhat.com>
26039
26040 [BZ #15436]
26041 Do not flush stdio streams on abort.
26042 * stdlib/abort.c (fflush): Remove macro definition.
26043 (abort): Remove stages related to stdio flushing.
26044
26045 2017-10-05 Florian Weimer <fweimer@redhat.com>
26046
26047 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
26048
26049 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
26050
26051 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
26052
26053 2017-10-05 Florian Weimer <fweimer@redhat.com>
26054
26055 * support/support_format_hostent.c (support_format_hostent): Add
26056 more error information for NETDB_INTERNAL.
26057
26058 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26059
26060 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
26061 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
26062 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
26063 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
26064 AC_DEFINE if multi-arch is enabled.
26065 * sysdeps/i386/configure: Regenerated.
26066
26067 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26068
26069 * Makeconfig (+link-static-before-libc): Use
26070 $(DEFAULT-LDFLAGS-$(@F)).
26071 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
26072 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
26073 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
26074
26075 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26076
26077 * elf/Makefile (tests): Add tst-main1.
26078 (modules-names): Add tst-main1mod.
26079 ($(objpfx)tst-main1): New.
26080 (CRT-tst-main1): Likewise.
26081 (LDFLAGS-tst-main1): Likewise.
26082 (LDLIBS-tst-main1): Likewise.
26083 (tst-main1mod.so-no-z-defs): Likewise.
26084 * elf/tst-main1.c: New file.
26085 * elf/tst-main1mod.c: Likewise.
26086
26087 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26088
26089 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
26090
26091 2017-10-04 Joseph Myers <joseph@codesourcery.com>
26092
26093 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
26094 (fma): Define using libm_alias_double.
26095 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
26096 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
26097 <math_ldbl_opt.h>.
26098 (fmal): Do not define as compat symbol here.
26099 * sysdeps/alpha/fpu/s_fma.c: New file.
26100
26101 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26102
26103 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
26104
26105 2017-10-04 Joseph Myers <joseph@codesourcery.com>
26106
26107 [BZ #22229]
26108 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
26109 <math_ldbl_opt.h>
26110 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
26111 and libc.
26112 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
26113 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26114 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
26115 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
26116 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
26117 Include <math_ldbl_opt.h>
26118 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
26119 and libc.
26120 (compat_symbol): Undefine and redefine.
26121 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
26122 <math_ldbl_opt.h>
26123 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26124 (compat_symbol): Undefine and redefine.
26125 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
26126 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
26127 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
26128 GLIBC_2_1 for libm.
26129 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
26130 GLIBC_2.0 copysignl symbol.
26131 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
26132 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
26133
26134 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
26135
26136 2017-10-04 Florian Weimer <fweimer@redhat.com>
26137
26138 * scripts/check-local-headers.sh: Ignore nspr4 header file
26139 directory in addition to nspr.
26140
26141 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
26142
26143 [BZ #17956]
26144 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
26145 * configure: Regenerate.
26146 * crypt/Makefile (nss-cpp-flags): New variable.
26147 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
26148 (CPPFLAGS-md5-crypt.c): Use it.
26149 * scripts/check-local-headers.sh: Ignore nspr header file
26150 directory.
26151
26152 2017-10-04 Andreas Schwab <schwab@suse.de>
26153
26154 * nis/Makefile (services): Remove compat.
26155 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
26156 ($(objpfx)libnss_compat.so): Remove rule.
26157 * nis/Versions (libnss_compat): Remove.
26158 * nss/Makefile (services): Add compat.
26159 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
26160 * nss/Versions (libnss_compat): Define.
26161 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
26162 Don't include <rpc/types.h>. Replace bool_t by bool.
26163 * nss/nss_compat/compat-initgroups.c: Likewise.
26164 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
26165 instead of <rpcsrv/ypclnt.h>.
26166 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
26167 yp_get_default_domain.
26168 * nss/nss_compat/compat-pwd.c: Likewise.
26169 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
26170 yp_get_default_domain.
26171 * nss/nss_compat/nisdomain.c: New file.
26172 * nss/nss_compat/nisdomain.h: Likewise.
26173
26174 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26175
26176 [BZ #22244]
26177 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
26178 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
26179
26180 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26181
26182 [BZ #22243]
26183 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
26184 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
26185
26186 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26187
26188 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
26189 "movl main@GOTOFF(%ebx), %eax".
26190
26191 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26192
26193 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
26194 allow undefined _DYNAMIC in PIE libc.a.
26195 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26196 Likewse.
26197
26198 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26199
26200 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
26201 check _DYNAMIC.
26202
26203 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26204
26205 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
26206 check _DYNAMIC.
26207
26208 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26209
26210 * math/test-math-iscanonical.cc (error): Replace bool with int.
26211
26212 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26213
26214 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
26215 (modf): Define using libm_alias_double, only if [!__modf].
26216 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
26217 <libm-alias-double.h>.
26218 (modf): Define using libm_alias_double, only if [!__modf].
26219 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
26220 compat symbol here.
26221 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
26222 (weak_alias): Do not undefine and redefine.
26223 (strong_alias): Likewise.
26224 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
26225 (weak_alias): Likewise.
26226 (strong_alias): Likewise.
26227
26228 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
26229 (logb): Define using libm_alias_double, only if [!__logb].
26230 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
26231 <libm-alias-double.h>.
26232 (logb): Define using libm_alias_double, only if [!__logb].
26233 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
26234 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
26235 (weak_alias): Do not undefine and redefine.
26236 (strong_alias): Likewise.
26237 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
26238 (weak_alias): Likewise.
26239 (strong_alias): Likewise.
26240
26241 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26242
26243 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
26244 Check SHARED instead PIC.
26245
26246 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26247
26248 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
26249 [!__fmaf] (fmaf): Define using libm_alias_float.
26250
26251 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
26252 (frexp): Define using libm_alias_double.
26253 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
26254 <libm-alias-double.h>.
26255 (frexp): Define using libm_alias_double.
26256 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
26257 compat symbol here.
26258
26259 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26260
26261 [BZ #22235]
26262 * math/math.h: Trivial fix for unbalanced parentheses in comment.
26263 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
26264 (CFLAGS-test-math-iscanonical.cc): New variable.
26265 * math/test-math-iscanonical.cc: New file.
26266 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
26267 Provide a C++ implementation based on function overloading,
26268 rather than using __MATH_TG, which uses C-only builtins.
26269 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
26270 Likewise.
26271 * sysdeps/powerpc/powerpc64le/Makefile
26272 (CFLAGS-test-math-iscanonical.cc): New variable.
26273
26274 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26275
26276 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
26277 (ceil): Define using libm_alias_double.
26278 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
26279 (floor): Define using libm_alias_double.
26280 * sysdeps/ieee754/dbl-64/s_llround.c: Include
26281 <libm-alias-double.h>.
26282 (llround): Define using libm_alias_double.
26283 * sysdeps/ieee754/dbl-64/s_lround.c: Include
26284 <libm-alias-double.h>.
26285 (lround): Define using libm_alias_double.
26286 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
26287 <libm-alias-double.h>.
26288 (nearbyint): Define using libm_alias_double.
26289 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
26290 <libm-alias-double.h>.
26291 (remquo): Define using libm_alias_double.
26292 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
26293 (rint): Define using libm_alias_double.
26294 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
26295 (round): Define using libm_alias_double.
26296 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
26297 (trunc): Define using libm_alias_double.
26298 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
26299 <libm-alias-double.h>.
26300 (ceil): Define using libm_alias_double.
26301 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
26302 <libm-alias-double.h>.
26303 (floor): Define using libm_alias_double.
26304 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
26305 <libm-alias-double.h>.
26306 (llround): Define using libm_alias_double.
26307 [_LP64] (lround): Likewise.
26308 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
26309 <libm-alias-double.h>.
26310 [!_LP64] (lround): Define using libm_alias_double.
26311 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
26312 <libm-alias-double.h>.
26313 (nearbyint): Define using libm_alias_double.
26314 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
26315 <libm-alias-double.h>.
26316 (remquo): Define using libm_alias_double.
26317 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
26318 <libm-alias-double.h>.
26319 (rint): Define using libm_alias_double.
26320 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
26321 <libm-alias-double.h>.
26322 (round): Define using libm_alias_double.
26323 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
26324 <libm-alias-double.h>.
26325 (trunc): Define using libm_alias_double.
26326 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
26327 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
26328 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
26329 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
26330 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
26331 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
26332 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
26333 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
26334 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
26335
26336 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26337
26338 * math/w_remainder.c: New file.
26339 * math/w_remainderf.c: New file.
26340 * math/w_remainderl.c: New file.
26341
26342 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26343
26344 * elf/rtld.c (BOOTSTRAP_MAP): New.
26345 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
26346 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26347 Likewise.
26348 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26349 Likewise.
26350 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26351 Likewise.
26352
26353 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
26354
26355 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
26356 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
26357 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
26358 rtld_hidden_data_ver): Define to empty.
26359 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
26360 __assert_perror_fail): Likewise.
26361 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26362 (__rewinddir): Likewise.
26363 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26364 (__profile_frequency): Likewise.
26365 * include/setjmp.h (__sigsetjmp): Likewise.
26366 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
26367 __libc_sigaction): Likewise.
26368 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
26369 not set hidden attribute.
26370 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
26371 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
26372 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
26373 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
26374 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
26375 __fxstatat64): Likewise.
26376 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26377 (__uname): Likewise.
26378 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26379 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
26380 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
26381 (NO_RTLD_HIDDEN): Set.
26382 * sysdeps/mach/hurd/configure: Refresh.
26383 * config.h.in: Refresh.
26384
26385 2017-10-02 Joseph Myers <joseph@codesourcery.com>
26386
26387 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
26388 (atan): Define using libm_alias_double.
26389 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
26390 (tan): Define using libm_alias_double.
26391 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
26392 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
26393
26394 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
26395 define as weak alias of __atan. Do not define any aliases if
26396 [__atan].
26397 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
26398 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
26399 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
26400 as weak alias of __tan. Do not define any aliases if [__tan].
26401 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
26402 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
26403 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
26404 __atan.
26405 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
26406 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
26407 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
26408 and define as weak alias of __atan.
26409 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
26410 __atan.
26411 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
26412 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
26413 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
26414 define as weak alias of __tan.
26415
26416 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26417
26418 * math/w_lgamma.c: New file.
26419 * math/w_lgammaf.c: New file.
26420 * math/w_lgammal.c: New file.
26421
26422 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26423
26424 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
26425 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
26426 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
26427 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
26428 * sysdeps/ieee754/flt-32/w_logf.c: New file.
26429 * sysdeps/ieee754/flt-32/w_powf.c: New file.
26430 * sysdeps/i386/fpu/w_log2f.c: New file.
26431 * sysdeps/i386/fpu/w_logf.c: New file.
26432 * sysdeps/i386/fpu/w_powf.c: New file.
26433 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
26434 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
26435 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
26436
26437 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26438 H.J. Lu <hongjiu.lu@intel.com>
26439
26440 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
26441 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
26442 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
26443 * sysdeps/ieee754/flt-32/w_expf.c: New file.
26444 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
26445 the new expf code.
26446 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
26447 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
26448 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
26449 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
26450 * sysdeps/i386/fpu/w_exp2f.c: New file.
26451 * sysdeps/i386/fpu/w_expf.c: New file.
26452 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
26453 * sysdeps/x86_64/fpu/w_expf.c: New file.
26454
26455 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26456
26457 * math/Versions (logf): New libm symbol at GLIBC_2.27.
26458 (log2f): Likewise.
26459 (powf): Likewise.
26460 * math/w_log2f.c: New file.
26461 * math/w_logf.c: New file.
26462 * math/w_powf.c: New file.
26463 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
26464 * math/w_logf_compat.c (__logf_compat): Likewise.
26465 * math/w_powf_compat.c (__powf_compat): Likewise.
26466 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
26467 * sysdeps/ia64/fpu/e_logf.S: Likewise.
26468 * sysdeps/ia64/fpu/e_powf.S: Likewise.
26469 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26470 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26471 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26472 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26473 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26474 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26475 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26476 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26477 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26478 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26479 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26480 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26481 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26482 Likewise.
26483 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26484 Likewise.
26485 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26486 Likewise.
26487 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26488 Likewise.
26489 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26490 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26491 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26492 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26493 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26494 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26495 Likewise.
26496 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26497 Likewise.
26498 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26499 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26500 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26501
26502 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26503
26504 * sysdeps/powerpc/powerpc64/multiarch/Makefile
26505 (sysdep_routines): Add memrchr_power8.
26506 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26507 (memrchr): Add __memrchr_power8 to list of memrchr functions.
26508 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
26509 New file.
26510 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26511 (memrchr): Add __memrchr_power8 to ifunc list.
26512 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
26513
26514 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26515
26516 [BZ #18822]
26517 * sysdeps/unix/sysv/linux/posix_fadvise64.c
26518 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
26519 libc_hidden_def.
26520 * sysdeps/unix/sysv/linux/posix_fallocate64.c
26521 (__posix_fallocate64_l64): Likewise.
26522
26523 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26524
26525 [BZ #18822]
26526 * sysdeps/unix/sysv/linux/sched_setaffinity.c
26527 (__sched_setaffinity_new): Add libc_hidden_proto and
26528 libc_hidden_def.
26529
26530 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26531
26532 [BZ #18822]
26533 * include/glob.h (__glob64): Add libc_hidden_proto.
26534 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
26535 libc_hidden_def.
26536
26537 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26538
26539 [BZ #18822]
26540 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
26541 attribute_hidden.
26542
26543 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26544
26545 [BZ #18822]
26546 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
26547
26548 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26549
26550 [BZ #18822]
26551 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
26552 libc_hidden_def.
26553
26554 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26555
26556 [BZ #18822]
26557 * csu/version.c (__libc_print_version): Add attribute_hidden.
26558
26559 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26560
26561 [BZ #18822]
26562 * include/libc-internal.h (__init_misc): Add attribute_hidden.
26563
26564 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26565
26566 [BZ #18822]
26567 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
26568
26569 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26570
26571 [BZ #18822]
26572 * nscd/nscd_helper.c (__nis_hash): New prototype.
26573
26574 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26575
26576 [BZ #18822]
26577 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
26578 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
26579 libc_hidden_def.
26580 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
26581 * termios/tcgetattr.c (__tcgetattr): Likewise.
26582
26583 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26584
26585 [BZ #18822]
26586 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
26587 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
26588 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
26589 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
26590 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
26591
26592 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26593
26594 [BZ #18822]
26595 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
26596
26597 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26598
26599 [BZ #18822]
26600 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
26601 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
26602
26603 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26604
26605 [BZ #18822]
26606 * intl/hash-string.h (__hash_string): Add attribute_hidden.
26607
26608 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26609
26610 [BZ #18822]
26611 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
26612 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
26613
26614 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26615
26616 [BZ #18822]
26617 * include/ifreq.h: New file.
26618 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
26619 (__ifreq): Likewise.
26620 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
26621 (__ifreq): Likewise.
26622
26623 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26624
26625 [BZ #18822]
26626 * include/idna.h: New file.
26627 * inet/getnameinfo.c: Include <idna.h> instead of
26628 <libidn/idna.h>.
26629 (__idna_to_unicode_lzlz): Removed.
26630 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
26631 <libidn/idna.h>.
26632 (__idna_to_ascii_lz): Removed.
26633 (__idna_to_unicode_lzlz): Likewise.
26634
26635 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26636
26637 [BZ #18822]
26638 * include/plural-exp.h: New file.
26639 * intl/plural-exp.c: Include <plural-exp.h> instead of
26640 "plural-exp.h".
26641
26642 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26643
26644 [BZ #18822]
26645 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
26646 "getsourcefilter.h".
26647 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
26648 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
26649 "getsourcefilter.h".
26650 (__get_sol): Removed.
26651
26652 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26653
26654 [BZ #18822]
26655 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
26656 to ...
26657 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
26658
26659 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26660
26661 [BZ #18822]
26662 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
26663 attribute_hidden.
26664
26665 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26666
26667 [BZ #18822]
26668 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
26669
26670 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26671
26672 [BZ #18822]
26673 * include/search.h (__tdestroy): Add libc_hidden_proto.
26674 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
26675
26676 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26677
26678 [BZ #18822]
26679 * include/assert.h (__assert_fail_base): Add attribute_hidden.
26680
26681 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26682
26683 [BZ #18822]
26684 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
26685 attribute_hidden.
26686
26687 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26688
26689 [BZ #18822]
26690 * include/signal.h (__kill): Add libc_hidden_proto.
26691 (__sigblock): Likewise.
26692 (__sigprocmask): Likewise.
26693 (__sigaltstack): Likewise.
26694 * signal/kill.c (__kill): Add libc_hidden_def.
26695 * signal/sigblock.c (__sigblock): Likewise.
26696 * signal/sigprocmask.c (__sigprocmask): Likewise.
26697 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
26698 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
26699 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
26700 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
26701 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
26702 Likewise.
26703 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
26704 Likewise.
26705 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
26706 (__sigprocmask): Likewise.
26707 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
26708 Likewise.
26709 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
26710 (__sigprocmask): Likewise.
26711 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
26712 Likewise.
26713
26714 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26715
26716 [BZ #18822]
26717 * include/string.h (__strsep): Add libc_hidden_proto.
26718 * string/strsep.c (__strsep): Add libc_hidden_def.
26719
26720 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26721
26722 [BZ #18822]
26723 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
26724 attribute_hidden.
26725 (__spawni): Likewise.
26726
26727 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26728
26729 [BZ #18822]
26730 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
26731 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
26732 libc_hidden_def.
26733
26734 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26735
26736 [BZ #18822]
26737 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
26738
26739 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26740
26741 [BZ #18822]
26742 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
26743 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
26744 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
26745 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
26746 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
26747 Likewise.
26748 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
26749 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
26750
26751 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26752
26753 [BZ #18822]
26754 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
26755 (__dcigettext): Likewise.
26756
26757 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26758
26759 [BZ #18822]
26760 * include/sys/sysinfo.h (__get_nprocs_conf): Add
26761 libc_hidden_proto.
26762 (__get_nprocs): Likewise.
26763 (__get_phys_pages): Likewise.
26764 (__get_avphys_pages): Likewise.
26765 (__get_child_max): Add attribute_hidden.
26766 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
26767 (__get_nprocs): Likewise.
26768 (__get_phys_pages): Likewise.
26769 (__get_avphys_pages): Likewise.
26770 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
26771 libc_hidden_def.
26772 (__get_nprocs): Likewise.
26773 (__get_phys_pages): Likewise.
26774 (__get_avphys_pages): Likewise.
26775 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
26776 libc_hidden_def.
26777 (__get_nprocs_conf): Likewise.
26778 (__get_phys_pages): Likewise.
26779 (__get_avphys_pages): Likewise.
26780
26781 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26782
26783 [BZ #18822]
26784 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
26785 attribute_hidden.
26786 (__netlink_close): Likewise.
26787 (__netlink_free_handle): Likewise.
26788 (__netlink_request): Likewise.
26789
26790 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26791
26792 [BZ #18822]
26793 * include/rpc/rpc.h (__rpc_thread_variables): Add
26794 attribute_hidden.
26795 (__rpc_thread_svc_cleanup): Likewise.
26796 (__rpc_thread_clnt_cleanup): Likewise.
26797 (__rpc_thread_key_cleanup): Likewise.
26798
26799 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26800
26801 [BZ #18822]
26802 * include/sys/uio.h (__readv): Add libc_hidden_proto.
26803 (__writev): Likewise.
26804 * misc/readv.c (__readv): Add libc_hidden_def.
26805 * misc/writev.c (__writev): Likewise.
26806 * sysdeps/posix/readv.c (__readv): Likewise.
26807 * sysdeps/posix/writev.c (__writev): Likewise.
26808 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
26809 (__readv): Likewise.
26810 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
26811 (__writev): Likewise.
26812
26813 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26814
26815 [BZ #18822]
26816 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
26817 (__regcomp): Add libc_hidden_proto.
26818 (__regexec): Likewise.
26819 (__regfree): Likewise.
26820 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
26821 (__regfree): Likewise.
26822 * posix/regexec.c (__regexec): Likewise.
26823
26824 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26825
26826 [BZ #18822]
26827 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
26828 (__getutent): Likewise.
26829 (__getutid): Likewise.
26830 (__getutline): Likewise.
26831 (__pututline): Likewise.
26832 (__getutent_r): Likewise.
26833 (__getutid_r): Likewise.
26834 (__getutline_r): Likewise.
26835 (__utmpname): Add attribute_hidden.
26836 (__setutent): Likewise.
26837 (__endutent): Likewise.
26838 * login/getutent.c (__getutent): Add libc_hidden_def.
26839 * login/getutent_r.c (__getutent_r): Likewise.
26840 (__pututline): Likewise.
26841 * login/getutid.c (__getutid): Likewise.
26842 * login/getutid_r.c (__getutid_r): Likewise.
26843 * login/getutline.c (__getutline): Likewise.
26844 * login/getutline_r.c (__getutline_r): Likewise.
26845 * login/updwtmp.c (__updwtmp): Likewise.
26846
26847 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26848
26849 [BZ #18822]
26850 * include/dirent.h (__opendir): Always add attribute_hidden.
26851 (__fdopendir): Likewise.
26852 (__closedir): Likewise.
26853 (__readdir): Likewise.
26854 (__readdir64): Add libc_hidden_proto.
26855 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
26856 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
26857 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
26858 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
26859 New alias.
26860
26861 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26862
26863 [BZ #18822]
26864 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
26865 * include/netdb.h (__gethostbyaddr_r): Likewise.
26866 (__gethostbyname_r): Likewise.
26867 (__gethostbyname2_r): Likewise.
26868 (__getnetbyaddr_r): Likewise.
26869 (__getnetbyname_r): Likewise.
26870 (__getservbyname_r): Likewise.
26871 (__getservbyport_r): Likewise.
26872 (__getprotobyname_r): Likewise.
26873 (__getprotobynumber_r): Likewise.
26874 (__getnetgrent_r): Likewise.
26875 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
26876 (__getrpcbynumber_r): Likewise.
26877 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
26878
26879 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26880
26881 [BZ #18822]
26882 * include/stdio.h (__fcloseall): Add attribute_hidden.
26883 (__getline): Likewise.
26884 (__path_search): Likewise.
26885 (__gen_tempname): Likewise.
26886 (__libc_message): Likewise.
26887 (__flockfile): Likewise.
26888 (__funlockfile): Likewise.
26889 (__fxprintf): Likewise.
26890 (__fxprintf_nocancel): Likewise.
26891
26892 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26893
26894 [BZ #18822]
26895 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
26896 (__sgetsgent_r): Likewise.
26897
26898 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26899
26900 [BZ #18822]
26901 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
26902 (__statfs64): Likewise.
26903 (__fstatfs64): Likewise.
26904 * include/sys/statvfs.h (__statvfs64): Likewise.
26905 (__fstatvfs64): Likewise.
26906 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
26907 (__statfs_filesize_max): Likewise.
26908 (__statfs_symlinks): Likewise.
26909 (__statfs_chown_restricted): Likewise.
26910
26911 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26912
26913 [BZ #18822]
26914 * include/time.h (__tzstring): Add attribute_hidden.
26915 (__tzfile_read): Likewise.
26916 (__tzfile_compute): Likewise.
26917 (__tzfile_default): Likewise.
26918 (__tzset_parse_tz): Likewise.
26919 (__offtime): Likewise.
26920 (__asctime_r): Likewise.
26921 (__tzset): Likewise.
26922 (__tz_convert): Likewise.
26923 (__getdate_r): Likewise.
26924 (__getclktck): Likewise.
26925
26926 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26927
26928 [BZ #18822]
26929 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
26930 (__nscd_unmap): Likewise.
26931 (__nscd_cache_search): Likewise.
26932 (__nscd_get_nl_timestamp): Likewise.
26933 (__nscd_getpwnam_r): Likewise.
26934 (__nscd_getpwuid_r): Likewise.
26935 (__nscd_getgrnam_r): Likewise.
26936 (__nscd_getgrgid_r): Likewise.
26937 (__nscd_gethostbyname_r): Likewise.
26938 (__nscd_gethostbyname2_r): Likewise.
26939 (__nscd_gethostbyaddr_r): Likewise.
26940 (__nscd_getai): Likewise.
26941 (__nscd_getgrouplist): Likewise.
26942 (__nscd_getservbyname_r): Likewise.
26943 (__nscd_getservbyport_r): Likewise.
26944 (__nscd_innetgr): Likewise.
26945 (__nscd_setnetgrent): Likewise.
26946
26947 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26948
26949 [BZ #18822]
26950 * include/gmp.h: Declare internal functions only if _ISOMAC is
26951 undefined.
26952 (__mpn_extract_double): Add attribute_hidden.
26953 (__mpn_extract_long_double): Likewise.
26954 (__mpn_extract_float128): Likewise.
26955 (__mpn_construct_float): Likewise.
26956 (__mpn_construct_double): Likewise.
26957 (__mpn_construct_long_double): Likewise.
26958 (__mpn_construct_float128): Likewise.
26959 (mpn_add_1): Likewise.
26960 (mpn_addmul_1): Likewise.
26961 (mpn_add_n): Likewise.
26962 (mpn_cmp): Likewise.
26963 (mpn_divrem): Likewise.
26964 (mpn_lshift): Likewise.
26965 (mpn_mul): Likewise.
26966 (mpn_mul_1): Likewise.
26967 (mpn_rshift): Likewise.
26968 (mpn_sub_1): Likewise.
26969 (mpn_submul_1): Likewise.
26970 (mpn_sub_n): Likewise.
26971
26972 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26973
26974 [BZ #18822]
26975 * include/wchar.h (__wcsnlen): Add attribute_hidden.
26976 (__wcscat): Likewise.
26977 (__btowc): Likewise.
26978 (__wcrtomb): Likewise.
26979 (__mbsrtowcs): Likewise.
26980 (__wcsrtombs): Likewise.
26981 (__mbsnrtowcs): Likewise.
26982 (__wcsnrtombs): Likewise.
26983 (__wcsncpy): Likewise.
26984 (__wcpncpy): Likewise.
26985 (__wmemcpy): Likewise.
26986 (__wmempcpy): Likewise.
26987 (__wmemmove): Likewise.
26988 (__wcschrnul): Likewise.
26989 (__vfwscanf): Likewise.
26990 (__vswprintf): Likewise.
26991 (__fwprintf): Likewise.
26992 (__vfwprintf): Likewise.
26993
26994 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26995
26996 [BZ #18822]
26997 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26998 (__getgrgid_r): Likewise.
26999 (__getgrnam_r): Likewise.
27000 * include/pwd.h (__getpwuid_r): Likewise.
27001 (__getpwnam_r): Likewise.
27002 (__fgetpwent_r): Likewise.
27003 * include/shadow.h (__getspnam_r): Likewise.
27004 (__sgetspent_r): Likewise.
27005 (__fgetspent_r): Likewise.
27006
27007 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27008
27009 [BZ #18822]
27010 * include/unistd.h (__access): Add attribute_hidden.
27011 (__lseek64): Likewise.
27012 (__libc_pread64): Likewise.
27013 (__pipe2): Likewise.
27014 (__sleep): Likewise.
27015 (__chdir): Likewise.
27016 (__fchdir): Likewise.
27017 (__getcwd): Likewise.
27018 (__rmdir): Likewise.
27019 (__execvpe): Likewise.
27020 (__execve): Likewise.
27021 (__setsid): Likewise.
27022 (__getuid): Likewise.
27023 (__geteuid): Likewise.
27024 (__getgid): Likewise.
27025 (__getegid): Likewise.
27026 (__getgroups): Likewise.
27027 (__group_member): Likewise.
27028 (__ttyname_r): Likewise.
27029 (__isatty): Likewise.
27030 (__readlink): Likewise.
27031 (__unlink): Likewise.
27032 (__gethostname): Likewise.
27033 (__profil): Likewise.
27034 (__getdtablesize): Likewise.
27035 (__brk): Likewise.
27036 (__ftruncate): Likewise.
27037 (__ftruncate64): Likewise.
27038
27039 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27040
27041 [BZ #18822]
27042 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
27043 * argp/argp-fs-xinl.c: Likewise.
27044 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
27045 * argp/argp-parse.c: Include <argp.h>.
27046 * argp/argp-xinl.c: Likewise.
27047 * include/argp-fmtstream.h: New file.
27048 * include/argp.h (__argp_error): Add attribute_hidden.
27049 (__argp_failure): Likewise.
27050 (__argp_input): Likewise.
27051 (__argp_state_help): Likewise.
27052
27053 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27054
27055 [BZ #18822]
27056 * include/wchar.h (____wcstof_l_internal): New prototype.
27057 (____wcstod_l_internal): Likewise.
27058 (____wcstold_l_internal): Likewise.
27059 (____wcstol_l_internal): Likewise.
27060 (____wcstoul_l_internal): Likewise.
27061 (____wcstoll_l_internal): Likewise.
27062 (____wcstoull_l_internal): Likewise.
27063 (____wcstof128_l_internal): Likewise.
27064 * sysdeps/ieee754/float128/wcstof128.c
27065 (____wcstof128_l_internal): Removed.
27066 * sysdeps/ieee754/float128/wcstof128_l.c
27067 (____wcstof128_l_internal): Likewise.
27068 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
27069 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
27070 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
27071 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
27072 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
27073 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
27074 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
27075 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
27076 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
27077 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
27078
27079 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27080
27081 [BZ #18822]
27082 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
27083 instead of <sys/statvfs.h>.
27084 (__internal_statvfs): Removed.
27085 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
27086 instead of <sys/statvfs.h>.
27087 (__internal_statvfs64): Removed.
27088 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
27089 "internal_statvfs.h" instead of <sys/statvfs.h>.
27090 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
27091 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
27092 instead of <sys/statvfs.h>.
27093 (__internal_statvfs): Removed.
27094 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
27095 instead of <sys/statvfs.h>.
27096 (__internal_statvfs64): Removed.
27097
27098 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27099
27100 [BZ #18822]
27101 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
27102 (__gconv_close): Likewise.
27103 (__gconv): Likewise.
27104 (__gconv_find_transform): Likewise.
27105 (__gconv_lookup_cache): Likewise.
27106 (__gconv_compare_alias_cache): Likewise.
27107 (__gconv_load_cache): Likewise.
27108 (__gconv_get_path): Likewise.
27109 (__gconv_close_transform): Likewise.
27110 (__gconv_release_cache): Likewise.
27111 (__gconv_find_shlib): Likewise.
27112 (__gconv_release_shlib): Likewise.
27113 (__gconv_get_builtin_trans): Likewise.
27114 (__gconv_compare_alias): Likewise.
27115 * include/dlfcn.h (_dlerror_run): Likewise.
27116 * include/stdio.h (__fortify_fail_abort): Likewise.
27117 * include/time.h (__tz_compute): Likewise.
27118 (__strptime_internal): Likewise.
27119 * intl/gettextP.h (_nl_find_domain): Likewise.
27120 (_nl_load_domain): Likewise.
27121 (_nl_find_msg): Likewise.
27122 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
27123 (EXTRACT_PLURAL_EXPRESSION): Likewise.
27124 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
27125 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
27126 (__gai_find_request): Likewise.
27127 (__gai_remove_request): Likewise.
27128 (__gai_notify): Likewise.
27129 (__gai_notify_only): Likewise.
27130 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
27131 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
27132 (_dl_non_dynamic_init): Likewise.
27133 (_dl_aux_init): Likewise.
27134 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
27135 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
27136 Likewise.
27137 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
27138 (__wcsmbs_clone_conv): Likewise.
27139 (__wcsmbs_named_conv): Likewise.
27140
27141 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27142
27143 [BZ #18822]
27144 * include/stdlib.h (__random): Add attribute_hidden.
27145 (__random_r): Likewise.
27146 (__srandom_r): Likewise.
27147 (__initstate_r): Likewise.
27148 (__setstate_r): Likewise.
27149 (__erand48_r): Likewise.
27150 (__nrand48_r): Likewise.
27151 (__jrand48_r): Likewise.
27152 (__srand48_r): Likewise.
27153 (__seed48_r): Likewise.
27154 (__lcong48_r): Likewise.
27155 (__drand48_iterate): Likewise.
27156 (__setenv): Likewise.
27157 (__unsetenv): Likewise.
27158 (__clearenv): Likewise.
27159 (__ptsname_r): Likewise.
27160 (__posix_openpt): Likewise.
27161 (__add_to_environ): Likewise.
27162 (__realpath): Add libc_hidden_proto.
27163 (__ecvt_r): Likewise.
27164 (__fcvt_r): Likewise.
27165 (__qecvt_r): Likewise.
27166 (__qfcvt_r): Likewise.
27167 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
27168 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
27169
27170 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27171
27172 [BZ #18822]
27173 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
27174 * include/time.h (__mktime_internal): Likewise.
27175 * libio/iolibio.h (__fopen_internal): Likewise.
27176
27177 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
27178
27179 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
27180 pointer in frame.
27181 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
27182 Correct offset used to restore PIC register.
27183
27184 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
27185
27186 [BZ libc/22165]
27187 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
27188 code to load address of __getcontext_ret when generating PIC code.
27189
27190 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
27191
27192 * elf/Makefile (tests-static-internal): Add
27193 tst-tls1-static-non-pie.
27194 (LDFLAGS-tst-tls1-static-non-pie): New.
27195 * elf/tst-tls1-static-non-pie.c: New file.
27196
27197 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27198
27199 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
27200 (asinh): Define using libm_alias_double.
27201 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
27202 (cbrt): Define using libm_alias_double.
27203 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
27204 <libm-alias-double.h>.
27205 (copysign): Define using libm_alias_double.
27206 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
27207 (erf): Define using libm_alias_double.
27208 (erfc): Likewise.
27209 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
27210 (expm1): Define using libm_alias_double.
27211 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
27212 (fabs): Define using libm_alias_double.
27213 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
27214 libm_alias_double.
27215 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
27216 <libm-alias-double.h>.
27217 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
27218 libm_alias_double.
27219 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
27220 <libm-alias-double.h>.
27221 (getpayload): Define using libm_alias_double.
27222 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
27223 <libm-alias-double.h>.
27224 (llrint): Define using libm_alias_double.
27225 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
27226 (lrint): Define using libm_alias_double.
27227 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
27228 <libm-alias-double.h>.
27229 (nextup): Define using libm_alias_double.
27230 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
27231 <libm-alias-double.h>.
27232 (roundeven): Define using libm_alias_double.
27233 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
27234 libm_alias_double.
27235 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
27236 <libm-alias-double.h>.
27237 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
27238 using libm_alias_double.
27239 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
27240 (cos): Define using libm_alias_double.
27241 (sin): Likewise.
27242 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
27243 <libm-alias-double.h>.
27244 (sincos): Define using libm_alias_double.
27245 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
27246 (tanh): Define using libm_alias_double.
27247 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
27248 <libm-alias-double.h>.
27249 (totalorder): Define using libm_alias_double.
27250 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
27251 <libm-alias-double.h>.
27252 (totalordermag): Define using libm_alias_double.
27253 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
27254 libm_alias_double.
27255 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
27256 libm_alias_double.
27257 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
27258 <libm-alias-double.h>.
27259 (getpayload): Define using libm_alias_double.
27260 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
27261 <libm-alias-double.h>.
27262 (roundeven): Define using libm_alias_double.
27263 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
27264 <libm-alias-double.h>.
27265 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
27266 <libm-alias-double.h>.
27267 (totalorder): Define using libm_alias_double.
27268 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
27269 <libm-alias-double.h>.
27270 (totalordermag): Define using libm_alias_double.
27271 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
27272 libc compat symbol here.
27273 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
27274 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
27275 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
27276 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
27277 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
27278 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
27279 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
27280 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
27281 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
27282 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
27283
27284 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27285
27286 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
27287 _dl_relocate_static_pie instead of _dl_start to compute load
27288 address in static PIE. Return 0 if _DYNAMIC is undefined for
27289 static executable.
27290
27291 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27292
27293 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
27294 _DYNAMIC is undefined for static executable.
27295
27296 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27297
27298 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
27299
27300 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27301
27302 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27303
27304 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27305
27306 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
27307 (__ieee754_lgamma_r): Use fabs rather than __fabs.
27308 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
27309 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
27310 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
27311 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
27312 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
27313 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
27314 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
27315 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27316 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
27317 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
27318 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27319 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27320 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
27321 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
27322 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
27323
27324 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27325
27326 * math/bits/cmathcalls.h (cimag): Remove inline.
27327 (creal): Remove inline.
27328 (conj): Remove inline.
27329
27330 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27331
27332 * math/Makefile (type-float-routines): Add e_powf_log2_data.
27333 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
27334 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
27335 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
27336 (issignalingf_inline): Likewise.
27337 (POWF_LOG2_TABLE_BITS): Likewise.
27338 (POWF_LOG2_POLY_ORDER): Likewise.
27339 (POWF_SCALE_BITS): Likewise.
27340 (POWF_SCALE): Likewise.
27341 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
27342 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
27343 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
27344
27345 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27346
27347 * math/Makefile (type-float-routines): Add e_log2f_data.
27348 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
27349 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
27350 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
27351 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
27352 * sysdeps/i386/fpu/e_log2f_data.c: New file.
27353 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
27354 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
27355
27356 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27357
27358 * math/Makefile (type-float-routines): Add e_logf_data.
27359 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
27360 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
27361 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
27362 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
27363 * sysdeps/i386/fpu/e_logf_data.c: New file.
27364 * sysdeps/ia64/fpu/e_logf_data.c: New file.
27365 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
27366
27367 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
27368
27369 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
27370 undefined _DYNAMIC in PIE libc.a.
27371 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27372 Likewse.
27373
27374 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27375
27376 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
27377 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
27378 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
27379 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
27380 (__signbit): Remove.
27381 (__signbitl): Remove.
27382 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
27383 (__signbit): Remove.
27384 (__signbitl): Remove.
27385 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
27386 (__signbit): Remove.
27387 (__signbitl): Remove.
27388 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
27389 (__signbit): Remove.
27390 (__signbitl): Remove.
27391 * sysdeps/tile/bits/mathinline.h: Delete file.
27392 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
27393 (__signbit): Remove.
27394 (__signbitl): Remove.
27395
27396 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27397
27398 * math/math.h: Improve handling of C99 isgreater macros.
27399 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
27400 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
27401 * sysdeps/powerpc/bits/mathinline.h: Likewise.
27402 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
27403 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
27404
27405 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
27406
27407 * sysdeps/aarch64/libm-test-ulps: Update.
27408
27409 2017-09-28 Joseph Myers <joseph@codesourcery.com>
27410
27411 [BZ #22225]
27412 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
27413 math_opt_barrier on argument when doing arithmetic on it.
27414 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
27415 Likewise. Use math_force_eval not math_opt_barrier after
27416 arithmetic.
27417 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
27418 math_opt_barrier on argument when doing arithmetic on it.
27419 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
27420 Likewise.
27421
27422 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
27423
27424 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
27425 libc_hidden_def.
27426 (__freeifaddrs): Likewise.
27427
27428 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
27429
27430 * include/dirent.h (__dirfd): New declaration.
27431 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
27432 alias.
27433 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
27434 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
27435 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
27436 * include/unistd.h (__revoke): New declaration.
27437 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
27438 alias.
27439 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
27440 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
27441 revoke.
27442 * include/dirent.h (__seekdir): New declaration.
27443 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
27444 redefine as weak alias.
27445 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
27446 of seekdir.
27447 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
27448 and use libc_hidden_def on them.
27449 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
27450 them.
27451 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
27452 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
27453 instead of getifaddrs and freeifaddrs.
27454
27455 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27456
27457 [BZ #18822]
27458 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
27459 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
27460 (__dso_handle): Remove declaration.
27461 * dlfcn/tstatexit.c (__dso_handle): Removed.
27462 (main): Don't check __dso_handle.
27463 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
27464 (main): Don't check __dso_handle.
27465 * include/dso_handle.h: New file.
27466 * malloc/mtrace.c: Include <dso_handle.h>.
27467 (mtrace): Pass __dso_handle directly.
27468 * nptl/pthread_atfork.c: Include <dso_handle.h>.
27469 (__dso_handle): Remove declaration.
27470 (__pthread_atfork): Pass __dso_handle directly.
27471 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
27472 (__dso_handle): Removed.
27473 * posix/wordexp-test.c: Include <dso_handle.h>.
27474 (__dso_handle): Remove declaration.
27475 (__app_register_atfork): Pass __dso_handle directly.
27476 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
27477 (__dso_handle): Remove declaration.
27478 (at_quick_exit): Pass __dso_handle directly.
27479 * stdlib/atexit.c: Include <dso_handle.h>.
27480 (__dso_handle): Remove declaration.
27481 (atexit): Pass __dso_handle directly.
27482 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
27483 (__dso_handle): Removed.
27484
27485 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27486
27487 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
27488 using VDSO.
27489
27490 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
27491
27492 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
27493 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
27494 values to correct default value for given type.
27495
27496 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27497
27498 [BZ #22101]
27499 * elf/Makefile (tests): Add tst-debug1.
27500 ($(objpfx)tst-debug1): New.
27501 ($(objpfx)tst-debug1.out): Likewise.
27502 ($(objpfx)tst-debug1mod1.so): Likewise.
27503 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
27504 with p_filesz == 0.
27505 * elf/tst-debug1.c: New file.
27506
27507 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27508
27509 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
27510 Define using __ifunc.
27511
27512 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27513
27514 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
27515 exp2f() values.
27516
27517 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27518
27519 [BZ #22156]
27520 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
27521
27522 2017-09-26 Florian Weimer <fweimer@redhat.com>
27523
27524 * resolv/Makefile (tests-internal): Fix typo in comment.
27525
27526 2017-09-26 Florian Weimer <fweimer@redhat.com>
27527
27528 * resolv/nss_dns/dns-host.c: Fix typo in comment.
27529
27530 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27531
27532 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
27533 Use an union instead of a max_align_t array for __space,
27534 so that __space is the same size on all platforms.
27535 * malloc/scratch_buffer_grow_preserve.c
27536 (__libc_scratch_buffer_grow_preserve): Likewise.
27537
27538 [BZ #22183]
27539 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
27540 version to 2.
27541 * posix/Makefile (routines): Add glob-lstat-compat and
27542 glob64-lstat-compat.
27543 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
27544 * posix/glob-lstat-compat.c: New file.
27545 * posix/glob64-lstat-compat.c: Likewise.
27546 * posix/tst-glob_lstat_compat.c: Likewise.
27547 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
27548 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
27549 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
27550 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
27551 Likewise.
27552 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
27553 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27554 * posix/glob.c (glob_lstat): New function.
27555 (glob): Rename to __glob and add versioned symbol to 2.27.
27556 (glob_in_dir): Use glob_lstat.
27557 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
27558 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
27559 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
27560 2.27.
27561 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
27562 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
27563 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
27564 gl_lstat on glob call.
27565 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
27566 and glob64 symbols.
27567 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27568 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
27569 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27570 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27571 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
27572 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
27573 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
27574 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
27575 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
27576 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27577 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27578 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
27579 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
27580 Likewise.
27581 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
27582 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
27583 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27584 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27585 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
27586 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27587 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27588 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
27589 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
27590 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
27591 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27592 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27593
27594 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
27595
27596 * configure.ac (AS): Require binutils 2.25 or later.
27597 * configure: Regenerated.
27598
27599 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
27600
27601 [BZ #22207]
27602 * stdlib/test-atexit-race-common.c (do_test): Minimize required
27603 VM size.
27604
27605 2017-09-25 DJ Delorie <dj@redhat.com>
27606
27607 [BZ #22161]
27608 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
27609 resetting timeout.
27610
27611 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
27612
27613 * sysdeps/ieee754/dbl-64/sincos32.h
27614 [SINCCOS32_H]: Remove define.
27615 [SINCOS32_H]: Define.
27616
27617 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27618
27619 * math/Versions (expf): New libm symbol at GLIBC_2.27.
27620 (exp2f): Likewise.
27621 * math/w_exp2f.c: New file.
27622 * math/w_expf.c: New file.
27623 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
27624 * math/w_expf_compat.c (__expf_compat): Likewise.
27625 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
27626 * sysdeps/ia64/fpu/e_expf.S: Likewise.
27627 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27628 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27629 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27630 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27631 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27632 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27633 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27634 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27635 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27636 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27637 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27638 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27639 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27640 Likewise.
27641 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27642 Likewise.
27643 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27644 Likewise.
27645 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27646 Likewise.
27647 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27648 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27649 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27650 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27651 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27652 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27653 Likewise.
27654 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27655 Likewise.
27656 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27657 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27658 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27659
27660 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27661
27662 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
27663 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
27664 (roundtoint, converttoint): Likewise.
27665 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
27666 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
27667 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
27668 * sysdeps/ieee754/flt-32/math_config.h: New file.
27669 * sysdeps/ieee754/flt-32/math_errf.c: New file.
27670 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
27671 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
27672 * sysdeps/i386/fpu/math_errf.c: New file.
27673 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
27674 * sysdeps/ia64/fpu/math_errf.c: New file.
27675 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
27676 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
27677
27678 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27679
27680 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
27681 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
27682 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
27683 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
27684 to make sure that these symbols are defined.
27685 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
27686 of <limits.h>
27687 (__need_NULL): Do not define.
27688 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
27689 alignment.
27690 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
27691 CMGROUP_MAX, cmsgcred): Do not define.
27692 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
27693 NULL.
27694 * bits/socket.h: Likewise.
27695 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
27696 __gettimeofday instead of gettimeofday.
27697 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
27698 instead of settimeofday.
27699
27700 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27701
27702 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
27703 (asinhf): Define using libm_alias_float.
27704 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
27705 (atanf): Define using libm_alias_float.
27706 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
27707 (cbrtf): Define using libm_alias_float.
27708 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
27709 (ceilf): Define using libm_alias_float.
27710 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
27711 <libm-alias-float.h>.
27712 (copysignf): Define using libm_alias_float.
27713 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
27714 (cosf): Define using libm_alias_float.
27715 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
27716 (erff): Define using libm_alias_float.
27717 (erfcf): Likewise.
27718 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
27719 (expm1f): Define using libm_alias_float.
27720 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
27721 (fabsf): Define using libm_alias_float.
27722 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
27723 (floorf): Define using libm_alias_float.
27724 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
27725 (frexpf): Define using libm_alias_float.
27726 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
27727 libm_alias_float.
27728 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
27729 <libm-alias-float.h>.
27730 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
27731 libm_alias_float.
27732 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
27733 <libm-alias-float.h>.
27734 (getpayloadf): Define using libm_alias_float.
27735 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
27736 <libm-alias-float.h>.
27737 (llrintf): Define using libm_alias_float.
27738 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
27739 <libm-alias-float.h>.
27740 (llroundf): Define using libm_alias_float.
27741 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
27742 (logbf): Define using libm_alias_float.
27743 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
27744 (lrintf): Define using libm_alias_float.
27745 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
27746 (lroundf): Define using libm_alias_float.
27747 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
27748 (modff): Define using libm_alias_float.
27749 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
27750 <libm-alias-float.h>.
27751 (nearbyintf): Define using libm_alias_float.
27752 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
27753 <libm-alias-float.h>.
27754 (nextafterf): Define using libm_alias_float.
27755 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
27756 <libm-alias-float.h>.
27757 (nextupf): Define using libm_alias_float.
27758 * sysdeps/ieee754/flt-32/s_remquof.c: Include
27759 <libm-alias-float.h>.
27760 (remquof): Define using libm_alias_float.
27761 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
27762 (rintf): Define using libm_alias_float.
27763 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
27764 <libm-alias-float.h>.
27765 (roundevenf): Define using libm_alias_float.
27766 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
27767 (roundf): Define using libm_alias_float.
27768 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
27769 using libm_alias_float.
27770 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
27771 <libm-alias-float.h>.
27772 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
27773 Define using libm_alias_float.
27774 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
27775 <libm-alias-float.h>.
27776 (sincosf): Define using libm_alias_float.
27777 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
27778 (sinf): Define using libm_alias_float.
27779 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
27780 (tanf): Define using libm_alias_float.
27781 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
27782 (tanhf): Define using libm_alias_float.
27783 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
27784 <libm-alias-float.h>.
27785 (totalorderf): Define using libm_alias_float.
27786 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
27787 <libm-alias-float.h>.
27788 (totalordermagf): Define using libm_alias_float.
27789 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
27790 (truncf): Define using libm_alias_float.
27791 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
27792 libm_alias_float.
27793 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
27794 libm_alias_float.
27795
27796 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27797
27798 [BZ #22146]
27799 math/math.h: Let fpclassify use the builtin in C++ mode, even
27800 when optimazing for size.
27801
27802 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27803
27804 * csu/Makefile (generated): Do not add version-info.h.
27805 (before-compile): Likewise.
27806 (all-Banner-files): Remove variable.
27807 ($(objpfx)version-info.h): Remove rule.
27808 * csu/version.c (banner): Do not include "version-info.h".
27809 * libidn/Banner: Remove.
27810 * manual/contrib.texi (Simon Josefsson): New entry.
27811
27812 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27813
27814 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
27815 Remove conditionals on LDBL_MANT_DIG.
27816 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27817 (__ieee754_lgammal_r): Likewise.
27818
27819 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27820
27821 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
27822 _Float128 and L().
27823 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
27824 _Float128 and L(). Replace _Float128 with long double and L(x)
27825 with xL, throughout the file.
27826 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27827 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27828 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27829 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27830
27831 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27832
27833 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
27834 sysdeps/ieee754/ldbl-128ibm.
27835 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
27836 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
27837 of including it. Keep _Float128 and L() intact. These will be
27838 reviewed by a separate patch.
27839 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27840 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27841 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27842 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27843
27844 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27845
27846 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
27847 (__finitef128): Define to __redirect___finitef128.
27848 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
27849 (__isinff128): Define to __redirect___isinff128.
27850 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
27851 (__isnanf128): Define to __redirect___isnanf128.
27852
27853 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27854
27855 * sysdeps/powerpc/powerpc64le/Makefile
27856 (CFLAGS-tst-strtod-nan-locale.c): New variable.
27857 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
27858
27859 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
27860 Carlos O'Donell <carlos@redhat.com>
27861
27862 [BZ #22180]
27863 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
27864 * stdlib/test-dlclose-exit-race.c: New file.
27865 * stdlib/test-dlclose-exit-race-helper.c: New file.
27866 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
27867
27868 2017-09-21 Joseph Myers <joseph@codesourcery.com>
27869
27870 * crypt/Banner: Remove file.
27871 * nptl/Banner: Likewise.
27872 * resolv/Banner: Likewise.
27873 * soft-fp/Banner: Likewise.
27874 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
27875 ($(objpfx)version.d): Remove dependency on banner.h.
27876 ($(objpfx)version.os): Likewise.
27877 * nptl/version.c (banner): Do not include banner.h.
27878 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
27879 Jelinek and BIND code.
27880
27881 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27882 Carlos O'Donell <carlos@redhat.com>
27883
27884 * support/xdlfcn.h: New file.
27885 * support/xdlfcn.c: New file.
27886 * support/Makefile (libsupport-routines): Add xdlfcn.
27887 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
27888
27889 2017-09-20 Joseph Myers <joseph@codesourcery.com>
27890
27891 [BZ #20142]
27892 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27893 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
27894 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
27895 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
27896 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
27897 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
27898 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
27899 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
27900
27901 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27902 Ricky Zhou <rickyz@google.com>
27903 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
27904
27905 [BZ #14333]
27906 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
27907 Remove atomics.
27908 (__new_exitfn): Fail registration when we finished at_exit processing.
27909 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
27910 * stdlib/on_exit.c (__on_exit): Likewise.
27911 * stdlib/exit.c (__exit_funcs_done): New variable.
27912 (__run_exit_handlers): Use __exit_funcs_lock.
27913 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
27914 declarations.
27915 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
27916 (test-cxa_atexit-race, test-on_exit-race): New tests.
27917 * stdlib/test-atexit-race-common.c: New file.
27918 * stdlib/test-atexit-race.c: New file.
27919 * stdlib/test-at_quick_exit-race.c: New file.
27920 * stdlib/test-cxa_atexit-race.c: New file.
27921 * stdlib/test-on_exit-race.c: New file.
27922
27923 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
27924
27925 * benchtests/Makefile: Add exp2f and log2f benchmarks.
27926 * benchtests/exp2f-inputs: Copy of expf-inputs.
27927 * benchtests/log2f-inputs: Copy of logf-inputs.
27928
27929 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27930
27931 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
27932 Explicitly take address of first element of array arguments in
27933 call to INLINE_SYSCALL.
27934
27935 2017-09-19 Andreas Schwab <schwab@suse.de>
27936
27937 [BZ #22134]
27938 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
27939 execveat first.
27940 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
27941 unimplemented.
27942 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
27943 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
27944 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
27945 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
27946 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27947 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27948 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
27949 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27950 * posix/Makefile (tests): Add tst-fexecve.
27951 * posix/tst-fexecve.c: New file.
27952
27953 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27954
27955 * benchtests/Makefile: Add logf benchmark.
27956 * benchtests/logf-inputs: Add reduced trace from wrf_r.
27957
27958 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27959
27960 * benchtests/Makefile: Add expf benchmark.
27961 * benchtests/expf-inputs: Add reduced trace from wrf_r.
27962
27963 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27964
27965 * csu/Makefile: Add -funwind-tables to libc-start.c.
27966 * debug/Makefile: Add -funwind-tables to backtrace.c.
27967 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
27968 * sysdeps/arm/Makefile: Likewise.
27969 * sysdeps/i386/Makefile: Likewise.
27970 * sysdeps/m68k/Makefile: Likewise.
27971 * sysdeps/mips/Makefile: Likewise.
27972 * sysdeps/nios2/Makefile: Likewise.
27973 * sysdeps/sh/Makefile: Likewise.
27974 * sysdeps/sparc/Makefile: Likewise.
27975
27976 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27977
27978 * benchtests/Makefile (bench-math): Add trunc and truncf.
27979 (CFLAGS-bench-trunc.c): New variable.
27980 (CFLAGS-bench-truncf.c): Likewise.
27981 * benchtests/trunc-inputs: New file.
27982 * benchtests/truncf-inputs: Likewise.
27983
27984 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27985
27986 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27987
27988 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27989
27990 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27991 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27992 redefine.
27993 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27994 (exp10l): Define as weak alias.
27995 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27996 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27997 and redefine.
27998 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27999 (remainderl): Define as weak alias.
28000
28001 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
28002 (fmal): Define using libm_alias_ldouble.
28003 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
28004 (acoshl): Define using libm_alias_ldouble.
28005 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
28006 (acosl): Define using libm_alias_ldouble.
28007 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
28008 (asinl): Define using libm_alias_ldouble.
28009 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
28010 (atan2l): Define using libm_alias_ldouble.
28011 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
28012 (atanhl): Define using libm_alias_ldouble.
28013 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
28014 (coshl): Define using libm_alias_ldouble.
28015 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
28016 (exp10l): Define using libm_alias_ldouble.
28017 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
28018 (exp2l): Define using libm_alias_ldouble.
28019 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
28020 (expl): Define using libm_alias_ldouble.
28021 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
28022 (fmodl): Define using libm_alias_ldouble.
28023 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
28024 (hypotl): Define using libm_alias_ldouble.
28025 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
28026 (j0l): Define using libm_alias_ldouble.
28027 (y0l): Likewise.
28028 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
28029 (j1l): Define using libm_alias_ldouble.
28030 (y1l): Likewise.
28031 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
28032 (jnl): Define using libm_alias_ldouble.
28033 (ynl): Likewise.
28034 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
28035 (log10l): Define using libm_alias_ldouble.
28036 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
28037 (log2l): Define using libm_alias_ldouble.
28038 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
28039 (logl): Define using libm_alias_ldouble.
28040 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
28041 (powl): Define using libm_alias_ldouble.
28042 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
28043 (remainderl): Define using libm_alias_ldouble.
28044 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
28045 (sinhl): Define using libm_alias_ldouble.
28046 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
28047 (sqrtl): Define using libm_alias_ldouble.
28048 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
28049 (tgammal): Define using libm_alias_ldouble.
28050 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
28051 (exp10l): Do not use long_double_symbol here.
28052 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
28053 [LIBM_SVID_COMPAT] (remainderl): Likewise.
28054 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
28055 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28056 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28057 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28058 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28059 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28060 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28061 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28062 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28063 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28064 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28065 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28066 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28067 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28068 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28069 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28070 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28071 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28072 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28073 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28074
28075 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
28076
28077 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
28078 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
28079
28080 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
28081
28082 * io/read.c (read): Add libc_hidden_weak.
28083 * sysdeps/mach/hurd/read.c (read): Likewise.
28084 * io/write.c (write): Likewise.
28085 * sysdeps/mach/hurd/write.c (write): Likewise.
28086 * io/pread64.c (__pread64): Likewise.
28087 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
28088 * posix/pread64.c (__pread64): Add libc_hidden_def.
28089
28090 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
28091
28092 * benchtests/scripts/compare_strings.py: New option -g.
28093 (draw_graph): Print a message that a graph is being generated.
28094 (process_results): Generate graph only if -g is passed.
28095 (main): Process option -g.
28096
28097 * benchtests/scripts/compare_strings.py (process_results):
28098 Better spacing for output.
28099
28100 * benchtests/scripts/compare_strings.py: Use argparse.
28101 * benchtests/README: Document existence of compare_strings.py.
28102
28103 2017-09-15 Joseph Myers <joseph@codesourcery.com>
28104
28105 * math/s_fma.c: Include <libm-alias-double.h>.
28106 (fma): Define using libm_alias_double.
28107 * math/s_nextafter.c: Include <libm-alias-double.h>.
28108 (nextafter): Define using libm_alias_double.
28109 * math/w_acos_compat.c: Include <libm-alias-double.h>.
28110 (acos): Define using libm_alias_double.
28111 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
28112 (aocsh): Define using libm_alias_double.
28113 * math/w_asin_compat.c: Include <libm-alias-double.h>.
28114 (asin): Define using libm_alias_double.
28115 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
28116 (atan2): Define using libm_alias_double.
28117 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
28118 (atanh): Define using libm_alias_double.
28119 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
28120 (cosh): Define using libm_alias_double.
28121 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
28122 (exp10): Define using libm_alias_double.
28123 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
28124 (exp2): Define using libm_alias_double.
28125 * math/w_exp_compat.c: Include <libm-alias-double.h>.
28126 (exp): Define using libm_alias_double.
28127 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
28128 (fmod): Define using libm_alias_double.
28129 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
28130 (hypot): Define using libm_alias_double.
28131 * math/w_j0_compat.c: Include <libm-alias-double.h>.
28132 (j0): Define using libm_alias_double.
28133 (y0): Likewise.
28134 * math/w_j1_compat.c: Include <libm-alias-double.h>.
28135 (j1): Define using libm_alias_double.
28136 (y1): Likewise.
28137 * math/w_jn_compat.c: Include <libm-alias-double.h>.
28138 (jn): Define using libm_alias_double.
28139 (yn): Likewise.
28140 * math/w_log10_compat.c: Include <libm-alias-double.h>.
28141 (log10): Define using libm_alias_double.
28142 * math/w_log2_compat.c: Include <libm-alias-double.h>.
28143 (log2): Define using libm_alias_double.
28144 * math/w_log_compat.c: Include <libm-alias-double.h>.
28145 (log): Define using libm_alias_double.
28146 * math/w_pow_compat.c: Include <libm-alias-double.h>.
28147 (pow): Define using libm_alias_double.
28148 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
28149 (remainder): Define using libm_alias_double.
28150 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
28151 (sinh): Define using libm_alias_double.
28152 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
28153 (sqrt): Define using libm_alias_double.
28154 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
28155 (tgamma): Define using libm_alias_double.
28156 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
28157 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
28158 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
28159 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
28160 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
28161 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
28162 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
28163 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
28164 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
28165 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
28166 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
28167 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
28168 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
28169 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
28170 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
28171 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
28172 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
28173 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
28174 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
28175 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
28176 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
28177 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
28178 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
28179 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
28180 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
28181
28182 * math/e_acoshl.c: Remove.
28183 * math/e_acosl.c: Likewise.
28184 * math/e_asinl.c: Likewise.
28185 * math/e_atan2l.c: Likewise.
28186 * math/e_atanhl.c: Likewise.
28187 * math/e_coshl.c: Likewise.
28188 * math/e_expl.c: Likewise.
28189 * math/e_fmodl.c: Likewise.
28190 * math/e_gammal_r.c: Likewise.
28191 * math/e_hypotl.c: Likewise.
28192 * math/e_j0l.c: Likewise.
28193 * math/e_j1l.c: Likewise.
28194 * math/e_jnl.c: Likewise.
28195 * math/e_lgammal_r.c: Likewise.
28196 * math/e_log10l.c: Likewise.
28197 * math/e_log2l.c: Likewise.
28198 * math/e_logl.c: Likewise.
28199 * math/e_powl.c: Likewise.
28200 * math/e_rem_pio2l.c: Likewise.
28201 * math/e_sinhl.c: Likewise.
28202 * math/e_sqrtf128.c: Likewise.
28203 * math/e_sqrtl.c: Likewise.
28204 * math/k_cosl.c: Likewise.
28205 * math/k_sinl.c: Likewise.
28206 * math/k_tanl.c: Likewise.
28207 * math/s_asinhl.c: Likewise.
28208 * math/s_atanl.c: Likewise.
28209 * math/s_cbrtl.c: Likewise.
28210 * math/s_erfl.c: Likewise.
28211 * math/s_expm1l.c: Likewise.
28212 * math/s_log1pl.c: Likewise.
28213 * math/s_tanhl.c: Likewise.
28214
28215 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
28216
28217 [BZ #21745]
28218 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
28219 [$(subdir) = math] (sysdep_calls): New variable. Has the
28220 previous contents of sysdep_routines, but re-sorted..
28221 [$(subdir) = math] (sysdep_routines): Re-use the contents from
28222 sysdep_calls.
28223 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
28224 defined in sysdep_calls and replace by the respective m_* names.
28225 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
28226 (compat_symbol): Undefine to avoid duplicated compat symbols in
28227 libc.
28228
28229 2017-09-15 Joseph Myers <joseph@codesourcery.com>
28230
28231 * math/s_fmaf.c: Include <libm-alias-float.h>.
28232 (fmaf): Define using libm_alias_float.
28233 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
28234 (acosf): Define using libm_alias_float.
28235 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
28236 (acoshf): Define using libm_alias_float.
28237 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
28238 (asinf): Define using libm_alias_float.
28239 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
28240 (atan2f): Define using libm_alias_float.
28241 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
28242 (atanhf): Define using libm_alias_float.
28243 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
28244 (coshf): Define using libm_alias_float.
28245 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
28246 (exp10f): Define using libm_alias_float.
28247 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
28248 (fmodf): Define using libm_alias_float.
28249 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
28250 (hypotf): Define using libm_alias_float.
28251 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
28252 (j0f): Define using libm_alias_float.
28253 (y0f): Likewise.
28254 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
28255 (j1f): Define using libm_alias_float.
28256 (y1f): Likewise.
28257 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
28258 (jnf): Define using libm_alias_float.
28259 (ynf): Likewise.
28260 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
28261 (log10f): Define using libm_alias_float.
28262 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
28263 (log2f): Define using libm_alias_float.
28264 * math/w_logf_compat.c: Include <libm-alias-float.h>.
28265 (logf): Define using libm_alias_float.
28266 * math/w_powf_compat.c: Include <libm-alias-float.h>.
28267 (powf): Define using libm_alias_float.
28268 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
28269 (remainderf): Define using libm_alias_float.
28270 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
28271 (sinhf): Define using libm_alias_float.
28272 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
28273 (sqrtf): Define using libm_alias_float.
28274 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
28275 (tgammaf): Define using libm_alias_float.
28276
28277 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28278
28279 * include/math.h (roundeven): Change hidden_proto call to
28280 __roundeven.
28281 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
28282 alias.
28283 [NO_LONG_DOUBLE] (__j0l): New strong alias.
28284 (y0): Rename to __y0 and define as weak alias.
28285 [NO_LONG_DOUBLE] (__y0l): New strong alias.
28286 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
28287 alias.
28288 (y0f): Rename to __y0f and define as weak alias.
28289 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
28290 alias.
28291 [NO_LONG_DOUBLE] (__j1l): New strong alias.
28292 (y1): Rename to __y1 and define as weak alias.
28293 [NO_LONG_DOUBLE] (__y1l): New strong alias.
28294 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
28295 alias.
28296 (y1f): Rename to __y1f and define as weak alias.
28297 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
28298 alias.
28299 [NO_LONG_DOUBLE] (__jnl): New strong alias.
28300 (yn): Rename to __yn and define as weak alias.
28301 [NO_LONG_DOUBLE] (__ynl): New strong alias.
28302 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
28303 alias.
28304 (ynf): Rename to __ynf and define as weak alias.
28305 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
28306 (fromfp): Define as weak alias.
28307 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
28308 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
28309 (fromfpx): Define as weak alias.
28310 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
28311 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
28312 __getpayload and define as weak alias.
28313 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28314 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
28315 __roundeven and define as weak alias.
28316 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28317 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
28318 __setpayload.
28319 (setpayload): Define as weak alias.
28320 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
28321 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
28322 __setpayloadsig.
28323 (setpayloadsig): Define as weak alias.
28324 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
28325 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
28326 __totalorder and define as weak alias.
28327 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28328 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
28329 to __totalordermag and define as weak alias.
28330 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28331 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
28332 (ufromfp): Define as weak alias.
28333 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
28334 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
28335 __ufromfpx.
28336 (ufromfpx): Define as weak alias.
28337 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
28338 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
28339 Rename to __getpayload and define as weak alias.
28340 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28341 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
28342 Rename to __roundeven and define as weak alias.
28343 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28344 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
28345 Rename to __totalorder and define as weak alias.
28346 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28347 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
28348 (totalordermag): Rename to __totalordermag and define as weak
28349 alias.
28350 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28351 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
28352 macro.
28353 (__roundevenl): Likewise.
28354 (__totalorderl): Likewise.
28355 (__totalordermagl): Likewise
28356 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
28357 __fromfpf128.
28358 (fromfpf128): Define as weak alias.
28359 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
28360 __fromfpxf128.
28361 (fromfpxf128): Define as weak alias.
28362 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
28363 __setpayloadf128.
28364 (setpayloadf128): Define as weak alias.
28365 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
28366 __setpayloadsigf128.
28367 (setpayloadsigf128): Define as weak alias.
28368 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
28369 __ufromfpf128.
28370 (ufromfpf128): Define as weak alias.
28371 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
28372 __ufromfpxf128.
28373 (ufromfpxf128): Define as weak alias.
28374 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
28375 (fromfpf): Define as weak alias.
28376 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
28377 __fromfpxf.
28378 (fromfpxf): Define as weak alias.
28379 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
28380 __getpayloadf and define as weak alias.
28381 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
28382 __roundevenf and define as weak alias.
28383 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
28384 __setpayloadf.
28385 (setpayloadf): Define as weak alias.
28386 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
28387 __setpayloadsigf.
28388 (setpayloadsigf): Define as weak alias.
28389 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
28390 __totalorderf and define as weak alias.
28391 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
28392 Rename to __totalordermagf and define as weak alias.
28393 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
28394 __ufromfpf.
28395 (ufromfpf): Define as weak alias.
28396 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
28397 __ufromfpxf.
28398 (ufromfpxf): Define as weak alias.
28399 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
28400 __fromfpl.
28401 (fromfpl): Define as weak alias.
28402 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
28403 __fromfpxl.
28404 (fromfpxl): Define as weak alias.
28405 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
28406 to __getpayloadl and define as weak alias.
28407 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
28408 __roundevenl and define as weak alias.
28409 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
28410 __setpayloadl.
28411 (setpayloadl): Define as weak alias.
28412 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
28413 __setpayloadsigl.
28414 (setpayloadsigl): Define as weak alias.
28415 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
28416 to __totalorderl and define as weak alias.
28417 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
28418 Rename to __totalordermagl and define as weak alias.
28419 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
28420 __ufromfpl.
28421 (ufromfpl): Define as weak alias.
28422 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
28423 __ufromfpxl.
28424 (ufromfpxl): Define as weak alias.
28425 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
28426 __fromfpl.
28427 (fromfpl): Define as weak alias.
28428 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
28429 __fromfpxl.
28430 (fromfpxl): Define as weak alias.
28431 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
28432 Rename to __getpayloadl and define as weak alias.
28433 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
28434 to __roundevenl and define as weak alias. Call __roundeven
28435 instead of roundeven.
28436 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
28437 __setpayloadl.
28438 (setpayloadl): Define as weak alias.
28439 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
28440 __setpayloadsigl.
28441 (setpayloadsigl): Define as weak alias.
28442 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
28443 Rename to __totalorderl and define as weak alias.
28444 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
28445 Rename to __totalordermagl and define as weak alias.
28446 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
28447 __ufromfpl.
28448 (ufromfpl): Define as weak alias.
28449 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
28450 __ufromfpxl.
28451 (ufromfpxl): Define as weak alias.
28452 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
28453 __fromfpl.
28454 (fromfpl): Define as weak alias.
28455 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
28456 __fromfpxl.
28457 (fromfpxl): Define as weak alias.
28458 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
28459 __getpayloadl and define as weak alias.
28460 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
28461 __roundevenl and define as weak alias.
28462 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
28463 __setpayloadl.
28464 (setpayloadl): Define as weak alias.
28465 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
28466 __setpayloadsigl.
28467 (setpayloadsigl): Define as weak alias.
28468 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
28469 __totalorderl and define as weak alias.
28470 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
28471 Rename to __totalordermagl and define as weak alias.
28472 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
28473 __ufromfpl.
28474 (ufromfpl): Define as weak alias.
28475 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
28476 __ufromfpxl.
28477 (ufromfpxl): Define as weak alias.
28478
28479 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
28480
28481 * benchtests/bench-string.h (realloc_bufs): New function.
28482 (test_init): Call it.
28483 * benchtests/bench-memset-large.c (do_test): Likewise.
28484 * benchtests/bench-memset.c (do_test): Likewise.
28485
28486 * benchtests/bench-memset-large.c: Print output in JSON
28487 format.
28488 * benchtests/bench-memset.c: Likewise.
28489
28490 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28491
28492 [BZ #21084]
28493 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
28494 * iconvdata/Makefile: Add IBM858.
28495 * iconvdata/gconv-modules: Likewise.
28496 * iconvdata/tst-tables.sh: Likewise.
28497 * iconvdata/ibm858.c: New file.
28498 * localedata/charmaps/IBM858: Likewise.
28499
28500 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
28501
28502 [BZ #22023]
28503 * locales/niu_NZ (LC_TIME): copy "niu_NU".
28504 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
28505
28506 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28507
28508 [BZ #22112]
28509 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
28510 and add tel_int_fmt.
28511
28512 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28513
28514 * sysdeps/generic/libm-alias-float128.h: New file.
28515 * sysdeps/generic/math-type-macros-float128.h: Include
28516 <libm-alias-float128.h>.
28517 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28518
28519 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28520
28521 * sysdeps/generic/libm-alias-ldouble.h: New file.
28522 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
28523 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
28524 * sysdeps/generic/math-type-macros-ldouble.h: Include
28525 <libm-alias-ldouble.h>.
28526 [!declare_mgen_alias] (declare_mgen_alias): Define to use
28527 libm_alias_ldouble.
28528
28529 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
28530
28531 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
28532 * math/w_exp_compat.c: ... here.
28533 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
28534 * math/w_expf_compat.c: ... here.
28535 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
28536 * math/w_expl_compat.c: ... here.
28537 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
28538 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
28539 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
28540 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28541
28542 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28543
28544 * math/w_scalbln_template.c (strong_alias): Do not undefine and
28545 redefine.
28546 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
28547 macro.
28548 (ldexpl): Only define as compat symbol for libc, not libm.
28549 (scalbnl): Define as compat symbol for libc here.
28550 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
28551 define for [IS_IN (libc)].
28552 (__ldexpl_2): Remove alias.
28553 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
28554 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
28555 name in long_double_symbol call.
28556 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
28557 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
28558 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
28559 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
28560 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
28561 Remove macro.
28562 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
28563 Define as compat symbol.
28564
28565 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28566
28567 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
28568 * sysdeps/unix/sysv/linux/alpha/Makefile
28569 [$(subdir) = csu] (sysdep_routines): Remove rule.
28570
28571 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28572
28573 * sysdeps/generic/libm-alias-double.h: New file.
28574 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
28575 * sysdeps/generic/math-type-macros-double.h: Include
28576 <libm-alias-double.h>.
28577 [declare_mgen_alias] (declare_mgen_alias): Define to use
28578 libm_alias_double.
28579 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
28580 (M_LIBM_NEED_COMPAT): Remove macro.
28581 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
28582 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
28583 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
28584 code.
28585 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28586 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28587 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28588 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28589 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28590 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28591 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28592 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28593 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28594 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28595 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28596 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28597 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28598 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28599 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28600 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28601 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28602 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28603 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28604 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28605 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28606 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28607 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28608 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28609 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28610 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28611 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28612 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
28613 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
28614 macro.
28615 (declare_mgen_alias): New macro.
28616 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
28617 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
28618 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
28619 (M_LIBM_NEED_COMPAT): Remove macro.
28620 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
28621 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
28622 <first-versions.h>.
28623 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
28624 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
28625
28626 2017-09-12 Joseph Myers <joseph@codesourcery.com>
28627
28628 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
28629 (declare_mgen_alias_2): Remove.
28630 * sysdeps/generic/math-type-macros-double.h
28631 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
28632 Likewise.
28633 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
28634 alias.
28635 (ldexp): Define with declare_mgen_alias.
28636 (scalbn): Likewise.
28637
28638 2017-09-12 Steve Ellcey <sellcey@cavium.com>
28639
28640 * grp/initgroups.c: Include config.h.
28641 (DEFAULT_CONFIG): New macro.
28642 (internal_getgrouplist): Use DEFAULT_CONFIG.
28643 * nscd/initgrcache.c (addinitgroupsX): Likewise.
28644 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
28645 (DEFAULT_DEFCONFIG): New macro.
28646 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
28647 * nss/grp-lookup.c: Include config.h
28648 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
28649 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
28650 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
28651 * manual/nss.texi: Update default values section.
28652
28653 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
28654
28655 [BZ #21967]
28656 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
28657 New.
28658 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
28659 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
28660 Handle MathVec_Prefer_No_AVX512.
28661 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
28662 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
28663 is set.
28664
28665 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
28666
28667 * posix/sched_primax.c (__sched_get_priority_max): Add
28668 libc_hidden_def.
28669 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
28670 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28671 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28672 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
28673 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
28674 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
28675 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
28676 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
28677 Add aliases.
28678
28679 2017-09-11 Joseph Myers <joseph@codesourcery.com>
28680
28681 * sysdeps/generic/libm-alias-float.h: New file.
28682 * sysdeps/generic/math-type-macros-float.h: Include
28683 <libm-alias-float.h>.
28684 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28685
28686 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
28687
28688 [BZ #22093]
28689 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
28690 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
28691 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
28692 (HWCAP_IMPORTANT): Likewise.
28693 (HWCAP_X86_64): New enum.
28694 (HWCAP_X86_AVX512_1): Updated.
28695 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
28696 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
28697 (modules-names): Add x86_64/tst-x86_64mod-1.
28698 (LDFLAGS-tst-x86_64mod-1.so): New.
28699 ($(objpfx)tst-x86_64-1): Likewise.
28700 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
28701 (tst-x86_64-1-clean): Likewise.
28702 * sysdeps/x86_64/tst-x86_64-1.c: New file.
28703 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
28704
28705 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
28706
28707 * po/sv.po: Update translations.
28708 * po/fr.po: Likewise.
28709
28710 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
28711
28712 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
28713 seconds.
28714 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
28715 seconds.
28716 * elf/rtld-Rules: Fix $(error) use.
28717
28718 2017-09-09 Mike FABIAN <mfabian@redhat.com>
28719
28720 [BZ #14925]
28721 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
28722 * locale/iso-639.def: Change “Bengali” to “Bangla”.
28723 * localedata/locales/bn_BD: “Bengali” was still used in some
28724 comments. Change it to “Bangla”.
28725
28726 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
28727
28728 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
28729
28730 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28731
28732 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
28733 thunderx2t99p1 to list of cpu names.
28734 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
28735 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
28736
28737 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28738
28739 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
28740 Use strcmp instead of tunable_is_name.
28741
28742 2017-09-08 Joseph Myers <joseph@codesourcery.com>
28743
28744 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28745 (F_GET_RW_HINT): New macro.
28746 [__USE_GNU] (F_SET_RW_HINT): Likewise.
28747 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
28748 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
28749 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
28750 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
28751 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
28752 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
28753 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
28754 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
28755
28756 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28757 (F_ADD_SEALS): New macro.
28758 [__USE_GNU] (F_GET_SEALS): Likewise.
28759 [__USE_GNU] (F_SEAL_SEAL): Likewise.
28760 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
28761 [__USE_GNU] (F_SEAL_GROW): Likewise.
28762 [__USE_GNU] (F_SEAL_WRITE): Likewise.
28763
28764 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28765
28766 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
28767 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
28768 * posix/glob_internal.h (__glob_pattern_type):
28769 * posix/glob.c (glob):
28770 * posix/glob_pattern_p.c (__glob_pattern_p):
28771 Use them.
28772
28773 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
28774 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
28775 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
28776 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
28777 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28778 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
28779 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
28780 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
28781 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28782 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
28783 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28784 * sysdeps/wordsize-64/glob.c: Likewise.
28785 * sysdeps/wordsize-64/glob64.c: Likewise.
28786 * sysdeps/wordsize-64/globfree.c: Likewise.
28787 * sysdeps/wordsize-64/globfree64.c: Likewise.
28788 * sysdeps/unix/sysv/linux/glob.c: New file.
28789 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
28790 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
28791 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
28792 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28793 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
28794 adds !GLOB_NO_OLD_VERSION as an extra condition.
28795 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
28796 using relative path instead of absolute one.
28797 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
28798 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
28799 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
28800 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
28801 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
28802 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
28803
28804 [BZ #1062]
28805 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
28806 (glob): Use the same scratch buffer for both getlogin_r and
28807 getpwnam_r. Don’t require preallocation of the login name. This
28808 simplifies storage allocation, and corrects the handling of
28809 long login names.
28810
28811 [BZ #1062]
28812 * posix/glob.c (glob): Port recent patches to platforms
28813 lacking getpwnam_r.
28814 (glob): Fix longstanding misuse of errno after getpwnam_r, which
28815 returns an error number rather than setting errno.
28816
28817 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
28818 instead of GCC extension.
28819 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
28820 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
28821 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
28822
28823 [BZ #866]
28824 [BZ #1062]
28825 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
28826 * posix/bug-glob1.c: Remove file.
28827 * posix/tst-glob_symlinks.c: New file.
28828 * posix/glob.c (__lstat64): New macro.
28829 (is_dir): New function.
28830 (glob, glob_in_dir): Match symlinks even if they are dangling.
28831 (link_stat, link_exists_p): Remove. All uses removed.
28832
28833 [BZ #1062]
28834 [BZ #19971]
28835 * posix/glob.c (struct readdir_result): Remove skip_entry member.
28836 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
28837 All uses removed.
28838
28839 [BZ #1062]
28840 CVE-2017-15671
28841 * posix/Makefile (routines): Add globfree, globfree64, and
28842 glob_pattern_p.
28843 * posix/flexmember.h: New file.
28844 * posix/glob_internal.h: Likewise.
28845 * posix/glob_pattern_p.c: Likewise.
28846 * posix/globfree.c: Likewise.
28847 * posix/globfree64.c: Likewise.
28848 * sysdeps/gnu/globfree64.c: Likewise.
28849 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
28850 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28851 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
28852 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28853 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28854 * sysdeps/wordsize-64/globfree.c: Likewise.
28855 * sysdeps/wordsize-64/globfree64.c: Likewise.
28856 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
28857 [NDEBUG): Remove comments.
28858 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
28859 (dirent_type): New type. Use uint_fast8_t not
28860 uint8_t, as C99 does not require uint8_t.
28861 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
28862 (struct readdir_result): Use dirent_type. Do not define skip_entry
28863 unless it is needed; this saves a byte on platforms lacking d_ino.
28864 (readdir_result_type, readdir_result_skip_entry):
28865 New functions, replacing ...
28866 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
28867 these functions, which were removed. This makes the callers
28868 easier to read. All callers changed.
28869 (D_INO_TO_RESULT): Now empty if there is no d_ino.
28870 (size_add_wrapv, glob_use_alloca): New static functions.
28871 (glob, glob_in_dir): Check for size_t overflow in several places,
28872 and fix some size_t checks that were not quite right.
28873 Remove old code using SHELL since Bash no longer
28874 uses this.
28875 (glob, prefix_array): Separate MS code better.
28876 (glob_in_dir): Remove old Amiga and VMS code.
28877 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
28878 separate files.
28879 (glob_in_dir): Do not rely on undefined behavior in accessing
28880 struct members beyond their bounds. Use a flexible array member
28881 instead
28882 (link_stat): Rename from link_exists2_p and return -1/0 instead of
28883 0/1. Caller changed.
28884 (glob): Fix memory leaks.
28885 * posix/glob64 (globfree64): Move to separate file.
28886 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
28887 (globfree64): Remove hidden alias.
28888 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
28889 oldglob.
28890 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
28891 separate file.
28892 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
28893 define.
28894 Move compat code to separate file.
28895 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
28896 separate file.
28897
28898 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
28899
28900 * resolv/tst-resolv-qtypes.c (domain): Changed to
28901 "const char domain[] =".
28902
28903 2017-09-07 Joseph Myers <joseph@codesourcery.com>
28904
28905 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
28906 version to 3.1.6.
28907
28908 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
28909 (TCP_MD5SIG_EXT): Likewise.
28910 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
28911 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
28912 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
28913
28914 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
28915
28916 2017-09-07 Mike FABIAN <mfabian@redhat.com>
28917
28918 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
28919
28920 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
28921
28922 [BZ #22100]
28923 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
28924
28925 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
28926
28927 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
28928 before assuming that the file is empty. Avoid testing buffer content
28929 when nread == 0.
28930
28931 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28932
28933 [BZ #18858]
28934 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28935 Remove define.
28936 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
28937 Likewise.
28938 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
28939 Likewise.
28940 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
28941 Likewise.
28942 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28943 Likewise.
28944 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
28945 Likewise.
28946 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
28947 Likewise.
28948
28949 2017-09-06 Florian Weimer <fweimer@redhat.com>
28950
28951 * malloc/dynarray_emplace_enlarge.c
28952 (__libc_dynarray_emplace_enlarge): Add missing else.
28953
28954 2017-09-06 Florian Weimer <fweimer@redhat.com>
28955
28956 [BZ #22096]
28957 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
28958 case of failure to obtain the global conf object.
28959
28960 2017-09-06 Florian Weimer <fweimer@redhat.com>
28961
28962 [BZ #22095]
28963 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
28964 dynarray allocation failure.
28965
28966 2017-09-06 Florian Weimer <fweimer@redhat.com>
28967
28968 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
28969 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
28970 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
28971 New functions.
28972 (response): Call them. Add 'p', '6' flag processing.
28973 (test_reverse): New function.
28974 (test_get2_any): Call it.
28975 (test_no_inet6): Add 'p' test.
28976 (test_inet6): Likewise.
28977
28978 2017-09-06 Florian Weimer <fweimer@redhat.com>
28979
28980 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28981 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28982 the QNAME.
28983 (test_gai): Adjust query names. Add additional tests.
28984 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28985 test_get2. Adjust query names. Add additional tests.
28986 (test_no_inet6): New function, extracted from threadfunc.
28987 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28988 Add additional tests.
28989
28990 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28991
28992 [BZ #22070]
28993 * localedata/unicode-gen/utf8_gen.py: Set the width for
28994 characters with Prepended_Concatenation_Mark property to 1
28995 * localedata/charmaps/UTF-8: Updated using the improved script.
28996
28997 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28998
28999 [BZ #21750]
29000 * localedata/unicode-gen/utf8_gen.py: Improve the script to
29001 use the range notation for all ranges of neighbouring characters
29002 with the same width.
29003
29004 2017-09-05 Joseph Myers <joseph@codesourcery.com>
29005
29006 * sysdeps/generic/math-type-macros-double.h: Include
29007 <math-svid-compat.h>.
29008 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29009 * sysdeps/generic/math-type-macros-float.h: Include
29010 <math-svid-compat.h>.
29011 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29012 * sysdeps/generic/math-type-macros-ldouble.h: Include
29013 <math-svid-compat.h>.
29014 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29015 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
29016 condition.
29017 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
29018 * math/w_acosf_compat.c: Likewise.
29019 * math/w_acosh_compat.c: Likewise.
29020 * math/w_acoshf_compat.c: Likewise.
29021 * math/w_acoshl_compat.c: Likewise.
29022 * math/w_acosl_compat.c: Likewise.
29023 * math/w_asin_compat.c: Likewise.
29024 * math/w_asinf_compat.c: Likewise.
29025 * math/w_asinl_compat.c: Likewise.
29026 * math/w_atan2_compat.c: Likewise.
29027 * math/w_atan2f_compat.c: Likewise.
29028 * math/w_atan2l_compat.c: Likewise.
29029 * math/w_atanh_compat.c: Likewise.
29030 * math/w_atanhf_compat.c: Likewise.
29031 * math/w_atanhl_compat.c: Likewise.
29032 * math/w_cosh_compat.c: Likewise.
29033 * math/w_coshf_compat.c: Likewise.
29034 * math/w_coshl_compat.c: Likewise.
29035 * math/w_exp10_compat.c: Likewise.
29036 * math/w_exp10f_compat.c: Likewise.
29037 * math/w_exp10l_compat.c: Likewise.
29038 * math/w_exp2_compat.c: Likewise.
29039 * math/w_exp2f_compat.c: Likewise.
29040 * math/w_exp2l_compat.c: Likewise.
29041 * math/w_fmod_compat.c: Likewise.
29042 * math/w_fmodf_compat.c: Likewise.
29043 * math/w_fmodl_compat.c: Likewise.
29044 * math/w_hypot_compat.c: Likewise.
29045 * math/w_hypotf_compat.c: Likewise.
29046 * math/w_hypotl_compat.c: Likewise.
29047 * math/w_j0_compat.c: Likewise.
29048 * math/w_j0f_compat.c: Likewise.
29049 * math/w_j0l_compat.c: Likewise.
29050 * math/w_j1_compat.c: Likewise.
29051 * math/w_j1f_compat.c: Likewise.
29052 * math/w_j1l_compat.c: Likewise.
29053 * math/w_jn_compat.c: Likewise.
29054 * math/w_jnf_compat.c: Likewise.
29055 * math/w_jnl_compat.c: Likewise.
29056 * math/w_lgamma_r_compat.c: Likewise.
29057 * math/w_lgammaf_r_compat.c: Likewise.
29058 * math/w_lgammal_r_compat.c: Likewise.
29059 * math/w_log10_compat.c: Likewise.
29060 * math/w_log10f_compat.c: Likewise.
29061 * math/w_log10l_compat.c: Likewise.
29062 * math/w_log2_compat.c: Likewise.
29063 * math/w_log2f_compat.c: Likewise.
29064 * math/w_log2l_compat.c: Likewise.
29065 * math/w_log_compat.c: Likewise.
29066 * math/w_logf_compat.c: Likewise.
29067 * math/w_logl_compat.c: Likewise.
29068 * math/w_pow_compat.c: Likewise.
29069 * math/w_powf_compat.c: Likewise.
29070 * math/w_powl_compat.c: Likewise.
29071 * math/w_remainder_compat.c: Likewise.
29072 * math/w_remainderf_compat.c: Likewise.
29073 * math/w_remainderl_compat.c: Likewise.
29074 * math/w_sinh_compat.c: Likewise.
29075 * math/w_sinhf_compat.c: Likewise.
29076 * math/w_sinhl_compat.c: Likewise.
29077 * math/w_sqrt_compat.c: Likewise.
29078 * math/w_sqrtf_compat.c: Likewise.
29079 * math/w_sqrtl_compat.c: Likewise.
29080 * math/w_tgamma_compat.c: Likewise.
29081 * math/w_tgammaf_compat.c: Likewise.
29082 * math/w_tgammal_compat.c: Likewise.
29083 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
29084 [LIBM_SVID_COMPAT].
29085 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
29086 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
29087 [LIBM_SVID_COMPAT].
29088 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
29089 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
29090 [LIBM_SVID_COMPAT].
29091 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
29092 * sysdeps/i386/fpu/w_sqrt.c: New file.
29093 * sysdeps/ia64/fpu/w_acos.c: Likewise.
29094 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
29095 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
29096 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
29097 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
29098 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
29099 * sysdeps/ia64/fpu/w_asin.c: Likewise.
29100 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
29101 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
29102 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
29103 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
29104 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
29105 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
29106 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
29107 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
29108 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
29109 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
29110 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
29111 * sysdeps/ia64/fpu/w_exp.c: Likewise.
29112 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
29113 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
29114 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
29115 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
29116 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
29117 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
29118 * sysdeps/ia64/fpu/w_expf.c: Likewise.
29119 * sysdeps/ia64/fpu/w_expl.c: Likewise.
29120 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
29121 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
29122 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
29123 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
29124 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
29125 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
29126 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
29127 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
29128 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
29129 * sysdeps/ia64/fpu/w_log.c: Likewise.
29130 * sysdeps/ia64/fpu/w_log10.c: Likewise.
29131 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
29132 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
29133 * sysdeps/ia64/fpu/w_log2.c: Likewise.
29134 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
29135 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
29136 * sysdeps/ia64/fpu/w_logf.c: Likewise.
29137 * sysdeps/ia64/fpu/w_logl.c: Likewise.
29138 * sysdeps/ia64/fpu/w_pow.c: Likewise.
29139 * sysdeps/ia64/fpu/w_powf.c: Likewise.
29140 * sysdeps/ia64/fpu/w_powl.c: Likewise.
29141 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
29142 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
29143 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
29144 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
29145 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
29146 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
29147 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
29148 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
29149 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
29150 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
29151 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
29152 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
29153 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
29154 [LIBM_SVID_COMPAT].
29155 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
29156 * sysdeps/ieee754/k_standard.c: Likewise.
29157 * sysdeps/ieee754/k_standardf.c: Likewise.
29158 * sysdeps/ieee754/k_standardl.c: Likewise.
29159 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
29160 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
29161 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
29162 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
29163 long_double_symbol call on [LIBM_SVID_COMPAT].
29164 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
29165 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
29166 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
29167 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
29168 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
29169 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
29170 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
29171 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
29172 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
29173 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
29174 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
29175 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
29176 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
29177 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
29178 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
29179 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
29180 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
29181 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29182 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29183 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29184 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
29185 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
29186
29187 2017-09-05 Steve Ellcey <sellcey@cavium.com>
29188
29189 * include/shlib-compat.h (TEST_COMPAT): New Macro.
29190 * malloc/tst-mallocstate.c: Convert from test-skeleton
29191 to test-driver. Ifdef code using TEST_COMPAT macro.
29192 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
29193 * math/test-matherr.c: Likewise.
29194
29195 2017-09-05 Joseph Myers <joseph@codesourcery.com>
29196
29197 [BZ #22086]
29198 * debug/pcprofiledump.c (main): Use byte-swapped mask when
29199 comparing word with byte-swapped constant.
29200
29201 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
29202
29203 [BZ #20498]
29204 * locale/iso-639.def: add Miskito.
29205 * localedata/SUPPORTED: Add miq_NI/UTF-8.
29206 * localedata/locales/miq_NI: New file.
29207
29208 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
29209
29210 [BZ #18822]
29211 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
29212 (__mkdir): Likewise.
29213 * io/chmod.c (__chmod): Add libc_hidden_def.
29214 * io/mkdir.c (__mkdir): Likewise.
29215 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
29216 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
29217 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
29218 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
29219
29220 2017-09-04 Joseph Myers <joseph@codesourcery.com>
29221
29222 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
29223 version to 4.13.
29224
29225 [BZ #22082]
29226 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
29227 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
29228
29229 2017-09-04 Florian Weimer <fweimer@redhat.com>
29230
29231 * math/math.h: Issue warning if log is defined.
29232
29233 2017-09-04 Joseph Myers <joseph@codesourcery.com>
29234
29235 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
29236 kernel version to 4.13.
29237
29238 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
29239
29240 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
29241 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
29242 parameter.
29243 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
29244 just <bits/types.h>.
29245 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
29246 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
29247 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
29248 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
29249 * misc/preadv2.c: Include <errno.h>.
29250 * misc/preadv64v2.c: Include <errno.h>.
29251 * misc/pwritev2.c: Include <errno.h>.
29252 * misc/pwritev64v2.c: Include <errno.h>.
29253 * sysdeps/posix/preadv2.c: Include <errno.h>.
29254 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
29255 Fix <unistd.h> inclusion.
29256 * sysdeps/posix/pwritev2.c: Include <errno.h>.
29257 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
29258 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
29259 __strtoul_internal): New functions.
29260 * sysdeps/posix/pause.c: Include <sigsetops.h>.
29261 * sysdeps/posix/system.c: Include <sigsetops.h>.
29262 * sysdeps/mach/hurd/i386/Makefile
29263 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
29264 [$(subdir) = csu] (sysdep-only-routines): Likewise.
29265 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
29266 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
29267 __feraiseexcept_renamed to feraiseexcept instead of
29268 __GI_feraiseexcept.
29269 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
29270 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
29271 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
29272 RWF_NOWAIT): Define to 0 if undefined already.
29273 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
29274 boils down to 0.
29275 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
29276 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
29277
29278 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29279
29280 * manual/math.texi (pow10): Do not document.
29281 (pow10f): Likewise.
29282 (pow10l): Likewise.
29283 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
29284 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
29285 * math/libm-test-exp10.inc (pow10_test): Remove.
29286 (do_test): Do not call pow10.
29287 * math/w_exp10_compat.c (pow10): Make into compat symbol.
29288 [NO_LONG_DOUBLE] (pow10l): Likewise.
29289 * math/w_exp10f_compat.c (pow10f): Likewise.
29290 * math/w_exp10l_compat.c (pow10l): Likewise.
29291 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
29292 (pow10): Make into compat symbol.
29293 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
29294 (pow10f): Make into compat symbol.
29295 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
29296 (pow10l): Make into compat symbol.
29297 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
29298 pow10.
29299 (CFLAGS-nldbl-pow10.c): Remove variable..
29300 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
29301 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
29302 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
29303 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
29304 Undefine and redefine.
29305 (pow10l): Make into compat symbol.
29306 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
29307 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
29308 * sysdeps/arm/libm-test-ulps: Likewise.
29309 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
29310 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
29311 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29312 * sysdeps/microblaze/libm-test-ulps: Likewise.
29313 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
29314 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29315 * sysdeps/nios2/libm-test-ulps: Likewise.
29316 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29317 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
29318 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
29319 * sysdeps/sh/libm-test-ulps: Likewise.
29320 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
29321 * sysdeps/tile/libm-test-ulps: Likewise.
29322 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29323
29324 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29325
29326 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
29327
29328 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29329
29330 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
29331 "../ChangeLog.old/ChangeLog.8".
29332 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
29333 "../ChangeLog.old/ChangeLog.14".
29334
29335 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29336
29337 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
29338 Threads Library.
29339
29340 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29341
29342 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
29343
29344 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29345
29346 * csu/version.c (banner): Remove "by Roland McGrath et al.".
29347 * nptl/Banner: Remove "by Ulrich Drepper et al.".
29348
29349 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29350
29351 * stdlib/tst-atexit-common.c (do_test): Test support for at least
29352 32 atexit handlers.
29353
29354 2017-09-01 Zack Weinberg <zackw@panix.com>
29355
29356 * math/math.h (HUGE_VAL): Improve commentary.
29357
29358 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29359 Andreas Schwab <schwab@suse.de>
29360
29361 [BZ #21530]
29362 * include/stdio.h (__gen_tempfd): New function.
29363 * stdio-common/Makefile (routines): Add gentempfd.
29364 * stdio-common/gentempfd.c: New file.
29365 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
29366 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
29367 unnamed file first.
29368
29369 2017-09-01 Florian Weimer <fweimer@redhat.com>
29370
29371 [BZ #21915]
29372 [BZ #21922]
29373 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
29374 result to determine success or failure, not the errno value.
29375 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
29376 (tst-nss-files-hosts-erange): Link with -ldl.
29377 * nss/tst-nss-files-hosts-erange.c: New file.
29378 * nss/tst-resolv-basic.c (response): Handle nodata.example.
29379 (do_test): Add NO_DATA tests.
29380 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
29381 (do_test): Call it.
29382
29383 2017-09-01 Florian Weimer <fweimer@redhat.com>
29384
29385 [BZ #21922]
29386 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
29387 coming from gethostbyname2_r.
29388
29389 2017-09-01 Florian Weimer <fweimer@redhat.com>
29390
29391 * support/namespace.h (struct support_chroot_configuration): Add
29392 hosts, host_conf.
29393 (struct support_chroot): Add path_hosts, path_host_conf.
29394 * support/support_chroot.c (write_file): New function.
29395 (support_chroot_create): Call it to process /etc/resolv.conf,
29396 /etc/hosts, /etc/host.conf.
29397 (support_chroot_free): Update.
29398
29399 2017-09-01 Florian Weimer <fweimer@redhat.com>
29400
29401 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
29402 status indicates it is set.
29403
29404 2017-09-01 Florian Weimer <fweimer@redhat.com>
29405
29406 [BZ #20532]
29407 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
29408 function lookup failures more reliable.
29409
29410 2017-09-01 Florian Weimer <fweimer@redhat.com>
29411
29412 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
29413 (getcanonname): Likewise.
29414 (gaih_inet): Likewise.
29415
29416 2017-09-01 Florian Weimer <fweimer@redhat.com>
29417
29418 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
29419 (getcanonname): Likewise.
29420 (gaih_inet): Likewise.
29421
29422 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29423 Richard Henderson <rth@twiddle.net>
29424
29425 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
29426 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
29427 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
29428 (IREG_SIZE, OREG_SIZE): New macros.
29429 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
29430 (IREG_SIZE, OREG_SIZE): New macros.
29431 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
29432 (IREG_SIZE): New macro.
29433 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
29434 (IREG_SIZE): New macro.
29435 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
29436 New includes.
29437 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
29438 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29439 (__CONCATX): Handle exceptions correctly on large values that may
29440 set FE_INVALID.
29441 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
29442 Initialize if not already set.
29443 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29444
29445 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29446
29447 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
29448 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
29449 Likewise.
29450 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
29451 Likewise.
29452 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
29453 Likewise.
29454 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
29455 Likewise.
29456 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
29457 Likewise.
29458 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
29459 Likewise.
29460 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
29461 Likewise.
29462 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
29463 (NO_CANCELLATION): Likewise.
29464 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
29465 Likewise.
29466 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
29467 Likewise.
29468 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
29469 Likewise.
29470 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
29471 (NO_CANCELLATION): Likewise.
29472 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
29473 (NO_CANCELLATION): Likewise.
29474 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
29475 Likewise
29476 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
29477 Likewise.
29478 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
29479 Likewise.
29480 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
29481 Likewise.
29482 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
29483 hidden prototype.
29484 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
29485 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
29486
29487 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29488
29489 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
29490 in resolver call.
29491
29492 2017-08-31 Florian Weimer <fweimer@redhat.com>
29493
29494 * include/libc-symbols.h (internal_function): Remove.
29495
29496 2017-08-31 Florian Weimer <fweimer@redhat.com>
29497
29498 * stdlib/fmtmsg.c (internal_addseverity): Remove
29499 internal_function.
29500
29501 2017-08-31 Florian Weimer <fweimer@redhat.com>
29502
29503 * stdio-common/printf_fp.c (group_number): Remove
29504 internal_function.
29505 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
29506
29507 2017-08-31 Florian Weimer <fweimer@redhat.com>
29508
29509 * posix/fnmatch.c (internal_function): Remove definition.
29510 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
29511 * posix/regcomp.c (peek_token, init_word_char)
29512 (duplicate_node_closure, fetch_token, peek_token)
29513 (peek_token_bracket, build_range_exp, build_collating_symbol):
29514 Likewise.
29515 * posix/regex_internal.c (re_string_construct_common)
29516 (create_ci_newstate, create_cd_newstate, re_string_allocate)
29517 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
29518 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
29519 (re_string_translate_buffer, re_string_reconstruct)
29520 (re_string_peek_byte_case, re_string_fetch_byte_case)
29521 (re_string_destruct, re_string_context_at, re_node_set_alloc)
29522 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
29523 (re_node_set_add_intersect, re_node_set_init_union)
29524 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
29525 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
29526 (re_dfa_add_node, calc_state_hash, re_acquire_state)
29527 (re_acquire_state_context): Likewise.
29528 * posix/regex_internal.h (internal_function): Remove definition.
29529 (re_string_realloc_buffers, build_wcs_buffer)
29530 (build_wcs_upper_buffer, build_upper_buffer)
29531 (re_string_translate_buffer, re_string_context_at)
29532 (re_string_char_size_at, re_string_wchar_at)
29533 (re_string_elem_size_at): Likewise.
29534 * posix/regexec.c (match_ctx_init, match_ctx_clean)
29535 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
29536 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
29537 (re_search_internal, re_search_2_stub, re_search_stub)
29538 (re_copy_regs, prune_impossible_nodes, check_matching)
29539 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
29540 (free_fail_stack_return, sift_states_iter_mb)
29541 (sift_states_backward, build_sifted_states)
29542 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
29543 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
29544 (check_subexp_limits, sift_states_bkref, merge_state_array)
29545 (find_recover_state, transit_state, merge_state_with_log)
29546 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
29547 (transit_state_mb, transit_state_bkref, get_subexp)
29548 (get_subexp_sub, find_subexp_node, check_arrival)
29549 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
29550 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
29551 (check_node_accept_bytes, find_collation_sequence_value)
29552 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
29553 (acquire_init_state_context, check_halt_node_context)
29554 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
29555 (sub_epsilon_src_nodes): Likewise.
29556 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
29557 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
29558 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
29559 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
29560 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
29561 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
29562 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
29563 * sysdeps/posix/ttyname.c (getttyname): Likewise.
29564 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
29565 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
29566 (PREADV): Likewise.
29567 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
29568 (PREADV): Likewise.
29569 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
29570 (PWRITEV): Likewise.
29571 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
29572 (PWRITEV): Likewise.
29573 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
29574 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
29575
29576 2017-08-31 Florian Weimer <fweimer@redhat.com>
29577
29578 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
29579 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
29580 Remove internal_function.
29581 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
29582 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
29583 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
29584 (__deallocate_stack, __libc_pthread_init)
29585 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
29586 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
29587 (__libc_disable_asynccancel, __librt_disable_asynccancel):
29588 Likewise.
29589 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
29590 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
29591 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
29592 Likewise.
29593 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
29594 (__pthread_mutex_unlock_usercnt): Likewise.
29595
29596 2017-08-31 Florian Weimer <fweimer@redhat.com>
29597
29598 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
29599 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
29600 (fts_safe_changedir): Remove internal_function.
29601 * io/ftw.c (internal_function): Remove definition.
29602 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
29603
29604 2017-08-31 Florian Weimer <fweimer@redhat.com>
29605
29606 * inet/deadline.c (__deadline_current_time)
29607 (__deadline_from_timeval, __deadline_to_ms): Remove
29608 internal_function.
29609 * inet/getnameinfo.c (nrl_domainname): Likewise.
29610 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
29611 * inet/inet6_option.c (add_pad): Likewise.
29612 * inet/net-internal.h (__deadline_current_time)
29613 (__deadline_from_timeval, __deadline_to_ms): Likewise.
29614 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
29615 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
29616 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
29617
29618 2017-08-31 Joseph Myers <joseph@codesourcery.com>
29619
29620 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
29621 include <bits/nan.h>.
29622 * math/Makefile (headers): Remove bits/nan.h.
29623 * bits/nan.h: Remove.
29624 * sysdeps/ieee754/bits/nan.h: Likewise.
29625 * sysdeps/mips/bits/nan.h: Likewise.
29626
29627 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
29628 not include <bits/inf.h>.
29629 * math/Makefile (headers): Remove bits/inf.h.
29630 * bits/inf.h: Remove.
29631 * sysdeps/ieee754/bits/inf.h: Likewise.
29632
29633 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
29634 bits/huge_vall.h or bits/huge_val_flt128.h.
29635 (HUGE_VAL): Define directly here.
29636 [__USE_ISOC99] (HUGE_VALF): Likewise.
29637 [__USE_ISOC99] (HUGE_VALL): Likewise.
29638 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29639 (HUGE_VAL_F128): Likewise.
29640 * math/Makefile (headers): Remove bits/huge_val.h,
29641 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
29642 * bits/huge_val.h: Remove.
29643 * bits/huge_val_flt128.h: Likewise.
29644 * bits/huge_valf.h: Likewise.
29645 * bits/huge_vall.h: Likewise.
29646 * sysdeps/ia64/bits/huge_vall.h: Likewise.
29647 * sysdeps/ieee754/bits/huge_val.h: Likewise.
29648 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
29649 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
29650 * sysdeps/sh/bits/huge_val.h: Likewise.
29651 * sysdeps/sparc/bits/huge_vall.h: Likewise.
29652 * sysdeps/x86/bits/huge_vall.h: Likewise.
29653
29654 2017-08-31 Florian Weimer <fweimer@redhat.com>
29655
29656 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
29657 internal_function.
29658 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
29659 Likewise.
29660 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
29661 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
29662 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
29663 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
29664 * elf/dl-fini.c (_dl_sort_fini): Likewise.
29665 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
29666 * elf/dl-libc.c (dlerror_run): Likewise.
29667 * elf/dl-load.c (add_name_to_object, decompose_rpath)
29668 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
29669 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
29670 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
29671 Likewise.
29672 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
29673 (_dl_higher_prime_number, _dl_strtoul): Likewise.
29674 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
29675 * elf/dl-profile.c (_dl_start_profile): Likewise.
29676 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
29677 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
29678 Likewise.
29679 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
29680 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
29681 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
29682 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
29683 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
29684 (_dl_allocate_tls_storage): Likewise.
29685 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
29686 (_dl_check_all_versions): Likewise.
29687 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
29688 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
29689 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
29690 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29691 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
29692 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
29693 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
29694 internal_function from __dl_start.
29695 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
29696 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
29697 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
29698 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
29699 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
29700 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
29701 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
29702 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
29703 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
29704 (_dl_next_ld_env_entry, _dl_important_hwcaps)
29705 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
29706 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
29707 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
29708 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
29709 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
29710 Likewise.
29711 (struct rtld_global_ro): Remove internal_function from the
29712 _dl_lookup_symbol_x member.
29713 (_dl_symbol_value): Remove. No longer defined anywhere.
29714 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
29715 internal_function.
29716 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29717 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
29718 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
29719 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
29720 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
29721 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
29722 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
29723 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
29724 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
29725 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
29726 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29727 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
29728
29729 2017-08-31 Florian Weimer <fweimer@redhat.com>
29730
29731 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
29732 Remove internal_function.
29733 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29734 Likewise.
29735 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29736 Likewise.
29737
29738 2017-08-31 Florian Weimer <fweimer@redhat.com>
29739
29740 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
29741 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
29742 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
29743
29744 2017-08-31 Florian Weimer <fweimer@redhat.com>
29745
29746 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
29747 (__gai_enqueue_request): Remove internal_function.
29748 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
29749 (__gai_remove_request, __gai_notify, __gai_notify_only)
29750 (__gai_sigqueue): Likewise.
29751 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
29752 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
29753 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
29754 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
29755 Likewise.
29756
29757 2017-08-31 Florian Weimer <fweimer@redhat.com>
29758
29759 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
29760 * include/dirent.h (__opendirat, __getdents, __getdents64)
29761 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
29762 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
29763 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
29764 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29765 Likewise.
29766 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
29767
29768 2017-08-31 Florian Weimer <fweimer@redhat.com>
29769
29770 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
29771 internal_function.
29772 (GETCWD_RETURN_TYPE): Likewise.
29773
29774 2017-08-31 Florian Weimer <fweimer@redhat.com>
29775
29776 * include/time.h (__tz_compute, __strptime_internal): Remove
29777 internal_function.
29778 * time/strptime_l.c (__strptime_internal): Likewise.
29779 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
29780
29781 2017-08-31 Florian Weimer <fweimer@redhat.com>
29782
29783 * iconv/gconv.c (__gconv): Remove internal_function.
29784 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
29785 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
29786 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
29787 (__gconv_release_cache): Likewise.
29788 * iconv/gconv_close.c (__gconv_close): Likewise.
29789 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
29790 (read_conf_file, __gconv_get_path): Likewise.
29791 * iconv/gconv_db.c (derivation_lookup, add_derivation)
29792 (__gconv_release_step, gen_steps, increment_counter)
29793 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
29794 (__gconv_close_transform, free_modules_db): Likewise.
29795 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
29796 Likewise.
29797 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
29798 (__gconv_find_transform, __gconv_lookup_cache)
29799 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
29800 (__gconv_close_transform, __gconv_release_cache)
29801 (__gconv_loaded_object, __gconv_release_shlib)
29802 (__gconv_compare_alias): Likewise.
29803 * iconv/gconv_open.c (__gconv_open): Likewise.
29804 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
29805 * iconv/iconvconfig.c (add_module): Likewise.
29806 * intl/dcigettext.c (plural_lookup, guess_category_value)
29807 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
29808 * intl/eval-plural.h (plural_eval): Likewise.
29809 * intl/finddomain.c (_nl_find_domain): Likewise.
29810 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
29811 (_nl_load_domain, _nl_find_msg): Likewise.
29812 (internal_function): Remove definition.
29813 * intl/loadinfo.h (internal_function): Likewise.
29814 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
29815 internal_function.
29816 * intl/localealias.c (internal_function): Remove definition.
29817 (read_alias_file): Remove internal_function.
29818 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
29819 * intl/plural-exp.h (internal_function): Remove definition.
29820 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
29821 internal_function.
29822 * intl/plural.c: Regenerate.
29823 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
29824 * locale/coll-lookup.c (__collidx_table_lookup)
29825 (__collseq_table_lookup): Likewise.
29826 * locale/coll-lookup.h (__collidx_table_lookup)
29827 (__collseq_table_lookup): Likewise.
29828 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
29829 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
29830 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
29831 (_nl_unload_locale): Likewise.
29832 * locale/localeinfo.h (struct __locale_data): Remove
29833 internal_function from cleanup member.
29834 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
29835 (_nl_remove_locale, _nl_load_locale_from_archive)
29836 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
29837 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
29838 (_nl_cleanup_time): Remove internal_function.
29839 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
29840 (_nl_parse_alt_digit): Likewise.
29841 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
29842 (_nl_select_era_entry): Likewise.
29843 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
29844 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29845 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29846 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29847 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29848
29849 2017-08-31 Florian Weimer <fweimer@redhat.com>
29850
29851 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
29852 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29853 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
29854 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
29855 Likewise.
29856 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
29857 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
29858 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
29859 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
29860 Likewise.
29861 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
29862
29863 2017-08-31 Florian Weimer <fweimer@redhat.com>
29864
29865 * misc/getttyent.c (skip, value): Remove internal_function.
29866 * misc/syslog.c (openlog_internal): Likewise.
29867 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
29868
29869 2017-08-31 Florian Weimer <fweimer@redhat.com>
29870
29871 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
29872 (__nss_rewrite_field): Remove internal_function.
29873 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
29874 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
29875 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
29876 * nss/nsswitch.c (nss_parse_file, nss_getline)
29877 (nss_parse_service_list, nss_new_service): Likewise.
29878 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
29879 * nss/valid_field.c (__nss_valid_field): Likewise.
29880 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
29881
29882 2017-08-31 Florian Weimer <fweimer@redhat.com>
29883
29884 * malloc/arena.c (__malloc_fork_lock_parent)
29885 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
29886 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
29887 internal_function from defintions.
29888 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
29889 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
29890 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
29891 internal_function from declarations.
29892 * malloc/malloc.c (internal_function): Do not define.
29893 (mem2mem_check): Remove internal_function from declaration.
29894 (munmap_chunk, mremap_chunk): Remove internal_function.
29895 * malloc/mtrace.c (tr_where): Likewise.
29896
29897 2017-08-31 Florian Weimer <fweimer@redhat.com>
29898
29899 * include/rpc/pmap_clnt.h (__get_socket): Remove
29900 internal_function.
29901 * sunrpc/auth_des.c (synchronize): Likewise.
29902 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
29903 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
29904 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
29905 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
29906 (key_call): Likewise.
29907 * sunrpc/pm_getport.c (__get_socket): Likewise.
29908 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
29909 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
29910 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
29911 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
29912 (invalidate): Likewise.
29913 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
29914 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
29915 (set_input_fragment, get_input_bytes): Likewise.
29916
29917 2017-08-31 Florian Weimer <fweimer@redhat.com>
29918
29919 * malloc/malloc.c (_int_free): Remove locked variable and related
29920 asserts.
29921
29922 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
29923
29924 [BZ #22051]
29925 * Makerules (build-module-helper-objlist): Filter out
29926 $(elf-objpfx)sofini.os.
29927 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
29928 needed.
29929
29930 2017-08-31 Florian Weimer <fweimer@redhat.com>
29931
29932 * libio/fcloseall.c: Assume weak_alias is defined.
29933 * libio/feof.c: Likewise.
29934 * libio/fileno.c: Likewise.
29935 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
29936 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29937 definitions.
29938 (_IO_file_open): Call __open directly.
29939 (_IO_new_file_sync): Assume ESPIPE is defined.
29940 (_IO_file_seekoff_maybe_mmap): Call __read directly.
29941 (_IO_new_file_write): Call __write directly.
29942 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
29943 * libio/ftello64.c (__ftello64): Assume EIO is defined.
29944 * libio/genops.c: Assume _LIBC is defined.
29945 (save_for_backup): Remove internal_function.
29946 * libio/getc.c: Assume weak_alias is defined.
29947 * libio/getwc.c: Likewise.
29948 * libio/iofclose.c: Assume _LIBC is defined.
29949 * libio/iofdopen.c: Likewise.
29950 (_IO_fcntl): Remove macro definition.
29951 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
29952 Call __fcntl directly.
29953 * libio/iofflush.c: Assume weak_alias is defined.
29954 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
29955 defined.
29956 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
29957 * libio/iofgets.c: Likewise.
29958 * libio/iofopen.c: Assume _LIBC is defined.
29959 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
29960 * libio/iofputs.c: Assume weak_alias is defined.
29961 * libio/iofread.c: Likewise.
29962 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
29963 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
29964 * libio/ioftell.c: Assume weak_alias is defined.
29965 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
29966 * libio/iofwide.c: Assume _LIBC is defined.
29967 (_IO_fwide): Drop SHARED conditional because it is implied by
29968 SHLIB_COMPAT.
29969 * libio/iofwrite.c: Assume weak_alias is defined.
29970 * libio/iogetdelim.c: Likewise.
29971 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
29972 * libio/iogetwline.c (wmemcpy): Remove macro definition.
29973 (_IO_getwline): Call __wmemcpy directly.
29974 * libio/iopopen.c: Assume _LIBC is defined.
29975 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29976 (_IO_close): Remove macro definitions.
29977 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
29978 _exit directly.
29979 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29980 directly.
29981 * libio/ioputs.c: Assume weak_alias is defined.
29982 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29983 * libio/iosetbuffer.c: Assume weak_alias is defined.
29984 * libio/iosetvbuf.c: Likewise.
29985 * libio/ioungetc.c: Likewise.
29986 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29987 libc_hidden_def, libc_hidden_weak, NULL are defined.
29988 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29989 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29990 defined.
29991 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29992 definitions.
29993 (_IO_old_file_init_internal): Drop SHARED conditional because it
29994 is implied by SHLIB_COMPAT.
29995 (_IO_old_file_fopen): Call __open directly.
29996 (_IO_old_file_sync): Assume ESPIPE is defined.
29997 (_IO_old_file_write): Call __write directly.
29998 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29999 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
30000 Call __fcntl directly.
30001 * libio/oldiofgetpos.c: Assume weak_alias is defined.
30002 (_IO_old_fgetpos): Assume EIO is defined.
30003 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
30004 (_IO_old_fgetpos64): Assume EIO is defined.
30005 * libio/oldiofsetpos.c: Assume weak_alias is defined.
30006 (_IO_old_fsetpos): Assume EIO is defined.
30007 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
30008 (_IO_old_fsetpos64): Assume EIO is defined.
30009 * libio/oldiopopen.c: Assume _LIBC is defined.
30010 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
30011 (_IO_close): Remove macro definitions.
30012 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
30013 directly.
30014 (_IO_old_proc_close): Call __close, __waitpid directly.
30015 * libio/put.c: Assume weak_alias is defined.
30016 * libio/stdfiles.c: Assume _LIBC is defined.
30017 * libio/stdio.c: Likewise.
30018 * libio/wfileops.c: Likewise.
30019 (_IO_wfile_sync): Assume ESPIPE is defined.
30020 * libio/wgenops.c: Assume _LIBC is defined.
30021 (save_for_wbackup): Remove internal_function.
30022
30023 2017-08-31 Florian Weimer <fweimer@redhat.com>
30024
30025 * malloc/malloc.c (top_check): Change return type to void. Remove
30026 internal_function.
30027 * malloc/hooks.c (top_check): Likewise.
30028 (malloc_check, realloc_check, memalign_check): Adjust.
30029
30030 2017-08-30 Joseph Myers <joseph@codesourcery.com>
30031
30032 [BZ #21457]
30033 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
30034 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
30035 sigcontext and namespace requirements.
30036 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
30037 * sysdeps/m68k/sys/ucontext.h: Likewise.
30038 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
30039 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
30040 <bits/sigcontext.h>.
30041 (__ctx): Define earlier.
30042 (mcontext_t): Define structure contents rather than using struct
30043 sigcontext.
30044 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
30045 __glibc_reserved1 instead of __reserved.
30046 * sysdeps/unix/sysv/linux/alpha/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/alpha/ucontext-offsets.sym: Use
30052 mcontext_t instead of struct sigcontext.
30053 * sysdeps/unix/sysv/linux/arm/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/hppa/sys/ucontext.h: Do not include
30059 <bits/sigcontext.h>.
30060 (__ctx): Define earlier.
30061 (mcontext_t): Define structure contents rather than using struct
30062 sigcontext.
30063 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
30064 mcontext_t instead of struct sigcontext.
30065 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
30066 mcontext_t instead of struct sigcontext.
30067 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
30068 <bits/sigcontext.h>.
30069 (__ctx): New macro.
30070 (struct __ia64_fpreg_mcontext): New type.
30071 (mcontext_t): Define structure contents rather than using struct
30072 sigcontext.
30073 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
30074 (uc_sigmask): Define using __ctx.
30075 (uc_stack): Likewise.
30076 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
30077 <bits/sigcontext.h>.
30078 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
30079 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
30080 <bits/sigcontext.h>.
30081 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
30082 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
30083 <bits/sigcontext.h>.
30084 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
30085 <bits/sigcontext.h>.
30086 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
30087 <bits/sigcontext.h>.
30088 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
30089 <bits/sigcontext.h>.
30090 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
30091 <bits/sigcontext.h>.
30092 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
30093 <bits/sigcontext.h>.
30094 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
30095 <bits/sigcontext.h>.
30096 (__ctx): Define earlier.
30097 (mcontext_t): Define structure contents rather than using struct
30098 sigcontext.
30099 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
30100 <bits/sigcontext.h>. Include <bits/types.h>.
30101 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
30102 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
30103 (test-xfail-XPG42/ucontext.h/conform): Likewise.
30104 (test-xfail-UNIX98/signal.h/conform): Likewise.
30105 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
30106 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
30107 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
30108 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
30109 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
30110 (test-xfail-POSIX2008/signal.h/conform): Likewise.
30111 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
30112 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
30113 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
30114
30115 2017-08-30 Florian Weimer <fweimer@redhat.com>
30116
30117 * malloc/dynarray_emplace_enlarge.c
30118 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
30119 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
30120 * malloc/tst-dynarray.c (test_long_overflow): New function.
30121 (do_test): Call it.
30122
30123 2017-08-30 Florian Weimer <fweimer@redhat.com>
30124
30125 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
30126 (set_arena_corrupt): Remove definitions.
30127 (mtrim): Do not check for corrupt arena.
30128 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
30129 Likewise.
30130
30131 2017-08-30 Florian Weimer <fweimer@redhat.com>
30132
30133 [BZ #21754]
30134 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
30135 check_action.
30136 (ptmalloc_init): Do not set or use check_action.
30137 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
30138 call to malloc_printerr. Remove return statement.
30139 (free_check): Likewise. Remove arena unlock.
30140 (top_check): Update comment. Adjust call to malloc_printerr.
30141 Remove heap repair code.
30142 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
30143 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
30144 (sysmalloc): Adjust call to malloc_printerr.
30145 (munmap_chunk, __libc_realloc): Likewise. Remove return
30146 statement.
30147 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
30148 Remove errout label and corresponding gotos.
30149 (_int_free): Likewise. Remove arena unlock.
30150 (do_set_mallopt_check): Do not set check_action.
30151 (malloc_printerr): Adjust parameter list. Do not mark arena as
30152 corrupt.
30153 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
30154 comment.
30155 * manual/probes.texi (Memory Allocation Probes): Remove
30156 memory_mallopt_check_action.
30157
30158 2017-08-30 Steve Ellcey <sellcey@cavium.com>
30159
30160 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
30161 Use pointer to uint64_t instead of long int for sp.
30162
30163 2017-08-30 Florian Weimer <fweimer@redhat.com>
30164
30165 [BZ #21754]
30166 * malloc/malloc.c (malloc_printerr): Always terminate the process,
30167 without printing a backtrace. Do not leak any information in the
30168 error message.
30169 * manual/memory.texi (Heap Consistency Checking): Update.
30170 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
30171
30172 2017-08-30 Florian Weimer <fweimer@redhat.com>
30173
30174 Do not scale NPTL tests with available number of CPUs.
30175 * nptl/tst-cond16.c (count): Set to constant value of 8.
30176 * nptl/tst-cond18.c (count): Likewise.
30177
30178 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30179
30180 [BZ #22035]
30181 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
30182 Define to take a second argument that is a macro that
30183 concatentates a suffix, not the suffix itself.
30184 (__CONCAT_d): New macro.
30185 (__CONCAT_f): Likewise.
30186 (__CONCAT_l): Likewise.
30187
30188 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
30189
30190 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
30191 by child.
30192
30193 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30194 Aurelien Jarno <aurelien@aurel32.net>
30195 Maciej W. Rozycki <macro@imgtec.com>
30196
30197 [BZ #21956]
30198 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
30199 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
30200 `mips16-syscall6' and `mips16-syscall7'.
30201 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
30202 (CFLAGS-mips16-syscall7.c): Remove.
30203 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
30204 Remove `__mips16_syscall5', `__mips16_syscall6' and
30205 `__mips16_syscall7'.
30206 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
30207 (__mips16_syscall0): Rename `__mips16_syscall_return' to
30208 `__mips_syscall_return'.
30209 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
30210 (__mips16_syscall1): Likewise.
30211 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
30212 (__mips16_syscall2): Likewise.
30213 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
30214 (__mips16_syscall3): Likewise.
30215 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
30216 (__mips16_syscall4): Likewise.
30217 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
30218 Remove.
30219 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
30220 Remove.
30221 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
30222 Remove.
30223 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
30224 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
30225 `__mips16_syscall5'. Remove prototype.
30226 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
30227 `__mips16_syscall6'. Remove prototype.
30228 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
30229 `__mips16_syscall7'. Remove prototype.
30230 (__nomips16, __mips16_syscall_return): Move to...
30231 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
30232 (__nomips16, __mips_syscall_return): ... here.
30233 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
30234 `__mips16_syscall_return' to `__mips_syscall_return'.
30235 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
30236 `internal_syscall##nr'.
30237 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
30238 `internal_syscall##nr'.
30239 (FORCE_FRAME_POINTER): Remove.
30240 (__mips_syscall5): New prototype.
30241 (internal_syscall5): Rewrite to call `__mips_syscall5'.
30242 (__mips_syscall6): New prototype.
30243 (internal_syscall6): Rewrite to call `__mips_syscall6'.
30244 (__mips_syscall7): New prototype.
30245 (internal_syscall7): Rewrite to call `__mips_syscall7'.
30246 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
30247 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
30248 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
30249 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
30250 (sysdep_routines): Add libc-do-syscall.
30251 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
30252 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
30253
30254 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30255
30256 [BZ #21672]
30257 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
30258 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
30259 (advise_stack_range): New function.
30260 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
30261 stack non required to advise_stack_range at allocatestack.c
30262
30263 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
30264
30265 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
30266
30267 2017-08-29 Florian Weimer <fweimer@redhat.com>
30268
30269 [BZ #22026]
30270 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
30271 __end_fct. Mangle __end_fct after setting it to NULL.
30272 * iconv/Makefile (tests): Add tst-gconv-init-failure.
30273 (modules-names, modules-names-tests): Add
30274 tst-gconv-init-failure-mod.
30275 (gconv-modules): New target.
30276 (tst-gconv-init-failure-mod.so): Link against libsupport.
30277 (tst-gconv-init-failure): Depend on gconv-modules,
30278 tst-gconv-init-failure-mod.so.
30279 * iconv/tst-gconv-init-failure-mod.c: New file.
30280 * iconv/tst-gconv-init-failure.c: Likewise.
30281 * iconv/test-gconv-modules: Likewise.
30282
30283 2017-08-29 Florian Weimer <fweimer@redhat.com>
30284
30285 [BZ #22025]
30286 * iconv/gconv_db.c (free_derivation): Remove redundant
30287 parentheses.
30288 (gen_steps): Unconditionally mangle __btowc_fct after
30289 initialization.
30290 (increment_counter): Likewise. Do not call init_fct for internal
30291 modules.
30292
30293 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30294
30295 [BZ #22028]
30296 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30297 (_MSUF_): Remove macro.
30298 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
30299 Likewise.
30300 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30301 (__REDIRFROM_X): New macro.
30302 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
30303 Likewise.
30304 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
30305 (__REDIRTO_X): Likewise.
30306 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
30307 arguments.
30308 (__MATH_REDIRCALL_2): Likewise.
30309 (__MATH_REDIRCALL_INTERNAL): Likewise.
30310 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30311 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
30312 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
30313 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30314 * math/test-finite-macros.c: New file.
30315 * math/Makefile (tests): Add test-finite-macros.
30316 (CFLAGS-test-finite-macros.c): New variable.
30317
30318 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
30319 Jeff Law <law@redhat.com>
30320
30321 [BZ #22025]
30322 Mangle NULL pointers in iconv/gconv.
30323 * iconv/gconv_cache.c (find_module): Demangle init_fct before
30324 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
30325 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
30326 is non-NULL before demangling the end_fct. Check for NULL
30327 end_fct after demangling.
30328 (__gconv_release_step): Demangle the end_fct before checking
30329 it for NULL. Remove assert on __shlibc_handle != NULL.
30330 (gen_steps): Don't check btowc_fct for NULL before mangling.
30331 Demangle init_fct before checking for NULL.
30332 (increment_counter): Likewise.
30333 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
30334 end_fct for NULL before mangling.
30335 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
30336 for NULL.
30337
30338 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
30339
30340 [BZ #21971]
30341 * locale/iso-639.def: add Morisyen.
30342
30343 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30344
30345 [BZ #21930]
30346 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
30347 (iszero): New C++ implementation that does not use
30348 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
30349 signaling nans are enabled, since __builtin_types_compatible_p
30350 is a C-only feature.
30351 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
30352 defined, include ieee754_float128.h for access to the union and
30353 member ieee854_float128.ieee.
30354 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
30355 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
30356 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30357 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
30358 options of test-math-zero on powerpc64le.
30359
30360 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
30361
30362 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30363 Change double to float.
30364
30365 2017-08-28 Joseph Myers <joseph@codesourcery.com>
30366
30367 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
30368 unconditional.
30369 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
30370 conditional code; define contents only for [LIBM_SVID_COMPAT].
30371
30372 2017-08-28 Florian Weimer <fweimer@redhat.com>
30373
30374 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
30375 (abi-lp64_be-options): Remove.
30376 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
30377 (abi-hard-options): Likewise.
30378 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
30379 (abi-o32_hard-options, abi-o32_soft_2008-options)
30380 (abi-o32_hard_2008-options, abi-n32_soft-options)
30381 (abi-n32_hard-options, abi-n32_soft_2008-options)
30382 (abi-n32_hard_2008-options, abi-n64_soft-options)
30383 (abi-n64_hard-options, abi-n64_soft_2008-options)
30384 (abi-n64_hard_2008-options): Likewise.
30385 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
30386 (abi-64-v1-options, abi-64-v2-options): Likewise.
30387 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
30388 (abi-64-options): Likewise.
30389 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
30390 (abi-64-options): Likewise.
30391 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
30392 (abi-64-options): Likewise.
30393 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
30394 (abi-64-options, abi-x32-options): Likewise.
30395
30396 2017-08-28 Florian Weimer <fweimer@redhat.com>
30397
30398 Store supported list of SYS_* system calls in the source tree.
30399 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
30400 (bits/syscall.h): Generate from list file.
30401 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
30402 [$(subdir) = misc] (tests): Add tst-syscall-list.
30403 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
30404 [$(subdir) = misc] (tst-syscall-list-macros.list)
30405 [$(subdir) = misc] (tst-syscall-list-nr.list)
30406 (tst-syscall-list-sys.list): Helper targets for new
30407 tst-syscall-list test.
30408 [$(subdir) = misc] (tst-syscall-list.out): Run test script
30409 tst-syscall-list.sh.
30410 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
30411 target. Do not include bits/syscall.d.
30412 [$(subdir) = misc] (generated): Do not update.
30413 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
30414 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
30415 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
30416 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
30417
30418 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
30419
30420 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
30421 (tst-cxa_atexit, tst-on_exit): Likewise.
30422 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
30423 tst-cxa_atexit, and tst-on_exit.
30424 * stdlib/tst-atexit-common.c: New file.
30425 * stdlib/tst-atexit.c: New file.
30426 * stdlib/tst-at_quick_exit.c: New file.
30427 * stdlib/tst-cxa_atexit.c: New file.
30428 * stdlib/tst-on_exit.c: New file.
30429
30430 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
30431
30432 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
30433 * mach/stack_chk_fail_local.c: New file.
30434 * hurd/stack_chk_fail_local.c: New file.
30435 * mach/Machrules ($(interface-library)-routines): Add
30436 stack_chk_fail_local.
30437 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
30438 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
30439 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
30440 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
30441 * hurd/Makefile (CFLAGS-hurdstartup.o,
30442 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
30443
30444 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
30445
30446 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
30447 (index_cpu_*, index_arch_*): Removed.
30448
30449 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
30450
30451 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
30452 Use uint64_t instead of unsigned long.
30453
30454 2017-08-25 Joseph Myers <joseph@codesourcery.com>
30455
30456 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
30457 [__HAVE_DISTINCT_FLOAT128].
30458
30459 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
30460 of <bits/math-finite.h>.
30461 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
30462 inclusion of <bits/math-finite.h>.
30463 * math/bits/math-finite.h (__REDIRTO_X): Do not define
30464 conditionally on [__MATH_DECLARING_LDOUBLE && defined
30465 __NO_LONG_DOUBLE_MATH].
30466 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
30467 (__MATH_REDIRCALL_2): Likewise.
30468 (__MATH_REDIRCALL_INTERNAL): Likewise.
30469 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30470 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
30471 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30472
30473 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
30474 Remove file.
30475 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
30476 Likewise.
30477 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
30478 Likewise.
30479 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
30480 Likewise.
30481 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
30482 Likewise.
30483 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
30484 Likewise.
30485 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30486 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30487 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30488 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30489 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
30490 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
30491 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
30492 w_sqrtf_compat-ppc32.
30493
30494 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30495
30496 * math/math.h [defined __cplusplus] (issignaling): In the long
30497 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
30498 is not defined. Call __issignaling, otherwise.
30499
30500 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30501
30502 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
30503 syscall definitions and replace __builtin_expect with __glibc_likely.
30504 * sysdeps/unix/syscall-template.S: Update comment about cancellable
30505 syscall.
30506 (SYSCALL_CANCELLABLE): Removedefinition
30507 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
30508 definition.
30509 (PSEUDO_END): Likewise.
30510 [IS_IN (libpthread)] (CENABLE): Likewise.
30511 [IS_IN (libpthread)] (CDISABLE): Likewise.
30512 [IS_IN (libc)] (CENABLE): Likewise.
30513 [IS_IN (libc)] (CENABLE): Likewise.
30514 [IS_IN (librt)] (CDISABLE): Likewise.
30515 [IS_IN (librt)] (CDISABLE): Likewise.
30516 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30517 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
30518 definition.
30519 (PSEUDO_END): Likewise.
30520 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
30521 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
30522 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30523 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30524 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30525 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30526 (CENABLE): Likewise.
30527 (CDISABLE): Likewise.
30528 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30529 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
30530 defintion.
30531 (PSEUDO_END): Likewise.
30532 [IS_IN (libpthread)] (CENABLE): Likewise.
30533 [IS_IN (libpthread)] (CDISABLE): Likewise.
30534 [IS_IN (libc)] (CENABLE): Likewise.
30535 [IS_IN (libc)] (CENABLE): Likewise.
30536 [IS_IN (librt)] (CDISABLE): Likewise.
30537 [IS_IN (librt)] (CDISABLE): Likewise.
30538 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30539 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
30540 definition.
30541 (PSEUDO_END): Likewise.
30542 [IS_IN (libpthread)] (CENABLE): Likewise.
30543 [IS_IN (libpthread)] (CDISABLE): Likewise.
30544 [IS_IN (libc)] (CENABLE): Likewise.
30545 [IS_IN (libc)] (CENABLE): Likewise.
30546 [IS_IN (librt)] (CDISABLE): Likewise.
30547 [IS_IN (librt)] (CDISABLE): Likewise.
30548 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30549 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
30550 definition.
30551 (PSEUDO_END): Likewise.
30552 [IS_IN (libpthread)] (CENABLE): Likewise.
30553 [IS_IN (libpthread)] (CDISABLE): Likewise.
30554 [IS_IN (libc)] (CENABLE): Likewise.
30555 [IS_IN (libc)] (CENABLE): Likewise.
30556 [IS_IN (librt)] (CDISABLE): Likewise.
30557 [IS_IN (librt)] (CDISABLE): Likewise.
30558 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30559 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
30560 definition.
30561 (PSEUDO_END): Likewise.
30562 [IS_IN (libpthread)] (CENABLE): Likewise.
30563 [IS_IN (libpthread)] (CDISABLE): Likewise.
30564 [IS_IN (libc)] (CENABLE): Likewise.
30565 [IS_IN (libc)] (CENABLE): Likewise.
30566 [IS_IN (librt)] (CDISABLE): Likewise.
30567 [IS_IN (librt)] (CDISABLE): Likewise.
30568 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30569 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
30570 definition.
30571 (PSEUDO_END): Likewise.
30572 [IS_IN (libpthread)] (CENABLE): Likewise.
30573 [IS_IN (libpthread)] (CDISABLE): Likewise.
30574 [IS_IN (libc)] (CENABLE): Likewise.
30575 [IS_IN (libc)] (CENABLE): Likewise.
30576 [IS_IN (librt)] (CDISABLE): Likewise.
30577 [IS_IN (librt)] (CDISABLE): Likewise.
30578 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30579 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
30580 definition.
30581 (PSEUDO_END): Likewise.
30582 [IS_IN (libpthread)] (CENABLE): Likewise.
30583 [IS_IN (libpthread)] (CDISABLE): Likewise.
30584 [IS_IN (libc)] (CENABLE): Likewise.
30585 [IS_IN (libc)] (CENABLE): Likewise.
30586 [IS_IN (librt)] (CDISABLE): Likewise.
30587 [IS_IN (librt)] (CDISABLE): Likewise.
30588 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30589 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
30590 Remove definition.
30591 (PSEUDO_END): Likewise.
30592 [IS_IN (libpthread)] (CENABLE): Likewise.
30593 [IS_IN (libpthread)] (CDISABLE): Likewise.
30594 [IS_IN (libc)] (CENABLE): Likewise.
30595 [IS_IN (libc)] (CENABLE): Likewise.
30596 [IS_IN (librt)] (CDISABLE): Likewise.
30597 [IS_IN (librt)] (CDISABLE): Likewise.
30598 (SINGLE_THREAD_P): Likewise.
30599 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
30600 definition.
30601 (PSEUDO_END): Likewise.
30602 [IS_IN (libpthread)] (CENABLE): Likewise.
30603 [IS_IN (libpthread)] (CDISABLE): Likewise.
30604 [IS_IN (libc)] (CENABLE): Likewise.
30605 [IS_IN (libc)] (CENABLE): Likewise.
30606 [IS_IN (librt)] (CDISABLE): Likewise.
30607 [IS_IN (librt)] (CDISABLE): Likewise.
30608 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30609 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
30610 definition.
30611 (PSEUDO_END): Likewise.
30612 [IS_IN (libpthread)] (CENABLE): Likewise.
30613 [IS_IN (libpthread)] (CDISABLE): Likewise.
30614 [IS_IN (libc)] (CENABLE): Likewise.
30615 [IS_IN (libc)] (CENABLE): Likewise.
30616 [IS_IN (librt)] (CDISABLE): Likewise.
30617 [IS_IN (librt)] (CDISABLE): Likewise.
30618 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30619 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
30620 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30621 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
30622 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
30623 definition.
30624 (PSEUDO_END): Likewise.
30625 [IS_IN (libpthread)] (CENABLE): Likewise.
30626 [IS_IN (libpthread)] (CDISABLE): Likewise.
30627 [IS_IN (libc)] (CENABLE): Likewise.
30628 [IS_IN (libc)] (CENABLE): Likewise.
30629 [IS_IN (librt)] (CDISABLE): Likewise.
30630 [IS_IN (librt)] (CDISABLE): Likewise.
30631 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30632 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
30633 definition.
30634 (PSEUDO_END): Likewise.
30635 [IS_IN (libpthread)] (CENABLE): Likewise.
30636 [IS_IN (libpthread)] (CDISABLE): Likewise.
30637 [IS_IN (libc)] (CENABLE): Likewise.
30638 [IS_IN (libc)] (CENABLE): Likewise.
30639 [IS_IN (librt)] (CDISABLE): Likewise.
30640 [IS_IN (librt)] (CDISABLE): Likewise.
30641 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30642 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
30643 definition.
30644 (PSEUDO_END): Likewise.
30645 [IS_IN (libpthread)] (CENABLE): Likewise.
30646 [IS_IN (libpthread)] (CDISABLE): Likewise.
30647 [IS_IN (libc)] (CENABLE): Likewise.
30648 [IS_IN (libc)] (CENABLE): Likewise.
30649 [IS_IN (librt)] (CDISABLE): Likewise.
30650 [IS_IN (librt)] (CDISABLE): Likewise.
30651 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30652 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
30653 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30654 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
30655 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
30656 definition.
30657 (PSEUDO_END): Likewise.
30658 [IS_IN (libpthread)] (CENABLE): Likewise.
30659 [IS_IN (libpthread)] (CDISABLE): Likewise.
30660 [IS_IN (libc)] (CENABLE): Likewise.
30661 [IS_IN (libc)] (CENABLE): Likewise.
30662 [IS_IN (librt)] (CDISABLE): Likewise.
30663 [IS_IN (librt)] (CDISABLE): Likewise.
30664 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30665 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
30666 definition.
30667 (PSEUDO_END): Likewise.
30668 [IS_IN (libpthread)] (CENABLE): Likewise.
30669 [IS_IN (libpthread)] (CDISABLE): Likewise.
30670 [IS_IN (libc)] (CENABLE): Likewise.
30671 [IS_IN (libc)] (CENABLE): Likewise.
30672 [IS_IN (librt)] (CDISABLE): Likewise.
30673 [IS_IN (librt)] (CDISABLE): Likewise.
30674 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30675
30676 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
30677
30678 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
30679
30680 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30681
30682 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30683
30684 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30685
30686 [BZ #21982]
30687 * string/stratcliff.c (do_test): Declare size, nchars, inner,
30688 middle and outer with size_t instead of int. Repleace %d and
30689 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
30690 "MAX (outer, nchars - 64)" to support unsigned outer and
30691 nchars. Also exit loop when outer == 0.
30692
30693 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30694
30695 * include/fcntl.h (__fcntl_nocancel): Remove definition.
30696 * include/signal.h (__sigsuspend_nocancel): Likewise.
30697 * include/time.h (__nanosleep_nocancel): Likewise.
30698 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
30699 * login/utmp_file.c: Include non cancellable syscall header.
30700 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
30701 prototype.
30702
30703 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30704
30705 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
30706 .byte sequences with AVX512F instructions.
30707 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
30708 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
30709 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
30710 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
30711 Likewise.
30712 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
30713 Likewise.
30714
30715 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
30716 Steve Ellcey <sellcey@cavium.com>
30717
30718 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
30719 Use PTR_REG macro in cmp instruction.
30720
30721 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30722
30723 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
30724 Change the return type of the ifunc resolver to match the return
30725 type of the target function.
30726
30727 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30728
30729 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
30730 (preadv64): Likewise.
30731 (pwrite64(: Likewise.
30732 (pwritev64): Likewise.
30733
30734 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
30735 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
30736 (LOAD_ARGS_0): Likewise.
30737 (LOAD_ARGS_1): Likewise.
30738 (LOAD_ARGS_2): Likewise.
30739 (LOAD_ARGS_3): Likewise.
30740 (LOAD_ARGS_4): Likewise.
30741 (LOAD_ARGS_5): Likewise.
30742 (LOAD_ARGS_6): Likewise.
30743 (LOAD_REGS_0): Likewise.
30744 (LOAD_REGS_1): Likewise.
30745 (LOAD_REGS_2): Likewise.
30746 (LOAD_REGS_3): Likewise.
30747 (LOAD_REGS_4): Likewise.
30748 (LOAD_REGS_5): Likewise.
30749 (LOAD_REGS_6): Likewise.
30750 (ASM_ARGS_0): Likewise.
30751 (ASM_ARGS_1): Likewise.
30752 (ASM_ARGS_2): Likewise.
30753 (ASM_ARGS_3): Likewise.
30754 (ASM_ARGS_4): Likewise.
30755 (ASM_ARGS_5): Likewise.
30756 (ASM_ARGS_6): Likewise.
30757 (LOAD_ARGS_TYPES_1): Likewise.
30758 (LOAD_ARGS_TYPES_2): Likewise.
30759 (LOAD_ARGS_TYPES_3): Likewise.
30760 (LOAD_ARGS_TYPES_4): Likewise.
30761 (LOAD_ARGS_TYPES_5): Likewise.
30762 (LOAD_ARGS_TYPES_6): Likewise.
30763 (LOAD_REGS_TYPES_1): Likewise.
30764 (LOAD_REGS_TYPES_2): Likewise.
30765 (LOAD_REGS_TYPES_3): Likewise.
30766 (LOAD_REGS_TYPES_4): Likewise.
30767 (LOAD_REGS_TYPES_5): Likewise.
30768 (LOAD_REGS_TYPES_6): Likewise.
30769 (TYPEFY): New define.
30770 (ARGIFY): Likewise.
30771 (internal_syscall0): Likewise.
30772 (internal_syscall1): Likewise.
30773 (internal_syscall2): Likewise.
30774 (internal_syscall3): Likewise.
30775 (internal_syscall4): Likewise.
30776 (internal_syscall5): Likewise.
30777 (internal_syscall6): Likewise.
30778 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
30779 (INTERNAL_SYSCALL_NCS): Remove define.
30780 (internal_syscall1): Add define.
30781
30782 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30783
30784 * math/w_remainder_compat.c: Remove duplicate inclusion of
30785 math-svid-compat.h.
30786 * math/w_remainderf_compat.c: Likewise.
30787 * math/w_remainderl_compat.c: Likewise.
30788
30789 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30790
30791 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30792
30793 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30794
30795 [BZ #21684]
30796 * math/tgmath.h (__floating_type): Simplify definitions.
30797 (__real_integer_type): New macro.
30798 (__complex_integer_type): Likewise.
30799 (__expr_is_real): Likewise.
30800 (__tgmath_real_type_sub): Update comment to describe handling of
30801 complex types.
30802 (__tgmath_complex_type_sub): New macro.
30803 (__tgmath_complex_type): Likewise.
30804 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30805 (__TGMATH_CF128): Use __expr_is_real.
30806 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
30807 __expr_is_real.
30808 (__TGMATH_BINARY_REAL_IMAG): Likewise.
30809 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
30810 * math/gen-tgmath-tests.py (Type.create_type): Create complex
30811 integer types.
30812
30813 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30814
30815 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
30816 macro.
30817 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
30818 alias.
30819 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
30820 Likewise.
30821
30822 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
30823 nanosleep_not_cancel with __nanosleep_nocancel.
30824 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
30825 (__nanosleep_nocancel): New macro.
30826 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
30827 function.
30828 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
30829 macro.
30830 (__nanosleep_nocancel): New prototype.
30831
30832 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
30833 pause_not_cancel with __pause_nocancel.
30834 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
30835 (__pause_nocancel): New macro.
30836 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
30837 macro.
30838 (__pause_nocancel): New prototype.
30839 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
30840
30841 2017-08-22 Martin Sebor <msebor@redhat.com>
30842
30843 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
30844 to return a pointer to the same type as the target function.
30845
30846 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30847
30848 [BZ #18822]
30849 [BZ #21986]
30850 * include/printf.h (__printf_fphex): Add attribute_hidden.
30851 (__guess_grouping): New prototype.
30852 * stdio-common/printf_fp.c (__guess_grouping): Removed.
30853 * stdio-common/reg-printf.c (__register_printf_specifier): Add
30854 libc_hidden_proto and libc_hidden_def.
30855 * stdlib/strfmon_l.c (__guess_grouping): Removed.
30856 (__vstrfmon_l): Remove the third argument passed to
30857 __guess_grouping.
30858
30859 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30860
30861 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
30862 definition for issignaling that does not rely on __MATH_TG,
30863 since __MATH_TG uses __builtin_types_compatible_p, which is only
30864 available in C mode.
30865 (CFLAGS-test-math-issignaling.cc): New variable.
30866 * math/Makefile [CXX] (tests): Add test-math-issignaling.
30867 * math/test-math-issignaling.cc: New test for C++ implementation
30868 of type-generic issignaling.
30869 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30870 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
30871 options of test-math-issignaling on powerpc64le.
30872
30873 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30874
30875 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30876 building libc.a.
30877 (hidden_proto): Likewise.
30878 (hidden_tls_proto): Likewise.
30879 (__hidden_proto): Likewise.
30880
30881 2017-08-22 Florian Weimer <fweimer@redhat.com>
30882
30883 math: Statically link tests of internal functionality.
30884 * math/Makefile (tests): Remove atest-exp, atest-sincos,
30885 atest-exp2.
30886 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
30887 (gmp-objs): Remove assignment.
30888 (atest-exp, atest-sincos, atest-exp2): Remove targets.
30889
30890 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30891
30892 [BZ #21987]
30893 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
30894 and copy to ...
30895 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
30896 ... here.
30897 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
30898 ... and here.
30899
30900 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
30901 variable definitions above inclusion of ../Rules.
30902
30903 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30904
30905 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
30906 case calling __builtin_unreachable.
30907
30908 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30909
30910 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
30911 __waitpid_nocancel.
30912 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
30913 (__waitpid_nocancel): New macro.
30914 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
30915 macro.
30916 (__waitpid_nocancel): Replace macro with a function.
30917 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
30918 function.
30919
30920 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
30921 __fcntl_nocancel.
30922 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
30923 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
30924
30925 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
30926 __writev_nocancel_nostatus.
30927 (write_call_graph): Likewise.
30928 (write_bb_counts): Likewise.
30929 * resolv/herror.c (herror): Likewise.
30930 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
30931 macro.
30932 (__writev_nocancel_nostatus): New macro.
30933 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
30934 Remove macro.
30935 (__writev_nocancel_nostatus): New function.
30936
30937 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30938
30939 Revert:
30940 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30941
30942 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30943 building libc.a.
30944 (hidden_proto): Likewise.
30945 (hidden_tls_proto): Likewise.
30946 (__hidden_proto): Likewise.
30947
30948 [BZ #21973]
30949 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
30950 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30951 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30952 Likewise.
30953 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
30954 Likewise.
30955 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30956 Likewise.
30957 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
30958 Likewise.
30959 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
30960 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30961 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30962 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30963 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30964 GLIBC_2.0 sqrtl symbol.
30965
30966 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
30967 [__USE_MISC] (_LIB_VERSION): Likewise.
30968 [__USE_MISC] (struct exception): Likewise.
30969 [__USE_MISC] (matherr): Likewise.
30970 [__USE_MISC] (DOMAIN): Likewise.
30971 [__USE_MISC] (SING): Likewise.
30972 [__USE_MISC] (OVERFLOW): Likewise.
30973 [__USE_MISC] (UNDERFLOW): Likewise.
30974 [__USE_MISC] (TLOSS): Likewise.
30975 [__USE_MISC] (PLOSS): Likewise.
30976 [__USE_MISC] (HUGE): Likewise.
30977 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
30978 * math/math-svid-compat.h: New file.
30979 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30980 and matherrl.
30981 * include/math.h [!_ISOMAC] (__matherr): Remove.
30982 * manual/arith.texi (FP Exceptions): Do not document matherr.
30983 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30984 (tests-internal): New variable.
30985 (install-lib): Do not add libieee.a.
30986 (non-lib.a): Likewise.
30987 (extra-objs): Do not add libieee.a and ieee-math.o.
30988 (CPPFLAGS-s_lib_version.c): Remove variable.
30989 ($(objpfx)libieee.a): Remove rule.
30990 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30991 * math/ieee-math.c: Remove.
30992 * math/libm-test-support.c (matherr): Remove.
30993 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30994 and license notices. Include <math-svid-compat.h> and
30995 <shlib-compat.h>.
30996 (matherr): Undefine as macro. Use compat_symbol_reference.
30997 (_LIB_VERSION): Likewise.
30998 * math/test-matherr-2.c: New file.
30999 * math/test-matherr-3.c: Likewise.
31000 * sysdeps/generic/math_private.h (__kernel_standard): Remove
31001 declaration.
31002 (__kernel_standard_f): Likewise.
31003 (__kernel_standard_l): Likewise.
31004 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
31005 <math_private.h>. Include <math-svid-compat.h>.
31006 (_LIB_VERSION): Undefine as macro.
31007 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
31008 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
31009 [LIBM_SVID_COMPAT], use compat_symbol.
31010 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
31011 <math_private.h>. Include <math-svid-compat.h>.
31012 (matherr): Undefine as macro.
31013 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
31014 compat_symbol.
31015 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
31016 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
31017 compat_symbol_reference.
31018 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
31019 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
31020 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
31021 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
31022 (MATHERR_D): Remove declaration.
31023 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
31024 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
31025 [LIBM_BUILD] (pmatherrf): Likewise.
31026 [LIBM_BUILD] (pmatherr): Likewise.
31027 [LIBM_BUILD] (pmatherrl): Likewise.
31028 (DOMAIN): Likewise.
31029 (SING): Likewise.
31030 (OVERFLOW): Likewise.
31031 (UNDERFLOW): Likewise.
31032 (TLOSS): Likewise.
31033 (PLOSS): Likewise.
31034 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
31035 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
31036 compat_symbol.
31037 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
31038 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
31039 compat_symbol.
31040 * math/lgamma-compat.h: Include <math-svid-compat.h>.
31041 * math/w_acos_compat.c: Likewise.
31042 * math/w_acosf_compat.c: Likewise.
31043 * math/w_acosh_compat.c: Likewise.
31044 * math/w_acoshf_compat.c: Likewise.
31045 * math/w_acoshl_compat.c: Likewise.
31046 * math/w_acosl_compat.c: Likewise.
31047 * math/w_asin_compat.c: Likewise.
31048 * math/w_asinf_compat.c: Likewise.
31049 * math/w_asinl_compat.c: Likewise.
31050 * math/w_atan2_compat.c: Likewise.
31051 * math/w_atan2f_compat.c: Likewise.
31052 * math/w_atan2l_compat.c: Likewise.
31053 * math/w_atanh_compat.c: Likewise.
31054 * math/w_atanhf_compat.c: Likewise.
31055 * math/w_atanhl_compat.c: Likewise.
31056 * math/w_cosh_compat.c: Likewise.
31057 * math/w_coshf_compat.c: Likewise.
31058 * math/w_coshl_compat.c: Likewise.
31059 * math/w_exp10_compat.c: Likewise.
31060 * math/w_exp10f_compat.c: Likewise.
31061 * math/w_exp10l_compat.c: Likewise.
31062 * math/w_exp2_compat.c: Likewise.
31063 * math/w_exp2f_compat.c: Likewise.
31064 * math/w_exp2l_compat.c: Likewise.
31065 * math/w_fmod_compat.c: Likewise.
31066 * math/w_fmodf_compat.c: Likewise.
31067 * math/w_fmodl_compat.c: Likewise.
31068 * math/w_hypot_compat.c: Likewise.
31069 * math/w_hypotf_compat.c: Likewise.
31070 * math/w_hypotl_compat.c: Likewise.
31071 * math/w_j0_compat.c: Likewise.
31072 * math/w_j0f_compat.c: Likewise.
31073 * math/w_j0l_compat.c: Likewise.
31074 * math/w_j1_compat.c: Likewise.
31075 * math/w_j1f_compat.c: Likewise.
31076 * math/w_j1l_compat.c: Likewise.
31077 * math/w_jn_compat.c: Likewise.
31078 * math/w_jnf_compat.c: Likewise.
31079 * math/w_jnl_compat.c: Likewise.
31080 * math/w_lgamma_main.c: Likewise.
31081 * math/w_lgamma_r_compat.c: Likewise.
31082 * math/w_lgammaf_main.c: Likewise.
31083 * math/w_lgammaf_r_compat.c: Likewise.
31084 * math/w_lgammal_main.c: Likewise.
31085 * math/w_lgammal_r_compat.c: Likewise.
31086 * math/w_log10_compat.c: Likewise.
31087 * math/w_log10f_compat.c: Likewise.
31088 * math/w_log10l_compat.c: Likewise.
31089 * math/w_log2_compat.c: Likewise.
31090 * math/w_log2f_compat.c: Likewise.
31091 * math/w_log2l_compat.c: Likewise.
31092 * math/w_log_compat.c: Likewise.
31093 * math/w_logf_compat.c: Likewise.
31094 * math/w_logl_compat.c: Likewise.
31095 * math/w_pow_compat.c: Likewise.
31096 * math/w_powf_compat.c: Likewise.
31097 * math/w_powl_compat.c: Likewise.
31098 * math/w_remainder_compat.c: Likewise.
31099 * math/w_remainderf_compat.c: Likewise.
31100 * math/w_remainderl_compat.c: Likewise.
31101 * math/w_scalb_compat.c: Likewise.
31102 * math/w_scalbf_compat.c: Likewise.
31103 * math/w_scalbl_compat.c: Likewise.
31104 * math/w_sinh_compat.c: Likewise.
31105 * math/w_sinhf_compat.c: Likewise.
31106 * math/w_sinhl_compat.c: Likewise.
31107 * math/w_sqrt_compat.c: Likewise.
31108 * math/w_sqrtf_compat.c: Likewise.
31109 * math/w_sqrtl_compat.c: Likewise.
31110 * math/w_tgamma_compat.c: Likewise.
31111 * math/w_tgammaf_compat.c: Likewise.
31112 * math/w_tgammal_compat.c: Likewise.
31113 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
31114 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
31115 * sysdeps/ieee754/k_standard.c: Likewise.
31116 * sysdeps/ieee754/k_standardf.c: Likewise.
31117 * sysdeps/ieee754/k_standardl.c: Likewise.
31118 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
31119 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
31120 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
31121 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
31122 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
31123 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
31124 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
31125 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
31126 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
31127 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
31128 Likewise.
31129 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
31130 Likewise.
31131 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
31132 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
31133 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
31134 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
31135
31136 2017-08-21 Florian Weimer <fweimer@redhat.com>
31137
31138 [BZ #21864]
31139 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
31140 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
31141 Move before inclusion of ../Rules.
31142
31143 2017-08-21 Florian Weimer <fweimer@redhat.com>
31144
31145 [BZ #21972]
31146 * assert/assert.h (assert): Use static_cast (bool) for C++.
31147 Use the ternary operator in the warning branch for GNU C.
31148 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
31149 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
31150 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
31151 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
31152 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
31153
31154 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31155
31156 [BZ #18822]
31157 * sysdeps/unix/sysv/linux/x86_64/init-first.c
31158 (__syscall_clock_gettime): Add attribute_hidden.
31159 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
31160 (__start_context): Likewise.
31161
31162 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31163
31164 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31165 building libc.a.
31166 (hidden_proto): Likewise.
31167 (hidden_tls_proto): Likewise.
31168 (__hidden_proto): Likewise.
31169
31170 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31171
31172 * include/libc-symbols.h (attribute_hidden): Enable hidden
31173 visibility in libc.a compiled with PIE.
31174
31175 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31176
31177 [BZ #18822]
31178 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
31179 Add attribute_hidden.
31180
31181 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31182
31183 [BZ #21864]
31184 * Makerules (all-nonlib): Add $(others-extras).
31185 * catgets/Makefile (others-extras): New.
31186 * elf/Makefile (others-extras): Likewise.
31187 * nss/Makefile (others-extras): Likewise.
31188
31189 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31190
31191 [BZ #18822]
31192 * csu/libc-start.c (__libc_multiple_libcs): Removed.
31193 * elf/dl-open.c: Include <libc-internal.h>.
31194 (__libc_multiple_libcs): Removed.
31195 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
31196 <hp-timing.h>.
31197 * include/libc-internal.h (__libc_multiple_libcs): New.
31198 * misc/sbrk.c: Include <libc-internal.h>.
31199 (__libc_multiple_libcs): Removed.
31200
31201 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31202
31203 [BZ #18822]
31204 * grp/initgroups.c (__nss_group_database): Removed.
31205 (__nss_initgroups_database): Likewise.
31206 * nscd/gai.c (__nss_hosts_database): Likewise.
31207 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
31208 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
31209 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
31210 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
31211 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
31212 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
31213 attribute_hidden.
31214 * nss/nsswitch.c (__nss_database_custom): Define only if
31215 USE_NSCD is defined.
31216 (__nss_configure_lookup): Use __nss_database_custom only if
31217 USE_NSCD is defined.
31218 * nss/nsswitch.h (__nss_database_custom): Declare only if
31219 USE_NSCD is defined. Add attribute_hidden.
31220 (__nss_setent): Add attribute_hidden.
31221 (__nss_endent): Likewise.
31222 (__nss_getent_r): Likewise.
31223 (__nss_getent): Likewise.
31224 (DEFINE_DATABASE): Declare __nss_##arg##_database.
31225
31226 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31227
31228 [BZ #18822]
31229 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
31230 libc_hidden_proto and libc_hidden_def.
31231
31232 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31233
31234 [BZ #18822]
31235 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
31236 Add libc_hidden_proto.
31237 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
31238 Add libc_hidden_def.
31239
31240 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31241
31242 [BZ #21974]
31243 * gmon/Makefile (routines): Remove bb_init_func and
31244 bb_exit_func.
31245 (elide-routines.os): Removed.
31246 * gmon/bb_exit_func.c: Likewise.
31247 * gmon/bb_init_func.c: Likewise.
31248 * include/sys/gmon.h (__bb): Likewise.
31249 (__bb_init_func): Likewise.
31250 (__bb_exit_func): Likewise.
31251 * sysdeps/alpha/bb_init_func.S: Likewise.
31252
31253 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31254
31255 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
31256 * include/setjmp.h (____longjmp_chk): Here. Add
31257 attribute_hidden.
31258
31259 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
31260
31261 [BZ #18822]
31262 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
31263 attribute_hidden.
31264 (__strspn_sse2): Likewise.
31265
31266 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31267
31268 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
31269 (close_not_cancel_no_status): Likewise.
31270 (__close_nocancel): New macro.
31271 (__close_nocancel_nostatus): Likewise.
31272 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
31273 macro.
31274 (close_not_cancel): Likewise.
31275 (close_not_cancel_no_status): Likewise.
31276 (__close_nocancel): New prototype.
31277 (__close_nocancel_nostatus): New function.
31278 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
31279 * catgets/open_catalog.c (__open_catalog): Replace
31280 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
31281 * gmon/gmon.c (write_gmon): Likewise.
31282 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
31283 * intl/loadmsgcat.c (close): Likewise.
31284 * io/ftw.c (open_dir_stream): Likewise.
31285 (ftw_startup): Likewise.
31286 * libio/fileops.c (_IO_file_open): Likewise.
31287 (_IO_file_close_mmap): Likewise.
31288 (_IO_file_close): Likewise.
31289 * libio/iopopen.c (_IO_dup2): Likewise.
31290 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31291 * locale/loadlocale.c (_nl_load_locale): Likewise.
31292 * login/utmp_file.c (pututline_file): Likewise.
31293 (endutent_file): Likewise.
31294 * misc/daemon.c (daemon): Likewise.
31295 * nscd/nscd_getai.c (__nscd_getai): Likewise.
31296 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31297 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31298 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31299 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
31300 * nscd/nscd_helper.c (open_socket): Likewise.
31301 (__nscd_open_socket): Likewise.
31302 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
31303 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
31304 (__nscd_innetgr): Likewise.
31305 * nss/nss_db/db-open.c (internal_setent): Likewise.
31306 * resolv/res-close.c (__res_iclose): Likewise.
31307 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
31308 * sysdeps/posix/closedir.c (__closedir): Likewise.
31309 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
31310 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31311 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31312 (opendir_tail): Likewise.
31313 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31314 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
31315 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
31316 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
31317 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31318 (gethostid): Likewise.
31319 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31320 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31321 Likewise.
31322 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31323 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
31324 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31325 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31326 Likewise.
31327 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
31328 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
31329 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31330 Likewise.
31331 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
31332 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31333 Likewise.
31334 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31335 Likewise.
31336 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31337 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31338 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31339 __close_nocancel.
31340
31341 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
31342 (openat_not_cancel_3): Likewise.
31343 (openat64_not_cancel_3): Likewise).
31344 (openat_not_cancel_3): Likewise).
31345 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
31346 macro.
31347 (openat_not_cancel_3): Likewise.
31348 (openat64_not_cancel): Likewise.
31349 (openat64_not_cancel_3): Likewise.
31350 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
31351 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
31352 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
31353 __open{64}_nocancel.
31354 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31355 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31356 * sysdeps/posix/opendir.c (__opendirat): Likewise.
31357
31358 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31359
31360 [BZ #18822]
31361 * include/argz.h (__argz_create_sep): New function prototype.
31362 (__argz_append): Likewise.
31363 (__argz_add): Likewise.
31364 (__argz_add_sep): Likewise.
31365 (__argz_delete): Likewise.
31366 (__argz_insert): Likewise.
31367 (__argz_replace): Likewise.
31368 * string/argz.h (__argz_create_sep): Removed.
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
31376 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31377
31378 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
31379 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
31380 (GNU_PROPERTY_STACK_SIZE): Likewie.
31381 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
31382 (GNU_PROPERTY_LOPROC): Likewise.
31383 (GNU_PROPERTY_HIPROC): Likewise.
31384 (GNU_PROPERTY_LOUSER): Likewise.
31385 (GNU_PROPERTY_HIUSER): Likewise.
31386 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
31387 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
31388 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
31389 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
31390 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
31391 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
31392 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
31393 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
31394 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
31395 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
31396 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
31397 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
31398 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
31399 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
31400 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
31401 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
31402 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
31403 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
31404 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
31405 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
31406 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
31407 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
31408 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
31409
31410 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31411
31412 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
31413 in C++ mode.
31414
31415 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31416
31417 [BZ #21930]
31418 * math/math.h (isinf): Check if in C or C++ mode before using
31419 __builtin_types_compatible_p, since this is a C mode feature.
31420
31421 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31422
31423 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
31424 (__write_nocancel): New macro.
31425 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
31426 Rewrite as a function prototype.
31427 (write_not_cancel): Remove macro.
31428 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
31429 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
31430 (write_gmon): Likewise.
31431 * libio/fileops.c (_IO_new_file_write): Likewise.
31432 * login/utmp_file.c (pututline_file): Likewise.
31433 (updwtmp_file): Likewise.
31434 * stdio-common/psiginfo.c (psiginfo): Likewise.
31435 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31436 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31437 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31438 Likewise.
31439 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31440 Likewise.
31441
31442 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
31443 (__read_nocancel): New macro.
31444 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31445 __read_nocancel.
31446 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
31447 macro.
31448 (__read_nocancel): New prototype.
31449 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
31450 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
31451 with __read_nocancel.
31452 * intl/loadmsgcat.c (read): Likewise.
31453 * libio/fileops.c (_IO_file_read): Likewise.
31454 * locale/loadlocale.c (_nl_load_locale): Likewise.
31455 * login/utmp_file.c (getutent_r_file): Likewise.
31456 (internal_getut_r): Likewise.
31457 (getutline_r_file): Likewise.
31458 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31459 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
31460 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31461 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31462 Likewise.
31463 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
31464 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31465 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31466 Likewise.
31467 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31468 Likewise.
31469 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31470 Likewise.
31471 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31472 Likewise.
31473 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31474
31475 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31476
31477 [BZ #21966]
31478 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
31479 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
31480 usable.
31481
31482 2017-08-17 DJ Delorie <dj@redhat.com>
31483
31484 * bug17079.c: Update to new test harness.
31485 * test-digits-dots.c: Likewise.
31486 * test-netdb.c: Likewise.
31487 * tst-field.c: Likewise.
31488 * tst-nss-getpwent.c: Likewise.
31489 * tst-nss-static.c: Likewise.
31490 * tst-nss-test1.c: Likewise.
31491 * tst-nss-test2.c: Likewise.
31492 * tst-nss-test3.c: Likewise.
31493 * tst-nss-test4.c: Likewise.
31494 * tst-nss-test5.c: Likewise.
31495
31496 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31497
31498 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
31499 (open_not_cancel_2): Likewise.
31500 (open_nocancel): New macro.
31501 (open64_nocancel): Likewise.
31502 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
31503 (open_not_cancel_2): Likewise.
31504 (__open_nocancel): New prototype.
31505 (__open64_nocancel): Likewise.
31506 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31507 __open_nocancel.
31508 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
31509 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
31510 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
31511 with __open_nocancel.
31512 * csu/check_fds.c (check_one_fd): Likewise.
31513 * gmon/gmon.c (write_gmon): Likewise.
31514 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
31515 * intl/loadmsgcat.c (open): Likewise.
31516 * libio/fileops.c (_IO_file_open): Likewise.
31517 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31518 * locale/loadlocale.c (_nl_load_locale): Likewise.
31519 * login/utmp_file.c (setutent_file): Likewise.
31520 * misc/daemon.c (daemon): Likewise.
31521 * nss/nss_db/db-open.c (internal_setent): Likewise.
31522 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31523 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
31524 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31525 (__opendir): Likewise.
31526 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31527 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31528 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31529 (gethostid): Likewise.
31530 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31531 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31532 Likewise.
31533 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31534 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
31535 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31536 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31537 Likewise.
31538 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31539 Likewise.
31540 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31541 Likewise.
31542 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
31543 Likewise.
31544 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31545 Likewise.
31546 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31547 Likewise.
31548 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31549 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31550
31551 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
31552
31553 * benchtests/bench-skeleton.c (main): Add support for
31554 latency benchmarking.
31555 * benchtests/scripts/bench.py: Add support for latency benchmarking.
31556
31557 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
31558
31559 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
31560 the startup object.
31561
31562 2017-08-17 Florian Weimer <fweimer@redhat.com>
31563
31564 * include/sys/socket.h (__opensock): Remove internal_function.
31565 * socket/opensock.c (__opensock): Likewise.
31566 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
31567
31568 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31569
31570 [BZ #21944]
31571 * signal/bits/types/__sigval_t.h: New file.
31572 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
31573 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
31574 and define sigval_t using __sigval_t.
31575 * include/bits/types/__sigval_t.h: New file.
31576 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
31577 instead of <bits/types/__sigval_t.h>.
31578 (struct sigevent): Use __sigval_t instead of sigval_t.
31579 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
31580 instead of <bits/types/__sigval_t.h>.
31581 (siginfo_t): Use __sigval_t instead of sigval_t.
31582 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
31583 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31584 (struct sigevent): Use __sigval_t instead of sigval_t.
31585 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
31586 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31587 (siginfo_t): Use __sigval_t instead of sigval_t.
31588 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
31589
31590 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31591
31592 * NEWS: Remove "[Add new features here]" for 2.27.
31593
31594 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31595
31596 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
31597 libc.so.
31598
31599 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31600
31601 * NEWS: Mention x86-64 FMA optimization.
31602
31603 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31604
31605 [BZ #21912]
31606 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31607 Add e_expf-fma.
31608 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
31609 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
31610 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
31611
31612 2017-08-16 Andreas Schwab <schwab@suse.de>
31613
31614 [BZ #16750]
31615 CVE-2009-5064
31616 * elf/ldd.bash.in: Never run file directly.
31617
31618 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
31619
31620 [BZ #21955]
31621 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
31622 (L(SP_INF_0)): Likewise.
31623
31624 2017-08-15 Florian Weimer <fweimer@redhat.com>
31625
31626 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
31627 run-built-tests.
31628
31629 2017-08-15 Florian Weimer <fweimer@redhat.com>
31630
31631 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
31632 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
31633 BROKEN_THREAD_SIGNALS code.
31634 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
31635 request_list): Remove caller_pid member used for
31636 BROKEN_THREAD_SIGNALS.
31637 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
31638 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31639 Remove BROKEN_THREAD_SIGNALS support.
31640 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
31641 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
31642
31643 2017-08-15 Florian Weimer <fweimer@redhat.com>
31644
31645 * gmon/Makefile (tests): Add tst-gmon.
31646 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
31647 Set.
31648 (tests-special): Add tst-gmon-prof.out.
31649 (tst-gmon.out): Depend on clean-tst-gmon-data.
31650 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
31651 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
31652 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
31653 startup object.
31654 * aclocal.m4 (GPROF): Set and substitute.
31655 * config.amke.in (GPROF): Set.
31656 * configure: Regenerate.
31657
31658 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
31659
31660 * elf/elf.h A (NT_PPC_TAR): New macro.
31661 (NT_PPC_PPR): Likewise.
31662 (NT_PPC_DSCR): Likewise.
31663 (NT_PPC_EBB): Likewise.
31664 (NT_PPC_PMU): Likewise.
31665 (NT_PPC_TM_CGPR): Likewise.
31666 (NT_PPC_TM_CFPR): Likewise.
31667 (NT_PPC_TM_CVMX): Likewise.
31668 (NT_PPC_TM_CVSX): Likewise.
31669 (NT_PPC_TM_SPR): Likewise.
31670 (NT_PPC_TM_CTAR): Likewise.
31671 (NT_PPC_TM_CPPR): Likewise.
31672 (NT_PPC_TM_CDSCR): Likewise.
31673
31674 2017-08-15 Florian Weimer <fweimer@redhat.com>
31675
31676 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
31677 regparm (2) instead of internal_function.
31678 (_MCOUNT_DECL): Adjust.
31679
31680 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
31681
31682 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
31683 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
31684
31685 2017-08-14 Joseph Myers <joseph@codesourcery.com>
31686
31687 * conform/data/sys/wait.h-data (si_value): Do not expect for
31688 XPG42.
31689
31690 2017-08-14 Florian Weimer <fweimer@redhat.com>
31691
31692 [BZ #21962]
31693 NSS: Create stubs for accidentally exported lookup functions.
31694 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
31695 Remove declaration.
31696 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
31697 (ether_hostton): Call __nss_ethers_lookup2 instead.
31698 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
31699 (ether_ntohost): Call __nss_ethers_lookup2 instead.
31700 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
31701 (setup): Call __nss_netgroup_lookup2 instead.
31702 * nss/Makefile (routines): Add compat-lookup.
31703 * nss/Versions (GLIBC_2.27): Add symbol version.
31704 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
31705 (DB_COMPAT_FCT): Remove.
31706 * nss/compat-lookup.c: New file.
31707 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
31708 from databases.def.
31709 * nss/service-lookup.c (NO_COMPAT): Remove definition.
31710 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
31711 (netname2user): Call __nss_publickey_lookup2 instead.
31712 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
31713 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
31714 instead.
31715
31716 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31717 Sergei Trofimovich <slyfox@inbox.ru>
31718
31719 [BZ #21908]
31720 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
31721 Rename to MMAP2_PAGE_UNIT.
31722 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
31723 __OFF_T_MATCHES_OFF64_T is not defined.
31724 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
31725 uint64_t.
31726 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
31727 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
31728
31729 2017-08-14 Florian Weimer <fweimer@redhat.com>
31730
31731 i386: Do not set internal_function.
31732 * config.h.in (USE_REGPARMS, internal_function): Remove.
31733 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
31734 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
31735
31736 2017-08-14 Florian Weimer <fweimer@redhat.com>
31737
31738 * elf/dl-init.c (_dl_init): Remove internal_function.
31739 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
31740 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
31741
31742 2017-08-14 Florian Weimer <fweimer@redhat.com>
31743
31744 * elf/rtld.c (_dl_start): Remove internal_function.
31745 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
31746 _dl_start.
31747
31748 2017-08-14 Florian Weimer <fweimer@redhat.com>
31749
31750 * elf/dl-fini.c (_dl_fini): Remove internal_function
31751 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
31752
31753 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
31754
31755 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
31756 (bit_cpu_SHSTK): Likewise.
31757 (index_cpu_IBT): Likewise.
31758 (index_cpu_SHSTK): Likewise.
31759 (reg_IBT): Likewise.
31760 (reg_SHSTK): Likewise.
31761 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31762 Handle index_cpu_IBT and index_cpu_SHSTK.
31763
31764 2017-08-14 Mike FABIAN <mfabian@redhat.com>
31765
31766 [BZ #19982]
31767 * po/fr.po: Fix spelling mistake.
31768
31769 2017-08-13 Florian Weimer <fweimer@redhat.com>
31770
31771 * elf/dl-addr.c (_dl_addr): Remove internal_function.
31772 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
31773 (_dl_catch_error, _dl_receive_error): Likewise.
31774 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
31775 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
31776 (_dl_deallocate_tls): Likewise.
31777 * include/dlfcn.h (_dl_addr): Likewise.
31778 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
31779 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
31780 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
31781 Likewise.
31782
31783 2017-08-13 Florian Weimer <fweimer@redhat.com>
31784
31785 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
31786 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
31787 internal_function.
31788 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
31789
31790 2017-08-13 Florian Weimer <fweimer@redhat.com>
31791
31792 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
31793 internal_function.
31794 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
31795 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
31796 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
31797 internal_function from _dl_make_stack_executable_hook member.
31798 (_dl_make_stack_executable): Remove internal_function.
31799 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
31800 Likewise.
31801 * sysdeps/unix/sysv/linux/dl-execstack.c
31802 (_dl_make_stack_executable): Likewise.
31803
31804 2017-08-13 Florian Weimer <fweimer@redhat.com>
31805
31806 * sysdeps/unix/sysv/linux/netlinkaccess.h
31807 (__netlink_assert_response): Remove internal_function.
31808 * sysdeps/unix/sysv/linux/netlink_assert_response.c
31809 (__netlink_assert_response): Likewise.
31810
31811 2017-08-13 Florian Weimer <fweimer@redhat.com>
31812
31813 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
31814 internal_function.
31815 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
31816
31817 2017-08-13 Florian Weimer <fweimer@redhat.com>
31818
31819 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
31820 internal_function.
31821 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
31822 * inet/netgroup.h (__internal_setnetgrent)
31823 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31824 * inet/getnetgrent_r.c (__internal_setnetgrent)
31825 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31826 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
31827 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
31828 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
31829 * nss/nsswitch.h (db_lookup_function): Likewise.
31830
31831 2017-08-13 Florian Weimer <fweimer@redhat.com>
31832
31833 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
31834 Remove internal_function.
31835 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
31836 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
31837 message argument on the stack.
31838 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
31839 Likeweise.
31840
31841 2017-08-12 Mike FABIAN <mfabian@redhat.com>
31842
31843 Adapt test case data to the changes in the thousands
31844 separators.
31845
31846 [BZ #20756]
31847 * localedata/tst-langinfo.sh: Adapt test case data.
31848 * stdlib/tst-strfmon_l.c: Likewise.
31849 * stdlib/tst-strtod4.c: Likewise.
31850 * stdlib/tst-strtod5i.c: Likewise.
31851
31852 2017-08-11 Florian Weimer <fweimer@redhat.com>
31853
31854 [BZ #21242]
31855 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
31856 Suppress pedantic warning resulting from statement expression.
31857 (__ASSERT_FUNCTION): Add missing __extension__.
31858
31859 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
31860
31861 * benchtests/bench-memmove-large.c: Print output in JSON
31862 format.
31863 * benchtests/bench-memmove.c: Likewise.
31864
31865 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
31866 * benchtests/bench-memchr.c (do_one_test): Likewise.
31867 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
31868 * benchtests/bench-memcpy.c (do_one_test): Likewise.
31869 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
31870 * benchtests/bench-memmove.c (do_one_test): Likewise.
31871 * benchtests/bench-memset-large.c (do_one_test): Likewise.
31872 * benchtests/bench-memset.c (do_one_test): Likewise.
31873 * benchtests/bench-string.h (test_init): Remove memsets.
31874
31875 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31876
31877 * manual/lang.texi
31878 (Computing the Width of an Integer Data Type): Rename section to
31879 "Width of an Integer Type". Remove inaccurate statement regarding
31880 lack of C language facilities for determining width of integer
31881 types, and reorder content to improve flow and context of
31882 discussion.
31883
31884 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31885
31886 * lang.texi (va_copy): Change standard from ISO to C99.
31887 (__va_copy): Add standard and header annotation.
31888 Update description for clarity of origins and current use.
31889
31890 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31891
31892 [BZ #21941]
31893 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
31894 xssqrtqp requires operands to be in Vector Registers
31895 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
31896 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
31897 (__ieee754_sqrtf128): Likewise.
31898
31899 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
31900
31901 * sysdeps/aarch64/memcmp.S (memcmp):
31902 Rewrite of optimized memcmp.
31903
31904 2017-08-10 Florian Weimer <fweimer@redhat.com>
31905
31906 Introduce ld.so exceptions.
31907 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
31908 (_dl_exception_create, _dl_exception_create_format)
31909 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
31910 (_dl_catch_exception): Declare.
31911 (_dl_catch_error): Update comment.
31912 * elf/dl-error-skeleton.c (struct catch): Replace objname,
31913 errstring, malloced members with exception member.
31914 (_dl_out_of_memory): Remove.
31915 (fatal_error): New function, extracted from _dl_signal_error.
31916 (_dl_signal_exception, _dl_signal_cexception): New functions.
31917 (_dl_signal_error): Call _dl_exception_create to allocate an
31918 exception object.
31919 (_dl_catch_exception): New function, based on _dl_catch_error.
31920 (_dl_catch_error): Implement using _dl_catch_exception.
31921 * elf/dl-exception.c: New file.
31922 * elf/Makefile (dl-routines): Add dl-exception.
31923 (elide-routines.os): Likewise.
31924 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
31925 _dl_exception_create_format, _dl_exception_free.
31926 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
31927 _dl_signal_exception.
31928 * elf/dl-lookup.c (make_string): Remove.
31929 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
31930 _dl_signal_cexception, _dl_exception_free.
31931 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
31932 _dl_signal_exception.
31933 * elf/dl-sym.c (do_sym): Likewise.
31934 * elf/dl-version.c (make_string): Remove.
31935 (match_symbol): Use _dl_exception_create_format,
31936 _dl_signal_cexception, _dl_exception_free.
31937 (_dl_check_map_versions): Likewise.
31938 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
31939 _dl_catch_exception.
31940 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
31941 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
31942 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
31943 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
31944 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
31945 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
31946 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
31947 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
31948 Likewise.
31949 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
31950 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
31951 (ld.so): Likewise.
31952 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
31953 (ld.so): Likewise.
31954 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
31955 Likewise.
31956 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
31957 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
31958 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
31959 Likewise.
31960 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
31961 Likewise.
31962 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
31963
31964 2017-08-10 Florian Weimer <fweimer@redhat.com>
31965
31966 * inet/net-internal.h (__inet6_scopeid_pton): Remove
31967 attribute_hidden, internal_function.
31968 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
31969 internal_function.
31970
31971 2017-08-10 Florian Weimer <fweimer@redhat.com>
31972
31973 * malloc/malloc.c (get_max_fast): Reimplement as an inline
31974 function which calls __builtin_unreachable.
31975
31976 2017-08-10 Mike FABIAN <mfabian@redhat.com>
31977
31978 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31979 Indian monetary formatting
31980 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31981 test cases.
31982
31983 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31984
31985 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31986 Fix typo in comment.
31987
31988 [BZ #21928]
31989 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31990 PTRACE_SEIZE_DEVEL): Remove.
31991 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31992 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31993 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31994 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31995 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31996
31997 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31998
31999 * posix/bits/types.h (__qaddr_t): Remove.
32000
32001 [BZ #21457]
32002 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
32003 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32004 __glibc_reserved1.
32005 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
32006 (ucontext_t): Use __ctx with uc_flags.
32007 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
32008 (__ctxt): Likewise.
32009 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32010 __glibc_reserved1.
32011 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
32012 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32013 __glibc_reserved1.
32014 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
32015 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32016 __glibc_reserved1.
32017 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
32018 macro.
32019 (ucontext_t): Use __ctx with uc_flags.
32020 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
32021 (ucontext_t): Use __ctx with uc_flags.
32022 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
32023 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
32024 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
32025 (ucontext_t): Use __ctx with uc_flags.
32026 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
32027 undefine further down.
32028 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32029 __glibc_reserved1.
32030 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
32031 undefine further down.
32032 (ucontext_t): Use __ctx with uc_flags.
32033 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
32034 undefine further down.
32035 (ucontext_t): Use __ctx with uc_flags.
32036 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
32037 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
32038 Rename uc_pad to __glibc_reserved1.
32039 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
32040 undefine further down.
32041 (ucontext_t): Use __ctx with uc_flags.
32042 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
32043 further down.
32044 (ucontext_t): Use __ctx with uc_flags.
32045 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
32046 __ctx with uc_flags.
32047 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
32048 (ucontext_t): Use __ctx with uc_flags.
32049 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
32050 __ctx with uc_flags.
32051
32052 2017-08-09 Florian Weimer <fweimer@redhat.com>
32053
32054 [BZ #21932]
32055 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
32056 before early return.
32057
32058 2017-08-09 Andreas Schwab <schwab@suse.de>
32059
32060 [BZ #21041]
32061 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
32062 renamed alias.
32063
32064 [BZ #21041]
32065 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
32066 tst-compat-forwarder.
32067 (modules-names): Add tst-compat-forwarder-mod.
32068 ($(objpfx)tst-compat-forwarder): Depend on
32069 $(objpfx)tst-compat-forwarder-mod.so.
32070 * nptl/tst-compat-forwarder.c: New file.
32071 * nptl/tst-compat-forwarder-mod.c: New file.
32072
32073 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
32074
32075 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
32076 comments.
32077
32078 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
32079 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
32080 memcpy_falkor.
32081 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
32082 Bump.
32083 (__libc_ifunc_impl_list): Add __memcpy_falkor.
32084 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
32085 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
32086 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
32087 Add falkor.
32088 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
32089 New macro.
32090
32091 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32092
32093 [BZ #759]
32094 * manual/setjmp.texi (getcontex): Document uc_stack value
32095 compatibility differences.
32096
32097 2017-08-08 Joseph Myers <joseph@codesourcery.com>
32098
32099 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
32100 (old_malloc_hook): Likewise.
32101 (old_memalign_hook): Likewise.
32102 (old_realloc_hook): Likewise.
32103 (struct hdr): Likewise.
32104 (flood): Likewise.
32105 (freehook): Likewise.
32106 (mallochook): Likewise.
32107 (memalignhook): Likewise.
32108 (reallochook): Likewise.
32109 (mprobe): Likewise.
32110 * malloc/mtrace.c (mallwatch): Likewise.
32111 (tr_old_free_hook): Likewise.
32112 (tr_old_malloc_hook): Likewise.
32113 (tr_old_realloc_hook): Likewise.
32114 (tr_old_memalign_hook): Likewise.
32115 (tr_where): Likewise.
32116 (lock_and_info): Likewise.
32117 (tr_freehook): Likewise.
32118 (tr_mallochook): Likewise.
32119 (tr_reallochook): Likewise.
32120 (tr_memalignhook): Likewise.
32121 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
32122 * misc/mmap.c (__mmap): Likewise.
32123 * misc/mmap64.c (__mmap64): Likewise.
32124 * misc/mprotect.c (__mprotect): Likewise.
32125 * misc/msync.c (msync): Likewise.
32126 * misc/munmap.c (__munmap): Likewise.
32127 * posix/posix_madvise.c (posix_madvise): Likewise.
32128 * socket/send.c (__send): Likewise.
32129 * socket/sendto.c (__sendto): Likewise.
32130 * socket/setsockopt.c (__setsockopt): Likewise.
32131 * string/memcmp.c (__ptr_t): Remove macro.
32132 (MEMCMP): Use void * instead of ptr_t.
32133 * string/memrchr.c (__ptr_t): Remove macro.
32134 (__memrchr): Use void * instead of ptr_t.
32135 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
32136 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
32137 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
32138 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
32139 * sysdeps/mach/msync.c (msync): Likewise.
32140 * sysdeps/mach/munmap.c (__munmap): Likewise.
32141 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
32142 Likewise.
32143 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32144 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
32145 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
32146 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
32147 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
32148 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
32149 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
32150 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
32151 Likewise.
32152 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
32153 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
32154 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
32155 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
32156 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
32157 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
32158 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
32159 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
32160 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
32161 Likewise.
32162 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
32163 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
32164 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
32165 (MEMCMP): Use void * instead of ptr_t.
32166 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
32167 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
32168
32169 2017-08-08 Florian Weimer <fweimer@redhat.com>
32170
32171 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
32172 return statement.
32173
32174 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
32175
32176 [BZ #21913]
32177 * csu/libc-tls.c: Include <startup.h> first.
32178 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
32179 * elf/dl-tunables.c: Include <startup.h> first.
32180 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
32181 * sysdeps/generic/startup.h: New file.
32182 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
32183 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
32184 (I386_USE_SYSENTER): New. Defined to 0.
32185
32186 2017-08-08 Andreas Schwab <schwab@suse.de>
32187
32188 [BZ #21041]
32189 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
32190 * nptl/pt-system.c (system): Likewise.
32191
32192 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32193
32194 [BZ #21780]
32195 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
32196 EOPNOTSUPP.
32197 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
32198 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
32199 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
32200 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
32201 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
32202 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
32203 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
32204
32205 2017-08-07 Joseph Myers <joseph@codesourcery.com>
32206
32207 [BZ #21899]
32208 * bits/sigaction.h (struct sigaction): Define sa_handler and
32209 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
32210 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32211 [__USE_XOPEN_EXTENDED].
32212 (SA_RESTART): Likewise.
32213 (SA_NODEFER): Likewise.
32214 (SA_RESETHAND): Likewise.
32215 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
32216 (struct sigaction): Define sa_handler and sa_sigaction using union
32217 also for [__USE_XOPEN_EXTENDED].
32218 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32219 [__USE_XOPEN_EXTENDED].
32220 (SA_RESTART): Likewise.
32221 (SA_NODEFER): Likewise.
32222 (SA_RESETHAND): Likewise.
32223 * sysdeps/unix/sysv/linux/bits/sigaction.h
32224 (struct sigaction): Define sa_handler and sa_sigaction using union
32225 also for [__USE_XOPEN_EXTENDED].
32226 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32227 [__USE_XOPEN_EXTENDED].
32228 (SA_RESTART): Likewise.
32229 (SA_NODEFER): Likewise.
32230 (SA_RESETHAND): Likewise.
32231 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
32232 (struct sigaction): Define sa_handler and sa_sigaction using union
32233 also for [__USE_XOPEN_EXTENDED].
32234 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32235 [__USE_XOPEN_EXTENDED].
32236 (SA_RESTART): Likewise.
32237 (SA_NODEFER): Likewise.
32238 (SA_RESETHAND): Likewise.
32239 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
32240 (struct sigaction): Define sa_handler and sa_sigaction using union
32241 also for [__USE_XOPEN_EXTENDED].
32242 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32243 [__USE_XOPEN_EXTENDED].
32244 (SA_RESTART): Likewise.
32245 (SA_NODEFER): Likewise.
32246 (SA_RESETHAND): Likewise.
32247 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
32248 (struct sigaction): Define sa_handler and sa_sigaction using union
32249 also for [__USE_XOPEN_EXTENDED].
32250 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32251 [__USE_XOPEN_EXTENDED].
32252 (SA_RESTART): Likewise.
32253 (SA_NODEFER): Likewise.
32254 (SA_RESETHAND): Likewise.
32255 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
32256 (struct sigaction): Define sa_handler and sa_sigaction using union
32257 also for [__USE_XOPEN_EXTENDED].
32258 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32259 [__USE_XOPEN_EXTENDED].
32260 (SA_RESTART): Likewise.
32261 (SA_NODEFER): Likewise.
32262 (SA_RESETHAND): Likewise.
32263 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
32264 (struct sigaction): Define sa_handler and sa_sigaction using union
32265 also for [__USE_XOPEN_EXTENDED].
32266 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32267 [__USE_XOPEN_EXTENDED].
32268 (SA_RESTART): Likewise.
32269 (SA_NODEFER): Likewise. Define directly rather than as alias.
32270 (SA_RESETHAND): Likewise.
32271 (SA_INTERRUPT): Define only for [__USE_MISC].
32272 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
32273 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
32274 [__USE_MISC].
32275 (SA_STACK): Define only for [__USE_MISC].
32276 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
32277 (struct sigaction): Define sa_handler and sa_sigaction using union
32278 also for [__USE_XOPEN_EXTENDED].
32279 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32280 [__USE_XOPEN_EXTENDED].
32281 (SA_RESTART): Likewise.
32282 (SA_NODEFER): Likewise.
32283 (SA_RESETHAND): Likewise.
32284 (SA_NOPTRACE): Define only for [__USE_MISC].
32285
32286 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
32287 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
32288 (struct catalog_info): Likewise.
32289 * inet/htontest.c (lo): Likewise.
32290 (foo): Likewise.
32291 * inet/inet_lnaof.c (inet_lnaof): Likewise.
32292 * inet/inet_net.c (inet_network): Likewise.
32293 * inet/inet_netof.c (inet_netof): Likewise.
32294 * inet/rcmd.c (__ivaliduser): Likewise.
32295 (iruserok): Likewise.
32296 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
32297 * locale/programs/locale-spec.c (locale_special): Likewise.
32298 * nis/nis_findserv.c (struct findserv_req): Likewise.
32299 (__nis_findfastest_with_timeout): Likewise.
32300 * nss/test-netdb.c (test_network): Likewise.
32301 * resolv/inet_neta.c (inet_neta): Likewise.
32302 * resolv/ns_date.c (ns_datetosecs): Likewise.
32303 (SECS_PER_DAY): Likewise.
32304 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
32305 Likewise.
32306 * resolv/res_comp.c (__putlong): Likewise.
32307 (__putshort): Likewise.
32308 (_getlong): Likewise.
32309 (_getshort): Likewise.
32310 * resolv/res_debug.c (p_time): Likewise.
32311 (precsize_ntoa): Likewise.
32312 (precsize_aton): Likewise.
32313 (latlon2ul): Likewise.
32314 (loc_aton): Likewise.
32315 (loc_ntoa): Likewise.
32316 * resolv/res_hconf.c (struct netaddr): Likewise.
32317 (_res_hconf_reorder_addrs): Likewise.
32318 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
32319 (clnttcp_control): Likewise.
32320 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
32321 (clntudp_control): Likewise.
32322 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
32323 (clntunix_control): Likewise.
32324 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
32325 * sunrpc/rpc/auth.h (union des_block): Likewise.
32326 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
32327 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
32328 (xdrrec_create): Likewise.
32329 (xdrrec_endofrecord): Likewise.
32330 (flush_out): Likewise.
32331 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
32332 (xdrstdio_putlong): Likewise.
32333 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
32334 Likewise.
32335
32336 * misc/sys/cdefs.h (__long_double_t): Remove.
32337 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
32338 instead of __long_double_t,
32339 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
32340
32341 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
32342
32343 * benchtests/scripts/compare_strings.py: Avoid display error when
32344 running on a text terminal.
32345
32346 * benchtests/scripts/compare_strings.py (main): Add an
32347 optional -base option.
32348 (process_results): New argument base_func.
32349
32350 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
32351 hardcoding memcpy.
32352 * benchtests/bench-memcpy-large.c (test_name): Likewise.
32353 * benchtests/bench-memcpy-random.c (test_name): Likewise.
32354
32355 2017-08-07 Andreas Schwab <schwab@suse.de>
32356
32357 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
32358 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
32359 * intl/Makefile ($(objpfx)tst-gettext.out)
32360 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
32361 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
32362 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
32363 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
32364 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
32365 * posix/Makefile ($(objpfx)globtest.out)
32366 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
32367 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
32368 ($(objpfx)tst-printf.out): Likewise.
32369 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
32370 ($(objpfx)tst-setcontext3.out): Likewise.
32371
32372 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
32373
32374 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32375 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
32376 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
32377 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
32378 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
32379 and mptan-fma.
32380 (CFLAGS-doasin-fma.c): New.
32381 (CFLAGS-dosincos-fma.c): Likewise.
32382 (CFLAGS-e_asin-fma.c): Likewise.
32383 (CFLAGS-e_atan2-fma.c): Likewise.
32384 (CFLAGS-e_exp-fma.c): Likewise.
32385 (CFLAGS-e_log-fma.c): Likewise.
32386 (CFLAGS-e_pow-fma.c): Likewise.
32387 (CFLAGS-halfulp-fma.c): Likewise.
32388 (CFLAGS-mpa-fma.c): Likewise.
32389 (CFLAGS-mpatan-fma.c): Likewise.
32390 (CFLAGS-mpatan2-fma.c): Likewise.
32391 (CFLAGS-mpexp-fma.c): Likewise.
32392 (CFLAGS-mplog-fma.c): Likewise.
32393 (CFLAGS-mpsqrt-fma.c): Likewise.
32394 (CFLAGS-mptan-fma.c): Likewise.
32395 (CFLAGS-s_atan-fma.c): Likewise.
32396 (CFLAGS-sincos32-fma.c): Likewise.
32397 (CFLAGS-slowexp-fma.c): Likewise.
32398 (CFLAGS-slowpow-fma.c): Likewise.
32399 (CFLAGS-s_sin-fma.c): Likewise.
32400 (CFLAGS-s_tan-fma.c): Likewise.
32401 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
32402 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
32403 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
32404 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
32405 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
32406 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
32407 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
32408 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
32409 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
32410 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
32411 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
32412 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
32413 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
32414 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
32415 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
32416 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
32417 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
32418 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
32419 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
32420 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
32421 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
32422 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
32423 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
32424 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
32425 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32426 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32427 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32428 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
32429 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32430 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32431 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32432
32433 2017-08-04 Joseph Myers <joseph@codesourcery.com>
32434
32435 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
32436 (min_of_type_f): New macro.
32437 (min_of_type_): Likewise.
32438 (min_of_type_l): Likewise.
32439 (min_of_type_f128): Likewise.
32440 (min_of_type): Define using __MATH_TG and taking an expression
32441 argument.
32442 (math_check_force_underflow): Pass expression instead of type to
32443 min_of_type.
32444 (math_check_force_underflow_nonneg): Likewise.
32445
32446 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32447
32448 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32449 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
32450 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
32451
32452 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32453
32454 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32455 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
32456 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
32457 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
32458 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
32459 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
32460 memcpy_chk-nonshared, mempcpy_chk-nonshared,
32461 memmove_chk-nonshared and memset_chk-nonshared
32462 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
32463 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
32464 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
32465 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
32466 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
32467 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
32468 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
32469 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
32470 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
32471 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
32472 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
32473 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
32474 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
32475 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
32476 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
32477 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
32478 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
32479 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
32480 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
32481 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
32482 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
32483 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
32484 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
32485 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
32486 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
32487 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
32488 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
32489 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
32490 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
32491 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
32492 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
32493 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
32494 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
32495 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32496 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32497 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
32498 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
32499 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
32500 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
32501 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
32502 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
32503 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
32504 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
32505 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
32506 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
32507 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
32508 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
32509 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
32510 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
32511 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
32512 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
32513 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
32514 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
32515 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
32516 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
32517 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
32518 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
32519 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
32520 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
32521 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
32522 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
32523 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
32524 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
32525 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
32526 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
32527 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
32528 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
32529 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
32530 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
32531 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
32532 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
32533 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
32534 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
32535 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
32536 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
32537 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
32538 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
32539 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
32540 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
32541 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
32542 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
32543 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
32544 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
32545 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
32546 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
32547 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
32548 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
32549 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
32550 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
32551 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32552 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
32553 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
32554 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
32555 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32556 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
32557 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
32558 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
32559 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
32560 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
32561 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
32562 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
32563 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
32564 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
32565 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
32566 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
32567 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
32568 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
32569 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
32570
32571 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32572
32573 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
32574 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
32575 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
32576 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
32577 svml_d_log2_core-sse2, svml_d_log4_core-sse,
32578 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
32579 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
32580 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
32581 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
32582 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
32583 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
32584 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
32585 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
32586 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
32587 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
32588 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
32589 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
32590 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
32591 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
32592 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
32593 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
32594 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
32595 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
32596 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
32597 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
32598 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
32599 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
32600 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
32601 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
32602 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
32603 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
32604 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
32605 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
32606 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
32607 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
32608 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
32609 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
32610 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
32611 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
32612 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
32613 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
32614 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
32615 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
32616 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
32617 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
32618 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
32619 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
32620 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
32621 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
32622 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
32623 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
32624 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
32625 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
32626 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
32627 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
32628 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
32629 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
32630 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
32631 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
32632 ...
32633 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
32634 Don't include <sysdep.h> nor <init-arch.h>.
32635 (_ZGVbN2v_cos): Removed.
32636 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
32637 ...
32638 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
32639 Don't include <sysdep.h> nor <init-arch.h>.
32640 (_ZGVdN4v_cos): Removed.
32641 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
32642 ...
32643 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
32644 Don't include <sysdep.h> nor <init-arch.h>.
32645 (_ZGVeN8v_cos): Removed.
32646 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
32647 ...
32648 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
32649 Don't include <sysdep.h> nor <init-arch.h>.
32650 (_ZGVbN2v_exp): Removed.
32651 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
32652 ...
32653 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
32654 Don't include <sysdep.h> nor <init-arch.h>.
32655 (_ZGVdN4v_exp): Removed.
32656 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
32657 ...
32658 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
32659 Don't include <sysdep.h> nor <init-arch.h>.
32660 (_ZGVeN8v_exp): Removed.
32661 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
32662 ...
32663 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
32664 Don't include <sysdep.h> nor <init-arch.h>.
32665 (_ZGVbN2v_log): Removed.
32666 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
32667 ...
32668 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
32669 Don't include <sysdep.h> nor <init-arch.h>.
32670 (_ZGVdN4v_log): Removed.
32671 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
32672 ...
32673 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
32674 Don't include <sysdep.h> nor <init-arch.h>.
32675 (_ZGVeN8v_log): Removed.
32676 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
32677 ...
32678 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
32679 Don't include <sysdep.h> nor <init-arch.h>.
32680 (_ZGVbN2vv_pow): Removed.
32681 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
32682 ...
32683 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
32684 Don't include <sysdep.h> nor <init-arch.h>.
32685 (_ZGVdN4vv_pow): Removed.
32686 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
32687 ...
32688 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
32689 Don't include <sysdep.h> nor <init-arch.h>.
32690 (_ZGVeN8vv_pow): Removed.
32691 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
32692 ...
32693 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
32694 Don't include <sysdep.h> nor <init-arch.h>.
32695 (_ZGVbN2v_sin): Removed.
32696 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
32697 ...
32698 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
32699 Don't include <sysdep.h> nor <init-arch.h>.
32700 (_ZGVbN4v_sin): Removed.
32701 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
32702 ...
32703 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
32704 Don't include <sysdep.h> nor <init-arch.h>.
32705 (_ZGVbN8v_sin): Removed.
32706 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
32707 ...
32708 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
32709 Don't include <sysdep.h> nor <init-arch.h>.
32710 (_ZGVbN2vvv_sincos): Removed.
32711 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
32712 ...
32713 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
32714 Don't include <sysdep.h> nor <init-arch.h>.
32715 (_ZGVdN4vvv_sincos): Removed.
32716 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
32717 ...
32718 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
32719 Don't include <sysdep.h> nor <init-arch.h>.
32720 (_ZGVeN8vvv_sincos): Removed.
32721 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
32722 ...
32723 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
32724 Don't include <sysdep.h> nor <init-arch.h>.
32725 (_ZGVeN16v_cosf): Removed.
32726 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
32727 ...
32728 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
32729 Don't include <sysdep.h> nor <init-arch.h>.
32730 (_ZGVbN4v_cosf): Removed.
32731 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
32732 ...
32733 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
32734 Don't include <sysdep.h> nor <init-arch.h>.
32735 (_ZGVdN8v_cosf): Removed.
32736 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
32737 ...
32738 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
32739 Don't include <sysdep.h> nor <init-arch.h>.
32740 (_ZGVeN16v_expf): Removed.
32741 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
32742 ...
32743 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
32744 Don't include <sysdep.h> nor <init-arch.h>.
32745 (_ZGVbN4v_expf): Removed.
32746 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
32747 ...
32748 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
32749 Don't include <sysdep.h> nor <init-arch.h>.
32750 (_ZGVdN8v_expf): Removed.
32751 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
32752 ...
32753 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
32754 Don't include <sysdep.h> nor <init-arch.h>.
32755 (_ZGVeN16v_logf): Removed.
32756 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
32757 ...
32758 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
32759 Don't include <sysdep.h> nor <init-arch.h>.
32760 (_ZGVbN4v_logf): Removed.
32761 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
32762 ...
32763 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
32764 Don't include <sysdep.h> nor <init-arch.h>.
32765 (_ZGVdN8v_logf): Removed.
32766 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
32767 ...
32768 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
32769 Don't include <sysdep.h> nor <init-arch.h>.
32770 (_ZGVeN16vv_powf): Removed.
32771 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
32772 ...
32773 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
32774 Don't include <sysdep.h> nor <init-arch.h>.
32775 (_ZGVbN4vv_powf): Removed.
32776 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
32777 ...
32778 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
32779 Don't include <sysdep.h> nor <init-arch.h>.
32780 (_ZGVdN8vv_powf): Removed.
32781 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
32782 ...
32783 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
32784 Don't include <sysdep.h> nor <init-arch.h>.
32785 (_ZGVeN16vvv_sincosf): Removed.
32786 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
32787 ...
32788 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
32789 Don't include <sysdep.h> nor <init-arch.h>.
32790 (_ZGVbN4vvv_sincosf): Removed.
32791 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
32792 ...
32793 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
32794 Don't include <sysdep.h> nor <init-arch.h>.
32795 (_ZGVdN8vvv_sincosf): Removed.
32796 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
32797 ...
32798 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
32799 Don't include <sysdep.h> nor <init-arch.h>.
32800 (_ZGVeN16v_sinf): Removed.
32801 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
32802 ...
32803 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
32804 Don't include <sysdep.h> nor <init-arch.h>.
32805 (_ZGVbN4v_sinf): Removed.
32806 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
32807 ...
32808 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
32809 Don't include <sysdep.h> nor <init-arch.h>.
32810 (_ZGVdN8v_sinf): Removed.
32811
32812 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32813
32814 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32815 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
32816 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
32817 s_rint-sse4_1 and s_rintf-sse4_1.
32818 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
32819 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
32820 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
32821 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
32822 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
32823 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
32824 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
32825 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
32826 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
32827 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
32828 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
32829 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32830 (__ceil): Removed.
32831 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
32832 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
32833 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32834 (__ceilf): Removed.
32835 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
32836 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
32837 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32838 (__floor): Removed.
32839 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
32840 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
32841 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32842 (__floorf): Removed.
32843 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
32844 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
32845 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32846 (__nearbyint): Removed.
32847 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
32848 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
32849 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32850 (__nearbyintf): Removed.
32851 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
32852 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
32853 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32854 (__rint): Removed.
32855 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
32856 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
32857 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32858 (__rintf): Removed.
32859
32860 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32861
32862 * sysdeps/i386/start.S (_start): Check Check PIC instead of
32863 SHARED. Avoid dynamic relocation against main in static PIE.
32864
32865 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32866
32867 [BZ #21815]
32868 * elf/Makefile (CFLAGS-tst-prelink.c): New.
32869 (LDFLAGS-tst-prelink): Likewise.
32870
32871 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32872
32873 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
32874 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
32875 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
32876 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
32877 (INTERNAL_SYSCALL_NCS): Likewise.
32878 (LOADARGS_1): Likewise.
32879 (LOADARGS_5): Likewise.
32880 (RESTOREARGS_1): Likewise.
32881 (RESTOREARGS_5): Likewise.
32882
32883 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32884
32885 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
32886 (MEMPCPY_SYMBOL): Likewise.
32887 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
32888 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
32889 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
32890 in libc.a.
32891 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32892 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
32893 Likewise.
32894 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
32895 (__hidden_ver1): Don't use in libc.a.
32896 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
32897 (__mempcpy): Don't create a weak alias in libc.a.
32898 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
32899 libc.a.
32900 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
32901 (__hidden_ver1): Don't use in libc.a.
32902
32903 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32904
32905 * config.make.in (have-insert): New.
32906 * configure.ac (libc_cv_insert): New. Set to yes if linker
32907 supports INSERT in linker script.
32908 (AC_SUBST(libc_cv_insert): New.
32909 * configure: Regenerated.
32910 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
32911 if $(have-insert) == yes.
32912
32913 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32914
32915 * elf/Makefile (tests): Add vismain only if
32916 $(have-protected-data) == yes.
32917 (tests-pie): Likewise.
32918
32919 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32920
32921 [BZ #21871]
32922 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
32923 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
32924
32925 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32926
32927 [BZ #21790]
32928 * sysdeps/i386/i586/memset.S
32929 (__memset_zero_constant_len_parameter): Removed.
32930 * sysdeps/i386/i686/memset.S
32931 (__memset_zero_constant_len_parameter): Likewise.
32932 * sysdeps/i386/i686/multiarch/memset_chk.S
32933 (__memset_zero_constant_len_parameter): Likewise.
32934 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
32935 Likewise.
32936
32937 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32938
32939 * stdlib/getentropy.c (getentropy): Change return type to int.
32940
32941 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32942
32943 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
32944
32945 2017-08-03 Joseph Myers <joseph@codesourcery.com>
32946
32947 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
32948 u_intN_t.
32949 * math/s_nexttowardf.c (__nexttowardf): Likewise.
32950 * sysdeps/generic/math_private.h (ieee_double_shape_type):
32951 Likewise.
32952 (ieee_float_shape_type): Likewise.
32953 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
32954 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
32955 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
32956 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32957 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
32958 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
32959 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
32960 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
32961 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
32962 Likewise.
32963 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
32964 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
32965 (__ieee754_yn): Likewise.
32966 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32967 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32968 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
32969 Likewise.
32970 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
32971 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
32972 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
32973 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
32974 (__erfc): Likewise.
32975 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
32976 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
32977 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
32978 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32979 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32980 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32981 Likewise.
32982 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32983 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32984 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32985 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32986 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32987 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32988 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32989 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32990 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32991 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32992 (__issignaling): Likewise.
32993 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32994 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32995 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32996 Likewise.
32997 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32998 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32999 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
33000 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
33001 Likewise.
33002 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
33003 Likewise.
33004 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
33005 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
33006 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
33007 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
33008 (__erfcf): Likewise.
33009 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
33010 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
33011 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
33012 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
33013 Likewise.
33014 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
33015 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
33016 Likewise.
33017 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
33018 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
33019 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
33020 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
33021 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
33022 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
33023 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
33024 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
33025 Likewise.
33026 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
33027 Likewise.
33028 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
33029 Likewise.
33030 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
33031 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
33032 Likewise.
33033 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
33034 Likewise.
33035 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
33036 (__ieee754_ynl): Likewise.
33037 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
33038 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
33039 Likewise.
33040 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
33041 Likewise.
33042 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
33043 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
33044 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
33045 Likewise.
33046 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
33047 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
33048 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
33049 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
33050 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
33051 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
33052 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
33053 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
33054 Likewise.
33055 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
33056 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
33057 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
33058 Likewise.
33059 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
33060 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
33061 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
33062 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
33063 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
33064 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
33065 Likewise.
33066 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
33067 Likewise.
33068 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
33069 Likewise.
33070 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
33071 Likewise.
33072 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
33073 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
33074 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
33075 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
33076 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
33077 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
33078 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
33079 Likewise.
33080 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
33081 Likewise.
33082 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
33083 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
33084 Likewise.
33085 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
33086 (__ieee754_remainderl): Likewise.
33087 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
33088 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
33089 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
33090 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
33091 Likewise.
33092 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
33093 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
33094 Likewise.
33095 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
33096 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
33097 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
33098 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
33099 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
33100 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
33101 Likewise.
33102 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
33103 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
33104 (__ieee754_y0l): Likewise.
33105 (pzero): Likewise.
33106 (qzero): Likewise.
33107 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
33108 (__ieee754_y1l): Likewise.
33109 (pone): Likewise.
33110 (qone): Likewise.
33111 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
33112 (__ieee754_ynl): Likewise.
33113 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
33114 (__ieee754_lgammal_r): Likewise.
33115 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
33116 Likewise.
33117 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
33118 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
33119 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
33120 (__erfcl): Likewise.
33121 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
33122 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
33123 Likewise.
33124 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
33125 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
33126 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
33127 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
33128 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
33129 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
33130 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
33131 Likewise.
33132 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
33133 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
33134 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
33135 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
33136 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
33137 Likewise.
33138 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
33139 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
33140 Likewise.
33141 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
33142 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
33143 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
33144 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
33145 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
33146
33147 2017-08-03 Florian Weimer <fweimer@redhat.com>
33148
33149 [BZ #21885]
33150 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
33151 on memory allocation failure.
33152
33153 2017-08-03 Alan Modra <amodra@gmail.com>
33154
33155 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
33156 tst-tlsopt-powerpc.c with function name change and no test harness.
33157 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
33158 Call tls_get_addr_opt_test.
33159 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
33160 (modules-names): Add mod-tlsopt-powerpc.
33161 (mod-tlsopt-powerpc.so-no-z-defs): Define.
33162 (tst-tlsopt-powerpc): Depend on .so.
33163 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
33164 define. Expand use in TLS_GD and TLS_LD.
33165
33166 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
33167
33168 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
33169 function.
33170 * sysdeps/posix/shm_open.c: Include <pthread.h>.
33171
33172 2017-08-02 Joseph Myers <joseph@codesourcery.com>
33173
33174 [BZ #21686]
33175 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
33176 comparing size with that of double.
33177 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33178 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33179 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33180 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33181 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33182 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
33183 unsigned __int128 types.
33184
33185 2017-08-02 Steve Ellcey <sellcey@cavium.com>
33186
33187 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
33188 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
33189 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
33190 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
33191 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
33192
33193 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33194
33195 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
33196
33197 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33198
33199 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
33200 of SHARED.
33201 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
33202 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
33203 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
33204 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
33205 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
33206 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
33207 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
33208
33209 2017-08-02 Joseph Myers <joseph@codesourcery.com>
33210
33211 [BZ #21685]
33212 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
33213 bit-field expressions passed to sizeof or typeof.
33214 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33215 (__TGMATH_F128): Likewise.
33216 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33217 (__TGMATH_CF128): Likewise.
33218 (__TGMATH_UNARY_REAL_ONLY): Likewise.
33219 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
33220 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
33221 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
33222 (__TGMATH_BINARY_REAL_ONLY): Likewise.
33223 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33224 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33225 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33226 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33227 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
33228 (__TGMATH_UNARY_REAL_IMAG): Likewise.
33229 (__TGMATH_UNARY_IMAG): Likewise.
33230 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
33231 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33232 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
33233 type.
33234 (define_vars_for_type): Handle bit_field type specially.
33235 (Tests.__init__): Declare structure with bit-field element.
33236
33237 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33238
33239 [BZ #21791]
33240 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
33241 (MEMCPY_CHK): Define only if SHARED is defined.
33242 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
33243 Likewise.
33244 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
33245 Likewise.
33246
33247 See ChangeLog.18 for earlier changes.