]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
hurd: Document how EINTR should be handled in critical sections
[thirdparty/glibc.git] / ChangeLog
1 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2
3 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
4 should be handled.
5
6 2019-03-15 Joseph Myers <joseph@codesourcery.com>
7
8 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
9 version to 5.0.
10 (old_getpagesize): New syscall.
11
12 2019-03-15 Felix Yan <felixonmars@archlinux.org>
13
14 [BZ #24293]
15 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
16 * localedata/locales/cmn_TW (era): Likewise.
17 * localedata/locales/hak_TW (era): Likewise.
18 * localedata/locales/lzh_TW (era): Likewise.
19 * localedata/locales/nan_TW (era): Likewise.
20
21 2019-03-14 Florian Weimer <fweimer@redhat.com>
22
23 Remove obsolete, never-implemented XSI STREAMS declarations.
24 * manual/terminal.texi (Allocation): Remove portability note and
25 adjust example.
26 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
27 _SC_STREAMS.
28 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
29 * sysdeps/unix/inet/Subdirs (streams): Remove.
30 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
31 (conformtest-headers-UNIX98): Likewise.
32 (conformtest-headers-XOPEN2K): Likewise.
33 (conformtest-headers-POSIX2008): Likewise.
34 * posix/compat-streams.c: New file.
35 * posix/Makefile (routines): Add it.
36 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
37 getpmsg, isastream, putmsg, putpmsg.
38 (GLIBC_2.30): New section.
39 * bits/stropts.h: Remove file.
40 * bits/xtitypes.h: Likewise.
41 * conform/data/stropts.h-data: Likewise.
42 * include/stropts.h: Likewise.
43 * include/sys/stropts.h: Likewise.
44 * include/xtitypes.h: Likewise.
45 * streams/Makefile: Likewise.
46 * streams/fattach.c: Likewise.
47 * streams/fdetach.c: Likewise.
48 * streams/getmsg.c: Likewise.
49 * streams/getpmsg.c: Likewise.
50 * streams/isastream.c: Likewise.
51 * streams/putmsg.c: Likewise.
52 * streams/putpmsg.c: Likewise.
53 * streams/stropts.h: Likewise.
54 * streams/sys/stropts.h: Likewise.
55 * sysdeps/ia64/bits/xtitypes.h: Likewise.
56 * sysdeps/s390/bits/xtitypes.h: Likewise.
57 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
58 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
59 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
60 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
61 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
62 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
63 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
64 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
65 * sysdeps/x86/bits/xtitypes.h: Likewise.
66
67 2019-03-14 Florian Weimer <fweimer@redhat.com>
68
69 * nss/tst-nss-files-alias-truncated.c (do_test): Load
70 libnss_files.
71 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
72 but not with libnss_files.
73 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
74
75 2019-03-14 Zack Weinberg <zackw@panix.com>
76
77 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
78 Specify encoding="utf-8" when opening headers to check.
79
80 2019-03-13 Joseph Myers <joseph@codesourcery.com>
81
82 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
83 version to 5.0.
84 (Context.checkout_tar): Handle variable major version for Linux
85 kernel.
86
87 2019-03-13 Florian Weimer <fweimer@redhat.com>
88
89 [BZ #24047]
90 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
91
92 2019-03-13 Zack Weinberg <zackw@panix.com>
93
94 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
95 Move to stdlib.
96 * include/inttypes.h: Adjust to match.
97 * include/stdint.h: New wrapper.
98
99 2019-03-13 Zack Weinberg <zackw@panix.com>
100
101 * scripts/check-obsolete-constructs.py: New test script.
102 * scripts/check-installed-headers.sh: Remove tests for
103 obsolete typedefs, superseded by check-obsolete-constructs.py.
104 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
105 as a special test. Update commentary.
106 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
107 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
108 Update commentary.
109 * posix/sys/types.h (__u_intN_t): Remove.
110 (u_int8_t): Typedef using __uint8_t.
111 (u_int16_t): Typedef using __uint16_t.
112 (u_int32_t): Typedef using __uint32_t.
113 (u_int64_t): Typedef using __uint64_t.
114
115 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
116
117 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
118 call _dl_procinfo.
119 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
120 Ignore types other than AT_HWCAP.
121 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
122 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
123 Likewise.
124 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
125 in the case of falling back to generic output mechanism.
126 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
127 Likewise.
128
129 2019-03-12 Florian Weimer <fweimer@redhat.com>
130
131 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
132
133 2019-03-12 Florian Weimer <fweimer@redhat.com>
134
135 [BZ #24047]
136 resolv: Enable full ICMP errors for UDP DNS sockets
137 * resolv/res_enable_icmp.c: New file.
138 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
139 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
140 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
141 socket.
142
143 2019-03-11 Mao Han <han_mao@c-sky.com>
144
145 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
146 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
147
148 2019-03-11 Mao Han <han_mao@c-sky.com>
149
150 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
151 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
152 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
153
154 2019-03-11 Mao Han <han_mao@c-sky.com>
155
156 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
157 directly.
158 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
159 definition.
160
161 2019-03-11 Mao Han <han_mao@c-sky.com>
162
163 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
164 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
165 in mcontext_t
166
167 2019-03-08 Mike FABIAN <mfabian@redhat.com>
168
169 [BZ #24307]
170 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
171 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
172 Unicode 12.0.0.
173 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
174 * localedata/unicode-gen/PropList.txt: Likewise.
175 * localedata/unicode-gen/UnicodeData.txt: Likewise.
176 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
177 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
178 * localedata/charmaps/UTF-8: Regenerate.
179 * localedata/locales/i18n_ctype: Likewise.
180 * localedata/locales/tr_TR: Likewise.
181 * localedata/locales/translit_circle: Likewise.
182 * localedata/locales/translit_cjk_compat: Likewise.
183 * localedata/locales/translit_combining: Likewise.
184 * localedata/locales/translit_compat: Likewise.
185 * localedata/locales/translit_font: Likewise.
186 * localedata/locales/translit_fraction: Likewise.
187
188 2019-03-07 Joseph Myers <joseph@codesourcery.com>
189
190 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
191 than after operators.
192 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
193 (setitimer_locked): Likewise.
194 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
195 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
196 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
197 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
198 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
199 (PPC_CPU_SUPPORTED): Likewise.
200 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
201 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
202 (stat_overflow): Likewise.
203 (statfs_overflow): Likewise.
204 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
205 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
206 (eq_ttyname_r): Likewise.
207 (run_chroot_tests): Likewise.
208
209 2019-03-07 Florian Weimer <fweimer@redhat.com>
210
211 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
212 header check.
213
214 2019-03-07 Martin Liska <mliska@suse.cz>
215
216 * math/Makefile: Change location where math-vector-fortran.h is
217 installed.
218 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
219 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
220 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
221 * scripts/check-installed-headers.sh: Skip Fortran header files.
222 * scripts/check-wrapper-headers.py: Likewise.
223
224 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
225
226 * nptl/nptl-init.c (__have_futex_clock_realtime,
227 __have_futex_clock_realtime): Remove definition.
228 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
229 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
230 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
231 __ASSUME_FUTEX_CLOCK_REALTIME support.
232 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
233 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
234 * sysdeps/unix/sysv/linux/kernel-features.h
235 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
236 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
237 Adjust comment.
238
239 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
240
241 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
242 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
243 __GI___wcscpy and wcscpy.
244
245 2019-03-04 Florian Weimer <fweimer@redhat.com>
246
247 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
248 declaration.
249 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
250 defined.
251
252 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
253
254 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
255 * sysdeps/s390/s390-32/sysdep.h: Likewise.
256
257 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
258
259 [BZ #24162]
260 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
261 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
262
263 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
264
265 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
266 tests.
267 (do_test): Likewise.
268 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
269 (do_test_call_varg): Likewise.
270 (do_test_call_rarg): Likewise.
271 * sysdeps/ieee754/ldbl-opt/Makefile
272 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
273 tst-nldbl-error.
274 ($(objpfx)tst-nldbl-warn.c): New rule.
275 ($(objpfx)tst-nldbl-error.c): Likewise.
276 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
277 New variables.
278
279 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
280
281 [BZ #23984]
282 * include/bits/error-ldbl.h: New file.
283 * include/error.h: Include stdarg.h. Declare internal functions
284 __error_internal and __error_at_line_internal.
285 * misc/Makefile (headers): Add bits/error-ldbl.h.
286 * misc/bits/error-ldbl.h: New file.
287 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
288 avoid the inclusion of bits/error.h.
289 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
290 and __nldbl_error_at_line.
291 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
292 (__nldbl_error, __ndlbl_error_at_line): New functions.
293 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
294 Redirect error and error_at_line.
295 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
296 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
297 Likewise.
298 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
299 Likewise.
300 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
301 Likewise.
302 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
303 Likewise.
304 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
305 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
306 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
307
308 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
309
310 [BZ #23984]
311 * include/bits/err-ldbl.h: New file.
312 * include/err.h: Add prototypes for the internal functions:
313 __vwarnx_internal and __vwarn_internal.
314 * misc/Makefile (headers): Add bits/err-ldbl.h.
315 * misc/bits/err-ldbl.h: New file.
316 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
317 defined, i.e.: when -mlong-double-64 is in use.
318 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
319 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
320 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
321 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
322 (VA_CALL): New macro.
323 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
324 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
325 functions.
326 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
327 declare prototypes for the new functions.
328 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
329 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
330 Likewise.
331 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
332 Likewise.
333 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
334 Likewise.
335 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
336 Likewise.
337 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
338 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
339 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
340
341 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
342
343 * sysdeps/ieee754/ldbl-opt/Makefile
344 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
345 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
346 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
347
348 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
349
350 [BZ #23983]
351 * argp/Makefile (headers): Add bits/argp-ldbl.h.
352 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
353 * argp/bits/argp-ldbl.h: New file.
354 * include/argp.h: Include stdarg.h. Add prototypes for internal
355 functions: __argp_error_internal and __argp_failure_internal.
356 * include/bits/argp-ldbl.h: New file.
357 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
358 __nldbl_argp_error and __nldbl_argp_failure.
359 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
360 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
361 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
362 Redirect argp_error and argp_failure calls.
363 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
364 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
365 Likewise.
366 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
367 Likewise.
368 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
369 Likewise.
370 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
371 Likewise.
372 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
373 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
374 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
375
376 2019-03-01 Florian Weimer <fweimer@redhat.com>
377
378 [BZ #20419]
379 * elf/tst-big-note-lib.S: Create a syntactically valid note.
380 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
381 code, to avoid creating an ABI tag note.
382 (modules-names-nobuild): Add tst-big-note-lib.
383
384 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
385
386 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
387 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
388
389 2019-03-01 Florian Weimer <fweimer@redhat.com>
390
391 [BZ #20271]
392 * sysdeps/unix/sysv/linux/netlink_assert_response.c
393 (__netlink_assert_response): Add additional missing newlines.
394
395 2019-02-28 Joseph Myers <joseph@codesourcery.com>
396
397 * sysdeps/powerpc/powerpc32/dl-machine.c
398 (__elf_machine_fixup_plt): Use space before '('.
399 (__process_machine_rela): Likewise.
400 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
401 Likewise.
402 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
403 Likewise.
404 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
405 Likewise.
406 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
407 (pattern): Likewise.
408 (delta): Likewise.
409 (check_result): Likewise.
410 (check_excepts): Likewise.
411 (check_op): Likewise.
412 (fail_xr): Likewise.
413 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
414 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
415 (SCNHSZ): Likewise.
416 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
417 Likewise.
418 (ARGS): Likewise.
419 (__makecontext): Likewise.
420 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
421 Likewise.
422
423 2019-02-28 Florian Weimer <fweimer@redhat.com>
424
425 [BZ #23937]
426 elf: Add test with a local IFUNC resolver.
427 * elf/ifuncmain9.c: New file.
428 * elf/ifuncmain9pic.c: Likewise.
429 * elf/ifuncmain9picstatic.c: Likewise.
430 * elf/ifuncmain9pie.c: Likewise.
431 * elf/ifuncmain9static.c: Likewise.
432 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
433 ifuncmain9static, ifuncmain9picstatic.
434 * elf/Makefile [multi-arch && build-shared] (tests-internal):
435 Add ifuncmain9, ifuncmain9pic.
436 * elf/Makefile [multi-arch && build-shared && have-fpie]
437 (ifunc-pie-tests): Add ifuncmain9pie.
438 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
439 (CFLAGS-ifuncmain9picstatic.c): Likewise.
440 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
441
442 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
443
444 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
445 * configure: Regenerated.
446 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
447
448 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
449
450 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
451 symbol as __wcspcy instead of wcscpy.
452
453 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
454
455 * include/stdio.h (__renameat2): New hidden prototype.
456 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
457 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
458 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
459 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
460
461 2019-02-27 Joseph Myers <joseph@codesourcery.com>
462
463 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
464 if statement.
465
466 * benchtests/bench-strcpy.c (do_test): Use space before '('.
467 * benchtests/bench-string.h (cmdline_process_function): Likewise.
468 * benchtests/bench-strlen.c (do_test): Likewise.
469 (test_main): Likewise.
470 * catgets/gencat.c (read_old): Likewise.
471 * elf/cache.c (load_aux_cache): Likewise.
472 * iconvdata/bug-iconv8.c (do_test): Likewise.
473 * math/test-tgmath-ret.c (do_test): Likewise.
474 * nis/nis_call.c (rec_dirsearch): Likewise.
475 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
476 * nptl/tst-audit-threads.c (do_test): Likewise.
477 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
478 * nss/nss_test1.c (init): Likewise.
479 * nss/test-netdb.c (test_hosts): Likewise.
480 * posix/execvpe.c (maybe_script_execute): Likewise.
481 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
482 * stdio-common/tst-printf.c (do_test): Likewise.
483 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
484 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
485 * stdlib/qsort.c (STACK_SIZE): Likewise.
486 * stdlib/test-canon.c (do_test): Likewise.
487 * stdlib/tst-swapcontext1.c (do_test): Likewise.
488 * string/memcmp.c (OPSIZ): Likewise.
489 * string/test-strcpy.c (do_test): Likewise.
490 (do_random_tests): Likewise.
491 * string/test-strlen.c (do_test): Likewise.
492 (test_main): Likewise.
493 * string/test-strrchr.c (do_test): Likewise.
494 (do_random_tests): Likewise.
495 * string/tester.c (test_memrchr): Likewise.
496 (test_memchr): Likewise.
497 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
498 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
499 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
500 (read_encoded_value_with_base): Likewise.
501 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
502 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
503 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
504 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
505 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
506 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
507 Likewise.
508 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
509 Likewise.
510 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
511 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
512 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
513 Likewise.
514 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
515 Likewise.
516 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
517 Likewise.
518 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
519 Likewise.
520 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
521 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
522 (FP_XSTATE_MAGIC2_SIZE): Likewise.
523 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
524 * time/test_time.c (main): Likewise.
525
526 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
527
528 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
529
530 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
531 wmemcpy.
532
533 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
534 wmemcpy.
535
536 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
537
538 * include/wchar.h (__wcscpy): New prototype.
539 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
540 (__wcscpy): Route internal symbol to generic implementation.
541 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
542 Add internal __wcscpy alias.
543 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
544 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
545 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
546 * wcsmbs/wcscpy.c (wcscpy): Add
547 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
548 use generic implementation.
549 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
550
551 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
552 wmemset.
553
554 * sysdeps/m68k/wcpcpy.c: Remove file.
555 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
556
557 2019-02-26 Joseph Myers <joseph@codesourcery.com>
558
559 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
560 than after operators.
561 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
562 * sysdeps/mach/hurd/getcwd.c
563 (__hurd_canonicalize_directory_name_internal): Likewise.
564 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
565 (pthread_mutex_consistent): Likewise.
566 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
567 Likewise.
568 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
569 (__pthread_mutex_transfer_np): Likewise.
570 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
571 (__pthread_mutex_unlock): Likewise.
572 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
573 (mtx_owned_p): Likewise.
574 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
575 (pthread_mutexattr_getrobust): Likewise.
576 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
577 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
578 Likewise.
579 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
580 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
581 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
582 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
583 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
584 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
585 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
586 Likewise.
587 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
588 Likewise.
589 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
590 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
591 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
592 (____longjmp_chk): Likewise.
593 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
594 Likewise.
595 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
596 (INTERNAL_SYSCALL): Likewise.
597 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
598 (INTERNAL_SYSCALL): Likewise.
599 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
600 (__get_clockfreq_via_cpuinfo): Likewise.
601
602 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
603 comments.
604 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
605 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
606 (WORD_COPY_BWD): Likewise.
607 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
608 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
609 Likewise.
610 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
611 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
612 comment.
613 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
614
615 2019-02-25 Joseph Myers <joseph@codesourcery.com>
616
617 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
618 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
619 rather than after operators.
620 * elf/cache.c (print_cache): Likewise.
621 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
622 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
623 * hurd/hurdinit.c (_hurd_setproc): Likewise.
624 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
625 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
626 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
627 (reauth_proc): Likewise.
628 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
629 (__file_name_split_at): Likewise.
630 (__directory_name_split_at): Likewise.
631 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
632 * hurd/port2fd.c (_hurd_port2fd): Likewise.
633 * iconv/gconv_dl.c (do_print): Likewise.
634 * inet/netinet/in.h (struct sockaddr_in): Likewise.
635 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
636 * locale/setlocale.c (new_composite_name): Likewise.
637 * malloc/memusagestat.c (main): Likewise.
638 * misc/fstab.c (fstab_convert): Likewise.
639 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
640 Likewise.
641 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
642 (getgrent_next_file): Likewise.
643 (internal_getgrnam_r): Likewise.
644 (internal_getgrgid_r): Likewise.
645 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
646 Likewise.
647 (internal_getgrent_r): Likewise.
648 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
649 (getpwent_next_nss): Likewise.
650 (getpwent_next_file): Likewise.
651 (internal_getpwnam_r): Likewise.
652 (internal_getpwuid_r): Likewise.
653 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
654 Likewise.
655 (getspent_next_nss): Likewise.
656 (internal_getspnam_r): Likewise.
657 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
658 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
659 * string/strchr.c (STRCHR): Likewise.
660 * string/strchrnul.c (STRCHRNUL): Likewise.
661 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
662 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
663 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
664 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
665 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
666 Likewise.
667 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
668 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
669 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
670 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
671 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
672 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
673 (open_file): Likewise.
674 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
675 (pthread_mutexattr_setprotocol): Likewise.
676 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
677 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
678 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
679 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
680 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
681 Likewise.
682 (elf_machine_rela): Likewise.
683 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
684 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
685 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
686 * sysdeps/posix/rename.c (rename): Likewise.
687 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
688 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
689 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
690 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
691 * sysdeps/unix/grantpt.c (grantpt): Likewise.
692 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
693 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
694 Likewise.
695 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
696 Likewise.
697 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
698 * time/tzfile.c (__tzfile_compute): Likewise.
699
700 2019-02-22 Joseph Myers <joseph@codesourcery.com>
701
702 * benchtests/bench-memmem.c (simple_memmem): Break lines before
703 rather than after operators.
704 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
705 * crypt/md5.c (md5_finish_ctx): Likewise.
706 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
707 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
708 * elf/cache.c (load_aux_cache): Likewise.
709 * elf/dl-load.c (open_verify): Likewise.
710 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
711 * elf/readelflib.c (process_elf_file): Likewise.
712 * elf/rtld.c (dl_main): Likewise.
713 * elf/sprof.c (generate_call_graph): Likewise.
714 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
715 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
716 * hurd/dtable.c (reauth_dtable): Likewise.
717 * hurd/getdport.c (__getdport): Likewise.
718 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
719 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
720 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
721 Likewise.
722 * hurd/hurdioctl.c (fioctl): Likewise.
723 * hurd/hurdselect.c (_hurd_select): Likewise.
724 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
725 (STOPSIGS): Likewise.
726 * hurd/hurdstartup.c (_hurd_startup): Likewise.
727 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
728 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
729 * hurd/msgportdemux.c (msgport_server): Likewise.
730 * hurd/setauth.c (_hurd_setauth): Likewise.
731 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
732 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
733 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
734 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
735 * login/tst-utmp.c (do_check): Likewise.
736 (simulate_login): Likewise.
737 * mach/lowlevellock.h (lll_lock): Likewise.
738 (lll_trylock): Likewise.
739 * math/test-fenv.c (ALL_EXC): Likewise.
740 * math/test-fenvinline.c (ALL_EXC): Likewise.
741 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
742 * nis/nis_call.c (__do_niscall3): Likewise.
743 * nis/nis_callback.c (cb_prog_1): Likewise.
744 * nis/nis_defaults.c (searchaccess): Likewise.
745 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
746 * nis/nis_ismember.c (internal_ismember): Likewise.
747 * nis/nis_local_names.c (nis_local_principal): Likewise.
748 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
749 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
750 Likewise.
751 * nis/ypclnt.c (yp_match): Likewise.
752 (yp_first): Likewise.
753 (yp_next): Likewise.
754 (yp_master): Likewise.
755 (yp_order): Likewise.
756 * nscd/hstcache.c (cache_addhst): Likewise.
757 * nscd/initgrcache.c (addinitgroupsX): Likewise.
758 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
759 (internal_getpwuid_r): Likewise.
760 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
761 * posix/glob.h (__GLOB_FLAGS): Likewise.
762 * posix/regcomp.c (peek_token): Likewise.
763 (peek_token_bracket): Likewise.
764 (parse_expression): Likewise.
765 * posix/regexec.c (sift_states_iter_mb): Likewise.
766 (check_node_accept_bytes): Likewise.
767 * posix/tst-spawn3.c (do_test): Likewise.
768 * posix/wordexp-test.c (testit): Likewise.
769 * posix/wordexp.c (parse_tilde): Likewise.
770 (exec_comm): Likewise.
771 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
772 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
773 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
774 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
775 * stdio-common/tst-fileno.c (do_test): Likewise.
776 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
777 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
778 * stdlib/strtod_l.c (round_and_return): Likewise.
779 (____STRTOF_INTERNAL): Likewise.
780 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
781 * string/strcspn.c (STRCSPN): Likewise.
782 * string/test-memmem.c (simple_memmem): Likewise.
783 * termios/tcsetattr.c (tcsetattr): Likewise.
784 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
785 * time/asctime.c (asctime_internal): Likewise.
786 * time/strptime_l.c (__strptime_internal): Likewise.
787 * time/sys/time.h (timercmp): Likewise.
788 * time/tzfile.c (__tzfile_compute): Likewise.
789
790 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
791
792 [BZ #21915]
793 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
794
795 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
796
797 * argp/argp-help.c (__argp_error_internal): New function,
798 renamed from __argp_error, but that takes a 'mode_flags'
799 parameter to control the format of long double parameters.
800 (__argp_error): Converted into a call __argp_error_internal.
801 (__argp_failure_internal): New function, renamed from
802 __argp_failure, but that takes a 'mode_flags' parameter.
803 (__argp_failure): Converted into a call __argp_failure_internal.
804 * misc/err.c (__vwarnx_internal): New function, renamed from
805 vwarnx, but that takes a 'mode_flags' parameter.
806 (vwarnx): Converted into a call to __vwarnx_internal.
807 (__vwarn_internal): New function, renamed from vwarn, but that
808 takes a 'mode_flags' parameter.
809 (vwarn): Converted into a call to __vwarn_internal.
810 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
811 call to __vfxprintf with 'mode_flags'.
812 (__error_internal): New function, renamed from error, but that
813 takes a 'mode_flags' parameter.
814 (error): Converted into a call to __error_internal.
815 (__error_at_line_internal): New function, renamed from
816 error_at_line, but that takes a 'mode_flags' parameter.
817 (error_at_line): Converted into a call to
818 __error_at_line_internal.
819 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
820 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
821 Likewise.
822
823 2019-02-20 Martin Liska <mliska@suse.cz>
824
825 * math/Makefile: Install math-vector-fortran.h.
826 * bits/math-vector-fortran.h: New file.
827 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
828
829 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
830
831 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
832 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
833
834 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
835
836 * nptl/pthread_mutex_trylock.c: Fix comment.
837
838 2019-02-19 Carlos O'Donell <carlos@redhat.com>
839
840 * nptl/pthread_tryjoin.c: Fix comment.
841
842 2019-02-18 Joseph Myers <joseph@codesourcery.com>
843
844 [BZ #24231]
845 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
846 after R_SPARC_H34 case.
847
848 2019-02-18 Florian Weimer <fweimer@redhat.com>
849
850 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
851 (getanswer): Do not call Dprintf.
852 (res_gethostbyname2_context): Likewise.
853 (res_gethostbyaddr_context): Likewise.
854
855 2019-02-18 Florian Weimer <fweimer@redhat.com>
856
857 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
858 declaration.
859 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
860 Remove definitions.
861 * libio/stdfiles.c: Update comment.
862 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
863 set _IO_stdin, _IO_stdout, _IO_stderr.
864 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
865 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
866 inline function.
867 (_IO_deallocate_file): New inline function.
868 * libio/iolibio.h (_IO_vprintf): Remove definition.
869 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
870 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
871 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
872 _IO_legacy_file.
873 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
874 __builtin_expect. Use _IO_legacy_file.
875
876 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
877
878 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
879 Initialize ctid with a known value and remove update of ctid
880 after clone.
881 (wait_tid): Adjust arguments and call futex_wait with ctid_val
882 as assumed current value of ctid_ptr.
883
884 2019-02-15 Florian Weimer <fweimer@redhat.com>
885
886 Check that non-sysdeps headers have wrapper headers.
887 * scripts/check-wrapper-headers.py: New file.
888 * Makefile (tests-special): Add check-wrapper-headers.out.
889 (check-wrapper-headers.out): New target.
890 * Rules (tests-special): Add check-wrapper-headers.out.
891 (check-wrapper-headers.out): New target.
892
893 2019-02-15 Florian Weimer <fweimer@redhat.com>
894
895 Add missing header wrappers under include/.
896 * include/ar.h: New file.
897 * include/bits/mqueue2.h: Likewise.
898 * include/bits/stdio.h: Likewise.
899 * include/bits/stdio2.h: Likewise.
900 * include/fstab.h: Likewise.
901 * include/fts.h: Likewise.
902 * include/lastlog.h: Likewise.
903 * include/netinet/icmp6.h: Likewise.
904 * include/netinet/igmp.h: Likewise.
905 * include/netinet/ip6.h: Likewise.
906 * include/re_comp.h: Likewise.
907 * include/regexp.h: Likewise.
908 * include/rpcsvc/bootparam.h: Likewise.
909 * include/rpcsvc/yp_prot.h: Likewise.
910 * include/sys/random.h: Likewise.
911 * include/sys/stropts.h: Likewise.
912 * include/sys/ttychars.h: Likewise.
913 * include/sys/vfs.h: Likewise.
914 * include/wait.h: Likewise.
915
916 2019-02-15 Florian Weimer <fweimer@redhat.com>
917
918 * nptl_db/proc_service.h: Move to ...
919 * sysdeps/nptl/proc_service.h: ... here.
920 * nptl_db/thread_db.h: Move to ...
921 * sysdeps/nptl/thread_db.h: ... here.
922 * nptl/descr.h: Include <thread_db.h>.
923
924 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
925
926 * io/Makefile (tests): Add tst-lockf.
927 * io/lockf.c (lockf): Use __fcntl and only define for
928 !__OFF_T_MATCHES_OFF64_T.
929 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
930 __OFF_T_MATCHES_OFF64_T case.
931 * io/tst-lockf.c: New file.
932 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
933 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
934 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
935 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
936 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
937 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
938 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
939 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
940 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
941
942 2019-02-15 Florian Weimer <fweimer@redhat.com>
943
944 [BZ #24211]
945 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
946 pd->result after the thread descriptor has been freed.
947
948 2019-02-15 Joseph Myers <joseph@codesourcery.com>
949
950 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
951 from function return type.
952
953 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
954
955 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
956
957 * scripts/test_printers_common.py: Set TERM to a known harmless
958 value.
959
960 2019-02-14 Joseph Myers <joseph@codesourcery.com>
961
962 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
963 (xdr_u_int): Likewise.
964 (xdr_enum): Likewise.
965 (xdr_bytes): Reword fall-through comment.
966 (xdr_string): Likewise.
967
968 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
969
970 [BZ #2421]
971 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
972 (tests): Add tst-join8 tst-join9.
973 * nptl/lll_timedwait_tid.c: Remove file.
974 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
975 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
976 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
977 * nptl/pthread_join_common.c (timedwait_tid): New function.
978 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
979 is set.
980 * nptl/tst-join5.c (thread_join): New function.
981 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
982 check.
983 * nptl/tst-join8.c: New file.
984 * nptl/tst-join9.c: Likewise.
985 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
986 lll_futex_timed_wait_cancel): Add generic macros.
987 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
988 Remove definitions.
989 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
990 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
991 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
992 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
993 Remove function.
994 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
995 Likewise.
996 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
997 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
998 (lll_futex_timed_wait_cancel): New macro.
999
1000 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
1001
1002 * benchtests/Makefile: Add malloc-simple benchmark.
1003 * benchtests/bench-malloc-simple.c: New benchmark.
1004
1005 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
1006
1007 * benchtests/bench-memmove.c (do_one_test): Remove unused
1008 ORIG_SRC.
1009 (do_test): Adjust.
1010 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
1011 ORIG_SRC.
1012 (do_test): Adjust.
1013
1014 2019-01-13 Jim Wilson <jimw@sifive.com>
1015
1016 [BZ #24040]
1017 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
1018 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
1019 (func): New.
1020 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
1021 call func directly.
1022 * nptl/Makefile (tests): Add tst-unwind-thread.
1023 (CFLAGS-tst-unwind-thread.c): Define.
1024 * nptl/tst-unwind-thread.c: New file.
1025 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
1026 as undefined.
1027
1028 2019-02-13 Joseph Myers <joseph@codesourcery.com>
1029
1030 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
1031 comment wording.
1032 * nis/nis_call.c (__do_niscall3): Likewise.
1033
1034 * catgets/gencat.c (normalize_line): Use braces around empty
1035 'else' body.
1036 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
1037 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
1038 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
1039 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
1040 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
1041 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
1042 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
1043 definition.
1044
1045 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
1046 execlp returns.
1047
1048 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
1049
1050 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
1051 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
1052 * benchtests/bench-strchr.c (stupid_strchr): Remove.
1053 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
1054 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
1055 * benchtests/bench-strlen.c (builtin_strlen): Remove.
1056 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
1057 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
1058 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
1059 * benchtests/bench-strspn.c (stupid_strspn): Remove.
1060 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
1061 * benchtests/bench-bcopy.c: Delete file.
1062 * benchtests/bench-bzero.c: Likewise.
1063 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
1064 (simple_memccpy): Remove.
1065 (generic_memccpy): Add function.
1066 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
1067 * benchtests/bench-memmove.c (simple_bcopy): Remove.
1068 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
1069 (generic_mempcpy): Add new function.
1070 * benchtests/bench-memset.c (simple_bzero): Remove.
1071 (builtin_bzero): Remove.
1072 (builtin_memset): Remove.
1073 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
1074 (generic_rawmemchr): Add new function.
1075
1076 2019-02-12 Florian Weimer <fweimer@redhat.com>
1077
1078 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
1079
1080 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1081
1082 [BZ #24122]
1083 * elf/Makefile (tests): Add tst-audit13.
1084 (modules-names): Add tst-audit13mod1.
1085 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1086 rule.
1087 * elf/tst-audit13.c: New file.
1088 * elf/tst-audit13mod1.c: Likewise.
1089
1090 2019-02-12 Florian Weimer <fweimer@redhat.com>
1091
1092 [BZ #24122]
1093 * elf/rtld.c (unload_audit_module): New function.
1094 (report_audit_module_load_error): Likewise.
1095 (load_audit_module): Likewise. Extracted from dl_main. Call
1096 _dl_close if the laversion symbol cannot be found. Use early
1097 returns for error handling. Add malloc error check. Check for a
1098 zero return value from la_version. Remove spurious comment about
1099 static TLS initialization. Remove useless casts.
1100 (notify_audit_modules_of_loaded_object): New function. Extracted
1101 from dl_main.
1102 (load_audit_module): Likewise.
1103 (dl_main): Call load_audit_modules.
1104
1105 2019-02-12 Joseph Myers <joseph@codesourcery.com>
1106
1107 * elf/dl-exception.c (_dl_exception_create_format): Add
1108 fall-through comments.
1109 * elf/ldconfig.c (parse_conf_include): Likewise.
1110 * elf/rtld.c (print_statistics): Likewise.
1111 * locale/programs/charmap.c (parse_charmap): Likewise.
1112 * misc/mntent_r.c (__getmntent_r): Likewise.
1113 * posix/wordexp.c (parse_arith): Likewise.
1114 (parse_backtick): Likewise.
1115 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
1116 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
1117 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1118
1119 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
1120
1121 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
1122 Use float instead of double.
1123
1124 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1125
1126 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
1127
1128 2019-02-08 Joseph Myers <joseph@codesourcery.com>
1129
1130 * sysdeps/powerpc/bits/mathinline.h: Remove.
1131
1132 2019-02-08 Florian Weimer <fweimer@redhat.com>
1133
1134 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
1135 * math/bits/math-finite.h: Move to ...
1136 * bits/math-finite.h: ... here.
1137
1138 2019-02-08 Florian Weimer <fweimer@redhat.com>
1139
1140 * sysdeps/generic/bits/unistd_ext.h: Move to ...
1141 * bits/unistd_ext.h: here.
1142
1143 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
1144
1145 [BZ #21915]
1146 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
1147 * nss/tst-nss-files-hosts-long.c: New file.
1148 * nss/tst-nss-files-hosts-long.root: New directory.
1149 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
1150 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
1151
1152 2019-02-08 Florian Weimer <fweimer@redhat.com>
1153
1154 * include/bits/unistd_ext.h: Remove file.
1155 * posix/bits/unistd_ext.h: Move to ...
1156 * sysdeps/generic/bits/unistd_ext.h: ... here.
1157
1158 2019-02-08 Florian Weimer <fweimer@redhat.com>
1159
1160 * include/bits/unistd_ext.h: New file.
1161
1162 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
1163
1164 * time/tst-strftime2.c: Use array_length macros instead of magic
1165 numbers.
1166
1167 2019-02-08 Florian Weimer <fweimer@redhat.com>
1168
1169 [BZ #24161]
1170 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
1171 argument.
1172 * nptl/register-atfork.c (__run_fork_handlers): Only perform
1173 locking if the new do_locking argument is true.
1174 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
1175 __run_fork_handlers.
1176
1177 2019-02-08 Florian Weimer <fweimer@redhat.com>
1178
1179 [BZ #6399]
1180 Linux: Add gettid system call wrapper.
1181 * posix/Makefile (headers): Add bits/unistd_ext.h.
1182 * posix/bits/unistd_ext.h: New file.
1183 * posix/unistd.h: Include it.
1184 * manual/process.texi (Process Identification): Document gettid.
1185 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
1186 tst-gettid, tst-gettid-kill.
1187 (tst-gettid): Link with $(shared-thread-library).
1188 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
1189 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
1190 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
1191 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
1192 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
1193 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
1194 Add gettid.
1195 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1196 Likewise.
1197 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1198 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
1199 Likewise.
1200 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
1201 Likewise.
1202 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
1203 Likewise.
1204 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
1205 Likewise.
1206 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1207 Likewise.
1208 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1209 Likewise.
1210 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1211 Likewise.
1212 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1213 (GLIBC_2.30): Likewise.
1214 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1215 (GLIBC_2.30): Likewise.
1216 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1217 (GLIBC_2.30): Likewise.
1218 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1219 (GLIBC_2.30): Likewise.
1220 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1221 Likewise.
1222 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1223 (GLIBC_2.30): Likewise.
1224 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1225 (GLIBC_2.30): Likewise.
1226 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1227 (GLIBC_2.30): Likewise.
1228 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1229 (GLIBC_2.30): Likewise.
1230 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1231 Likewise.
1232 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1233 Likewise.
1234 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1235 Likewise.
1236 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1237 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1238 Likewise.
1239 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1240 Likewise.
1241 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1242 Likewise.
1243 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1244 Likewise.
1245 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
1246
1247 2019-02-07 Florian Weimer <fweimer@redhat.com>
1248
1249 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
1250 compatibility symbols.
1251
1252 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
1253
1254 [BZ #24180]
1255 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
1256 Add compiler barriers and comments.
1257
1258 2019-02-07 Florian Weimer <fweimer@redhat.com>
1259
1260 * include/array_length.h (array_length): Do not use a statement
1261 expression and _Static_assert, so that array_length can be used at
1262 file scope and as a constant expression.
1263
1264 2019-02-07 Florian Weimer <fweimer@redhat.com>
1265
1266 * support/xdlfcn.h (xdlmopen): Declare.
1267 * support/xdlmopen.c: New file.
1268 * support/Makefile (libsupport-routines): Add xdlmopen.
1269
1270 2019-02-06 Joseph Myers <joseph@codesourcery.com>
1271
1272 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
1273 before return type, without separate inline.
1274 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
1275 * elf/dl-tunables.h (tunable_is_name): Likewise.
1276 * malloc/malloc.c (do_set_trim_threshold): Likewise.
1277 (do_set_top_pad): Likewise.
1278 (do_set_mmap_threshold): Likewise.
1279 (do_set_mmaps_max): Likewise.
1280 (do_set_mallopt_check): Likewise.
1281 (do_set_perturb_byte): Likewise.
1282 (do_set_arena_test): Likewise.
1283 (do_set_arena_max): Likewise.
1284 (do_set_tcache_max): Likewise.
1285 (do_set_tcache_count): Likewise.
1286 (do_set_tcache_unsorted_limit): Likewise.
1287 * nis/nis_subr.c (count_dots): Likewise.
1288 * nptl/allocatestack.c (advise_stack_range): Likewise.
1289 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
1290 (do_sin): Likewise.
1291 (reduce_sincos): Likewise.
1292 (do_sincos): Likewise.
1293 * sysdeps/unix/sysv/linux/x86/elision-conf.c
1294 (do_set_elision_enable): Likewise.
1295 (TUNABLE_CALLBACK_FNDECL): Likewise.
1296
1297 2019-02-06 Florian Weimer <fweimer@redhat.com>
1298
1299 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
1300 (xdlsym): Use dlerror to detect a NULL symbol.
1301
1302 2019-02-06 Florian Weimer <fweimer@redhat.com>
1303
1304 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
1305 <stap-probe.h>.
1306 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1307
1308 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1309
1310 * libio/tst-bz24153.c (wide): Use wide char format specifier.
1311
1312 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1313
1314 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
1315 __wmemcmp and weak alias to wmemcmp.
1316
1317 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1318
1319 [BZ #23403]
1320 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
1321 TLS_TCB_AT_TP tls variant.
1322 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
1323 Add alignment checks.
1324 * support/Makefile (libsupport-routines): Add xposix_memalign and
1325 xpthread_setstack.
1326 * support/support.h: Add xposix_memalign.
1327 * support/xthread.h: Add xpthread_attr_setstack.
1328 * support/xposix_memalign.c: New File.
1329 * support/xpthread_attr_setstack.c: Likewise.
1330
1331 2019-02-05 Florian Weimer <fweimer@redhat.com>
1332
1333 [BZ #24164]
1334 arm: Use "nr" constraint for Systemtap probes, to avoid the
1335 compiler using memory operands for constants, due to the "o"
1336 alternative in the default "nor" constraint.
1337 * include/stap-probe.h [USE_STAP_PROBE]: Include
1338 <stap-probe-machine.h>
1339 * sysdeps/generic/stap-probe-machine.h: New file.
1340 * sysdeps/arm/stap-probe-machine.h: Likewise.
1341
1342 2019-02-04 Joseph Myers <joseph@codesourcery.com>
1343
1344 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
1345 with 0, not tcache->entries[tc_idx].
1346
1347 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
1348 once.
1349
1350 2019-02-04 Andreas Schwab <schwab@suse.de>
1351
1352 [BZ #16976]
1353 [BZ #17396]
1354 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
1355 looking up collating elements match against (wide) character
1356 sequence instead of name. Correct alignment adjustment.
1357 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
1358 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
1359 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
1360 (LOCALES): Add cs_CZ.ISO-8859-2.
1361 * posix/tst-fnmatch4.c: New file.
1362 * posix/tst-fnmatch5.c: New file.
1363 * include/wchar.h (__wmemcmp): Declare.
1364 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
1365 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
1366 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
1367 * sysdeps/s390/wmemcmp.c: Likewise.
1368
1369 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
1370
1371 [BZ #24155]
1372 CVE-2019-7309
1373 * NEWS: Updated for CVE-2019-7309.
1374 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
1375 upper 32 bits of RDX register for x32. Use unsigned Jcc
1376 instructions, instead of signed.
1377 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
1378 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
1379
1380 2019-02-04 Florian Weimer <fweimer@redhat.com>
1381
1382 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
1383 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
1384 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
1385 Likewise.
1386 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
1387 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
1388 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
1389 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
1390 Likewise.
1391 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
1392 Likewise.
1393 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
1394 Likewise.
1395 (posix_spawn_file_actions_addopen): Likewise.
1396 (posix_spawn_file_actions_addclose): Likewise.
1397 (posix_spawn_file_actions_adddup2): Likewise.
1398 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
1399 qualifiers.
1400 (posix_spawn_file_actions_addfchdir_np): Likewise.
1401
1402 2019-02-04 David Newall <glibc@davidnewall.com>
1403
1404 elf: Implement --preload option for the dynamic linker.
1405 * elf/rtld.c (preloadarg): New variable.
1406 (handle_preload_list): Pass through “where” argument to
1407 do_preload.
1408 (dl_main): Handle "--preload" and add second call to
1409 handle_preload_list.
1410 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
1411 (tst-rtld-preload-OBJS): Set variable.
1412 (tst-rtld-preload.out): New target.
1413 * elf/tst-rtld-preload.sh: New file.
1414
1415 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
1416
1417 * Makefile (testrun.sh): Exit in case of incorrect argument.
1418
1419 2019-02-04 Florian Weimer <fweimer@redhat.com>
1420
1421 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
1422 alignment gaps.
1423
1424 2019-02-03 Florian Weimer <fweimer@redhat.com>
1425
1426 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
1427 implicit overflow checks.
1428
1429 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
1430
1431 * stdlib/isomac.c: Include <unistd.h>.
1432
1433 2019-02-03 Florian Weimer <fweimer@redhat.com>
1434
1435 * include/time.h (__tzfile_default): Use int, not long int, for
1436 the GMT offsets.
1437 * time/tzfile.c (struct ttinfo): Change type of the offset member
1438 to int.
1439 (__tzfile_read): Remove useless cast.
1440 (__tzfile_default): Adjust prototype.
1441 * time/tzset.c (tz_rule): Change type of the offset member to int.
1442 (parse_offset): Change the type of the sign variable to int.
1443
1444 2019-02-03 Florian Weimer <fweimer@redhat.com>
1445
1446 [BZ #24153]
1447 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
1448 * libio/getchar.c (getchar): Likewise.
1449 * libio/getchar_u.c (getchar_unlocked): Likewise.
1450 * libio/getwchar.c (getwchar): Likewise.
1451 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
1452 * libio/iogets.c (_IO_gets): Likewise.
1453 * libio/vscanf.c (_IO_vscanf): Likewise.
1454 * libio/vwscanf.c (__vwscanf): Likewise.
1455 * libio/tst-bz24153.c: New file.
1456 * libio/Makefile (tests): Add it.
1457
1458 2019-02-02 Florian Weimer <fweimer@redhat.com>
1459
1460 [BZ #14829]
1461 * manual/resource.texi (Basic Scheduling Functions): Add
1462 portability note. Change process to task throughout the section.
1463 Remove incorrect comment about sched_yield as it affects
1464 tasks/threads, not entire processes.
1465 * sysdeps/unix/sysv/linux/bits/posix_opt.h
1466 (_POSIX_PRIORITY_SCHEDULING): Update comment.
1467
1468 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1469
1470 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
1471 * configure: Regenerated.
1472 * manual/install.texi (Tools for Compilation): Update minimum GCC
1473 version.
1474 * INSTALL: Regenerated.
1475
1476 2019-02-01 Florian Weimer <fweimer@redhat.com>
1477
1478 * support/support_test_compare_string.c
1479 (support_test_compare_string): Use "string" in error message.
1480 * support/tst-test_compare_string.c (do_test): Adjust.
1481
1482 2019-02-01 Florian Weimer <fweimer@redhat.com>
1483
1484 * support/support_format_address_family.c
1485 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
1486
1487 2019-02-01 Florian Weimer <fweimer@redhat.com>
1488
1489 * manual/socket.texi (Internet Address Formats): Clarify the byte
1490 order of struct sockaddr_in, struct sockaddr_in6. Document
1491 sin6_flowinfo and sin6_scope_id.
1492
1493 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
1494
1495 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
1496 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
1497 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
1498 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
1499 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
1500 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
1501
1502 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1503
1504 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
1505 [!MEMCHR](MEMCHR): Set to __memchr.
1506 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1507 Add memchr_generic and memchr_nosimd.
1508 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1509 (__libc_ifunc_impl_list): Add memchr ifuncs.
1510 * sysdeps/aarch64/multiarch/memchr.c: New file.
1511 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
1512 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
1513
1514 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1515
1516 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1517 Add memset_emag.
1518 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1519 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
1520 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
1521 Add IS_EMAG check for ifunc dispatch.
1522 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
1523 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
1524
1525 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1526
1527 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
1528 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1529 Add emag.
1530 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
1531 New macro.
1532
1533 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
1534
1535 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
1536
1537 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
1538
1539 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
1540 syscall-template file.
1541
1542 2019-01-31 Carlos O'Donell <carlos@redhat.com>
1543 Torvald Riegel <triegel@redhat.com>
1544 Rik Prohaska <prohaska7@gmail.com>
1545
1546 [BZ# 23844]
1547 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
1548 tst-rwlock-trywrlock-stall.
1549 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
1550 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
1551 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
1552 Set __wrphase_fute to 1 only if we started the write phase.
1553 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
1554 * nptl/tst-rwlock-trywrlock-stall.c: New file.
1555 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
1556 * support/xpthread_rwlock_destroy.c: New file.
1557 * support/xthread.h: Declare xpthread_rwlock_destroy.
1558
1559 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1560
1561 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
1562 version to 4.0.2.
1563
1564 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1565
1566 [BZ #24051]
1567 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
1568 * libio/fileops.c (_IO_new_file_underflow): Likewise
1569 * libio/wfileops.c (_IO_wfile_underflow): Likewise
1570 * libio/putchar.c (putchar): Likewise.
1571 * libio/putchar_u.c (putchar_unlocked): Likewise.
1572 * libio/putwchar.c (putchar): Likewise.
1573 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
1574 * libio/tst-bz24051.c: New test.
1575 * libio/Makefile (tests): Add tst-bz24051
1576
1577 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
1578
1579 regex: fix read overrun [BZ #24114]
1580 Problem found by AddressSanitizer, reported by Hongxu Chen in:
1581 https://debbugs.gnu.org/34140
1582 * posix/regexec.c (proceed_next_node):
1583 Do not read past end of input buffer.
1584
1585 2019-01-31 Florian Weimer <fweimer@redhat.com>
1586
1587 [BZ #24059]
1588 * nss/nss_files/files-alias.c (get_next_alias): Handle
1589 continuation line without newline at the end.
1590 * nss/tst-nss-files-alias-truncated.c: New file.
1591 * nss/Makefile [$(build-shared)] (tests): Add
1592 tst-nss-files-alias-truncated.
1593 (tst-nss-files-alias-truncated): Link with libnss_files.so.
1594 * support/namespace.h (struct support_chroot_configuration): Add
1595 aliases member.
1596 (struct support_chroot): Add path_aliases member.
1597 * support/support_chroot.c (support_chroot_create): Handle
1598 aliases.
1599 (support_chroot_free): Free path_aliases.
1600
1601 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
1602
1603 * version.h (RELEASE): Set to "development".
1604 (VERSION): Set to "2.29.9000".
1605 * NEWS: Add section for 2.30.
1606
1607 * version.h (RELEASE): Set to "stable".
1608 (VERSION): Set to "2.29".
1609 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
1610
1611 * NEWS: Add the list of bugs fixed in 2.29.
1612 * manual/contrib.texi: Update contributors list with some more
1613 names.
1614 * manual/install.texi: Update latest versions of packages
1615 tested.
1616 * INSTALL: Regenerated.
1617
1618 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
1619
1620 * po/be.po: Update translations.
1621 * po/bg.po: Likewise.
1622 * po/ca.po: Likewise.
1623 * po/cs.po: Likewise.
1624 * po/da.po: Likewise.
1625 * po/de.po: Likewise.
1626 * po/el.po: Likewise.
1627 * po/eo.po: Likewise.
1628 * po/es.po: Likewise.
1629 * po/fi.po: Likewise.
1630 * po/fr.po: Likewise.
1631 * po/gl.po: Likewise.
1632 * po/hr.po: Likewise.
1633 * po/hu.po: Likewise.
1634 * po/ia.po: Likewise.
1635 * po/id.po: Likewise.
1636 * po/it.po: Likewise.
1637 * po/ja.po: Likewise.
1638 * po/ko.po: Likewise.
1639 * po/lt.po: Likewise.
1640 * po/nb.po: Likewise.
1641 * po/nl.po: Likewise.
1642 * po/pl.po: Likewise.
1643 * po/pt_BR.po: Likewise.
1644 * po/ru.po: Likewise.
1645 * po/rw.po: Likewise.
1646 * po/sk.po: Likewise.
1647 * po/sl.po: Likewise.
1648 * po/sv.po: Likewise.
1649 * po/tr.po: Likewise.
1650 * po/uk.po: Likewise.
1651 * po/vi.po: Likewise.
1652 * po/zh_CN.po: Likewise.
1653 * po/zh_TW.po: Likewise.
1654
1655 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
1656
1657 [BZ #24130]
1658 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
1659 of $f3 register on $y_is_neg path.
1660
1661 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1662
1663 [BZ #24110]
1664 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
1665 sigaltstack.ss_flags.
1666
1667 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
1668
1669 [BZ #23758]
1670 * manual/time.texi (strftime): Document "%Ey".
1671 * time/strftime_l.c (__strftime_internal): Set the default width
1672 padding with zero of "%Ey" to 2.
1673
1674 [BZ #24096]
1675 * manual/time.texi (strftime): Document "%EC" and "%EY".
1676 * time/Makefile (tests): Add tst-strftime2.
1677 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
1678 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
1679 override padding for "%Ey".
1680 If an optional flag ('_' or '-') is specified to "%EY", interpret the
1681 "%Ey" in the subformat as if decorated with that flag.
1682 * time/tst-strftime2.c: New file.
1683
1684 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1685
1686 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
1687 are not defined.
1688
1689 [BZ #24122]
1690 * elf/Makefile (tests): Add tst-audit13.
1691 (modules-names): Add tst-audit13mod1.
1692 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1693 rule.
1694 * elf/rtld.c (dl_main): Handle invalid audit module version.
1695 * elf/tst-audit13.c: New file.
1696 * elf/tst-audit13mod1.c: Likewise.
1697
1698 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
1699
1700 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
1701 returned by __hurd_at_flags.
1702 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
1703 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
1704 directly instead of __hurd_file_name_lookup.
1705
1706 2019-01-21 Joseph Myers <joseph@codesourcery.com>
1707
1708 * scripts/build-many-glibcs.py (Context.checkout): Default
1709 binutils version to 2.32 branch.
1710
1711 2019-01-21 Florian Weimer <fweimer@redhat.com>
1712
1713 [BZ #20018]
1714 CVE-2016-10739
1715 resolv: Reject trailing characters in host names
1716 * include/arpa/inet.h (__inet_aton_exact): Declare.
1717 (inet_aton): Remove hidden prototype. No longer used internally.
1718 * nscd/gai.c (__inet_aton): Do not define.
1719 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
1720 * nss/digits_dots.c (__inet_aton): Likewise.
1721 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
1722 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
1723 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
1724 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
1725 (tst-resolv-trailing): Likewise.
1726 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
1727 libc.
1728 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
1729 Make static. Add endp parameter.
1730 (__inet_aton_exact): New function.
1731 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
1732 (__inet_addr): Call inet_aton_end.
1733 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
1734 not just IPv6. Call __inet_aton_exact.
1735 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
1736 (tests): Make const. Add additional test cases with trailing
1737 characters.
1738 (do_test): Use array_length.
1739 * resolv/tst-inet_aton_exact.c: New file.
1740 * resolv/tst-resolv-trailing.c: Likewise.
1741 * resolv/tst-resolv-nondecimal.c: Likewise.
1742 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
1743
1744 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1745
1746 [BZ# 24097]
1747 CVE-2019-6488
1748 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
1749 Clear the upper 32 bits of RSI register.
1750 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
1751 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
1752 and tst-size_t-wcsnlen.
1753 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
1754 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
1755
1756 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1757
1758 [BZ# 24097]
1759 CVE-2019-6488
1760 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
1761 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1762 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
1763 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
1764 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
1765
1766 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1767
1768 [BZ# 24097]
1769 CVE-2019-6488
1770 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
1771 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
1772 * sysdeps/x86_64/strcmp.S: Likewise.
1773 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
1774 tst-size_t-strncmp and tst-size_t-wcsncmp.
1775 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
1776 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
1777 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
1778
1779 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1780
1781 [BZ# 24097]
1782 CVE-2019-6488
1783 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
1784 RDX_LP for length. Clear the upper 32 bits of RDX register.
1785 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
1786 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
1787 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
1788 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
1789
1790 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1791
1792 [BZ# 24097]
1793 CVE-2019-6488
1794 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
1795 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
1796 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
1797 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
1798
1799 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1800
1801 [BZ# 24097]
1802 CVE-2019-6488
1803 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
1804 length. Clear the upper 32 bits of RDX register.
1805 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
1806 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
1807 Likewise.
1808 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
1809 Likewise.
1810 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
1811 tst-size_t-wmemchr.
1812 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
1813
1814 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1815
1816 [BZ# 24097]
1817 CVE-2019-6488
1818 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
1819 length. Clear the upper 32 bits of RDX register.
1820 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
1821 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
1822 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
1823 tst-size_t-wmemcmp.
1824 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
1825 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
1826
1827 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1828
1829 [BZ# 24097]
1830 CVE-2019-6488
1831 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
1832 upper 32 bits of RDX register.
1833 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
1834 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
1835 tst-size_t-wmemchr.
1836 * sysdeps/x86_64/x32/test-size_t.h: New file.
1837 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
1838 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
1839
1840 2019-01-18 Florian Weimer <fweimer@redhat.com>
1841
1842 [BZ #24112]
1843 resolv: Do not send queries for non-host-names in nss_dns.
1844 * resolv/nss_dns/dns-host.c (check_name): New function.
1845 (_nss_dns_gethostbyname2_r): Use it.
1846 (_nss_dns_gethostbyname_r): Likewise.
1847 (_nss_dns_gethostbyname4_r): Likewise.
1848
1849 2019-01-21 Florian Weimer <fweimer@redhat.com>
1850
1851 * resolv/inet_addr.c: Reformat to GNU style.
1852 (__inet_addr, __inet_aton): Update comment.
1853
1854 2019-01-18 Florian Weimer <fweimer@redhat.com>
1855
1856 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
1857 ("malloc: Use current (C11-style) atomics for fastbin access").
1858 This commit introduces a substantial performance regression on
1859 POWER and Aarch64.
1860 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
1861 (REMOVE_FB): Define.
1862 (_int_malloc): Use it and reindent.
1863 (_int_free): Use CAS loop with
1864 catomic_compare_and_exchange_val_rel.
1865 (malloc_consolidate): Use atomic_exchange_acq.
1866
1867
1868 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
1869
1870 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
1871 -Wl,-z,now.
1872 (LDFLAGS-tst-minsigstksz-2): Likewise.
1873 (LDFLAGS-tst-minsigstksz-3): Likewise.
1874 (LDFLAGS-tst-minsigstksz-3a): Likewise.
1875 (LDFLAGS-tst-minsigstksz-4): Likewise.
1876
1877 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
1878
1879 * manual/time.texi (strftime): Fix the wording to "alternative" rather
1880 than "alternate".
1881
1882 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
1883
1884 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
1885
1886 2019-01-16 Zack Weinberg <zackw@panix.com>
1887
1888 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
1889 (xget_sigstack_location): New test support functions.
1890 * support/xsigstack.c: New file, implementing them.
1891 * support/tst-xsigstack.c: New test for them.
1892 * support/Makefile: Update.
1893
1894 * signal/tst-minsigstksz-1.c
1895 * signal/tst-minsigstksz-2.c
1896 * signal/tst-minsigstksz-3.c
1897 * signal/tst-minsigstksz-3a.c
1898 * signal/tst-minsigstksz-4.c: New tests.
1899 * signal/Makefile: Run them.
1900
1901 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
1902
1903 * po/libc.pot: Regenerate.
1904
1905 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1906
1907 * math/libm-test-fma.inc (fma_test_data): Set
1908 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
1909
1910 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1911
1912 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
1913 (do_test): Changed __vector __int128_t to __vector unsigned int.
1914
1915 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
1916
1917 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1918 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
1919 stpcpy-avx2 and stpncpy-avx2.
1920 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
1921 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
1922 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
1923 and __stpncpy_avx2.
1924 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
1925 ifunc-strcpy.h}: rename header for a more generic name.
1926 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
1927 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
1928 AVX unaligned load is fast and vzeroupper is preferred.
1929 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
1930 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
1931 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
1932 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
1933 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
1934 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
1935
1936 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
1937
1938 * argp/argp-help.c: Fix typo in comment.
1939 * misc/sys/cdefs.h: Likewise.
1940 * posix/regexec.c (sift_states_iter_mb): Likewise.
1941 * socket/sockatmark.c: Likewise.
1942 * socket/sys/socket.h: Likewise.
1943 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1944 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1945 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1946 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1947 * sysdeps/unix/sockatmark.c: Likewise.
1948 * time/strptime_l.c: Likewise.
1949
1950 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1951
1952 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1953 missing space after the cast of "_NL_CURRENT".
1954
1955 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1956
1957 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1958 ifdef to fix read of VSCR.
1959 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1960 tst-ucontext-ppc64-vscr.c to test list.
1961 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1962
1963 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1964
1965 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1966 fall-through.
1967
1968 2019-01-09 Jim Wilson <jimw@sifive.com>
1969
1970 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1971
1972 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
1973
1974 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
1975 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
1976 __memcpy_falkor for ares.
1977 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
1978 Add new define.
1979 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1980 Add ares cpu.
1981
1982 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
1983
1984 [BZ #24066]
1985 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
1986 4_FP_W_TYPEs are used for IEEE quad precision.
1987 * soft-fp/extendhftf2.c: Likewise.
1988 * soft-fp/extendsftf2.c: Likewise.
1989 * soft-fp/extendxftf2.c: Likewise.
1990 * soft-fp/trunctfdf2.c: Likewise.
1991 * soft-fp/trunctfhf2.c: Likewise.
1992 * soft-fp/trunctfsf2.c: Likewise.
1993 * soft-fp/trunctfxf2.c: Likewise.
1994 * sysdeps/alpha/ots_cvttx.c: Likewise.
1995 * sysdeps/alpha/ots_cvtxt.c: Likewise.
1996 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1997 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
1998 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1999 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
2000 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
2001 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
2002 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
2003 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
2004 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
2005 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
2006 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
2007 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
2008 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
2009 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
2010 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
2011 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
2012
2013 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
2014
2015 [BZ #24024]
2016 * Makeconfig: Build libm with -fno-math-errno but build the remaining
2017 code with -fmath-errno.
2018 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
2019 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
2020 * string/test-strerror-errno.c: New file.
2021
2022 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
2023
2024 [BZ #24046]
2025 * localedata/locales/en_US (date_fmt): Add, set to
2026 "%a %d %b %Y %r %Z".
2027
2028 2019-01-07 Florian Weimer <fweimer@redhat.com>
2029
2030 [BZ #24063]
2031 * manual/arith.texi (Math Error Reporting): Use @code{errno}
2032 instead of @var{errno}.
2033 (Parsing of Integers): Likewise.
2034 (Parsing of Floats): Likewise.
2035 * manual/filesys.texi (Working with Directory Trees): Likewise.
2036 (Temporary Files): Likewise.
2037 * manual/job.texi (Terminal Access Functions): Likewise.
2038 * manual/llio.texi (Synchronizing I/O): Likewise.
2039 * manual/math.texi (SVID Random): Likewise.
2040 * manual/message.texi (The catgets Functions): Likewise.
2041 (Translation with gettext): Likewise.
2042 (Locating gettext catalog): Likewise.
2043 (Charset conversion in gettext): Likewise.
2044 * manual/nss.texi (NSS Module Function Internals): Likewise.
2045 * manual/search.texi (Hash Search Function): Likewise.
2046 * manual/setjmp.texi (System V contexts): Likewise.
2047 * manual/time.texi (Sleeping): Likewise.
2048 * manual/users.texi (Lookup User): Likewise.
2049 (Lookup Group): Likewise.
2050
2051 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2052
2053 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
2054 fix typo.
2055
2056 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
2057
2058 [BZ #19444]
2059 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
2060 __builtin_unreachable for default case in switch.
2061 (__ieee754_yn): Likewise.
2062 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
2063 (__ieee754_ynl): Likewise.
2064 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
2065 (__ieee754_ynl): Likewise.
2066 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
2067 (__ieee754_ynl): Likewise.
2068
2069 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2070
2071 * manual/maint.texi: Use @{ and @}.
2072
2073 2019-01-04 Florian Weimer <fweimer@redhat.com>
2074
2075 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
2076 function.
2077 (do_in_chroot_1): Call it.
2078 (run_chroot_tests):
2079 Improve error reporting in case it is not possible to create a
2080 collision for the PTY name required by the test.
2081
2082 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2083
2084 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
2085 lll_wait_tid with timeout.
2086 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
2087 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
2088 futex_reltimed_wait_cancelable for cancelabla mode.
2089 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
2090 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
2091 macros.
2092 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
2093 * sysdeps/posix/waitid.c (__sigwait): Likewise.
2094 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
2095 SYSCALL_CANCEL_NCS): New macro.
2096 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
2097 (lll_timedwait_tid): Remove macro.
2098 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
2099 Likewise.
2100 (lll_timedwait_tid): Likewise.
2101 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
2102 Likewise.
2103 (lll_timedwait_tid): Likewise.
2104 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
2105 Likewise.
2106 (lll_timedwait_tid): Likewise.
2107 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
2108 Use INTERNAL_SYSCALL_CANCEL.
2109 * sysdeps/unix/sysv/linux/futex-internal.h
2110 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
2111 instead of __pthread_{enable,disable}_asynccancel.
2112 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
2113 (lll_futex_wait_cancel): New macro.
2114
2115 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2116 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2117
2118 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2119 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2120
2121 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
2122 in backtrace analysis.
2123 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
2124 side-effects.
2125 (tf_send): Likewise.
2126
2127 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
2128 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
2129 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
2130 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
2131 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2132 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2133 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
2134 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
2135 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
2136 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
2137 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
2138 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
2139 Likewise.
2140 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
2141 tst-cancel-wrappers.sh.
2142 (generated): Remove tst-cancel-wrappers.out.
2143 (tst-cancel-wrappers.out): Remove rule.
2144 * nptl/tst-cancel-wrappers.sh: Remove file.
2145
2146 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
2147
2148 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
2149 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
2150 Update.
2151
2152 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2153
2154 [BZ #23640]
2155 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
2156 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
2157 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
2158 close-on-exec reset for adddup2 file action.
2159 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
2160
2161 2019-01-03 Zack Weinberg <zackw@panix.com>
2162
2163 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
2164 parameter. Only use deprecated scanf when __USE_GNU is defined
2165 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
2166 than 201103L, whichever is relevant for the language being compiled.
2167
2168 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
2169 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
2170 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
2171 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
2172 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
2173
2174 * libio/iovsscanf.c
2175 * libio/fwscanf.c
2176 * libio/iovswscanf.c
2177 * libio/swscanf.c
2178 * libio/vscanf.c
2179 * libio/vwscanf.c
2180 * libio/wscanf.c
2181 * stdio-common/fscanf.c
2182 * stdio-common/scanf.c
2183 * stdio-common/vfscanf.c
2184 * stdio-common/vfwscanf.c
2185 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
2186 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
2187 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
2188 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
2189 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
2190 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
2191 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
2192 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
2193 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
2194 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
2195 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
2196 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
2197 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
2198 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
2199 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
2200
2201 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
2202 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
2203 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
2204 not sscanf.
2205 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
2206 with a preprocessor macro.
2207
2208 * stdio-common/bug21.c, stdio-common/scanf14.c:
2209 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
2210 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2211 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
2212 to xscanf, xfscanf, xsscanf.
2213
2214 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
2215 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2216 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
2217 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
2218 xfscanf, xsscanf.
2219 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
2220 override feature selection macros or provide definitions of u_char etc.
2221 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
2222 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
2223 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
2224 with -std=gnu89.
2225
2226 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2227
2228 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2229 bits/termios-misc.h.
2230 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
2231 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2232 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2233 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2234 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
2235 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
2236
2237 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
2238 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2239 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
2240 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
2241 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
2242 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
2243 termios-misc.h.
2244 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
2245 (sysdep_headers): Add termios-misc.h.
2246
2247 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
2248 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2249 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2250
2251 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2252 termios-tcflow.h.
2253 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
2254 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
2255 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
2256 TCSAFLUSH): Move to termios-tcflow.h.
2257 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2258 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2259 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2260 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2261
2262 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2263 termios-c_lflag.h.
2264 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
2265 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
2266 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
2267 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
2268 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
2269 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
2270 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
2271 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
2272 Likewise.
2273 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2274 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2275 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2276 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2277
2278 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2279 termios-c_cflag.h.
2280 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
2281 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
2282 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
2283 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
2284 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
2285 termios-c_cflag.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 [BZ #23783]
2292 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2293 termios-baud.h.
2294 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
2295 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
2296 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
2297 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
2298 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
2299 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
2300 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
2301 __MAX_BAUD): Move to termios-baud.h.
2302 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
2303 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
2304 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2305 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2306 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2307
2308 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
2309 termios-c_oflag.h.
2310 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
2311 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
2312 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
2313 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
2314 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
2315 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
2316 termios-c_oflag.h.
2317 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
2318 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
2319 FFR1): Likewise.
2320 [USE_MISC] (XTABS): Likewise.
2321 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2322 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2323 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2324 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
2325
2326 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2327 termios-c_iflag.h.
2328 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
2329 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
2330 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
2331 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
2332 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
2333 IUTF8): Move to termios-c_iflag.h.
2334 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2335 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2336 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2337 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2338
2339 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2340 termios-cc.h.
2341 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
2342 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
2343 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
2344 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
2345 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
2346 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
2347 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
2348 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
2349 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2350 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2351 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2352 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2353
2354 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
2355 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
2356 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
2357 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
2358 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2359 termios-struct.h.
2360 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
2361 termios-struct.h.
2362 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
2363 Likewise.
2364 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
2365 Likewise.
2366 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
2367 Likewise.
2368 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
2369 Likewise.
2370 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
2371 _HAVE_C_OSPEED): Define.
2372 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
2373 _HAVE_C_OSPEED): Likewise.
2374 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
2375 _HAVE_C_OSPEED): Likewise.
2376 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
2377 (cfsetospeed): Check for define value instead of existence.
2378 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
2379 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2380 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
2381 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2382 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
2383
2384 [BZ #17783]
2385 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
2386 Define.
2387 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2388 (TIOCSER_TEMT): Likewise.
2389 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
2390 (TEOCSER_TEMT): Likewise.
2391
2392 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
2393
2394 [BZ #24011]
2395 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
2396
2397 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2398
2399 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
2400
2401 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
2402
2403 * sysdeps/htl/pt-barrierattr-setpshared.c
2404 (pthread_barrierattr_setpshared): Add stub warning.
2405 * sysdeps/htl/pt-condattr-setpshared.c
2406 (pthread_condattr_setpshared): Likewise.
2407 * sysdeps/htl/pt-mutexattr-setpshared.c
2408 (pthread_mutexattr_setpshared): Likewise.
2409 * sysdeps/htl/pt-rwlockattr-setpshared.c
2410 (pthread_rwlockattr_setpshared): Likewise.
2411 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
2412 (pthread_mutexattr_setpshared): Likewise.
2413
2414 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2415
2416 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
2417 constants to match with Linux 4.20.
2418
2419 * sysdeps/mips/mips32/libm-test-ulps: Update.
2420 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
2421
2422 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
2423
2424 [BZ #24034]
2425 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
2426 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
2427 than __typeof (...) for the a_ptr variable.
2428
2429 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2430
2431 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
2432 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
2433 * libio/Makefile (tests): Add tst-sprintf-ub and
2434 tst-sprintf-chk-ub.
2435 (CFLAGS-tst-sprintf-ub.c): New variable.
2436 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
2437 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
2438 destination buffer and check for overflows in fortified mode.
2439 * libio/libioP.h (PRINTF_CHK): New macro.
2440 * libio/tst-sprintf-chk-ub.c: New file.
2441 * libio/tst-sprintf-ub.c: Likewise.
2442
2443 2019-01-02 Florian Weimer <fweimer@redhat.com>
2444
2445 [BZ #24018]
2446 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
2447 failure.
2448
2449 2019-01-02 Florian Weimer <fweimer@redhat.com>
2450
2451 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
2452
2453 2019-01-01 Joseph Myers <joseph@codesourcery.com>
2454
2455 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
2456 macro.
2457
2458 * sysdeps/unix/sysv/linux/netpacket/packet.h
2459 (PACKET_IGNORE_OUTGOING): New macro.
2460
2461 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
2462 macro.
2463
2464 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2465 version to 4.20.
2466 (riscv_flush_icache): New syscall.
2467
2468 * manual/texinfo.tex: Update to version 2018-12-28.17 with
2469 trailing whitespace removed.
2470 * scripts/config.guess: Update to version 2019-01-01.
2471 * scripts/config.sub: Update to version 2019-01-01.
2472 * scripts/move-if-change: Update from gnulib.
2473
2474 * NEWS: Update copyright dates.
2475 * catgets/gencat.c (print_version): Likewise.
2476 * csu/version.c (banner): Likewise.
2477 * debug/catchsegv.sh: Likewise.
2478 * debug/pcprofiledump.c (print_version): Likewise.
2479 * debug/xtrace.sh (do_version): Likewise.
2480 * elf/ldconfig.c (print_version): Likewise.
2481 * elf/ldd.bash.in: Likewise.
2482 * elf/pldd.c (print_version): Likewise.
2483 * elf/sotruss.sh: Likewise.
2484 * elf/sprof.c (print_version): Likewise.
2485 * iconv/iconv_prog.c (print_version): Likewise.
2486 * iconv/iconvconfig.c (print_version): Likewise.
2487 * locale/programs/locale.c (print_version): Likewise.
2488 * locale/programs/localedef.c (print_version): Likewise.
2489 * login/programs/pt_chown.c (print_version): Likewise.
2490 * malloc/memusage.sh (do_version): Likewise.
2491 * malloc/memusagestat.c (print_version): Likewise.
2492 * malloc/mtrace.pl: Likewise.
2493 * manual/libc.texinfo: Likewise.
2494 * nptl/version.c (banner): Likewise.
2495 * nscd/nscd.c (print_version): Likewise.
2496 * nss/getent.c (print_version): Likewise.
2497 * nss/makedb.c (print_version): Likewise.
2498 * posix/getconf.c (main): Likewise.
2499 * scripts/test-installation.pl: Likewise.
2500 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2501
2502 * All files with FSF copyright notices: Update copyright dates
2503 using scripts/update-copyrights.
2504 * locale/programs/charmap-kw.h: Regenerated.
2505 * locale/programs/locfile-kw.h: Likewise.
2506
2507 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2508
2509 * timezone/zdump.c: Update from tzcode 2018i.
2510 * timezone/zic.c: Likewise.
2511
2512 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
2513
2514 regex: improve Gnulib port to AIX
2515 From the glibc point of view, this removes duplicate macro
2516 definitions and is obviously safe.
2517 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
2518 * posix/regex_internal.h:
2519 (__attribute__, __attribute_warn_unused_result__):
2520 Remove; already defined elsewhere.
2521
2522 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
2523
2524 [BZ #24027]
2525 * malloc/malloc.c (_int_realloc): Always call memcpy for the
2526 copying operation. (ncopies had the wrong type, resulting in an
2527 integer wraparound and too few elements being copied.)
2528
2529 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
2530
2531 [BZ #24022]
2532 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
2533 <asm/syscalls.h> exists with __has_include__ before including it.
2534
2535 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2536
2537 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2538 version to 4.20.
2539
2540 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
2541
2542 * hurd/lookup-retry: Include <unistd.h>.
2543 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
2544 Release it on return. Handle "pid" magical lookup retry.
2545
2546 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2547
2548 [BZ #10496]
2549 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
2550 (t_fmt_ampm): Likewise.
2551 * localedata/locales/aa_ER (t_fmt): Likewise.
2552 (t_fmt_ampm): Likewise.
2553 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
2554 (t_fmt_ampm): Likewise.
2555 * localedata/locales/aa_ET (t_fmt): Likewise.
2556 (t_fmt_ampm): Likewise.
2557 * localedata/locales/am_ET (t_fmt): Likewise.
2558 (t_fmt_ampm): Likewise.
2559 * localedata/locales/byn_ER (t_fmt): Likewise.
2560 (t_fmt_ampm): Likewise.
2561 * localedata/locales/om_ET (t_fmt): Likewise.
2562 (t_fmt_ampm): Likewise.
2563 * localedata/locales/sid_ET (t_fmt): Likewise.
2564 (t_fmt_ampm): Likewise.
2565 * localedata/locales/so_DJ (t_fmt): Likewise.
2566 (t_fmt_ampm): Likewise.
2567 * localedata/locales/so_ET (t_fmt): Likewise.
2568 (t_fmt_ampm): Likewise.
2569 * localedata/locales/so_SO (t_fmt): Likewise.
2570 (t_fmt_ampm): Likewise.
2571 * localedata/locales/ti_ER (t_fmt): Likewise.
2572 (t_fmt_ampm): Likewise.
2573 * localedata/locales/ti_ET (t_fmt): Likewise.
2574 (t_fmt_ampm): Likewise.
2575 * localedata/locales/tig_ER (t_fmt): Likewise.
2576 (t_fmt_ampm): Likewise.
2577 * localedata/locales/wal_ET (t_fmt): Likewise.
2578 (t_fmt_ampm): Likewise.
2579
2580 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
2581 * localedata/locales/ar_IN (t_fmt): Likewise.
2582 * localedata/locales/bhb_IN (t_fmt): Likewise.
2583 * localedata/locales/bho_IN (t_fmt): Likewise.
2584 * localedata/locales/bi_VU (t_fmt): Likewise.
2585 * localedata/locales/bn_BD (t_fmt): Likewise.
2586 * localedata/locales/bn_IN (t_fmt): Likewise.
2587 * localedata/locales/brx_IN (t_fmt): Likewise.
2588 * localedata/locales/doi_IN (t_fmt): Likewise.
2589 * localedata/locales/en_HK (t_fmt): Likewise.
2590 (t_fmt_ampm): Likewise.
2591 * localedata/locales/en_IN (t_fmt): Likewise.
2592 * localedata/locales/en_PH (t_fmt): Likewise.
2593 * localedata/locales/gu_IN (t_fmt): Likewise.
2594 * localedata/locales/hi_IN (t_fmt): Likewise.
2595 * localedata/locales/hif_FJ (t_fmt): Likewise.
2596 * localedata/locales/hne_IN (t_fmt): Likewise.
2597 * localedata/locales/kn_IN (t_fmt): Likewise.
2598 * localedata/locales/kok_IN (t_fmt): Likewise.
2599 * localedata/locales/ks_IN (t_fmt): Likewise.
2600 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
2601 * localedata/locales/mag_IN (t_fmt): Likewise.
2602 * localedata/locales/mai_IN (t_fmt): Likewise.
2603 * localedata/locales/mjw_IN (t_fmt): Likewise.
2604 * localedata/locales/ml_IN (t_fmt): Likewise.
2605 * localedata/locales/mni_IN (t_fmt): Likewise.
2606 * localedata/locales/mr_IN (t_fmt): Likewise.
2607 * localedata/locales/ms_MY (t_fmt): Likewise.
2608 * localedata/locales/pa_IN (t_fmt): Likewise.
2609 * localedata/locales/raj_IN (t_fmt): Likewise.
2610 * localedata/locales/sa_IN (t_fmt): Likewise.
2611 * localedata/locales/sat_IN (t_fmt): Likewise.
2612 * localedata/locales/sd_IN (t_fmt): Likewise.
2613 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
2614 * localedata/locales/tcy_IN (t_fmt): Likewise.
2615 * localedata/locales/the_NP (t_fmt): Likewise.
2616 * localedata/locales/to_TO (t_fmt): Likewise.
2617 * localedata/locales/ur_IN (t_fmt): Likewise.
2618
2619 * localedata/locales/hif_FJ (d_t_fmt): Set to
2620 "%A %d %b %Y %I:%M:%S %p".
2621 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
2622
2623 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
2624 * localedata/locales/ar_BH (t_fmt): Likewise.
2625 * localedata/locales/ar_DZ (t_fmt): Likewise.
2626 * localedata/locales/ar_EG (t_fmt): Likewise.
2627 * localedata/locales/ar_IQ (t_fmt): Likewise.
2628 * localedata/locales/ar_JO (t_fmt): Likewise.
2629 * localedata/locales/ar_KW (t_fmt): Likewise.
2630 * localedata/locales/ar_LB (t_fmt): Likewise.
2631 * localedata/locales/ar_LY (t_fmt): Likewise.
2632 * localedata/locales/ar_OM (t_fmt): Likewise.
2633 * localedata/locales/ar_QA (t_fmt): Likewise.
2634 * localedata/locales/ar_SD (t_fmt): Likewise.
2635 * localedata/locales/ar_SS (t_fmt): Likewise.
2636 * localedata/locales/ar_SY (t_fmt): Likewise.
2637 * localedata/locales/ar_TN (t_fmt): Likewise.
2638 * localedata/locales/ar_YE (t_fmt): Likewise.
2639
2640 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
2641 (t_fmt_ampm): Likewise.
2642 * localedata/locales/gez_ET (t_fmt): Likewise.
2643 (t_fmt_ampm): Likewise.
2644
2645 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
2646 (t_fmt_ampm): Likewise.
2647 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
2648
2649 * localedata/locales/zh_HK (t_fmt):
2650 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
2651
2652 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
2653 because this locale does not use the 12-hour clock.
2654 (t_fmt): Set to "%Z %H:%M:%S".
2655 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
2656
2657 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
2658 because this locale does not use the 12-hour clock.
2659 (t_fmt): Set to "%H:%M:%S %Z".
2660 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
2661
2662 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
2663 because this locale does not use the 12-hour clock.
2664 (t_fmt): Set to "%T".
2665 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
2666 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
2667
2668 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
2669 because this locale does not use the 12-hour clock.
2670 (t_fmt): Set to "%H:%M:%S %Z".
2671 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
2672
2673 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
2674 because this locale does not use the 12-hour clock.
2675 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
2676 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
2677
2678 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2679
2680 [BZ #10496]
2681 [BZ #23724]
2682 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
2683 (t_fmt_ampm): Likewise.
2684 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
2685 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
2686 (d_fmt): Set to "%-d.%-m.%y".
2687
2688 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2689
2690 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
2691 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
2692 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
2693 Likewise.
2694 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
2695 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
2696 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
2697 function.
2698 * support/blob_repeat.c (check_mul_overflow_size_t,
2699 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
2700
2701 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
2702
2703 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
2704
2705 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
2706
2707 regex: simplify Gnulib port
2708 This simplifies the code, by removing stuff intended for porting
2709 to Gnulib but no longer needed there.
2710 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
2711 uses of libc_hidden_def, weak_alias.
2712 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
2713 _Restrict_ except for public-facing headers.
2714 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
2715 Remove; already defined elsewhere.
2716 * posix/regex.c, posix/regex_internal.h:
2717 Use __GNUC_PREREQ instead of rolling our own.
2718 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
2719
2720 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
2721
2722 * benchtests/bench-strlen.c (generic_strlen): New function.
2723 (memchr_strlen): New function.
2724
2725 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2726
2727 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
2728 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
2729 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
2730
2731 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2732
2733 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
2734
2735 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2736
2737 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
2738 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
2739 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
2740 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
2741 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
2742 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
2743 <sysdeps/ieee754/flt-32/s_sincosf.c>.
2744
2745 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2746
2747 [BZ #24023]
2748 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
2749 PLT reference in libc.so.
2750 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
2751 _Q_lltoq and _Q_qtod PLT references in libc.so.
2752
2753 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
2754
2755 * benchtests/bench-memchr.c: Cleanup defines.
2756 * benchtests/bench-memcmp.c: Likewise.
2757 * benchtests/bench-memset.c: Likewise.
2758 * benchtests/bench-memset-large.c: Likewise.
2759 * benchtests/bench-memset-walk.c: Likewise.
2760 * benchtests/bench-stpcpy.c: Likewise.
2761 * benchtests/bench-stpncpy.c: Likewise.
2762 * benchtests/bench-strcat.c: Likewise.
2763 * benchtests/bench-strchr.c: Likewise.
2764 * benchtests/bench-strcmp.c: Likewise.
2765 * benchtests/bench-strcpy.c: Likewise.
2766 * benchtests/bench-strcspn.c: Likewise.
2767 * benchtests/bench-string.h: Likewise.
2768 * benchtests/bench-strlen.c: Likewise.
2769 * benchtests/bench-strncat.c: Likewise.
2770 * benchtests/bench-strncmp.c: Likewise.
2771 * benchtests/bench-strncpy.c: Likewise.
2772 * benchtests/bench-strnlen.c: Likewise.
2773 * benchtests/bench-strpbrk.c: Likewise.
2774 * benchtests/bench-strrchr.c: Likewise.
2775 * benchtests/bench-strspn.c: Likewise.
2776
2777 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2778
2779 * stdlib/longlong.h: Update from GCC.
2780
2781 [BZ #23993]
2782 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
2783 * configure: Regenerated.
2784 * manual/install.texi (Tools for Compilation): Update minimum GCC
2785 version.
2786 * INSTALL: Regenerated.
2787
2788 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
2789
2790 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
2791
2792 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
2793
2794 * malloc/malloc.c (mremap_chunk): Additional checks.
2795
2796 2018-12-21 Mao Han <han_mao@c-sky.com>
2797
2798 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
2799 * scripts/build-many-glibcs.py: Add C-SKY targets.
2800 * sysdeps/csky/Implies: New file.
2801 * sysdeps/csky/Makefile: Likewise.
2802 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
2803 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
2804 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
2805 * sysdeps/csky/abiv2/memcmp.S: Likewise.
2806 * sysdeps/csky/abiv2/memcpy.S: Likewise.
2807 * sysdeps/csky/abiv2/memmove.S: Likewise.
2808 * sysdeps/csky/abiv2/memset.S: Likewise.
2809 * sysdeps/csky/abiv2/setjmp.S: Likewise.
2810 * sysdeps/csky/abiv2/start.S: Likewise.
2811 * sysdeps/csky/abiv2/strcmp.S: Likewise.
2812 * sysdeps/csky/abiv2/strcpy.S: Likewise.
2813 * sysdeps/csky/abiv2/strlen.S: Likewise.
2814 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
2815 * sysdeps/csky/abort-instr.h: Likewise.
2816 * sysdeps/csky/atomic-machine.h: Likewise.
2817 * sysdeps/csky/bits/endian.h: Likewise.
2818 * sysdeps/csky/bits/fenv.h: Likewise.
2819 * sysdeps/csky/bits/link.h: Likewise.
2820 * sysdeps/csky/bits/setjmp.h: Likewise.
2821 * sysdeps/csky/bsd-_setjmp.S: Likewise.
2822 * sysdeps/csky/bsd-setjmp.S: Likewise.
2823 * sysdeps/csky/configure: Likewise.
2824 * sysdeps/csky/configure.ac: Likewise.
2825 * sysdeps/csky/dl-machine.h: Likewise.
2826 * sysdeps/csky/dl-procinfo.c: Likewise.
2827 * sysdeps/csky/dl-procinfo.h: Likewise.
2828 * sysdeps/csky/dl-sysdep.h: Likewise.
2829 * sysdeps/csky/dl-tls.h: Likewise.
2830 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
2831 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
2832 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
2833 * sysdeps/csky/fpu/fegetenv.c: Likewise.
2834 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
2835 * sysdeps/csky/fpu/fegetmode.c: Likewise.
2836 * sysdeps/csky/fpu/fegetround.c: Likewise.
2837 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
2838 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
2839 * sysdeps/csky/fpu/fenv_private.h: Likewise.
2840 * sysdeps/csky/fpu/fesetenv.c: Likewise.
2841 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
2842 * sysdeps/csky/fpu/fesetmode.c: Likewise.
2843 * sysdeps/csky/fpu/fesetround.c: Likewise.
2844 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
2845 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
2846 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
2847 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
2848 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
2849 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
2850 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
2851 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
2852 * sysdeps/csky/fpu_control.h: Likewise.
2853 * sysdeps/csky/gccframe.h: Likewise.
2854 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
2855 * sysdeps/csky/ldsodefs.h: Likewise.
2856 * sysdeps/csky/libc-tls.c: Likewise.
2857 * sysdeps/csky/linkmap.h: Likewise.
2858 * sysdeps/csky/machine-gmon.h: Likewise.
2859 * sysdeps/csky/memusage.h: Likewise.
2860 * sysdeps/csky/nofpu/Implies: Likewise.
2861 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
2862 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
2863 * sysdeps/csky/nptl/Makefile: Likewise.
2864 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
2865 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
2866 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
2867 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
2868 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
2869 * sysdeps/csky/nptl/tls.h: Likewise.
2870 * sysdeps/csky/preconfigure: Likewise.
2871 * sysdeps/csky/sfp-machine.h: Likewise.
2872 * sysdeps/csky/sotruss-lib.c: Likewise.
2873 * sysdeps/csky/stackinfo.h: Likewise.
2874 * sysdeps/csky/sysdep.h: Likewise.
2875 * sysdeps/csky/tininess.h: Likewise.
2876 * sysdeps/csky/tst-audit.h: Likewise.
2877 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
2878 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
2879 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
2880 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
2881 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2882 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
2883 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2884 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
2885 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
2886 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
2887 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
2888 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
2889 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
2890 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
2891 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
2892 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
2893 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
2894 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
2895 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
2896 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
2897 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
2898 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
2899 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
2900 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
2901 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
2902 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
2903 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
2904 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
2905 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
2906 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
2907 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
2908 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
2909 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
2910 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
2911 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
2912 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2913 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
2914 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
2915 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
2916 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
2917 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
2918 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
2919 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
2920 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
2921
2922 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2923
2924 * include/time.h (__difftime64): Add.
2925 * time/difftime.c (subtract): convert to 64-bit time.
2926 * time/difftime.c (__difftime64): Add.
2927 * time/difftime.c (__difftime): Wrap around __difftime64.
2928
2929 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2930
2931 * manual/examples/add.c: Remove redundant "if not".
2932 * manual/examples/argp-ex1.c: Likewise.
2933 * manual/examples/argp-ex2.c: Likewise.
2934 * manual/examples/argp-ex3.c: Likewise.
2935 * manual/examples/argp-ex4.c: Likewise.
2936 * manual/examples/atexit.c: Likewise.
2937 * manual/examples/db.c: Likewise.
2938 * manual/examples/dir.c: Likewise.
2939 * manual/examples/dir2.c: Likewise.
2940 * manual/examples/execinfo.c: Likewise.
2941 * manual/examples/filecli.c: Likewise.
2942 * manual/examples/filesrv.c: Likewise.
2943 * manual/examples/fmtmsgexpl.c: Likewise.
2944 * manual/examples/genpass.c: Likewise.
2945 * manual/examples/inetcli.c: Likewise.
2946 * manual/examples/inetsrv.c: Likewise.
2947 * manual/examples/isockad.c: Likewise.
2948 * manual/examples/longopt.c: Likewise.
2949 * manual/examples/memopen.c: Likewise.
2950 * manual/examples/memstrm.c: Likewise.
2951 * manual/examples/mkdirent.c: Likewise.
2952 * manual/examples/mkfsock.c: Likewise.
2953 * manual/examples/mkisock.c: Likewise.
2954 * manual/examples/mygetpass.c: Likewise.
2955 * manual/examples/pipe.c: Likewise.
2956 * manual/examples/popen.c: Likewise.
2957 * manual/examples/rprintf.c: Likewise.
2958 * manual/examples/search.c: Likewise.
2959 * manual/examples/select.c: Likewise.
2960 * manual/examples/setjmp.c: Likewise.
2961 * manual/examples/sigh1.c: Likewise.
2962 * manual/examples/sigusr.c: Likewise.
2963 * manual/examples/stpcpy.c: Likewise.
2964 * manual/examples/strdupa.c: Likewise.
2965 * manual/examples/strftim.c: Likewise.
2966 * manual/examples/subopt.c: Likewise.
2967 * manual/examples/swapcontext.c: Likewise.
2968 * manual/examples/termios.c: Likewise.
2969 * manual/examples/testopt.c: Likewise.
2970 * manual/examples/testpass.c: Likewise.
2971 * manual/examples/timeval_subtract.c: Likewise.
2972
2973 2018-12-19 Joseph Myers <joseph@codesourcery.com>
2974
2975 * sysdeps/x86/fpu/math_private.h: New file.
2976 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
2977
2978 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
2979 definition.
2980 (cosh): Likewise.
2981 (tanh): Likewise.
2982
2983 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2984
2985 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
2986 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
2987 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
2988 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
2989 fields.
2990 (_dl_show_auxv): Give a special treatment to
2991 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
2992 and AT_L3_CACHEGEOMETRY.
2993 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
2994 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
2995 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
2996 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
2997
2998 2018-12-19 Andreas Schwab <schwab@suse.de>
2999
3000 * nscd/connections.c (check_use): Don't abort on invalid len.
3001
3002 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
3003
3004 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
3005 values in the 64bit value cases.
3006
3007 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
3008
3009 * include/time.h
3010 (__ctime64_r): Add.
3011 * time/ctime_r.c
3012 (__ctime64_r): Add.
3013 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
3014
3015 * include/time.h
3016 (__ctime64): Add.
3017 * time/gmtime.c
3018 (__ctime64): Add.
3019 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
3020
3021 * include/time.h
3022 (__gmtime64_r): Add.
3023 * time/gmtime.c
3024 (__gmtime64_r): Add.
3025 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
3026
3027 * include/time.h
3028 (__gmtime64): Add.
3029 * time/gmtime.c
3030 (__gmtime64): Add.
3031 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
3032
3033 * include/time.h
3034 (__localtime64_r): Add.
3035 * time/localtime.c
3036 (__localtime64_r): Add.
3037 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
3038
3039 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3040
3041 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
3042 kernel_sigction definition.
3043
3044 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
3045
3046 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
3047
3048 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
3049 __syscall_rt_sigaction.
3050 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
3051 (kernel_sigaction): Use Linux generic defintion.
3052 (STUB): Define.
3053 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
3054 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
3055 (__syscall_rt_sigaction): Remove implementation.
3056 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
3057 hidden.
3058 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
3059 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
3060 INTERNAL_SYSCALL): Remove definitions.
3061 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
3062 action and signal set size.
3063 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
3064 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
3065
3066 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3067 James Clarke <jrtc27@jrtc27.com>
3068
3069 [BZ #23967]
3070 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
3071 Define if SA_RESTORER is defined.
3072 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
3073 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
3074 already defined.
3075 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
3076 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
3077 definitions.
3078 (HAS_SA_RESTORER): Define.
3079 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
3080 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
3081 (HAS_SA_RESTORER): Define.
3082 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
3083 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
3084 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
3085 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
3086 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
3087
3088 2018-12-18 Joseph Myers <joseph@codesourcery.com>
3089
3090 * sysdeps/unix/sysv/linux/kernel-features.h
3091 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
3092 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3093 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
3094 * sysdeps/unix/sysv/linux/sh/kernel-features.h
3095 (__ASSUME_ST_INO_64_BIT): Likewise.
3096 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
3097 <kernel-features.h>.
3098 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3099 Remove conditional code.
3100 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
3101 <kernel-features.h>.
3102 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3103 Remove conditional code.
3104 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
3105 <kernel-features.h>.
3106 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3107 Remove conditional code.
3108 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
3109 <kernel-features.h>.
3110 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
3111 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
3112
3113 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3114
3115 * sysdeps/s390/multiarch/ifunc-resolve.h
3116 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
3117 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
3118 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
3119 Delete macro definition.
3120 (s390_libc_ifunc_init): Rename to
3121 s390_libc_ifunc_expr_stfle_init.
3122 * sysdeps/s390/bzero: Use
3123 s390_libc_ifunc_expr_stfle_init instead of
3124 s390_libc_ifunc_init.
3125 * sysdeps/s390/memcmp.c: Likewise.
3126 * sysdeps/s390/memcpy.c: Likewise.
3127 * sysdeps/s390/mempcpy.c: Likewise.
3128 * sysdeps/s390/memset.c: Likewise.
3129
3130 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3131
3132 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
3133 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
3134
3135 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3136
3137 * sysdeps/s390/multiarch/Makefile
3138 (sysdep_routines): Remove wmemcmp variants.
3139 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
3140 * sysdeps/s390/multiarch/ifunc-impl-list.c
3141 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
3142 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
3143 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
3144 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
3145 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
3146 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
3147 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
3148 * sysdeps/s390/ifunc-wmemcmp.h: New file.
3149
3150 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3151
3152 * sysdeps/s390/multiarch/Makefile
3153 (sysdep_routines): Remove wmemset variants.
3154 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
3155 * sysdeps/s390/multiarch/ifunc-impl-list.c
3156 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
3157 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
3158 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
3159 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
3160 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
3161 * sysdeps/s390/multiarch/wmemset.c: Move to ...
3162 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
3163 * sysdeps/s390/ifunc-wmemset.h: New file.
3164
3165 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3166
3167 * sysdeps/s390/multiarch/Makefile
3168 (sysdep_routines): Remove wmemchr variants.
3169 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
3170 * sysdeps/s390/multiarch/ifunc-impl-list.c
3171 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
3172 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
3173 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
3174 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
3175 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
3176 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
3177 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
3178 * sysdeps/s390/ifunc-wmemchr.h: New file.
3179
3180 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3181
3182 * sysdeps/s390/multiarch/Makefile
3183 (sysdep_routines): Remove wcscspn variants.
3184 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
3185 * sysdeps/s390/multiarch/ifunc-impl-list.c
3186 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
3187 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
3188 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
3189 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
3190 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
3191 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
3192 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
3193 * sysdeps/s390/ifunc-wcscspn.h: New file.
3194
3195 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3196
3197 * sysdeps/s390/multiarch/Makefile
3198 (sysdep_routines): Remove wcspbrk variants.
3199 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
3200 * sysdeps/s390/multiarch/ifunc-impl-list.c
3201 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
3202 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
3203 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
3204 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
3205 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
3206 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
3207 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
3208 * sysdeps/s390/ifunc-wcspbrk.h: New file.
3209
3210 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3211
3212 * sysdeps/s390/multiarch/Makefile
3213 (sysdep_routines): Remove wcsspn variants.
3214 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
3215 * sysdeps/s390/multiarch/ifunc-impl-list.c
3216 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
3217 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
3218 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
3219 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
3220 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
3221 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
3222 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
3223 * sysdeps/s390/ifunc-wcsspn.h: New file.
3224
3225 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3226
3227 * sysdeps/s390/multiarch/Makefile
3228 (sysdep_routines): Remove wcsrchr variants.
3229 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
3230 * sysdeps/s390/multiarch/ifunc-impl-list.c
3231 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
3232 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
3233 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
3234 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
3235 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
3236 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
3237 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
3238 * sysdeps/s390/ifunc-wcsrchr.h: New file.
3239
3240 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3241
3242 * sysdeps/s390/multiarch/Makefile
3243 (sysdep_routines): Remove wcschrnul variants.
3244 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
3245 * sysdeps/s390/multiarch/ifunc-impl-list.c
3246 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
3247 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
3248 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
3249 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
3250 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
3251 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
3252 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
3253 * sysdeps/s390/ifunc-wcschrnul.h: New file.
3254
3255 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3256
3257 * sysdeps/s390/multiarch/Makefile
3258 (sysdep_routines): Remove wcschr variants.
3259 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
3260 * sysdeps/s390/multiarch/ifunc-impl-list.c
3261 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
3262 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
3263 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
3264 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
3265 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
3266 * sysdeps/s390/multiarch/wcschr.c: Move to ...
3267 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
3268 * sysdeps/s390/ifunc-wcschr.h: New file.
3269
3270 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3271
3272 * sysdeps/s390/multiarch/Makefile
3273 (sysdep_routines): Remove wcsncmp variants.
3274 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
3275 * sysdeps/s390/multiarch/ifunc-impl-list.c
3276 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
3277 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
3278 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
3279 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
3280 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
3281 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
3282 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
3283 * sysdeps/s390/ifunc-wcsncmp.h: New file.
3284
3285 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3286
3287 * sysdeps/s390/multiarch/Makefile
3288 (sysdep_routines): Remove wcscmp variants.
3289 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
3290 * sysdeps/s390/multiarch/ifunc-impl-list.c
3291 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
3292 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
3293 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
3294 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
3295 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
3296 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
3297 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
3298 * sysdeps/s390/ifunc-wcscmp.h: New file.
3299
3300 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3301
3302 * sysdeps/s390/multiarch/Makefile
3303 (sysdep_routines): Remove wcsncat variants.
3304 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
3305 * sysdeps/s390/multiarch/ifunc-impl-list.c
3306 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
3307 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
3308 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
3309 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
3310 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
3311 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
3312 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
3313 * sysdeps/s390/ifunc-wcsncat.h: New file.
3314
3315 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3316
3317 * sysdeps/s390/multiarch/Makefile
3318 (sysdep_routines): Remove wcscat variants.
3319 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
3320 * sysdeps/s390/multiarch/ifunc-impl-list.c
3321 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
3322 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
3323 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
3324 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
3325 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
3326 * sysdeps/s390/multiarch/wcscat.c: Move to ...
3327 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
3328 * sysdeps/s390/ifunc-wcscat.h: New file.
3329
3330 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3331
3332 * sysdeps/s390/multiarch/Makefile
3333 (sysdep_routines): Remove wcpncpy variants.
3334 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
3335 * sysdeps/s390/multiarch/ifunc-impl-list.c
3336 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
3337 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
3338 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
3339 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
3340 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
3341 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
3342 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
3343 * sysdeps/s390/ifunc-wcpncpy.h: New file.
3344
3345 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3346
3347 * sysdeps/s390/multiarch/Makefile
3348 (sysdep_routines): Remove wcsncpy variants.
3349 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
3350 * sysdeps/s390/multiarch/ifunc-impl-list.c
3351 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
3352 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
3353 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
3354 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
3355 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
3356 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
3357 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
3358 * sysdeps/s390/ifunc-wcsncpy.h: New file.
3359
3360 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3361
3362 * sysdeps/s390/multiarch/Makefile
3363 (sysdep_routines): Remove wcpcpy variants.
3364 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
3365 * sysdeps/s390/multiarch/ifunc-impl-list.c
3366 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
3367 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
3368 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
3369 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
3370 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
3371 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
3372 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
3373 * sysdeps/s390/ifunc-wcpcpy.h: New file.
3374
3375 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3376
3377 * sysdeps/s390/multiarch/Makefile
3378 (sysdep_routines): Remove wcscpy variants.
3379 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
3380 * sysdeps/s390/multiarch/ifunc-impl-list.c
3381 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
3382 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
3383 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
3384 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
3385 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
3386 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
3387 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
3388 * sysdeps/s390/ifunc-wcscpy.h: New file.
3389
3390 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3391
3392 * sysdeps/s390/multiarch/Makefile
3393 (sysdep_routines): Remove wcsnlen variants.
3394 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
3395 * sysdeps/s390/multiarch/ifunc-impl-list.c
3396 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
3397 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
3398 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
3399 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
3400 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
3401 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
3402 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
3403 * sysdeps/s390/ifunc-wcsnlen.h: New file.
3404
3405 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3406
3407 * sysdeps/s390/multiarch/Makefile
3408 (sysdep_routines): Remove wcslen variants.
3409 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
3410 * sysdeps/s390/multiarch/ifunc-impl-list.c
3411 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
3412 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
3413 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
3414 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
3415 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
3416 * sysdeps/s390/multiarch/wcslen.c: Move to ...
3417 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
3418 * sysdeps/s390/ifunc-wcslen.h: New file.
3419
3420 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3421
3422 * sysdeps/s390/multiarch/Makefile
3423 (sysdep_routines): Remove memrchr variants.
3424 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
3425 * sysdeps/s390/multiarch/ifunc-impl-list.c
3426 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
3427 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
3428 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
3429 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
3430 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
3431 * sysdeps/s390/multiarch/memrchr.c: Move to ...
3432 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
3433 * sysdeps/s390/ifunc-memrchr.h: New file.
3434
3435 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3436
3437 * sysdeps/s390/multiarch/Makefile
3438 (sysdep_routines): Remove memccpy variants.
3439 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
3440 * sysdeps/s390/multiarch/ifunc-impl-list.c
3441 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
3442 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
3443 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
3444 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
3445 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
3446 * sysdeps/s390/multiarch/memccpy.c: Move to ...
3447 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
3448 * sysdeps/s390/ifunc-memccpy.h: New file.
3449
3450 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3451
3452 * sysdeps/s390/multiarch/Makefile
3453 (sysdep_routines): Remove rawmemchr variants.
3454 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
3455 * sysdeps/s390/multiarch/ifunc-impl-list.c
3456 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
3457 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
3458 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
3459 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
3460 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
3461 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
3462 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
3463 * sysdeps/s390/ifunc-rawmemchr.h: New file.
3464
3465 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3466
3467 * sysdeps/s390/multiarch/Makefile
3468 (sysdep_routines): Remove memchr variants.
3469 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
3470 * sysdeps/s390/multiarch/ifunc-impl-list.c
3471 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
3472 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
3473 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
3474 * sysdeps/s390/multiarch/memchr.c: Move to ...
3475 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
3476 * sysdeps/s390/ifunc-memchr.h: New file.
3477 * sysdeps/s390/s390-64/memchr.S: Move to ...
3478 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
3479 for 31/64bit and ifunc handling.
3480 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
3481 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
3482 * sysdeps/s390/s390-32/memchr.S: Likewise.
3483
3484 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3485
3486 * sysdeps/s390/multiarch/Makefile
3487 (sysdep_routines): Remove strcspn variants.
3488 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
3489 * sysdeps/s390/multiarch/ifunc-impl-list.c
3490 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
3491 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
3492 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
3493 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
3494 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
3495 * sysdeps/s390/multiarch/strcspn.c: Move to ...
3496 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
3497 * sysdeps/s390/ifunc-strcspn.h: New file.
3498
3499 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3500
3501 * sysdeps/s390/multiarch/Makefile
3502 (sysdep_routines): Remove strpbrk variants.
3503 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
3504 * sysdeps/s390/multiarch/ifunc-impl-list.c
3505 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
3506 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
3507 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
3508 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
3509 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
3510 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
3511 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
3512 * sysdeps/s390/ifunc-strpbrk.h: New file.
3513
3514 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3515
3516 * sysdeps/s390/multiarch/Makefile
3517 (sysdep_routines): Remove strspn variants.
3518 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
3519 * sysdeps/s390/multiarch/ifunc-impl-list.c
3520 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
3521 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
3522 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
3523 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
3524 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
3525 * sysdeps/s390/multiarch/strspn.c: Move to ...
3526 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
3527 * sysdeps/s390/ifunc-strspn.h: New file.
3528
3529 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3530
3531 * sysdeps/s390/multiarch/Makefile
3532 (sysdep_routines): Remove strrchr variants.
3533 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
3534 * sysdeps/s390/multiarch/ifunc-impl-list.c
3535 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
3536 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
3537 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
3538 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
3539 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
3540 * sysdeps/s390/multiarch/strrchr.c: Move to ...
3541 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
3542 * sysdeps/s390/ifunc-strrchr.h: New file.
3543
3544 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3545
3546 * sysdeps/s390/multiarch/Makefile
3547 (sysdep_routines): Remove strchrnul variants.
3548 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
3549 * sysdeps/s390/multiarch/ifunc-impl-list.c
3550 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
3551 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
3552 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
3553 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
3554 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
3555 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
3556 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
3557 * sysdeps/s390/ifunc-strchrnul.h: New file.
3558
3559 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3560
3561 * sysdeps/s390/multiarch/Makefile
3562 (sysdep_routines): Remove strchr variants.
3563 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
3564 * sysdeps/s390/multiarch/ifunc-impl-list.c
3565 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
3566 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
3567 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
3568 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
3569 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
3570 * sysdeps/s390/multiarch/strchr.c: Move to ...
3571 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
3572 * sysdeps/s390/ifunc-strchr.h: New file.
3573
3574 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3575
3576 * sysdeps/s390/multiarch/Makefile
3577 (sysdep_routines): Remove strncmp variants.
3578 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
3579 * sysdeps/s390/multiarch/ifunc-impl-list.c
3580 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
3581 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
3582 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
3583 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
3584 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
3585 * sysdeps/s390/multiarch/strncmp.c: Move to ...
3586 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
3587 * sysdeps/s390/ifunc-strncmp.h: New file.
3588
3589 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3590
3591 * sysdeps/s390/multiarch/Makefile
3592 (sysdep_routines): Remove strcmp variants.
3593 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
3594 * sysdeps/s390/multiarch/ifunc-impl-list.c
3595 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
3596 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
3597 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
3598 * sysdeps/s390/multiarch/strcmp.c: Move to ...
3599 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
3600 * sysdeps/s390/ifunc-strcmp.h: New file.
3601 * sysdeps/s390/s390-64/strcmp.S: Move to ...
3602 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
3603 for 31/64bit and ifunc handling.
3604 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
3605 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
3606 * sysdeps/s390/s390-32/strcmp.S: Likewise.
3607
3608 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3609
3610 * sysdeps/s390/multiarch/Makefile
3611 (sysdep_routines): Remove strncat variants.
3612 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
3613 * sysdeps/s390/multiarch/ifunc-impl-list.c
3614 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
3615 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
3616 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
3617 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
3618 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
3619 * sysdeps/s390/multiarch/strncat.c: Move to ...
3620 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
3621 * sysdeps/s390/ifunc-strncat.h: New file.
3622
3623 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3624
3625 * sysdeps/s390/multiarch/Makefile
3626 (sysdep_routines): Remove strcat variants.
3627 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
3628 * sysdeps/s390/multiarch/ifunc-impl-list.c
3629 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
3630 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
3631 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
3632 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
3633 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
3634 * sysdeps/s390/multiarch/strcat.c: Move to ...
3635 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
3636 * sysdeps/s390/ifunc-strcat.h: New file.
3637
3638 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3639
3640 * sysdeps/s390/multiarch/Makefile
3641 (sysdep_routines): Remove stpncpy variants.
3642 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
3643 * sysdeps/s390/multiarch/ifunc-impl-list.c
3644 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
3645 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
3646 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
3647 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
3648 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
3649 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
3650 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
3651 * sysdeps/s390/ifunc-stpncpy.h: New file.
3652
3653 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3654
3655 * sysdeps/s390/multiarch/Makefile
3656 (sysdep_routines): Remove strncpy variants.
3657 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
3658 * sysdeps/s390/multiarch/ifunc-impl-list.c
3659 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
3660 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
3661 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
3662 * sysdeps/s390/multiarch/strncpy.c: Move to ...
3663 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
3664 * sysdeps/s390/ifunc-strncpy.h: New file.
3665 * sysdeps/s390/s390-64/strncpy.S: Move to ...
3666 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
3667 and adjust ifunc handling.
3668 * sysdeps/s390/s390-32/strncpy.S: Move to ...
3669 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
3670 and adjust ifunc handling.
3671 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
3672 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
3673
3674 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3675
3676 * sysdeps/s390/multiarch/Makefile
3677 (sysdep_routines): Remove stpcpy variants.
3678 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
3679 * sysdeps/s390/multiarch/ifunc-impl-list.c
3680 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
3681 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
3682 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
3683 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
3684 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
3685 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
3686 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
3687 * sysdeps/s390/ifunc-stpcpy.h: New file.
3688
3689 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3690
3691 * sysdeps/s390/multiarch/Makefile
3692 (sysdep_routines): Remove strcpy variants.
3693 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
3694 * sysdeps/s390/multiarch/ifunc-impl-list.c
3695 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
3696 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
3697 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
3698 * sysdeps/s390/multiarch/strcpy.c: Move to ...
3699 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
3700 * sysdeps/s390/ifunc-strcpy.h: New file.
3701 * sysdeps/s390/s390-64/strcpy.S: Move to ...
3702 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
3703 for 31/64bit and ifunc handling.
3704 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
3705 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
3706 * sysdeps/s390/s390-32/strcpy.S: Likewise.
3707
3708 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3709
3710 * sysdeps/s390/multiarch/Makefile
3711 (sysdep_routines): Remove strnlen variants.
3712 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
3713 * sysdeps/s390/multiarch/ifunc-impl-list.c
3714 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
3715 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
3716 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
3717 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
3718 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
3719 * sysdeps/s390/multiarch/strnlen.c: Move to ...
3720 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
3721 * sysdeps/s390/ifunc-strnlen.h: New file.
3722
3723 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3724
3725 * sysdeps/s390/multiarch/Makefile
3726 (sysdep_routines): Remove strlen variants.
3727 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
3728 * sysdeps/s390/multiarch/ifunc-impl-list.c
3729 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
3730 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
3731 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
3732 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
3733 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
3734 * sysdeps/s390/multiarch/strlen.c: Move to ...
3735 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
3736 * sysdeps/s390/ifunc-strlen.h: New file.
3737
3738 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3739
3740 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
3741 * sysdeps/s390/multiarch/ifunc-impl-list.c
3742 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
3743 * sysdeps/s390/ifunc-memmem.h: New file.
3744 * sysdeps/s390/memmem.c: Likewise.
3745 * sysdeps/s390/memmem-c.c: Likewise.
3746 * sysdeps/s390/memmem-vx.c: Likewise.
3747
3748 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3749
3750 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
3751 * sysdeps/s390/multiarch/ifunc-impl-list.c
3752 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
3753 * sysdeps/s390/ifunc-strstr.h: New file.
3754 * sysdeps/s390/strstr.c: Likewise.
3755 * sysdeps/s390/strstr-c.c: Likewise.
3756 * sysdeps/s390/strstr-vx.c: Likewise.
3757
3758 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3759
3760 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
3761 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
3762 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
3763 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
3764 New defines.
3765 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
3766 * sysdeps/s390/memmove-c.c: New file.
3767 * sysdeps/s390/memmove.c: Likewise.
3768 * sysdeps/s390/multiarch/ifunc-impl-list.c
3769 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
3770
3771 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3772
3773 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
3774 * sysdeps/s390/configure.ac: Add check for z13 support.
3775 * sysdeps/s390/configure: Regenerated.
3776
3777 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3778
3779 * sysdeps/s390/memcopy.h: New file.
3780
3781 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3782
3783 * sysdeps/s390/s390-32/bcopy.S: Remove.
3784 * sysdeps/s390/s390-64/bcopy.S: Likewise.
3785
3786 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3787
3788 * sysdeps/s390/ifunc-memcpy.h: New File.
3789 * sysdeps/s390/memcpy.S: Move to ...
3790 * sysdeps/s390/memcpy-z900.S ... here.
3791 Move implementations from memcpy-s390x.s to here.
3792 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
3793 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3794 Remove memcpy/mempcpy variants.
3795 * sysdeps/s390/Makefile (sysdep_routines):
3796 Add memcpy/mempcpy variants.
3797 * sysdeps/s390/multiarch/ifunc-impl-list.c
3798 (__libc_ifunc_impl_list): Adjust ifunc variants for
3799 memcpy and mempcpy.
3800 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
3801 to ...
3802 * sysdeps/s390/memcpy.c: ... here.
3803 Adjust ifunc variants for memcpy.
3804 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
3805 * sysdeps/s390/mempcpy.c: ... here.
3806 Adjust ifunc variants for mempcpy.
3807 * sysdeps/s390/mempcpy.S: Delete file.
3808
3809 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3810
3811 * sysdeps/s390/s390-64/memcpy.S: Move to ...
3812 * sysdeps/s390/memcpy.S: ... here.
3813 Adjust to be usable for 31/64bit.
3814 * sysdeps/s390/s390-32/memcpy.S: Delete File.
3815 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
3816 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
3817 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3818 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
3819 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
3820 Adjust to be usable for 31/64bit.
3821 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
3822 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
3823 * sysdeps/s390/multiarch/memcpy.c: ... here.
3824 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
3825
3826 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3827
3828 * sysdeps/s390/ifunc-memcmp.h: New File.
3829 * sysdeps/s390/memcmp.S: Move to ...
3830 * sysdeps/s390/memcmp-z900.S ... here.
3831 Move implementations from memcmp-s390x.s to here.
3832 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
3833 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3834 Remove memcmp variants.
3835 * sysdeps/s390/Makefile (sysdep_routines):
3836 Add memcmp variants.
3837 * sysdeps/s390/multiarch/ifunc-impl-list.c
3838 (__libc_ifunc_impl_list): Adjust ifunc variants for
3839 memcmp.
3840 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
3841 to ...
3842 * sysdeps/s390/memcmp.c: ... here.
3843 Adjust ifunc variants for memcmp.
3844
3845 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3846
3847 * sysdeps/s390/s390-64/memcmp.S: Move to ...
3848 * sysdeps/s390/memcmp.S: ... here.
3849 Adjust to be usable for 31/64bit.
3850 * sysdeps/s390/s390-32/memcmp.S: Delete File.
3851 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
3852 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3853 Remove memcmp.
3854 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3855 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
3856 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
3857 Adjust to be usable for 31/64bit.
3858 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
3859 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
3860 * sysdeps/s390/multiarch/memcmp.c: ... here.
3861 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
3862
3863 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3864
3865 * sysdeps/s390/s390-32/bzero.S: Delete file.
3866 * sysdeps/s390/s390-64/bzero.S: Likewise.
3867 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
3868 * sysdeps/s390/bzero.c: New file.
3869 * sysdeps/s390/memset-z900.S: Add bzero entry points.
3870 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
3871 * sysdeps/s390/multiarch/ifunc-impl-list.c
3872 (__libc_ifunc_impl_list): Add bzero ifunc variants.
3873
3874 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3875
3876 * sysdeps/s390/ifunc-memset.h: New File.
3877 * sysdeps/s390/memset.S: Move to ...
3878 * sysdeps/s390/memset-z900.S ... here.
3879 Move implementations from memset-s390x.s to here.
3880 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
3881 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3882 Remove memset variants.
3883 * sysdeps/s390/Makefile (sysdep_routines):
3884 Add memset variants.
3885 * sysdeps/s390/multiarch/ifunc-impl-list.c
3886 (__libc_ifunc_impl_list): Adjust ifunc variants for
3887 memset.
3888 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
3889 to ...
3890 * sysdeps/s390/memset.c: ... here.
3891 Adjust ifunc variants for memset.
3892
3893 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3894
3895 * sysdeps/s390/s390-64/memset.S: Move to ...
3896 * sysdeps/s390/memset.S: ... here.
3897 Adjust to be usable for 31/64bit.
3898 * sysdeps/s390/s390-32/memset.S: Delete File.
3899 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
3900 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3901 Remove memset.
3902 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3903 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
3904 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
3905 Adjust to be usable for 31/64bit.
3906 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
3907 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
3908 * sysdeps/s390/multiarch/memset.c: ... here.
3909 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
3910
3911 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3912
3913 * sysdeps/s390/multiarch/ifunc-resolve.h
3914 (s390_libc_ifunc_init, s390_libc_ifunc,
3915 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
3916
3917 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3918
3919 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
3920 * sysdeps/s390/configure.ac: Add check for z10 support.
3921 * sysdeps/s390/configure: Regenerated.
3922
3923 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
3924
3925 * sysdeps/i386/atomic-machine.h: Merged with ...
3926 * sysdeps/x86_64/atomic-machine.h: To ...
3927 * sysdeps/x86/atomic-machine.h: This. New file.
3928
3929 2018-12-18 Florian Weimer <fweimer@redhat.com>
3930
3931 Rewrite locale/gen-translit.pl in Python.
3932 * locale/Makefile (generated): Add C-translit.h.
3933 (before-compile): Add $(objpfx)C-translit.h.
3934 (C-translit.h): Move to $(objpfx). Create target directory.
3935 Build using Python script.
3936 * locale/gen-translit.py: New file.
3937 * locale/gen-translit.pl: Remove file.
3938 * locale/C-translit.h.in: Change comment character to '#' for
3939 easier parsing without a C preprocessor.
3940 * locale/C-translit.h: Remove generated file.
3941 * manual/install.texi (Tools for Compilation): Do not mention
3942 C-translit.h.
3943 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3944 Remove locale/C-translit.h.
3945 * scripts/update-copyrights: Likewise.
3946 * INSTALL: Regenerate.
3947
3948 2018-12-18 Florian Weimer <fweimer@redhat.com>
3949
3950 [BZ #23995]
3951 * localedata/locales/bi_VU: Remove executable bit from file.
3952
3953 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3954
3955 * include/time.h
3956 (__localtime64): Add.
3957 * manual/maint.texi: Document Y2038 symbol handling.
3958 * time/localtime.c
3959 (__localtime64): Add.
3960 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3961
3962 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3963
3964 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3965 Do not clobber r12.
3966
3967 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3968 to allow extra macros from first or second sources.
3969 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3970 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3971 (tests-special): Add $(objpfx)tst-mman-consts.out.
3972 ($(objpfx)tst-mman-consts.out): New makefile target.
3973
3974 2018-12-17 Mao Han <han_mao@c-sky.com>
3975
3976 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
3977 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
3978 without stat64 system call support.
3979 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3980 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
3981 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
3982 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
3983 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
3984 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
3985 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
3986 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
3987 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
3988 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
3989 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
3990
3991 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
3992
3993 regex: fix storage-exhaustion error
3994 [BZ #18040]
3995 * posix/regexec.c (get_subexp):
3996 Do not continue if storage is exhausted.
3997
3998 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3999
4000 regex: fix heap-use-after-free error
4001 [BZ #18040]
4002 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
4003 https://debbugs.gnu.org/32592
4004 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
4005 call extend_buffers which reallocates the re_string_t internal buffer.
4006 Local variable 'buf' was not updated in such case, resulting in
4007 use-after-free.
4008 * posix/regexec.c (get_subexp): Update 'buf' after call to
4009 get_subexp_sub.
4010
4011 2018-12-15 Florian Weimer <fweimer@redhat.com>
4012
4013 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
4014 (minimum_stride_size): Use it.
4015 (support_blob_repeat_allocate): Likewise.
4016
4017 2018-12-14 Joseph Myers <joseph@codesourcery.com>
4018
4019 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
4020 definition.
4021 (acosh): Likewise.
4022 (atanh): Likewise.
4023
4024 2018-12-14 Florian Weimer <fweimer@redhat.com>
4025
4026 * manual/process.texi (Process Creation Concepts): Remove
4027 documentation of process (ID) lifetime. List more process
4028 creation functions. Reference Process Identification section.
4029 (Process Identification): Add information about process ID
4030 lifetime. Describe Linux thread/task IDs.
4031 * manual/signal.texi (Signaling Another Process): Mention that the
4032 signal is always sent to the process.
4033
4034 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4035
4036 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
4037 and tst-ldbl-efgcvt.
4038 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
4039 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
4040 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
4041 (fcvt_tests, output_error, output_r_error, do_test): Use the
4042 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
4043 select the type of floating-point variables and arguments; to
4044 produce extra tests for double and conversion specifiers for
4045 printf; and to set the names of called functions.
4046 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
4047 in tst-efgcvt-template.c.
4048 * misc/tst-ldbl-efgcvt.c: Likewise.
4049
4050 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
4051
4052 * nss/Makefile (tst-nss-test3.out): New rule.
4053
4054 2018-12-13 Joseph Myers <joseph@codesourcery.com>
4055
4056 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
4057 clobber sp.
4058
4059 2018-12-13 fanjinke <fanjinke@hygon.cn>
4060
4061 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
4062 "HygonGenuine".
4063
4064 2018-12-13 Andreas Schwab <schwab@suse.de>
4065
4066 [BZ #23861]
4067 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
4068 (__pthread_rwlock_rdlock_full): Update expected value for
4069 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
4070 * nptl/tst-rwlock-pwn.c: New file.
4071 * nptl/Makefile (tests): Add tst-rwlock-pwn.
4072
4073 2018-12-12 Joseph Myers <joseph@codesourcery.com>
4074
4075 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
4076 definition.
4077
4078 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4079
4080 * benchtests/scripts/compare_bench.py (do_compare): write to
4081 stderr in casestat is not present.
4082 * benchtests/scripts/compare_bench.py (plot_graphs): write to
4083 stderr in case timings field is not present. Also string showing
4084 the output filename goes into the stderr.
4085
4086 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4087
4088 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
4089 and ZeroDivisorError exceptions.
4090 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
4091 argument to loop through user provided statistics.
4092 * benchtests/scripts/compare_bench.py (main): Include the --stats
4093 argument.
4094
4095 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4096
4097 * benchtests/scripts/compare_bench.py (compare_runs): Continue
4098 instead of return.
4099
4100 2018-12-12 Florian Weimer <fweimer@redhat.com>
4101
4102 * sysdeps/posix/timespec_get.c: Add missing “any later version”
4103 clause to copyright header.
4104
4105 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4106
4107 [BZ #23614]
4108 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
4109 registers saved in the stack frame.
4110 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
4111 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
4112
4113 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4114
4115 * include/bits/monetary-ldbl.h: New file.
4116 * include/bits/printf-ldbl.h: Likewise.
4117 * include/bits/stdio-ldbl.h: Likewise.
4118 * include/bits/stdlib-ldbl.h: Likewise.
4119 * include/bits/syslog-ldbl.h: Likewise.
4120 * include/bits/wchar-ldbl.h: Likewise.
4121
4122 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4123
4124 * libio/libio.h: Remove redirection for _IO_vfprintf.
4125
4126 2018-12-11 Andreas Schwab <schwab@suse.de>
4127
4128 * Makerules: Remove all references to abilist-pattern.
4129 (update-all-abi): Simplify find expression.
4130
4131 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
4132
4133 [BZ #23961]
4134 * math/auto-libm-test-in: Add new test case.
4135 * math/auto-libm-test-out-pow: Regenerated.
4136 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
4137
4138 2018-12-10 DJ Delorie <dj@redhat.com>
4139
4140 [BZ #23948]
4141 * support/test-container.c: Move postclean step to before we
4142 change namespaces.
4143
4144 2018-12-10 Joseph Myers <joseph@codesourcery.com>
4145
4146 * scripts/gen-as-const.py (main): Handle --python option.
4147 * scripts/gen-py-const.awk: Remove.
4148 * Makerules (py-const-script): Use gen-as-const.py.
4149 ($(py-const)): Likewise.
4150 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
4151 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
4152 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
4153 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
4154 ~PTHREAD_MUTEX_NO_ELISION_NP.
4155 * manual/README.pretty-printers: Update reference to
4156 gen-py-const.awk.
4157
4158 * scripts/glibcextract.py: New file.
4159 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
4160 or tempfile. Import glibcexctract.
4161 (compute_c_consts): Remove. Moved to glibcextract.py.
4162 (gen_test): Update reference to compute_c_consts.
4163 (main): Likewise.
4164 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
4165 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
4166 * sysdeps/unix/sysv/linux/Makefile
4167 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
4168 Redirect stderr as well as stdout.
4169
4170 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
4171
4172 [BZ #19767]
4173 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
4174 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
4175 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
4176 ALWAYS_USE_VSYSCALL.
4177 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
4178 ALWAYS_USE_VSYSCALL.
4179 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
4180 ALWAYS_USE_VSYSCALL.
4181
4182 2018-12-10 Florian Weimer <fweimer@redhat.com>
4183
4184 [BZ #23972]
4185 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
4186 offset instead of count for clarity. Fix typo in comment.
4187 (__old_getdents64): Keep track of previous offset. Use it to call
4188 handle_overflow.
4189 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
4190 that d_off is never zero.
4191
4192 2018-12-10 Andreas Schwab <schwab@suse.de>
4193
4194 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
4195 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
4196 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
4197 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
4198 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
4199
4200 2018-12-10 Joseph Myers <joseph@codesourcery.com>
4201
4202 * timezone/private.h: Update from tzcode 2018g.
4203 * timezone/tzfile.h: Likewise.
4204 * timezone/tzselect.ksh: Likewise.
4205 * timezone/zdump.c: Likewise.
4206 * timezone/zic.c: Likewise.
4207
4208 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
4209
4210 [BZ #23490]
4211 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
4212 (do_test): Adjust buffer size and fix format.
4213
4214 2018-12-07 DJ Delorie <dj@redhat.com>
4215
4216 [BZ #23907]
4217 * malloc/tst-tcfree3.c: New.
4218 * malloc/Makefile: Add it.
4219
4220 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4221
4222 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
4223
4224 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4225
4226 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
4227 used as a mask for the mode argument of __vfscanf_internal and
4228 __vfwscanf_internal.
4229 * stdio-common/vfscanf-internal.c
4230 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
4231 (__strtof128_internal): Define to __wcstof128_internal.
4232 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
4233 __strtof128_internal or __wcstof128_internal when the format of
4234 long double is the same as _Float128.
4235
4236 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
4237
4238 * include/unistd.h (__confstr): Add prototype and hidden prototype.
4239 * posix/confstr.c (confstr): Rename to __confstr.
4240 (__confstr): Add hidden def.
4241 (confstr): Add weak alias for __confstr.
4242 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
4243 confstr.
4244
4245 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4246
4247 * NEWS: Mention getcpu.
4248 * include/sched.h (__getcpu): New libc_hidden_proto.
4249 * manual/resource.texi: Document getcpu.
4250 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
4251 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
4252 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
4253 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4254 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4255 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4256 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4257 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4258 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4259 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4260 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4261 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4262 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
4263 Likewise.
4264 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4265 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4266 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4267 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4268 Likewise.
4269 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4270 Likewise.
4271 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
4272 Likewise.
4273 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
4274 Likewise.
4275 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4276 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4277 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4278 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4279 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4280 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4281 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4282 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4283 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
4284 * sysdeps/unix/sysv/linux/getcpu.c: New file.
4285 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
4286 Also check getcpu.
4287
4288 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4289
4290 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
4291 functions.
4292 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
4293
4294 2018-12-07 Florian Weimer <fweimer@redhat.com>
4295
4296 [BZ #17405]
4297 * posix/Makefile (routines): Add spawn_faction_addfchdir.
4298 * posix/Versions (GLIBC_2.29): Export
4299 posix_spawn_file_actions_addfchdir_np.
4300 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
4301 * posix/spawn_faction_destroy.c
4302 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
4303 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
4304 and the field action.fchdir_action.
4305 * posix/tst-spawn-chdir.c (add_chdir): New function.
4306 (do_test): Add do_fchdir loop. Call add_chdir.
4307 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
4308 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4309 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4310 posix_spawn_file_actions_addfchdir_np.
4311 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4312 Likewise.
4313 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4314 Likewise.
4315 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4316 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4317 Likewise.
4318 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4319 Likewise.
4320 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4321 Likewise.
4322 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4323 Likewise.
4324 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4325 Likewise.
4326 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4327 Likewise.
4328 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4329 (GLIBC_2.29): Likewise.
4330 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4331 (GLIBC_2.29): Likewise.
4332 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4333 (GLIBC_2.29): Likewise.
4334 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4335 (GLIBC_2.29): Likewise.
4336 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4337 Likewise.
4338 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4339 (GLIBC_2.29): Likewise.
4340 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4341 (GLIBC_2.29): Likewise.
4342 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4343 (GLIBC_2.29): Likewise.
4344 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4345 (GLIBC_2.29): Likewise.
4346 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4347 Likewise.
4348 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4349 Likewise.
4350 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4351 Likewise.
4352 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4353 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4354 Likewise.
4355 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4356 Likewise.
4357 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4358 Likewise.
4359 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4360 Likewise.
4361
4362 2018-12-06 Joseph Myers <joseph@codesourcery.com>
4363
4364 * manual/texinfo.tex: Update to version 2018-09-21.20 with
4365 trailing whitespace removed.
4366 * scripts/config.guess: Update to version 2018-11-28.
4367 * scripts/config.sub: Update to version 2018-11-28.
4368 * scripts/install-sh: Update to version 2018-03-11.20.
4369 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
4370 * scripts/move-if-change: Update to version 2018-03-07 03:47.
4371
4372 2018-12-07 Florian Weimer <fweimer@redhat.com>
4373
4374 [BZ #23927]
4375 CVE-2018-19591
4376 * inet/tst-if_index-long.c: New file.
4377 * inet/Makefile (tests): Add tst-if_index-long.
4378
4379 2018-12-07 Florian Weimer <fweimer@redhat.com>
4380
4381 * support/check.h (support_record_failure_is_failed): Declare.
4382 * support/descriptors.h: New file.
4383 * support/support_descriptors.c: Likewise.
4384 * support/tst-support_descriptors.c: Likewise.
4385 * support/support_record_failure.c
4386 (support_record_failure_is_failed): New function.
4387 * support/Makefile (libsupport-routines): Add support_descriptors.
4388 (tests): Add tst-support_descriptors.
4389
4390 2018-12-05 Zack Weinberg <zackw@panix.com>
4391 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4392
4393 * stdio-common/vfprintf-internal.c
4394 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
4395 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
4396 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
4397 and __no_long_double.
4398 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
4399 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
4400 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
4401 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
4402 and __nldbl_*syslog* functions.
4403 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
4404 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
4405 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
4406 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
4407 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
4408 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
4409 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
4410 (__nldbl_vwprintf, __nldbl_wprintf):
4411 Directly call the appropriate __v*printf_internal routine, passing
4412 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
4413 variable names.
4414 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
4415 (__nldbl___printf_chk, __nldbl___snprintf_chk)
4416 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
4417 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
4418 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
4419 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4420 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
4421 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
4422 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
4423 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
4424 Likewise, and also pass PRINTF_FORTIFY when appropriate.
4425 (__nldbl_syslog, __nldbl_vsyslog):
4426 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
4427 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4428 appropriate.
4429 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4430 appropriate.
4431
4432 2018-12-05 Zack Weinberg <zackw@panix.com>
4433 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4434
4435 [BZ #11319]
4436 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
4437 Moved here from debug/vsprintf_chk.c.
4438 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
4439 and completion logic for the strfile to match exactly what
4440 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
4441 _IO_str_init_static_internal instead of maxlen-1.
4442 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4443 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
4444 __vsprintf_internal.
4445
4446 * debug/vsprintf_chk.c (__vsprintf_chk)
4447 * debug/sprintf_chk.c (__sprintf_chk):
4448 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
4449 'flags' argument is positive, and slen as maxlen. No need to lock
4450 the FILE and/or construct a temporary FILE. Minimize and normalize
4451 header inclusions and variable names. Do not libc_hidden_def anything.
4452
4453 * debug/asprintf_chk.c (__asprintf_chk)
4454 * debug/dprintf_chk.c (__dprintf_chk)
4455 * debug/fprintf_chk.c (__fprintf_chk)
4456 * debug/fwprintf_chk.c (__fwprintf_chk)
4457 * debug/printf_chk.c (__printf_chk)
4458 * debug/snprintf_chk.c (__snprintf_chk)
4459 * debug/swprintf_chk.c (__swprintf_chk)
4460 * debug/vasprintf_chk.c (__vasprintf_chk)
4461 * debug/vdprintf_chk.c (__vdprintf_chk)
4462 * debug/vfprintf_chk.c (__vfprintf_chk)
4463 * debug/vfwprintf_chk.c (__vfwprintf_chk)
4464 * debug/vprintf_chk.c (__vprintf_chk)
4465 * debug/vsnprintf_chk.c (__vsnprintf_chk)
4466 * debug/vswprintf_chk.c (__vswprintf_chk)
4467 * debug/vwprintf_chk.c (__vwprintf_chk)
4468 * debug/wprintf_chk.c (__wprintf_chk):
4469 Directly call the corresponding vxxprintf_internal function, passing
4470 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
4471 the FILE and/or construct a temporary FILE. Minimize and normalize
4472 header inclusions and variable names. Do not libc_hidden_def anything.
4473
4474 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
4475 __obstack_vprintf_internal.
4476 (__obstack_vprintf_chk): Convert into a wrapper that calls
4477 __obstack_vprintf_internal (these two functions already had the
4478 same code) and move to new file...
4479 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
4480 file.
4481 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
4482 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
4483 * debug/Makefile (routines): Add vobprintf_chk.
4484
4485 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4486 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4487 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
4488 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4489 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
4490 (__nldbl___obstack_vfprintf_chk):
4491 Directly call the corresponding vxxprintf_internal function,
4492 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
4493 duplicate comparison of slen with 0 or maxlen from the corresponding
4494 non-__nldbl function.
4495
4496 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
4497 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
4498 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
4499 Remove libc_hidden_proto.
4500
4501 * stdio-common/vfprintf-internal.c
4502 (__vfprintf_internal, __vfwprintf_internal):
4503 Do not check _IO_FLAGS2_FORTIFY.
4504 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
4505 * libio/libioP.h: Update prototype of __vsprintf_internal and add
4506 a comment explaining why it has the maxlen argument.
4507 (_IO_acquire_lock_clear_flags2_fct): Remove.
4508 (_IO_acquire_lock_clear_flags2): Remove.
4509 (_IO_release_lock): Remove conditional statement which will
4510 now never execute.
4511 (_IO_acquire_lock): Remove variable which is now unused.
4512 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4513 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4514
4515 * stdio-common/Makefile (tests): Add tst-bz11319 and
4516 tst-bz11319-fortify2.
4517 (CFLAGS-tst-bz11319-fortify2.c): New macro.
4518 * stdio-common/tst-bz11319-fortify2.c: New file.
4519 * stdio-common/tst-bz11319.c: Likewise.
4520
4521 2018-12-05 Zack Weinberg <zackw@panix.com>
4522 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4523
4524 * misc/syslog.c: Include libioP.h, not iolibio.h.
4525 (__vsyslog_internal): New function with the former body of
4526 __vsyslog_chk; takes mode_flags argument same as
4527 __v*printf_internal. Call __vfprintf_internal directly.
4528
4529 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
4530 Remove libc_hidden_def.
4531 (__syslog, __syslog_chk): Use __vsyslog_internal.
4532 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
4533
4534 * include/sys/syslog.h: Add multiple inclusion guard.
4535 Add prototype for __vsyslog_internal.
4536 Remove declaration and libc_hidden_proto for __vsyslog_chk.
4537
4538 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
4539 Use __vsyslog_internal.
4540
4541 2018-12-05 Zack Weinberg <zackw@panix.com>
4542 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4543
4544 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
4545 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
4546 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
4547 New functions.
4548 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
4549 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
4550
4551 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
4552 Include wctype.h here if COMPILE_WPRINTF is defined.
4553 Define __vfprintf_internal or __vfwprintf_internal, depending
4554 on COMPILE_WPRINTF.
4555 Temporarily, on entry to this function, update mode_flags
4556 according to the environmental settings corresponding to
4557 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
4558 Throughout, check mode_flags instead of __ldbl_is_dbl and
4559 _IO_FLAGS2_FORTIFY on the destination FILE.
4560 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
4561 Include vfprintf-internal.c. Don't include wctype.h.
4562 * stdio-common/vfprintf.c: New file. Just define __vfprintf
4563 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
4564 and vfprintf.
4565 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
4566 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
4567 and vfwprintf.
4568 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
4569
4570 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
4571 and add mode_flags argument; use __vfprintf_internal.
4572 (__vdprintf): New function. Alias vdprintf to this.
4573 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
4574 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
4575 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
4576 (__obstack_printf): Use __obstack_printf_internal.
4577 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
4578 public aliases __vsnprintf and vsnprintf.
4579 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
4580 called internally.
4581 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
4582 public aliases _IO_vsprintf and vsprintf.
4583 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
4584 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
4585 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
4586 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
4587 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
4588
4589 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
4590 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
4591 * stdio-common/fprintf.c, stdio-common/fxprintf.c
4592 * stdio-common/printf.c: Use __vfprintf_internal.
4593
4594 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
4595 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
4596 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
4597
4598 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
4599 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
4600 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
4601 __vfwprintf_internal.
4602
4603 * libio/libio.h: Remove libc_hidden_proto and declaration for
4604 _IO_vfprintf.
4605 Remove declaration of _IO_vfwprintf.
4606 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
4607 _IO_vsprintf.
4608 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
4609 _IO_obstack_printf.
4610 * include/stdio.h: Add prototype for __vasprintf.
4611 (__vsnprintf): Remove declaration, because there are no more
4612 internal calls.
4613 * include/wchar.h (__vfwprintf, __vswprintf): Remove
4614 declaration, because there are no more internal calls.
4615
4616 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
4617 __vsnprintf_internal, instead of _IO_vsnprintf.
4618 * argp/argp-help.c (__argp_error, __argp_failure): Use
4619 __vasprintf_internal, instead of _IO_vasprintf.
4620 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
4621 redefine, because there are no more internal calls.
4622
4623 2018-12-05 Zack Weinberg <zackw@panix.com>
4624 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4625
4626 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
4627 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
4628 Include libio/strfile.h instead of libioP.h.
4629 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
4630 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
4631 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
4632 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
4633 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
4634 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
4635 necessary. Do not set __no_long_double. Normalize variable names.
4636 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
4637 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
4638 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
4639 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
4640 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
4641 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
4642 Call __vfscanf_internal / __vfwscanf_internal directly, passing
4643 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
4644 Do not set __no_long_double. Normalize variable names.
4645
4646 2018-12-05 Zack Weinberg <zackw@panix.com>
4647 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4648
4649 * stdio-common/isoc99_scanf.c
4650 * stdio-common/isoc99_fscanf.c
4651 * stdio-common/isoc99_sscanf.c
4652 * stdio-common/isoc99_vscanf.c
4653 * stdio-common/isoc99_vfscanf.c
4654 * stdio-common/isoc99_vsscanf.c
4655 * wcsmbs/isoc99_wscanf.c
4656 * wcsmbs/isoc99_fwscanf.c
4657 * wcsmbs/isoc99_swscanf.c
4658 * wcsmbs/isoc99_vwscanf.c
4659 * wcsmbs/isoc99_vfwscanf.c
4660 * wcsmbs/isoc99_vswscanf.c:
4661 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
4662 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
4663 No need to lock and unlock the FILE passed to that function.
4664
4665 * stdio-common/vfscanf-internal.c
4666 (__vfscanf_internal, __vfwscanf_internal):
4667 Don't look at _IO_FLAGS2_SCANF_STD.
4668 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
4669 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
4670 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
4671
4672 2018-12-05 Zack Weinberg <zackw@panix.com>
4673 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4674
4675 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
4676 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
4677 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
4678 * libio/strfile.h: Add multiple inclusion guard.
4679 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
4680
4681 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
4682 consistency with the other version of this file.
4683 (ldbl_compat_symbol): New macro.
4684 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
4685 New macro.
4686
4687 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
4688 Define __vfscanf_internal or __vfwscanf_internal, depending on
4689 COMPILE_WSCANF; don't define any other public symbols.
4690 Remove errval and code to set errp.
4691 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
4692 as the mode_flags argument.
4693 (encode_error, conv_error, input_error): Don't set errval.
4694 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
4695 Include vfscanf-internal.c.
4696 * stdio-common/vfscanf.c: New file defining the public entry
4697 point vfscanf, which calls __vfscanf_internal.
4698 * stdio-common/vfwscanf.c: New file defining the public entry
4699 point vfwscanf, which calls __vfwscanf_internal.
4700
4701 * stdio-common/iovfscanf.c: New file.
4702 * stdio-common/iovfwscanf.c: Likewise.
4703
4704 * stdio-common/Makefile (routines): Add vfscanf-internal,
4705 vfwscanf-internal, iovfscanf, iovfwscanf.
4706 * stdio-common/Versions: Mention GLIBC_2.29, so that
4707 it can be used in SHLIB_COMPAT expressions.
4708 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
4709 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
4710 Call __vfscanf_internal, instead of _IO_vfscanf.
4711 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
4712 _IO_vfscanf.
4713 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
4714 _IO_vfwscanf.
4715
4716 * libio/iovsscanf.c: Clean up includes, when possible. Use
4717 _IO_strfile_read or _IO_strfile_readw, when needed. Call
4718 __vfscanf_internal or __vfwscanf_internal directly.
4719 * libio/iovswscanf.c: Likewise.
4720 * libio/swscanf.c: Likewise.
4721 * libio/vscanf.c: Likewise.
4722 * libio/vwscanf.c: Likewise.
4723 * libio/wscanf.c: Likewise.
4724 * stdio-common/isoc99_fscanf.c: Likewise.
4725 * stdio-common/isoc99_scanf.c: Likewise.
4726 * stdio-common/isoc99_sscanf.c: Likewise.
4727 * stdio-common/isoc99_vfscanf.c: Likewise.
4728 * stdio-common/isoc99_vscanf.c: Likewise.
4729 * stdio-common/isoc99_vsscanf.c: Likewise.
4730 * stdio-common/scanf.c: Likewise.
4731 * stdio-common/sscanf.c: Likewise.
4732 * wcsmbs/isoc99_fwscanf.c: Likewise.
4733 * wcsmbs/isoc99_swscanf.c: Likewise.
4734 * wcsmbs/isoc99_vfwscanf.c: Likewise.
4735 * wcsmbs/isoc99_vswscanf.c: Likewise.
4736 * wcsmbs/isoc99_vwscanf.c: Likewise.
4737 * wcsmbs/isoc99_wscanf.c: Likewise.
4738
4739 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
4740
4741 * include/time.h
4742 (__tz_compute): Replace time_t with __time64_t.
4743 (__tz_convert): Replace time_t* with __time64_t.
4744 (__offtime): Replace time_t* with __time64_t.
4745 * time/gmtime.c
4746 (__gmtime_r): Adjust call to __tz_convert.
4747 (gmtime): Likewise.
4748 * time/localtime.c
4749 (__localtime_r): Likewise.
4750 (localtime): Likewise.
4751 * time/offtime.c: Replace time_t with __time64_t.
4752 * time/tzset.c: Likewise.
4753
4754 2018-12-04 Joseph Myers <joseph@codesourcery.com>
4755
4756 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
4757 dynamic linker unless [$(run-built-tests) = yes].
4758
4759 2018-12-03 DJ Delorie <dj@delorie.com>
4760
4761 * support/test-container.c (check_for_unshare_hints): New.
4762 (main): Call it if unshare fails. Add support for "su" scriptlet
4763 command.
4764
4765 2018-12-03 Joseph Myers <joseph@codesourcery.com>
4766
4767 * scripts/gen-as-const.py (compute_c_consts): Take an argument
4768 'START' to indicate that start text should be output.
4769 (gen_test): Likewise.
4770 (main): Generate 'START' for first symbol or '--' line, or at end
4771 of input if not previously generated.
4772
4773 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
4774
4775 [BZ #19767]
4776 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
4777 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
4778 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
4779 ALWAYS_USE_VSYSCALL.
4780
4781 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4782
4783 [BZ #23913]
4784 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
4785 new_argv by one.
4786
4787 2018-12-03 Carlos O'Donell <carlos@redhat.com>
4788
4789 [BZ #23923]
4790 * locale/programs/localedef.c: Declare boolean hard_links default true.
4791 (options): Add --no-hard-links option.
4792 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
4793 * locale/programs/localedef.h: Declare prototype for hard_links.
4794 * locale/programs/locfile.c (write_locale_data): Don't use hard
4795 links if hard_links is false.
4796
4797 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
4798
4799 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
4800 cpu_features_basic.
4801 (__cache_sysconf): Likewise.
4802 (init_cacheinfo): Likewise.
4803 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
4804 populate COMMON_CPUID_INDEX_80000007 and
4805 COMMON_CPUID_INDEX_80000008.
4806 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
4807 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
4808 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
4809 (init_cpu_features): Use _Static_assert on
4810 index_arch_Fast_Unaligned_Load.
4811 __get_cpuid_registers and __get_arch_feature. Updated for
4812 cpu_features_basic. Set stepping in cpu_features.
4813 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
4814 (FEATURE_INDEX_2): New.
4815 (FEATURE_INDEX_MAX): Changed to enum.
4816 (COMMON_CPUID_INDEX_D_ECX_1): New.
4817 (COMMON_CPUID_INDEX_80000007): Likewise.
4818 (COMMON_CPUID_INDEX_80000008): Likewise.
4819 (cpuid_registers): Likewise.
4820 (cpu_features_basic): Likewise.
4821 (CPU_FEATURE_USABLE): Likewise.
4822 (bit_arch_XXX_Usable): Likewise.
4823 (cpu_features): Use cpuid_registers and cpu_features_basic.
4824 (bit_arch_XXX): Reweritten.
4825 (bit_cpu_XXX): Likewise.
4826 (index_cpu_XXX): Likewise.
4827 (reg_XXX): Likewise.
4828 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
4829 <support/check.h>.
4830 (CHECK_CPU_FEATURE): New.
4831 (CHECK_CPU_FEATURE_USABLE): Likewise.
4832 (cpu_kinds): Likewise.
4833 (do_test): Print vendor, family, model and stepping. Check
4834 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
4835 (TEST_FUNCTION): Removed.
4836 Include <support/test-driver.c> instead of
4837 "../../test-skeleton.c".
4838 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
4839 Check POPCNT instead of POPCOUNT.
4840 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
4841
4842 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4843
4844 * scripts/gen-as-const.py (main): Avoid emitting empty line when
4845 there is no element in `consts'.
4846
4847 2018-12-01 Florian Weimer <fweimer@redhat.com>
4848
4849 * support/support_capture_subprocess.c
4850 (support_capture_subprocess): Check that pipe descriptors have
4851 expected values. Close original pipe descriptors in subprocess.
4852
4853 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4854
4855 [BZ #23032]
4856 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
4857 attr with __pthread_default_barrierattr.
4858 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
4859 attr with __pthread_default_condattr.
4860 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
4861 attr with __pthread_default_mutexattr.
4862 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
4863 attr with __pthread_default_rwlockattr.
4864
4865 2018-12-01 Kemi Wang <kemi.wang@intel.com>
4866
4867 * manual/tunables.texi (POSIX Thread Tunables): New node.
4868 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
4869 * nptl/nptl-init.c: Include pthread_mutex_conf.h
4870 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
4871 __pthread_tunables_init.
4872 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
4873 (max_adaptive_count): Define.
4874 * nptl/pthread_mutex_conf.c: New file.
4875 * nptl/pthread_mutex_conf.h: New file.
4876 * sysdeps/generic/adaptive_spin_count.h: New file.
4877 * sysdeps/nptl/dl-tunables.list: New file.
4878 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
4879 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
4880 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
4881 Likewise.
4882
4883 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4884
4885 [BZ #20544]
4886 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
4887 * stdlib/on_exit.c (__on_exit): Likewise.
4888 * stdlib/Makefile (tests): Add tst-bz20544.
4889 * stdlib/tst-bz20544.c: New test.
4890
4891 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
4892
4893 [BZ #19767]
4894 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
4895 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
4896 New.
4897
4898 2018-11-30 Florian Weimer <fweimer@redhat.com>
4899
4900 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
4901 Extend error logging.
4902 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
4903 symbol.
4904
4905 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4906
4907 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
4908 __sigismember instead of sigismember.
4909 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
4910 cancel_handler): New definitions.
4911 (do_system): Use posix_spawn instead of fork and execl and remove
4912 reentracy code.
4913 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
4914 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
4915 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
4916 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
4917 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
4918 * sysdeps/unix/sysv/linux/system.c: Likewise.
4919
4920 [BZ #22834]
4921 [BZ #17490]
4922 * NEWS: Add new semantic for atfork with popen and system.
4923 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
4924 fork and execl.
4925
4926 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4927
4928 [BZ #23690]
4929 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
4930 modification order when accessing reloc_result->addr.
4931 * include/link.h (reloc_result): Add field init.
4932 * nptl/Makefile (tests): Add tst-audit-threads.
4933 (modules-names): Add tst-audit-threads-mod1 and
4934 tst-audit-threads-mod2.
4935 Add rules to build tst-audit-threads.
4936 * nptl/tst-audit-threads-mod1.c: New file.
4937 * nptl/tst-audit-threads-mod2.c: Likewise.
4938 * nptl/tst-audit-threads.c: Likewise.
4939 * nptl/tst-audit-threads.h: Likewise.
4940
4941 2018-11-30 Joseph Myers <joseph@codesourcery.com>
4942
4943 * scripts/gen-as-const.py: New file.
4944 * scripts/gen-as-const.awk: Remove.
4945 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
4946 gen-as-const.py.
4947 ($(objpfx)test-as-const-%.c): Likewise.
4948
4949 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4950
4951 * elf/dl-exception.c: Include <_itoa.h>.
4952
4953 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4954
4955 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4956 returned by __f_setlk.
4957
4958 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4959 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4960
4961 * elf/Makefile (tests-internal): Add tst-create_format1.
4962 * elf/dl-exception.c (_dl_exception_create_format): Support
4963 %x, %lx and %zx.
4964 * elf/tst-create_format1.c: New file.
4965
4966 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4967
4968 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4969 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4970 gnulib.)
4971 * argp/argp-help.c (__argp_failure): Likewise.
4972
4973 2018-11-29 Mao Han <han_mao@c-sky.com>
4974
4975 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
4976 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
4977 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
4978 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
4979 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
4980 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
4981 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
4982 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
4983 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
4984 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
4985 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
4986 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
4987 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
4988 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
4989 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
4990 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
4991 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
4992 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
4993 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
4994 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
4995 (R_CKCORE_TLS_TPOFF32): New defines.
4996
4997 2018-11-29 Florian Weimer <fweimer@redhat.com>
4998
4999 * posix/Makefile (before-compile): Remove testcases.h and
5000 ptestcases.h.
5001 (generated): Add testcases.h and ptestcases.h.
5002 (testcases.h, ptestcases.h): Move to $(objpfx).
5003 (runtests.o): Add dependency on testcases.h.
5004 (runptests.o): Add dependency on ptestcases.h.
5005 * posix/testcases.h, posix/ptestcases.h: Remove files.
5006 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
5007 not touch posix/testcases.h and posix/ptestcases.h.
5008
5009 2018-11-28 Florian Weimer <fweimer@redhat.com>
5010
5011 support: Add signal support to support_capture_subprocess_check.
5012 * support/capture_subprocess.h (support_capture_subprocess_check):
5013 Adjust comment and rename parameter.
5014 * support/support_capture_subprocess_check.c
5015 (print_actual_status): New function.
5016 (support_capture_subprocess_check): Support negative
5017 status_or_signal. Call print_actual_status.
5018 * support/tst-support_capture_subprocess.c (do_test): Call
5019 support_capture_subprocess_check.
5020 * libio/tst-vtables-common.c (termination_status)
5021 (init_termination_status): Remove.
5022 (check_for_termination): Adjust support_capture_subprocess_check
5023 call.
5024 (do_test): Remove call to init_termination_status.
5025
5026 2018-11-28 Joseph Myers <joseph@codesourcery.com>
5027
5028 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
5029 source directory instead of a copy.
5030 (CommandList.create_copy_dir): Remove.
5031
5032 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
5033
5034 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5035
5036 2018-11-28 Florian Weimer <fweimer@redhat.com>
5037
5038 * support/support.h (support_quote_string): Do not use str
5039 parameter name.
5040
5041 2018-11-27 Joseph Myers <joseph@codesourcery.com>
5042
5043 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
5044 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
5045
5046 2018-11-27 Florian Weimer <fweimer@redhat.com>
5047
5048 * support/support.h (support_quote_string): Declare.
5049 * support/support_quote_string.c: New file.
5050 * support/tst-support_quote_string.c: Likewise.
5051 * support/Makefile (libsupport-routines): Add
5052 support_quote_string.
5053 (tests): Add tst-support_quote_string.
5054
5055 2018-11-27 Florian Weimer <fweimer@redhat.com>
5056
5057 [BZ #23927]
5058 CVE-2018-19591
5059 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
5060 descriptor leak in case of ENODEV error.
5061
5062 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
5063
5064 [BZ #19767]
5065 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
5066 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
5067 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
5068
5069 2018-11-26 Carlos O'Donell <carlos@redhat.com>
5070
5071 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
5072 Error for unknown lines.
5073
5074 2018-11-26 Joseph Myers <joseph@codesourcery.com>
5075
5076 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
5077 Touch additional files.
5078
5079 2018-11-26 Florian Weimer <fweimer@redhat.com>
5080
5081 [BZ #23907]
5082 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
5083 double-frees.
5084
5085 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
5086
5087 [BZ #19767]
5088 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
5089 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
5090 SHARED. Include sysdep.h.
5091 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
5092 ALWAYS_USE_VSYSCALL.
5093 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
5094 ALWAYS_USE_VSYSCALL.
5095
5096 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
5097
5098 [BZ #19767]
5099 * nptl/Makefile (tests-static): Add tst-cond11-static.
5100 (tests): Likewise.
5101 * nptl/tst-cond11-static.c: New File.
5102 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
5103 tst-affinity-static.
5104 (tests): Likewise.
5105 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
5106 instead of SHARED.
5107 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
5108 (USE_VSYSCALL): Likewise.
5109 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
5110 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
5111 instead of SHARED.
5112 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
5113 SHARED.
5114 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
5115 New.
5116
5117 2018-11-23 Joseph Myers <joseph@codesourcery.com>
5118
5119 [BZ #23915]
5120 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5121 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
5122 Undefine.
5123
5124 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
5125
5126 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
5127 (tst-cet-legacy-1a-ARGS): New.
5128 ($(objpfx)tst-cet-legacy-1a): New target.
5129 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
5130
5131 2018-11-22 Joseph Myers <joseph@codesourcery.com>
5132
5133 * conform/conformtest.py (CompileSubTest.__init__): Set
5134 self.run_early to False.
5135 (ExecuteSubTest.__init__): Likewise.
5136 (HeaderTests.run): Try running all non-optional, non-XFAILed
5137 compilation tests in a single execution of the compiler.
5138
5139 * conform/conformtest.py (CompileSubTest): New class.
5140 (ExecuteSubTest): Likewise.
5141 (ElementTest.run): Rename to gen_subtests. Append tests to
5142 self.subtests instead of running them.
5143 (ConstantTest.run): Likewise.
5144 (SymbolTest.run): Likewise.
5145 (TypeTest.run): Likewise.
5146 (TagTest.run): Likewise.
5147 (FunctionTest.run): Likewise.
5148 (VariableTest.run): Likewise.
5149 (MacroFunctionTest.run): Likewise.
5150 (MacroStrTest.run): Likewise.
5151 (HeaderTests.handle_test_line): Generate subtests for tests.
5152 (HeaderTests.run): Run subtests for tests.
5153
5154 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5155
5156 * math/Versions (GLIBC_2.29): Add pow.
5157 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
5158 symbol.
5159 * math/w_pow.c: New file.
5160 * sysdeps/i386/fpu/w_pow.c: New file.
5161 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
5162 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
5163 and add necessary aliases.
5164 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
5165 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
5166 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5167 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5168 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5169 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5170 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5171 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5172 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5173 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5174 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5175 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5176 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5177 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5178 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5179 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5180 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5181 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5182 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5183 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5184 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5185 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5186 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5187 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5188 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5189 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5190 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
5191 __pow.
5192 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
5193 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
5194 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
5195
5196 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5197
5198 * math/Versions (GLIBC_2.29): Add log2.
5199 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
5200 symbol.
5201 * math/w_log2.c: New file.
5202 * sysdeps/i386/fpu/w_log2.c: New file.
5203 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
5204 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
5205 and add necessary aliases.
5206 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
5207 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
5208 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5209 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5210 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5211 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5212 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5213 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5214 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5215 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5216 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5217 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5218 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5219 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5220 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5221 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5222 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5223 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5224 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5225 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5226 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5227 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5228 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5229 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5230 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5231 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5232
5233 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5234
5235 * math/Versions (GLIBC_2.29): Add log.
5236 * math/w_log_compat.c (__log_compat): Change to versioned compat
5237 symbol.
5238 * math/w_log.c: New file.
5239 * sysdeps/i386/fpu/w_log.c: New file.
5240 * sysdeps/ia64/fpu/e_log.S: Update.
5241 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
5242 and add necessary aliases.
5243 * sysdeps/ieee754/dbl-64/w_log.c: New file.
5244 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
5245 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5246 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5247 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5248 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5249 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5250 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5251 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5252 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5253 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5254 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5255 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5256 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5257 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5258 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5259 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5260 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5261 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5262 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5263 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5264 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5265 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5266 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5267 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5268 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5269 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
5270 __log.
5271 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
5272 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
5273 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
5274 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
5275
5276 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5277
5278 * math/Versions (GLIBC_2.29): Add exp and exp2.
5279 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
5280 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
5281 * math/w_exp_compat.c (__exp_compat): Likewise.
5282 * math/w_exp.c: New file.
5283 * math/w_exp2.c: New file.
5284 * sysdeps/i386/fpu/w_exp.c: New file.
5285 * sysdeps/i386/fpu/w_exp2.c: New file.
5286 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
5287 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
5288 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
5289 and add necessary aliases.
5290 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
5291 and add necessary aliases.
5292 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
5293 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
5294 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
5295 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
5296 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5297 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5298 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5299 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5300 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5301 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5302 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5303 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5304 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5305 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5306 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5307 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5308 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5309 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5310 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5311 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5312 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5313 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5314 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5315 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5316 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5317 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5318 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5319 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5320 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
5321 (__ieee754_exp): Rename to __exp.
5322 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
5323 (__ieee754_exp): Rename to __exp.
5324 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
5325 (__ieee754_exp): Rename to __exp.
5326 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
5327 __exp.
5328 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
5329
5330 2018-11-20 DJ Delorie <dj@redhat.com>
5331
5332 * malloc/malloc.c (tcache_entry): Add key field.
5333 (tcache_put): Set it.
5334 (tcache_get): Likewise.
5335 (_int_free): Check for double free in tcache.
5336 * malloc/tst-tcfree1.c: New.
5337 * malloc/tst-tcfree2.c: New.
5338 * malloc/Makefile: Run the new tests.
5339 * manual/probes.texi: Document memory_tcache_double_free probe.
5340
5341 * dlfcn/dlerror.c (check_free): Prevent double frees.
5342
5343 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
5344
5345 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
5346
5347 2018-11-20 Joseph Myers <joseph@codesourcery.com>
5348
5349 * conform/conformtest.py (ElementTest.run): Use unique identifiers
5350 in tests. Use names for format arguments.
5351 (ConstantTest.run): Likewise.
5352 (SymbolTest.run): Likewise.
5353 (TypeTest.run): Likewise.
5354 (TagTest.run): Likewise.
5355 (FunctionTest.run): Likewise.
5356 (VariableTest.run): Likewise.
5357 (MacroFunctionTest.run): Likewise.
5358 (MacroStrTest.run): Likewise.
5359 (HeaderTests.__init__): Set self.num_tests.
5360 (HeaderTests.handle_test_line): Set test.num. Increment
5361 self.num_tests.
5362
5363 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5364
5365 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
5366 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
5367 SEEK_SET.
5368
5369 2018-11-19 Mao Han <han_mao@c-sky.com>
5370
5371 * scripts/config.guess: Update to version 2018-08-29.
5372 * scripts/config.sub: Update to version 2018-08-29.
5373
5374 2018-11-19 Florian Weimer <fweimer@redhat.com>
5375
5376 support: Print timestamps in timeout handler.
5377 * support/support_test_main.c (print_timestamp): New function.
5378 (signal_handler): Use it to print the termination time and the
5379 time of the last write to standard output.
5380
5381 2018-11-16 Zack Weinberg <zackw@panix.com>
5382 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5383
5384 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
5385 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
5386 argument.
5387 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
5388 and add flags argument. Check flags instead of __ldbl_is_dbl when
5389 deciding whether to set is_long_double.
5390 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
5391 passing zero for flags argument.
5392 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
5393
5394 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5395 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
5396 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
5397 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
5398 variable names. Remove libc_hidden_def/libc_hidden_proto from
5399 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
5400 longer called from within the library.
5401 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
5402 for __nldbl___vstrfmon_l, declare it explicitly.
5403
5404 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
5405
5406 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
5407
5408 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
5409 macros
5410 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
5411 F_SETLK64, F_SETLKW64, respectively.
5412 * sysdeps/mach/hurd/f_setlk.c: New file.
5413 * sysdeps/mach/hurd/f_setlk.h: New file.
5414 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
5415 f_setlk.
5416 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
5417 (__libc_fcntl): Move non-flock operations to...
5418 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
5419 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
5420
5421 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
5422
5423 mktime: DEBUG_MKTIME cleanup
5424 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
5425 And it’s no longer needed now that glibc and Gnulib both have
5426 their own testing mechanisms for mktime.
5427 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
5428
5429 mktime: fix non-EOVERFLOW errno handling
5430 [BZ#23789]
5431 mktime was not properly reporting failures when the underlying
5432 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
5433 them like EOVERFLOW failures, and set errno to EOVERFLOW.
5434 The problem could happen on non-glibc platforms, with Gnulib.
5435 * time/mktime.c (guess_time_tm): Remove, replacing with ...
5436 (tm_diff): ... this simpler function, which does not change errno.
5437 All callers changed to deal with errno themselves.
5438 (ranged_convert, __mktime_internal): Return failure immediately if
5439 the underlying function reports any failure other than EOVERFLOW.
5440 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
5441 gap code fails.
5442
5443 mktime: fix bug with Y2038 DST transition
5444 [BZ#23789]
5445 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
5446 mishandle a DST transition that jumps over the Y2038 boundary.
5447 No such DST transitions are known so this is only a theoretical
5448 bug, but we might as well do things right.
5449
5450 mktime: make more room for overflow
5451 [BZ#23789]
5452 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
5453 This is so that we can add tm_diff results to a previous guess,
5454 which will be useful in a later patch.
5455
5456 mktime: simplify offset guess
5457 [BZ#23789]
5458 * time/mktime.c (__mktime_internal): Omit excess precision.
5459
5460 mktime: new test for mktime failure
5461 [BZ#23789]
5462 Based on a test suggested by Albert Aribaud in:
5463 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
5464 * time/Makefile (tests): Add bug-mktime4.
5465 * time/bug-mktime4.c: New file.
5466
5467 mktime: fix EOVERFLOW bug
5468 [BZ#23789]
5469 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
5470 Include libc-config.h, not config.h, for __set_errno.
5471 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
5472
5473 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5474
5475 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
5476 __attribute_copy__ to copy attributes from name. Drop static qualifier
5477 to avoid warnings about leaf attribute not having effect on static
5478 functions.
5479
5480 2018-11-13 Florian Weimer <fweimer@redhat.com>
5481
5482 * malloc/malloc.c (fastbin_push_entry): New function.
5483 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
5484 (REMOVE_FB): Remove macro.
5485 (_int_malloc): Use fastbin_pop_entry and reindent.
5486 (_int_free): Use fastbin_push_entry.
5487 (malloc_consolidate): Use atomic_exchange_acquire.
5488
5489 2018-11-13 Joseph Myers <joseph@codesourcery.com>
5490
5491 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
5492 alias attribute, not with strong_alias.
5493
5494 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
5495 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
5496 with additional parameter thread.
5497 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
5498 in terms of __hidden_ver2.
5499 (hidden_tls_def): New macro.
5500 (libc_hidden_tls_def): Likewise.
5501 (rtld_hidden_tls_def): Likewise.
5502 (libm_hidden_tls_def): Likewise.
5503 (libmvec_hidden_tls_def): Likewise.
5504 (libresolv_hidden_tls_def): Likewise.
5505 (librt_hidden_tls_def): Likewise.
5506 (libdl_hidden_tls_def): Likewise.
5507 (libnss_files_hidden_tls_def): Likewise.
5508 (libnsl_hidden_tls_def): Likewise.
5509 (libnss_nisplus_hidden_tls_def): Likewise.
5510 (libutil_hidden_tls_def): Likewise.
5511 (libutil_hidden_tls_def): Likweise.
5512 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
5513 libc_hidden_tls_def.
5514 (__sim_disabled_exceptions_thread): Likewise.
5515 (__sim_round_mode_thread): Likewise.
5516
5517 * sysdeps/sparc/sparc-ifunc.h [SHARED]
5518 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
5519 copy attributes from name.
5520
5521 2018-11-12 Joseph Myers <joseph@codesourcery.com>
5522
5523 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
5524 Use __attribute_copy__ to copy attributes from name.
5525
5526 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
5527 with __hidden_ver1 call.
5528 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
5529 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
5530 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
5531 (__cosf): Do not declare here.
5532 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
5533 (__sincosf): Do not declare here.
5534 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
5535 (__sinf): Do not declare here.
5536
5537 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
5538 (__BIG_ENDIAN): Likewise.
5539 (__BYTE_ORDER): Likewise.
5540 (strong_alias): Likewise.
5541 (_strong_alias): Likewise.
5542
5543 2018-11-12 Florian Weimer <fweimer@redhat.com>
5544
5545 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
5546 function. Move after the definition of in_smallbin_range. Do not
5547 use __builtin_expect for paths that lead to a noreturn function.
5548 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
5549 because it is unclear whether this is in fact an unlikely
5550 condition.
5551 (_int_malloc, _int_free): Adjust.
5552 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
5553 variables.
5554 * malloc/arena.c (heap_trim): Likewise.
5555
5556 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5557
5558 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
5559 it, free it if needed.
5560 (reauthenticate): Test and use ccwdir.
5561 (child_init_port): In non-resetids case, test and use ccwdir.
5562 (child_chdir): New nested function to set ccwdir.
5563 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
5564 * hurd/hurd/port.h (_hurd_port_move): New function.
5565 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
5566 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
5567 * hurd/Versions (_hurd_port_move): Export function.
5568 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
5569 symbol.
5570 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
5571 of dtablesize for allocating dtable_cloexec.
5572
5573 2018-11-09 Martin Sebor <msebor@redhat.com>
5574
5575 * include/libc-symbols.h (__attribute_copy__): Define macro unless
5576 it's already defined.
5577 (_strong_alias): Use __attribute_copy__.
5578 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
5579 * misc/sys/cdefs.h (__attribute_copy__): New macro.
5580 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
5581 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
5582 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
5583 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
5584 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
5585 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
5586 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
5587 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
5588 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
5589 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
5590 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
5591 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
5592 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
5593 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
5594 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
5595 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
5596 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
5597
5598 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5599
5600 * misc/tst-efgcvt.c: Include support/check.h and
5601 support/test-driver.c. Do not include test-skeleton.c.
5602 (error_count): Remove.
5603 (output_error): Replace increments to error_count with calls to
5604 support_record_failure.
5605 (output_r_error): Likewise.
5606 (special): Likewise.
5607 (do_test): Unconditionally return zero.
5608 (TEST_FUNCTION): Remove.
5609
5610 2018-11-09 Joseph Myers <joseph@codesourcery.com>
5611
5612 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
5613 not $(@D)/scratch.
5614 ($(linknamespace-header-tests)): Likewise.
5615
5616 * conform/conformtest.py: New file.
5617 * conform/conformtest.pl: Remove.
5618 * conform/GlibcConform.pm: Likewise.
5619 * conform/glibcconform.py (KEYWORDS_C90): New constant.
5620 (KEYWORDS_C99): Likewise.
5621 (KEYWORDS): Likewise.
5622 * conform/Makefile ($(conformtest-header-tests)): Use
5623 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
5624 option. Use --header instead of --headers.
5625 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
5626 function entries.
5627 * conform/data/spawn.h-data: Likewise.
5628 * conform/data/fcntl.h-data (openat): Add space after function
5629 name.
5630 * conform/data/wchar.h-data (wcscasecmp): Likewise.
5631 (wcscasecmp_l): Likewise.
5632 * conform/data/termios.h-data (c_cc): Add space after element
5633 name.
5634
5635 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5636
5637 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
5638 instead of manually comparing and reporting mismatching strings.
5639 * misc/tst-ldbl-error.c (do_one_test): Likewise.
5640 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5641
5642 2018-11-08 Joseph Myers <joseph@codesourcery.com>
5643
5644 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
5645 __ASSUME_SOCKETCALL.
5646 * sysdeps/unix/sysv/linux/i386/kernel-features.h
5647 (__ASSUME_SOCKETCALL): Remove.
5648 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5649 (__ASSUME_SOCKETCALL): Likewise.
5650 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5651 (__ASSUME_SOCKETCALL): Likewise.
5652 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5653 (__ASSUME_SOCKETCALL): Likewise.
5654 * sysdeps/unix/sysv/linux/s390/kernel-features.h
5655 (__ASSUME_SOCKETCALL): Likewise.
5656 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5657 (__ASSUME_SOCKETCALL): Likewise.
5658 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5659 (__ASSUME_SOCKETCALL): Likewise.
5660
5661 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
5662
5663 [BZ #23509]
5664 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
5665 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
5666 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
5667 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
5668 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
5669 lc_unknown.
5670
5671 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
5672
5673 [BZ #17630]
5674 * resolv/tst-resolv-network.c: Add test for getnetbyname.
5675
5676 2018-11-07 Joseph Myers <joseph@codesourcery.com>
5677
5678 [BZ #23867]
5679 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5680 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5681 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5682 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5683
5684 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5685
5686 * support/support_test_compare_string.c
5687 (support_test_compare_string): Fix printf format.
5688
5689 2018-11-07 Florian Weimer <fweimer@redhat.com>
5690
5691 Implement TEST_COMPARE_STRING.
5692 * support/check.h (TEST_COMPARE_STRING): Define.
5693 (support_test_compare_string): Declare.
5694 * support/Makefile (libsupport-routines): Add
5695 support_test_compare_string.
5696 (tests): Add tst-test_compare_string.
5697 * support/support_test_compare_string.c: New file.
5698 * support/tst-test_compare_string.c: Likewise.
5699
5700 2018-11-07 Andreas Schwab <schwab@suse.de>
5701
5702 [BZ #23864]
5703 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
5704 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
5705 Undef.
5706
5707 2018-11-06 Joseph Myers <joseph@codesourcery.com>
5708
5709 [BZ #23862]
5710 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5711 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
5712 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
5713 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
5714 Likewise.
5715
5716 2018-11-06 Florian Weimer <fweimer@redhat.com>
5717
5718 [BZ #17405]
5719 * posix/Makefile (routines): Add spawn_faction_addchdir.
5720 (tests): Add tst-spawn-chdir.
5721 * posix/Versions (GLIBC_2.29): Add
5722 posix_spawn_file_actions_addchdir_np.
5723 * posix/spawn_faction_addchdir.c: New file.
5724 * posix/spawn_faction_destroy.c
5725 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
5726 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
5727 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
5728 chdir_action.
5729 * posix/tst-spawn-chdir.c: New file.
5730 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
5731 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5732 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5733 posix_spawn_file_actions_addchdir_np.
5734 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5735 Likewise.
5736 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5737 Likewise.
5738 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5739 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5740 Likewise.
5741 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5742 Likewise.
5743 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5744 Likewise.
5745 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5746 Likewise.
5747 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5748 Likewise.
5749 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5750 Likewise.
5751 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5752 (GLIBC_2.29): Likewise.
5753 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5754 (GLIBC_2.29): Likewise.
5755 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5756 (GLIBC_2.29): Likewise.
5757 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5758 (GLIBC_2.29): Likewise.
5759 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5760 Likewise.
5761 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5762 (GLIBC_2.29): Likewise.
5763 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5764 (GLIBC_2.29): Likewise.
5765 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5766 (GLIBC_2.29): Likewise.
5767 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5768 (GLIBC_2.29): Likewise.
5769 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5770 Likewise.
5771 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5772 Likewise.
5773 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5774 Likewise.
5775 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5776 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5777 Likewise.
5778 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5779 Likewise.
5780 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5781 Likewise.
5782 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5783 Likewise.
5784
5785 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5786
5787 * misc/Makefile (tests): Add tst-ldbl-error.
5788 * misc/tst-ldbl-error.c: New file.
5789
5790 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5791
5792 * misc/Makefile (tests): Add tst-ldbl-warn.
5793 * misc/tst-ldbl-warn.c: New file.
5794
5795 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5796
5797 * argp/Makefile (tests): Add tst-ldbl-argp.
5798 * argp/tst-ldbl-argp.c: New file.
5799
5800 2018-11-05 Arjun Shankar <arjun@redhat.com>
5801
5802 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
5803 __gconv_path_elem and call __gconv_get_path unconditionally.
5804
5805 2018-11-05 Andreas Schwab <schwab@suse.de>
5806
5807 [BZ #22927]
5808 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
5809 creating the first helper thread failed.
5810
5811 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5812
5813 * sysdeps/mach/hurd/msync.c: New file.
5814
5815 2018-11-02 Florian Weimer <fweimer@redhat.com>
5816
5817 * support/shell-container.c (copy_func): Call
5818 support_copy_file_range instead of copy_file_range to support
5819 cross-device copies.
5820
5821 2018-11-02 Florian Weimer <fweimer@redhat.com>
5822
5823 * support/test-container.c: Include <libc-pointer-arith.h> for
5824 ALIGN_UP.
5825
5826 2018-11-01 Zong Li <zong@andestech.com>
5827
5828 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
5829 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
5830 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
5831 (__FP_FRAC_SET_8): Add implementation for RV32 use.
5832
5833 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
5834 variable to avoid overlap arguments.
5835
5836 2018-11-01 Joseph Myers <joseph@codesourcery.com>
5837
5838 * posix/bug-regex22.c (main): Use puts with distinct error
5839 messages for unexpected success of re_compile_pattern, not printf
5840 with NULL argument to %s.
5841
5842 * stdio-common/bug22.c: Include <libc-diag.h>.
5843 (do_test): Disable -Wformat-overflow= warnings around fprintf
5844 calls outputting more than INT_MAX characters.
5845 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
5846 around printf call with NULL %s argument.
5847
5848 [BZ #23848]
5849 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
5850 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
5851 Undefine.
5852 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5853 (__ASSUME_RECVMSG_SYSCALL): Likewise.
5854 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5855 (__ASSUME_SENDTO_SYSCALL): Likewise.
5856 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5857 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
5858 [!__arch64__].
5859 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5860 (__ASSUME_CONNECT_SYSCALL): Likewise.
5861 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5862 (__ASSUME_RECVFROM_SYSCALL): Likewise.
5863 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
5864 Define.
5865 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
5866 Likewise.
5867 [__LINUX_KERNEL_VERSION >= 0x040400]
5868 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5869 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
5870 Remove.
5871 (listen): Likewise.
5872 (setsockopt): Likewise.
5873
5874 2018-11-01 Fredrik Noring <noring@nocrew.org>
5875
5876 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
5877 with the ISA override.
5878
5879 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
5880
5881 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
5882 #endif.
5883
5884 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
5885
5886 * manual/errno.texi (EIEIO): Document how translators should
5887 translate the error message.
5888 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
5889 printing trailing whitespaces refused by git.
5890 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
5891 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5892 * hurd/Makefile (user-interfaces): Add pci.
5893
5894 2018-10-30 Joseph Myers <joseph@codesourcery.com>
5895
5896 * conform/linknamespace.py: New file.
5897 * conform/linknamespace.pl: Remove file.
5898 * conform/Makefile ($(linknamespace-header-tests)): Use
5899 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
5900 option.
5901
5902 2018-10-30 Florian Weimer <fweimer@redhat.com>
5903
5904 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
5905 memory leaks.
5906
5907 2018-10-30 Florian Weimer <fweimer@redhat.com>
5908
5909 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
5910
5911 2018-10-30 Florian Weimer <fweimer@redhat.com>
5912
5913 * stdlib/tst-strtod-overflow.c (do_test): Switch to
5914 support_blob_repeat.
5915
5916 2018-10-30 Florian Weimer <fweimer@redhat.com>
5917
5918 Avoid spurious test failures in stdlib/test-bz22786.
5919 * support/Makefile (libsupport-routines): Add blob_repeat.
5920 (tests): Add tst-support_blob_repeat.
5921 * support/blob_repeat.h: New file.
5922 * support/blob_repeat.c: Likewise.
5923 * support/tst-support_blob_repeat.c: Likewise.
5924 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
5925 support_blob_repeat_allocate.
5926
5927 2018-10-30 Andreas Schwab <schwab@suse.de>
5928
5929 [BZ #23125]
5930 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
5931 Don't use tail call.
5932 * elf/tst-unwind-main.c: New file.
5933 * elf/Makefile (tests): Add tst-unwind-main.
5934 (CFLAGS-tst-unwind-main.c): Define.
5935
5936 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
5937
5938 [BZ #23791]
5939 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
5940 n_cs_precedes to 0.
5941 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
5942
5943 2018-10-29 Joseph Myers <joseph@codesourcery.com>
5944
5945 * conform/glibcconform.py: Do not import shutil.
5946 (list_exported_functions): Use tempfile.TemporaryDirectory instead
5947 of mkdtemp.
5948
5949 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5950 critic_missing for versions before 3.4.
5951 * configure: Regenerated.
5952 * manual/install.texi (Tools for Compilation): Document
5953 requirement for Python to build glibc.
5954 * INSTALL: Regenerated.
5955 * Rules [PYTHON]: Make code unconditional.
5956 * benchtests/Makefile [PYTHON]: Likewise.
5957 * conform/Makefile [PYTHON]: Likewise.
5958 * manual/Makefile [PYTHON]: Likewise.
5959 * math/Makefile [PYTHON]: Likewise.
5960
5961 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5962
5963 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5964 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5965 answer to interrupt_operation, return EIEIO instead of EINTR.
5966 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5967 _hurd_intr_rpc_msg_about_to global point to start of controlled
5968 assembly snippet. Make it check canceled flag.
5969 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5970 the _hurd_intr_rpc_msg_about_to point.
5971 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
5972 issue, remove cancel flag check.
5973
5974 2018-10-26 Joseph Myers <joseph@codesourcery.com>
5975
5976 * scripts/build-many-glibcs.py: Remove compatibility for missing
5977 os.cpu_count and re.fullmatch.
5978
5979 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
5980
5981 [BZ #23822]
5982 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
5983 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
5984 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
5985
5986 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5987
5988 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
5989 macro.
5990
5991 2018-10-25 Florian Weimer <fweimer@redhat.com>
5992
5993 [BZ #23562]
5994 [BZ #23821]
5995 XFAIL siginfo_t si_band conform test on sparc64.
5996 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
5997 (__SI_BAND_TYPE): Only override long int default type on sparc64.
5998 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5999 (conformtest-xfail-conds): Add sparc64-linux.
6000 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
6001 sparc64.
6002 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
6003
6004 2018-10-25 Joseph Myers <joseph@codesourcery.com>
6005
6006 * elf/elf.h (NT_MIPS_DSP): New macro.
6007 (NT_MIPS_FP_MODE): Likewise.
6008
6009 2018-10-25 Zong Li <zong@andestech.com>
6010
6011 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
6012 name by adding the file extension (.so).
6013
6014 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
6015
6016 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
6017 (test-xfail-ISO11/threads.h/linknamespace,
6018 test-xfail-ISO11/threads.h/conform): Add.
6019
6020 2018-10-24 Joseph Myers <joseph@codesourcery.com>
6021
6022 * math/gen-libm-test.py: Import os.
6023 (ALL_FLOATS_MANUAL): New constant.
6024 (ALL_FLOATS_SUFFIX): Likewise.
6025 (Ulps.all_functions): New function.
6026 (real_all_ulps): Likewise.
6027 (generate_err_table_sub): Likewise.
6028 (generate_err_table): Likewise.
6029 (main): Handle -s and -m options.
6030 * manual/libm-err-tab.pl: Remove.
6031 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
6032 instead of libm-err-tab.pl.
6033 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
6034 != no].
6035 * manual/install.texi (Tools for Compilation): Document
6036 requirement for Python to build manual.
6037 * INSTALL: Regenerated.
6038
6039 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
6040
6041 * bits/time64.h: New file.
6042 * include/time.h: Replace internal_time_t with __time64_t.
6043 * posix/bits/types (__time64_t): Add.
6044 * stdlib/Makefile: Add bits/time64.h to includes.
6045 * time/tzfile.c: Replace internal_time_t with __time64_t.
6046
6047 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6048
6049 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
6050 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
6051 __posix_spawn_file_actions_init, __posix_spawnattr_init,
6052 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
6053 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
6054 prototype.
6055 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
6056 * posix/spawn_faction_addclose.c
6057 (__posix_spawn_file_actions_addclose): Add hidden definition.
6058 * posix/spawn_faction_adddup2.c
6059 (__posix_spawn_file_actions_adddup2): Likewise.
6060 * posix/spawn_faction_destroy.c
6061 (__posix_spawn_file_actions_destroy): Likewise.
6062 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
6063 Likewise.
6064 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
6065 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
6066 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
6067 Likewise.
6068 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
6069 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
6070 Likewise.
6071
6072 2018-10-24 Andreas Schwab <schwab@suse.de>
6073
6074 [BZ #18093]
6075 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
6076 format cache.
6077 * elf/cache.c (print_cache): Likewise.
6078
6079 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
6080
6081 * bits/timesize.h: New file.
6082 * stdlib/Makefile (headers): Add bits/timesize.h.
6083 * sysdeps/unix/sysv/linux/bits/msq-pad.h
6084 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
6085 * sysdeps/unix/sysv/linux/bits/sem-pad.h
6086 (__SEM_PAD_AFTER_TIME): Likewise.
6087 * sysdeps/unix/sysv/linux/bits/shm-pad.h
6088 (__SHM_PAD_AFTER_TIME): Likewise.
6089 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
6090 (__MSQ_PAD_BEFORE_TIME): Likewise.
6091 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
6092 (__SEM_PAD_BEFORE_TIME): Likewise.
6093 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
6094 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
6095 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
6096 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
6097 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
6098 (__MSQ_PAD_BEFORE_TIME): Likewise.
6099 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
6100 (__SEM_PAD_BEFORE_TIME): Likewise.
6101 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
6102 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
6103 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
6104 (__MSQ_PAD_BEFORE_TIME): Likewise.
6105 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
6106 (__SEM_PAD_BEFORE_TIME): Likewise.
6107 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
6108 (__SHM_PAD_BEFORE_TIME): Likewise.
6109 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
6110 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6111 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
6112
6113 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
6114
6115 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
6116 USE_RDTSCP is defined.
6117 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
6118 USE_RDTSCP is defined.
6119
6120 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6121
6122 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
6123 defined.
6124
6125 [BZ #23709]
6126 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
6127 independently of other flags.
6128
6129 2018-10-23 Florian Weimer <fweimer@redhat.com>
6130
6131 * time/tst-mktime2.c (N_STRINGS): Remove.
6132 (set_timezone): New function.
6133 (spring_forward_gap): Call it. Use FAIL_EXIT1.
6134 (mktime_test1): Report localtime failure and check errno value.
6135 Use TEST_COMPARE.
6136 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
6137 (do_test): Remove alarm call. Use set_timezone and array_length.
6138
6139 2018-10-23 Andreas Schwab <schwab@suse.de>
6140
6141 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
6142 (__start_context): Use END instead of PSEUDO_END.
6143
6144 2018-10-22 Joseph Myers <joseph@codesourcery.com>
6145
6146 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6147 version to 4.19.
6148
6149 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6150 version to 4.19.
6151
6152 [BZ #23793]
6153 * wcsmbs/c32rtomb.c: New file.
6154 * wcsmbs/mbrtoc32.c: Likewise.
6155 * wcsmbs/tst-c32-state.c: Likewise.
6156 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
6157 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
6158 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
6159 (tests): Add tst-c32-state.
6160 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
6161 $(gen-locales).
6162
6163 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
6164
6165 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
6166 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
6167
6168 2018-10-19 Joseph Myers <joseph@codesourcery.com>
6169
6170 [BZ #23794]
6171 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
6172 pair and return 0 in that case, and use saved character to
6173 interpret following character.
6174 * wcsmbs/tst-c16-surrogate.c: New file.
6175 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
6176 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
6177 Depend on $(gen-locales)
6178
6179 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6180
6181 [BZ #23562]
6182 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
6183 (struct siginfo_t): Use correct type for si_band.
6184
6185 2018-10-19 Florian Weimer <fweimer@redhat.com>
6186
6187 [BZ #23689]
6188 * resource/bits/types/struct_rusage.h (struct rusage): Update
6189 comment on struct. Remove extraneous field comment.
6190
6191 2018-10-18 David S. Miller <davem@davemloft.net>
6192
6193 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
6194 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
6195 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
6196 sysdep_routines in subdir elf.
6197 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
6198 version for __vdso_clock_gettime.
6199 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
6200 Define.
6201 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
6202 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
6203
6204 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
6205
6206 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
6207
6208 * sysdeps/i386/init-arch.h: Removed.
6209 * sysdeps/i386/i586/init-arch.h: Likewise.
6210 * sysdeps/i386/i686/init-arch.h: Likewise.
6211 * sysdeps/i386/i686/hp-timing.h: Likewise.
6212 * sysdeps/x86_64/hp-timing.h: Likewise.
6213 * sysdeps/i386/isa.h: New file.
6214 * sysdeps/i386/i586/isa.h: Likewise.
6215 * sysdeps/i386/i686/isa.h: Likewise.
6216 * sysdeps/x86_64/isa.h: Likewise.
6217 * sysdeps/x86/hp-timing.h: New file.
6218 * sysdeps/x86/init-arch.h: Include <isa.h>.
6219
6220 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6221
6222 * math/libm-test-pow.inc (pow_test_data): Do not allow
6223 divide-by-zero exception for pow(+/- 0, -Inf).
6224
6225 2018-10-17 Zack Weinberg <zackw@panix.com>
6226
6227 * manual/job.texi (Job Control is Optional): Remove node, as
6228 job control has not been optional in quite some time.
6229 (Job Control): Mention briefly that systems older than
6230 POSIX.1-2001 might not support job control.
6231 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
6232 defined on systems conforming to POSIX.1-2001.
6233
6234 2018-10-17 Arjun Shankar <arjun@redhat.com>
6235
6236 [BZ #22062]
6237 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
6238 indentation.
6239 * (__gconv_read_conf): Mark function static.
6240 * (once): New static variable.
6241 * (__gconv_load_conf): New function.
6242 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
6243 * iconv/gconv_db.c (once): Remove static variable.
6244 * (__gconv_compare_alias): Use __gconv_load_conf instead of
6245 __gconv_read_conf.
6246 * (__gconv_find_transform): Likewise.
6247 * iconv/tst-iconv-mt.c: New test.
6248 * iconv/Makefile: Add tst-iconv_mt.
6249
6250 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6251
6252 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6253 bits/shm-pad.h.
6254 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
6255 (shmatt_t): Define as __syscall_ulong_t.
6256 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
6257 and [__SHM_PAD_AFTER_TIME].
6258 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
6259 Define shm_segsz and associated padding based on
6260 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
6261 Use __syscall_ulong_t instead of unsigned long int.
6262 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
6263 unsigned long int.
6264 [__USE_MISC] (struct shm_info): Likewise.
6265 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
6266 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
6267 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
6268 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
6269 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
6270 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6271 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
6272 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
6273 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6274 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6275 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
6276
6277 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6278 bits/shmlba.h.
6279 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
6280 (SHMLBA): Remove macro.
6281 (__getpagesize): Remove function declaration.
6282 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
6283 <bits/shmlba.h>.
6284 (SHMLBA): Remove macro.
6285 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
6286 <bits/shmlba.h>.
6287 (SHMLBA): Remove macro.
6288 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
6289 <bits/shmlba.h>.
6290 (SHMLBA): Remove macro.
6291 (__getpagesize): Remove function declaration.
6292 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
6293 <bits/shmlba.h>.
6294 (SHMLBA): Remove macro.
6295 (__getshmlba): Remove function declaration.
6296 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
6297 (SHMLBA): Remove macro.
6298 (__getpagesize): Remove function declaration.
6299 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
6300 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6301 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6302 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
6303 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
6304 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
6305 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
6306 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
6307 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
6308 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
6309
6310 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
6311
6312 [BZ #23275]
6313 * nptl/tst-mutex10.c: New File.
6314 * nptl/Makefile (tests): Add tst-mutex10.
6315 (tst-mutex10-ENV): New variable.
6316 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
6317 Ensure that elision path is used if elision is available.
6318 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
6319 Likewise.
6320 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
6321 Likewise.
6322 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
6323 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
6324 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
6325 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
6326 Likewise.
6327 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
6328 (__pthread_mutex_cond_lock_adjust): Likewise.
6329 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
6330 Likewise.
6331 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
6332 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
6333 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6334 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
6335 Add comments.
6336 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
6337 Use atomic_load_relaxed and atomic_store_relaxed.
6338 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
6339 Use atomic_store_relaxed.
6340
6341 2018-10-17 Andreas Schwab <schwab@suse.de>
6342
6343 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
6344 * crypt/badsalttest.c (TIMEOUT): Likewise.
6345 * crypt/sha256c-test.c (TIMEOUT): Likewise.
6346 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
6347 * io/test-lfs.c (TIMEOUT): Likewise.
6348 * libio/tst-atime.c (TIMEOUT): Likewise.
6349 * localedata/tst-leaks.c (TIMEOUT): Likewise.
6350 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
6351 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
6352 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
6353 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
6354 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
6355 * nptl/tst-cond11.c (TIMEOUT): Likewise.
6356 * nptl/tst-cond14.c (TIMEOUT): Likewise.
6357 * nptl/tst-cond15.c (TIMEOUT): Likewise.
6358 * nptl/tst-cond24.c (TIMEOUT): Likewise.
6359 * nptl/tst-cond25.c (TIMEOUT): Likewise.
6360 * nptl/tst-kill2.c (TIMEOUT): Likewise.
6361 * nptl/tst-kill3.c (TIMEOUT): Likewise.
6362 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
6363 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
6364 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
6365 * nptl/tst-once2.c (TIMEOUT): Likewise.
6366 * nptl/tst-once3.c (TIMEOUT): Likewise.
6367 * nptl/tst-once4.c (TIMEOUT): Likewise.
6368 * nptl/tst-robust8.c (TIMEOUT): Likewise.
6369 * nptl/tst-robust9.c (TIMEOUT): Likewise.
6370 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
6371 * nptl/tst-sem14.c (TIMEOUT): Likewise.
6372 * nptl/tst-sem6.c (TIMEOUT): Likewise.
6373 * nptl/tst-signal3.c (TIMEOUT): Likewise.
6374 * nptl/tst-spin4.c (TIMEOUT): Likewise.
6375 * nptl/tst-tls3.c (TIMEOUT): Likewise.
6376 * nptl/tst-tls4.c (TIMEOUT): Likewise.
6377 * posix/tst-chmod.c (TIMEOUT): Likewise.
6378 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
6379 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
6380 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
6381 * posix/tst-regex2.c (TIMEOUT): Likewise.
6382 * posix/tst-waitid.c (TIMEOUT): Likewise.
6383 * rt/tst-aio.c (TIMEOUT): Likewise.
6384 * rt/tst-aio10.c (TIMEOUT): Likewise.
6385 * rt/tst-aio4.c (TIMEOUT): Likewise.
6386 * rt/tst-aio5.c (TIMEOUT): Likewise.
6387 * rt/tst-aio6.c (TIMEOUT): Likewise.
6388 * rt/tst-aio64.c (TIMEOUT): Likewise.
6389 * rt/tst-aio7.c (TIMEOUT): Likewise.
6390 * rt/tst-aio9.c (TIMEOUT): Likewise.
6391 * rt/tst-clock.c (TIMEOUT): Likewise.
6392 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
6393 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
6394 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
6395 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
6396 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
6397 * rt/tst-timer4.c (TIMEOUT): Likewise.
6398 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
6399 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
6400 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
6401 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
6402 * time/tst-ftime.c (TIMEOUT): Likewise.
6403 * timezone/tst-tzset.c (TIMEOUT): Likewise.
6404
6405 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
6406
6407 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
6408 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
6409 for thunderX2.
6410
6411 2018-10-15 Joseph Myers <joseph@codesourcery.com>
6412
6413 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6414 bits/sem-pad.h.
6415 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
6416 instead of <bits/wordsize.h>.
6417 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
6418 and [__SEM_PAD_AFTER_TIME].
6419 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
6420 __syscall_ulong_t instead of unsigned long int.
6421 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
6422 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
6423 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
6424 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
6425 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
6426 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
6427 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
6428 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
6429 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
6430 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
6431 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
6432
6433 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
6434
6435 regex: simplify by using intprops.h
6436 [BZ#23744]
6437 * posix/regex_internal.h [_LIBC]: Include intprops.h.
6438 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
6439 intprops.h defines them.
6440
6441 regex: __builtin_expect → __glibc_unlikely
6442 [BZ#23744]
6443 This refactoring was prompted by a problem when the regex code is
6444 used as part of Gnulib and when the builder’s compiler does not grok
6445 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
6446 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
6447 Although this refactoring does not fix the problem directly,
6448 we might as well have Gawk use the now-preferred glibc style for when
6449 __builtin_expect is unavailable.
6450 * posix/regex_internal.h (BE): Remove.
6451 All uses replaced by __glibc_unlikely or __glibc_likely.
6452
6453 2018-10-11 Joseph Myers <joseph@codesourcery.com>
6454
6455 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6456 bits/msq-pad.h.
6457 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
6458 instead of <bits/wordsize.h>.
6459 (msgqnum_t): Define as __syscall_ulong_t.
6460 (msglen_t): Likewise.
6461 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
6462 and [__MSQ_PAD_AFTER_TIME].
6463 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
6464 __syscall_ulong_t instead of unsigned long int.
6465 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
6466 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
6467 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
6468 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
6469 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
6470 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
6471 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
6472 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
6473 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
6474 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
6475 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
6476
6477 2018-10-10 Joseph Myers <joseph@codesourcery.com>
6478
6479 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
6480 (struct shmid_ds): Condition padding after time fields on
6481 [__WORDSIZE == 32].
6482 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
6483 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
6484 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6485
6486 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
6487 (struct semid_ds): Condition padding after time fields on
6488 [__WORDSIZE == 32].
6489 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
6490 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
6491 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
6492 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
6493
6494 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
6495 (struct msqid_ds): Condition padding after time fields on
6496 [__WORDSIZE == 32].
6497 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
6498 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
6499 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
6500 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
6501
6502 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6503
6504 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
6505
6506 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6507
6508 * libio/tst-readline.c (TIMEOUT): Define.
6509
6510 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
6511
6512 mktime fix for Gnulib + coreutils
6513 [BZ#23745]
6514 This fix affects only Gnulib. Problem discovered when
6515 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
6516 * time/mktime.c:
6517 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
6518 Do not define since it is not used. Defining an unused static
6519 function prompts a warning from GCC when Coreutils is configured
6520 with --enable-gcc-warnings.
6521
6522 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6523
6524 * benchtests/scripts/compare_bench.py (main): set float type on
6525 threshold argument.
6526
6527 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
6528
6529 [BZ #23740]
6530 * localedata/locales/kl_GL (mon): Update, the relative case.
6531 (alt_mon): Add, fill with month names in the nominative case.
6532 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
6533 (d_fmt): Set to "%b %d %Y".
6534
6535 2018-10-04 Joseph Myers <joseph@codesourcery.com>
6536
6537 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
6538 <bits/mman-linux.h>.
6539 (PROT_READ): Don't define here.
6540 (PROT_WRITE): Likewise.
6541 (PROT_EXEC): Likewise.
6542 (PROT_NONE): Likewise.
6543 (PROT_GROWSDOWN): Likewise.
6544 (PROT_GROWSUP): Likewise.
6545 (MAP_SHARED): Likewise.
6546 (MAP_PRIVATE): Likewise.
6547 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
6548 [__USE_MISC] (MAP_FILE): Likewise.
6549 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
6550 [__USE_MISC] (MAP_ANON): Likewise.
6551 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
6552 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
6553 (MCL_CURRENT): Likewise.
6554 (MCL_FUTURE): Likewise.
6555 (MCL_ONFAULT): Likewise.
6556 [__USE_MISC] (MADV_NORMAL): Likewise.
6557 [__USE_MISC] (MADV_RANDOM): Likewise.
6558 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
6559 [__USE_MISC] (MADV_WILLNEED): Likewise.
6560 [__USE_MISC] (MADV_DONTNEED): Likewise.
6561 [__USE_MISC] (MADV_FREE): Likewise.
6562 [__USE_MISC] (MADV_REMOVE): Likewise.
6563 [__USE_MISC] (MADV_DONTFORK): Likewise.
6564 [__USE_MISC] (MADV_DOFORK): Likewise.
6565 [__USE_MISC] (MADV_HWPOISON): Likewise.
6566 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
6567 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
6568 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
6569 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
6570 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
6571 (__MAP_ANONYMOUS): New macro.
6572 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
6573 <bits/mman-linux.h> inclusion.
6574 (MAP_FIXED): Likewise.
6575 (MS_SYNC): Likewise.
6576 (MS_ASYNC): Likewise.
6577 (MS_INVALIDATE): Likewise.
6578 [__USE_MISC] (MADV_MERGEABLE): Likewise.
6579 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
6580 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
6581 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
6582 [__USE_MISC] (MADV_DONTDUMP): Likewise.
6583 [__USE_MISC] (MADV_DODUMP): Likewise.
6584 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
6585 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
6586
6587 [BZ #23735]
6588 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
6589 Define.
6590 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
6591 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
6592 Add test-nldbl-redirect.
6593 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
6594 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
6595 $(objpfx)libnldbl_nonshared.a.
6596
6597 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
6598
6599 * support/support.h (support_objdir_elf_ldso): New variable.
6600 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
6601 * support/Makefile (CFLAGS-support_paths.c): Add definition
6602 for OBJDIR_ELF_LDSO_PATH.
6603 * support/test-container.c (main): Search for the ld.so
6604 which is also used by the testsuite.
6605
6606 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
6607
6608 [BZ #20209]
6609 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
6610 should be "sap" rather than "sab".
6611 (day): Fix spelling of Sunday, should be "sapaat" rather than
6612 "sabaat".
6613
6614 2018-10-02 Joseph Myers <joseph@codesourcery.com>
6615
6616 * math/libm-test-fma.inc (fma_test_data): Add more tests.
6617
6618 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
6619
6620 [BZ #19444]
6621 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
6622 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
6623 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
6624
6625 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6626
6627 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
6628
6629 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
6630
6631 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
6632 Add -mrtm.
6633 (CFLAGS-elision-unlock.c): Likewise.
6634 (CFLAGS-elision-timed.c): Likewise.
6635 (CFLAGS-elision-trylock.c): Likewise.
6636 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
6637
6638 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6639
6640 [BZ #21037]
6641 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
6642 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
6643 new fd_to_filename interface.
6644 * libio/freopen64.c (freopen64): Likewise.
6645 * libio/tst-memstream.h: New file.
6646 * libio/tst-memstream4.c: Likewise.
6647 * libio/tst-wmemstream4.c: Likewise.
6648 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
6649 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
6650 and remove internal dynamic allocation.
6651
6652 2018-10-01 Joseph Myers <joseph@codesourcery.com>
6653
6654 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
6655 (MREMAP_MAYMOVE): Do not define here.
6656 [__USE_GNU] (MREMAP_FIXED): Likewise.
6657 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
6658 (MREMAP_MAYMOVE): Define here instead.
6659 [__USE_GNU] (MREMAP_FIXED): Likewise.
6660 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
6661 (MREMAP_MAYMOVE): Remove.
6662 [__USE_GNU] (MREMAP_FIXED): Likewise.
6663
6664 2018-09-28 Joseph Myers <joseph@codesourcery.com>
6665
6666 * math/fromfp.h: Do not include <math_private.h>.
6667 * math/s_cacosh_template.c: Likewise.
6668 * math/s_casin_template.c: Likewise.
6669 * math/s_casinh_template.c: Likewise.
6670 * math/s_ccos_template.c: Likewise.
6671 * math/s_cproj_template.c: Likewise.
6672 * math/s_fdim_template.c: Likewise.
6673 * math/s_fmaxmag_template.c: Likewise.
6674 * math/s_fminmag_template.c: Likewise.
6675 * math/s_iseqsig_template.c: Likewise.
6676 * math/s_ldexp_template.c: Likewise.
6677 * math/s_nextdown_template.c: Likewise.
6678 * math/w_log1p_template.c: Likewise.
6679 * math/w_scalbln_template.c: Likewise.
6680 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6681 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6682 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6683 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6684 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
6685 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
6686 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
6687 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
6688 * sysdeps/i386/fpu/s_atanl.c: Likewise.
6689 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
6690 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6691 * sysdeps/i386/fpu/s_fdim.c: Likewise.
6692 * sysdeps/i386/fpu/s_logbl.c: Likewise.
6693 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6694 * sysdeps/i386/fpu/s_significandl.c: Likewise.
6695 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
6696 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
6697 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6698 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6699 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6700 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6701 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6702 * sysdeps/ieee754/k_standardf.c: Likewise.
6703 * sysdeps/ieee754/k_standardl.c: Likewise.
6704 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6705 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
6706 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
6707 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
6708 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
6709 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
6710 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
6711 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6712 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6713 * sysdeps/ieee754/s_signgam.c: Likewise.
6714 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
6715 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
6716 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
6717 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6718 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6719 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6720 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6721 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6722 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6723 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6724 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6725 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6726 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6727 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6728 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6729 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6730 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6731 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6732 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6733 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6734 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6735 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6736 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6737 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6738 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6739 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6740 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6741 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6742 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6743 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6744 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6745 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6746 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6747 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6748 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6749 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6750 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
6751 <math_private.h>.
6752 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6753
6754 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
6755
6756 [BZ #23716]
6757 * sysdeps/i386/dl-cet.c: Removed.
6758 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
6759 prototype.
6760 (_dl_runtime_profile_shstk): Likewise.
6761 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
6762 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
6763
6764 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6765
6766 [BZ #23579]
6767 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
6768 do_test_with_invalid_iov): New tests.
6769 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
6770 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
6771 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
6772 errno is ENOSYS.
6773 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
6774 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
6775 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
6776
6777 2018-09-27 Joseph Myers <joseph@codesourcery.com>
6778
6779 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6780 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
6781 (MATH_REDIRECT_BINARY_ARGS): New macro.
6782 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6783 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
6784 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
6785 header inclusion.
6786 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
6787 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
6788 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
6789 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6790 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6791 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6792 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
6793 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
6794 Likewise.
6795 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
6796 Likewise.
6797 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
6798 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
6799 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
6800 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
6801 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
6802 Likewise.
6803 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
6804 Likewise.
6805 * sysdeps/generic/math_private_calls.h
6806 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
6807 Do not declare and define as an inline function.
6808 * math/divtc3.c (__divtc3): Use copysign functions instead of
6809 __copysign variants.
6810 * math/multc3.c (__multc3): Likewise.
6811 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
6812 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
6813 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
6814 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6815 Likewise.
6816 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
6817 (__ieee754_yn): Likewise.
6818 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
6819 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
6820 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
6821 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6822 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
6823 (__sin): Likewise.
6824 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
6825 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
6826 Likewise.
6827 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
6828 Likewise.
6829 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
6830 Likewise.
6831 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
6832 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6833 Likewise.
6834 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
6835 (__ieee754_ynf): Likewise.
6836 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
6837 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6838 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6839 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6840 Likewise.
6841 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
6842 (__ieee754_ynl): Likewise.
6843 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6844 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6845 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6846 Likewise.
6847 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
6848 (__ieee754_ynl): Likewise.
6849 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
6850 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6851 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6852 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6853 Likewise.
6854 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6855 (__ieee754_ynl)
6856 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
6857 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6858 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
6859 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6860 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6861
6862 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6863 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
6864 using MATH_REDIRECT.
6865 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
6866 header inclusion.
6867 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
6868 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6869 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6870 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
6871 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6872 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
6873 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6874 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
6875 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
6876 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
6877 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
6878 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6879 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6880 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6881 (round): Redirect to __round.
6882 (__roundl): Call round instead of __round.
6883 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
6884 Remove macro.
6885 [_ARCH_PWR5X] (__roundf): Likewise.
6886 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
6887 functions instead of __round variants.
6888 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6889 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6890 Likewise.
6891 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6892 Likewise.
6893 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6894 Likewise.
6895 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
6896 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
6897 __lroundl.
6898 (__ieee754_expl): Call roundl instead of __roundl.
6899
6900 2018-09-27 Andreas Schwab <schwab@suse.de>
6901
6902 [BZ #23717]
6903 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
6904 (do_test): Make st1 static.
6905
6906 2018-09-26 Andreas Schwab <schwab@suse.de>
6907
6908 [BZ #23707]
6909 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
6910 * elf/Makefile (tests): Add tst-unwind-ctor.
6911 (modules-names): Add tst-unwind-ctor-lib.
6912 ($(objpfx)tst-unwind-ctor): Depend on
6913 $(objpfx)tst-unwind-ctor-lib.so.
6914
6915 2018-09-26 Joseph Myers <joseph@codesourcery.com>
6916
6917 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
6918 file. Most contents moved from ....
6919 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
6920 and include <bits/mman-map-flags-generic.h>.
6921 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6922 (sysdep_headers): Add bits/mman-map-flags-generic.h.
6923 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
6924 <bits/mman-map-flags-generic.h>.
6925 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
6926 macros defined in <bits/mman-map-flags-generic.h>.
6927 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
6928 <bits/mman-map-flags-generic.h>.
6929 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
6930 defined in <bits/mman-map-flags-generic.h>.
6931
6932 2018-09-26 Andreas Schwab <schwab@suse.de>
6933
6934 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
6935 output.
6936
6937 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
6938 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6939 Fangrui Song <maskray@google.com>
6940
6941 [BZ #20480]
6942 * config.make.in (have-textrel_ifunc): New define.
6943 * configure.ac: Add check if linker supports textrel relocation with
6944 ifunc.
6945 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
6946 tst-ifunc-textrel.
6947 (CFLAGS-tst-ifunc-textrel.c): New rule.
6948 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
6949 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6950 * elf/tst-ifunc-textrel.c: New file.
6951
6952 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6953
6954 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6955 <bits/procfs-prregset.h>.
6956 (prgregset_t): Define using __prgregset_t.
6957 (prfpregset_t): Define using __prfpregset_t.
6958 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6959 (sysdep_headers): Add bits/procfs-prregset.h.
6960 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6961 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6962 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6963 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6964
6965 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6966 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6967 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6968 pr_uid and pr_gid.
6969 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6970 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
6971 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
6972 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
6973 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
6974 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
6975 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
6976 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
6977 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
6978 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
6979 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
6980 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
6981 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
6982 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
6983 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
6984 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
6985 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
6986 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
6987 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
6988 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
6989 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
6990 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
6991 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
6992 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
6993
6994 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
6995 AArch64 version. Include <bits/procfs.h>.
6996 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6997 (sysdep_headers): Add bits/procfs.h.
6998 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6999 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
7000 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
7001 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
7002 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
7003 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
7004 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
7005 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
7006 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
7007 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
7008 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
7009 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
7010 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
7011 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
7012 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
7013 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
7014 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
7015
7016 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7017
7018 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
7019 Use libsupport.
7020
7021 2018-09-25 Arjun Shankar <arjun@redhat.com>
7022
7023 * iconv/gconv_int.h (__gconv_path_elem): Remove.
7024 (__gconv_max_path_elem_len): Likewise.
7025 (__gconv_nmodules): Likewise.
7026 (__gconv_get_path): Likewise.
7027 (path_elem): Move to ...
7028 * iconv/gconv_conf.c: ... here.
7029 (__gconv_get_path): Mark function static.
7030 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
7031 * iconv/gconv_open.c: ... here.
7032
7033 2018-09-24 Andreas Schwab <schwab@suse.de>
7034
7035 * scripts/haveversions.awk: New file.
7036 * Makerules ($(common-objpfx)Versions.def)
7037 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
7038 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
7039 Move rules ...
7040 * Makeconfig ($(common-objpfx)Versions.def)
7041 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
7042 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
7043 ... here.
7044 ($(common-objpfx)Versions.mk): New rule. Include it.
7045 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
7046 Emit error if build-obsolete-nsl = yes.
7047 * manual/install.texi (Configuring and compiling): Describe
7048 --enable-obsolete-nsl as unavaiable after version 2.28.
7049 * INSTALL: Regenerate.
7050
7051 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7052
7053 * NEWS: Add note about new TLE support on powerpc64le.
7054 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
7055 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
7056 __ununsed1.
7057 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
7058 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
7059 * sysdeps/powerpc/powerpc32/sysdep.h,
7060 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
7061 ABORT_TRANSACTION): Remove macros.
7062 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
7063 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
7064 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
7065 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
7066 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
7067 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
7068 usage.
7069 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
7070
7071 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
7072
7073 [BZ #10425]
7074 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
7075 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
7076 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
7077 which is the same as in it_IT.
7078 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
7079 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
7080
7081 2018-09-20 Joseph Myers <joseph@codesourcery.com>
7082
7083 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7084 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
7085 using MATH_REDIRECT.
7086 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
7087 header inclusion.
7088 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
7089 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
7090 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
7091 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
7092 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
7093 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
7094 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
7095 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
7096 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
7097 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
7098 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7099 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7100 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
7101 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
7102 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
7103 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
7104 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
7105 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7106 (ceil): Redirect to __ceil.
7107 (floor): Redirect to __floor.
7108 (trunc): Redirect to __trunc.
7109 (__truncl): Call trunc instead of __trunc.
7110 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
7111 Remove macro.
7112 [_ARCH_PWR5X] (__truncf): Likewise.
7113 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
7114 trunc functions instead of __trunc variants.
7115 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7116 Likewise.
7117 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7118 Likewise.
7119 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7120 Likewise.
7121 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7122 Likewise.
7123
7124 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
7125 [__i586__ || __pentium__].
7126 [__i486__]: Handle explicitly.
7127 (HAS_CPUID): Define to 1 if above macros are undefined.
7128 (HAS_I586): Likewise.
7129 (HAS_I686): Likewise.
7130
7131 2018-09-20 Florian Weimer <fweimer@redhat.com>
7132
7133 * misc/tst-gethostid.c: New file.
7134 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
7135 (tst-gethostid): Link with -ldl.
7136
7137 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
7138
7139 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
7140 value from gethostbyname_r.
7141
7142 2018-09-19 Carlos O'Donell <carlos@redhat.com>
7143
7144 * stdlib/tst-setcontext9.c (f1): Rename to...
7145 (f1a): ... this.
7146 (f1b): New function implementing lower half of f1 in alternate stack.
7147
7148 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
7149
7150 Fix mktime localtime offset confusion
7151 [BZ #23603]
7152 * include/time.h (__mktime_internal): The localtime offset is now
7153 of type long int instead of time_t. This is the longstanding type
7154 in glibc, and it is more than enough to represent difference
7155 between localtime and gmtime even if it is 32 bits and time_t is
7156 64. Changing it now will let us avoid an unnecessary change when
7157 time_t is widened to 64 bits on 32-bit platforms.
7158 * time/mktime-internal.h (mktime_offset_t): Now long int.
7159
7160 Merge mktime, timegm from upstream Gnulib
7161 [BZ #23603][BZ #16346]
7162 This fixes some obscure problems with integer overflow.
7163 Although it looks scary, it is almost all a byte-for-byte copy
7164 from Gnulib, and the Gnulib code has been tested reasonably well.
7165 * include/intprops.h: New file, copied from Gnulib.
7166 * include/verify.h, time/mktime-internal.h:
7167 New tiny files, simplified from Gnulib.
7168 * time/mktime.c: Copy from Gnulib. This has the following changes:
7169 Do not include config.h if DEBUG_MKTIME is nonzero.
7170 Include stdbool.h, intprops.h, verify.h.
7171 Include string.h only if needed.
7172 Include stdlib.h on MS-Windows.
7173 Include mktime-internal.h.
7174 (DEBUG_MKTIME): Default to 0, and simplify later uses.
7175 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
7176 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
7177 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
7178 simplify later conditionals; default the others to zero. Use
7179 these conditionals to express only the code needed on the current
7180 platform. In uses of these conditionals, explicitly spell out how
7181 _LIBC affects things, so it’s easier to review from a glibc
7182 viewpoint.
7183 (WRAPV): Remove; no longer needed now that we have
7184 systematic overflow checking.
7185 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
7186 compartmentalize tzset issues. Move system-dependent tzsettish
7187 code here from mktime.
7188 (verify): Remove; now done by verify.h. All uses changed.
7189 (long_int): Use a more-conservative definition, to avoid
7190 integer overflow.
7191 (SHR): Remove, replacing with ...
7192 (shr): New function, which means we needn’t worry about side
7193 effects in args, and conversion analysis is simpler.
7194 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
7195 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
7196 (time_t_avg, time_t_add_ok): Remove.
7197 (mktime_min, mktime_max): New constants.
7198 (leapyear, isdst_differ): Use bool for booleans.
7199 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
7200 Use long_int, not time_t, for mktime differences.
7201 (long_int_avg): New function, replacing time_t_avg.
7202 INT_ADD_WRAPV replaces time_t_add_ok.
7203 (guess_time_tm): 6th arg is now long_int, not time_t const *.
7204 All uses changed.
7205 (convert_time): New function.
7206 (ranged_convert): Use it.
7207 (__mktime_internal): Last arg now points to mktime_offset_t, not
7208 time_t. All uses changed. This is a no-op on glibc, where
7209 mktime_offset_t is always time_t. Use int, not time_t, for UTC
7210 offset guess. Directly check for integer overflow instead of
7211 using a heuristic that works only 99.9...% of the time.
7212 Access *OFFSET only once, to avoid an unlikely race if the
7213 compiler delays a load and if this cascades into a signed integer
7214 overflow.
7215 (mktime): Move tzsettish code to my_tzset, and move
7216 localtime_offset to within mktime so that it doesn’t
7217 need a separate ifdef.
7218 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
7219 instead of localtime.
7220 * time/timegm.c: Copy from Gnulib. This has the following changes:
7221 Include mktime-internal.h.
7222 [!_LIBC]: Include config.h and time.h. Do not include
7223 timegm.h or time_r.h. Make __mktime_internal a macro,
7224 and include mktime-internal.h to get its declaration.
7225 (timegm): Temporary is now mktime_offset_t, not time_t.
7226 This affects only Gnulib.
7227
7228 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
7229
7230 [BZ #23637]
7231 * string/test-strstr.c (pr23637): New function.
7232 (test_main): Add tests with longer needles.
7233 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
7234 * string/strstr.c (AVAILABLE): Likewise.
7235
7236 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7237
7238 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
7239
7240 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7241
7242 * NEWS: Mention pow improvements.
7243 * math/Makefile (type-double-routines): Add e_pow_log_data.
7244 * sysdeps/generic/math_private.h (__exp1): Remove.
7245 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
7246 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
7247 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
7248 contraction.
7249 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
7250 (exp_inline): Remove.
7251 (__ieee754_exp): Only single double input is handled.
7252 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
7253 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
7254 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
7255 (__pow_log_data): Define.
7256 * sysdeps/ieee754/dbl-64/upow.h: Remove.
7257 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
7258 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
7259 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
7260 contraction.
7261 (CFLAGS-e_pow-fma4.c): Likewise.
7262
7263 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
7264
7265 Simplify tzfile fstat failure code
7266 [BZ #21716]
7267 * time/tzfile.c (__tzfile_read): Simplify slightly.
7268
7269 Fix tzfile low-memory assertion failure
7270 [BZ #21716]
7271 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
7272 when registering time zone abbreviations.
7273
7274 2018-09-18 Joseph Myers <joseph@codesourcery.com>
7275
7276 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
7277 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
7278 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
7279 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
7280 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
7281 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
7282 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
7283 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7284 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
7285
7286 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
7287 __ceil.
7288 (__ceill): Call ceil instead of __ceil.
7289 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
7290 __floor.
7291 (__floorl): Call floor instead of __floor.
7292
7293 2018-09-17 Joseph Myers <joseph@codesourcery.com>
7294
7295 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7296 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
7297 using MATH_REDIRECT.
7298 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
7299 header inclusion.
7300 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
7301 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
7302 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7303 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
7304 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7305 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7306 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
7307 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
7308 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
7309 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
7310 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
7311 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
7312 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7313 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7314 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
7315 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
7316 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
7317 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
7318 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
7319 Remove macro.
7320 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
7321 functions instead of __ceil variants.
7322 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7323 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
7324 Likewise.
7325 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
7326 Likewise.
7327 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7328 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
7329 Likewise.
7330 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7331 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7332
7333 [BZ #21286]
7334 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
7335 constant.
7336 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
7337 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
7338 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
7339 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
7340 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
7341 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
7342 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
7343 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
7344 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
7345 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
7346 (ILL_BADIADDR): Remove constant.
7347 (TRAP_BRANCH): Likewise.
7348 (TRAP_HWBKPT): Likewise.
7349
7350 2018-09-14 Joseph Myers <joseph@codesourcery.com>
7351
7352 [BZ #23656]
7353 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
7354 Remove [_MIPS_SIM = _ABIN32] conditional case.
7355 (struct elf_prpsinfo): Likewise.
7356
7357 [BZ #23649]
7358 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
7359 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
7360 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
7361 Likewise.
7362 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
7363 elf_prpsinfo): Likewise.
7364 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
7365 elf_prpsinfo): Likewise.
7366 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
7367 Likewise.
7368
7369 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7370 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
7371 using MATH_REDIRECT.
7372 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
7373 header inclusion.
7374 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
7375 * sysdeps/alpha/fpu/s_rint.c: Likewise.
7376 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7377 * sysdeps/i386/fpu/s_rintl.c: Likewise.
7378 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
7379 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
7380 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
7381 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
7382 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7383 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7384 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
7385 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
7386 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
7387 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
7388 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
7389 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
7390 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7391 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
7392 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
7393 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
7394 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
7395 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
7396 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
7397 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
7398 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
7399 * sysdeps/x86_64/fpu/math_private.h: Remove file.
7400 * math/e_scalb.c (invalid_fn): Use rint functions instead of
7401 __rint variants.
7402 * math/e_scalbf.c (invalid_fn): Likewise.
7403 * math/e_scalbl.c (invalid_fn): Likewise.
7404 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7405 Likewise.
7406 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7407 Likewise.
7408 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7409 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
7410 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7411 Likewise.
7412 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7413 Likewise.
7414 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7415 Likewise.
7416 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
7417 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
7418
7419 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7420 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
7421 New macro.
7422 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7423 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
7424 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7425 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
7426 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7427 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
7428 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7429 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
7430 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7431 && !NO_MATH_REDIRECT] (floor): Likewise.
7432 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
7433 header inclusion.
7434 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
7435 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7436 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7437 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
7438 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7439 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7440 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7441 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
7442 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
7443 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
7444 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
7445 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
7446 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7447 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7448 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
7449 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
7450 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
7451 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
7452 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
7453 Remove macro.
7454 [_ARCH_PWR5X] (__floorf): Likewise.
7455 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
7456 inline function.
7457 [__SSE4_1__] (__floorf): Likewise.
7458 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
7459 instead of __floor variants.
7460 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
7461 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
7462 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
7463 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
7464 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
7465 * math/w_tgamma_compat.c (__tgamma): Likewise.
7466 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
7467 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
7468 * math/w_tgammal_compat.c (__tgammal): Likewise.
7469 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
7470 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
7471 Likewise.
7472 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
7473 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
7474 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
7475 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7476 Likewise.
7477 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7478 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
7479 Likewise.
7480 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
7481 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
7482 Likewise.
7483 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7484 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
7485 Likewise.
7486 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
7487 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7488 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
7489 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
7490 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7491 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7492
7493 2018-09-12 Joseph Myers <joseph@codesourcery.com>
7494
7495 * elf/Makefile (modules-names-tests): New variable.
7496
7497 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7498
7499 * NEWS: Mention log2 improvements.
7500 * math/Makefile (type-double-routines): Add e_log2_data.
7501 * sysdeps/i386/fpu/e_log2_data.c: New file.
7502 * sysdeps/ia64/fpu/e_log2_data.c: New file.
7503 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
7504 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
7505 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
7506 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
7507 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
7508
7509 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7510
7511 * NEWS: Mention log improvement.
7512 * math/Makefile (type-double-routines): Add e_log_data.
7513 * sysdeps/i386/fpu/e_log_data.c: New file.
7514 * sysdeps/ia64/fpu/e_log_data.c: New file.
7515 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
7516 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
7517 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
7518 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
7519 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
7520 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
7521
7522 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
7523 Xuepeng Guo <xuepeng.guo@intel.com>
7524
7525 [BZ #23606]
7526 * sysdeps/i386/start.S: Include <sysdep.h>
7527 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
7528 enabled. Add cfi_undefined (eip).
7529
7530 2018-09-11 Joseph Myers <joseph@codesourcery.com>
7531
7532 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
7533 (MOVQ): Likewise.
7534 (EXTRACT_WORDS64): Likewise.
7535 (INSERT_WORDS64): Likewise.
7536 (GET_FLOAT_WORD): Likewise.
7537 (SET_FLOAT_WORD): Likewise.
7538
7539 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
7540 argument.
7541 (Config.build_gcc): Use --disable-libsanitizer for first GCC
7542 build, but not for second build if --full-gcc. Use
7543 --enable-languages=all for second build if --full-gcc.
7544 (get_parser): Add --full-gcc option.
7545 (main): Update call to Context.
7546
7547 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
7548
7549 [BZ #10797]
7550 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
7551 Single Quotation Mark).
7552 (thousands_sep): Likewise.
7553 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
7554 * localedata/locales/it_IT (thousands_sep): Use ".".
7555 (grouping): Use "3;3".
7556
7557 2018-09-10 Joseph Myers <joseph@codesourcery.com>
7558
7559 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7560 x86_64 and i686 configs using --enable-obsolete-rpc
7561 --enable-obsolete-nsl.
7562
7563 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7564
7565 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7566
7567 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7568
7569 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
7570 Increment size of new_argv by one.
7571
7572 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
7573
7574 [BZ #17426]
7575 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
7576 * localedata/locales/ar_IN (d_fmt): Likewise.
7577 * localedata/locales/bhb_IN (d_fmt): Likewise.
7578 * localedata/locales/bho_IN (d_fmt): Likewise.
7579 * localedata/locales/bn_BD (d_fmt): Likewise.
7580 * localedata/locales/bn_IN (d_fmt): Likewise.
7581 * localedata/locales/doi_IN (d_fmt): Likewise.
7582 * localedata/locales/gu_IN (d_fmt): Likewise.
7583 * localedata/locales/hi_IN (d_fmt): Likewise.
7584 * localedata/locales/hne_IN (d_fmt): Likewise.
7585 * localedata/locales/kn_IN (d_fmt): Likewise.
7586 * localedata/locales/mag_IN (d_fmt): Likewise.
7587 * localedata/locales/mai_IN (d_fmt): Likewise.
7588 * localedata/locales/mjw_IN (d_fmt): Likewise.
7589 * localedata/locales/ml_IN (d_fmt): Likewise.
7590 * localedata/locales/mni_IN (d_fmt): Likewise.
7591 * localedata/locales/mr_IN (d_fmt): Likewise.
7592 * localedata/locales/pa_IN (d_fmt): Likewise.
7593 * localedata/locales/raj_IN (d_fmt): Likewise.
7594 * localedata/locales/sat_IN (d_fmt): Likewise.
7595 * localedata/locales/sd_IN (d_fmt): Likewise.
7596 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
7597 * localedata/locales/ta_IN (d_fmt): Likewise.
7598 * localedata/locales/ta_LK (d_fmt): Likewise.
7599 * localedata/locales/tcy_IN (d_fmt): Likewise.
7600 * localedata/locales/ur_IN (d_fmt): Likewise.
7601
7602 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
7603 * localedata/locales/ks_IN (d_fmt): Likewise.
7604 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
7605
7606 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
7607 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
7608 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
7609 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
7610
7611 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
7612
7613 * NEWS: Mention exp and exp2 improvements.
7614 * math/Makefile (libm-support): Remove t_exp.
7615 (type-double-routines): Add math_err and e_exp_data.
7616 * sysdeps/aarch64/libm-test-ulps: Update.
7617 * sysdeps/arm/libm-test-ulps: Update.
7618 * sysdeps/i386/fpu/e_exp_data.c: New file.
7619 * sysdeps/i386/fpu/math_err.c: New file.
7620 * sysdeps/i386/fpu/t_exp.c: Remove.
7621 * sysdeps/ia64/fpu/e_exp_data.c: New file.
7622 * sysdeps/ia64/fpu/math_err.c: New file.
7623 * sysdeps/ia64/fpu/t_exp.c: Remove.
7624 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
7625 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
7626 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
7627 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
7628 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
7629 * sysdeps/ieee754/dbl-64/math_config.h: New file.
7630 * sysdeps/ieee754/dbl-64/math_err.c: New file.
7631 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
7632 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
7633 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
7634 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
7635 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
7636 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
7637 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
7638 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7639 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7640
7641 2018-09-05 Joseph Myers <joseph@codesourcery.com>
7642
7643 * sysdeps/alpha/fpu/math_private.h: Remove.
7644
7645 * sysdeps/generic/math_private.h
7646 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
7647 Move this inline function ....
7648 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
7649 * include/math.h [!_ISOMAC]: To here....
7650
7651 2018-09-04 Joseph Myers <joseph@codesourcery.com>
7652
7653 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
7654 code ....
7655 [!FE_HAVE_ROUNDING_MODES]: And this code ....
7656 * include/fenv.h [!_ISOMAC]: ... to here.
7657 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
7658 (feraiseexcept): Likewise.
7659 * math/fromfp.h: Do not include <fenv_private.h>.
7660 * math/s_cexp_template.c: Likewise.
7661 * math/s_csin_template.c: Likewise.
7662 * math/s_csinh_template.c: Likewise.
7663 * math/s_ctan_template.c: Likewise.
7664 * math/s_ctanh_template.c: Likewise.
7665 * math/s_iseqsig_template.c: Likewise.
7666 * math/w_acos_compat.c: Likewise.
7667 * math/w_acosf_compat.c: Likewise.
7668 * math/w_acosl_compat.c: Likewise.
7669 * math/w_asin_compat.c: Likewise.
7670 * math/w_asinf_compat.c: Likewise.
7671 * math/w_asinl_compat.c: Likewise.
7672 * math/w_j0_compat.c: Likewise.
7673 * math/w_j0f_compat.c: Likewise.
7674 * math/w_j0l_compat.c: Likewise.
7675 * math/w_j1_compat.c: Likewise.
7676 * math/w_j1f_compat.c: Likewise.
7677 * math/w_j1l_compat.c: Likewise.
7678 * math/w_jn_compat.c: Likewise.
7679 * math/w_jnf_compat.c: Likewise.
7680 * math/w_log10_compat.c: Likewise.
7681 * math/w_log10f_compat.c: Likewise.
7682 * math/w_log10l_compat.c: Likewise.
7683 * math/w_log2_compat.c: Likewise.
7684 * math/w_log2f_compat.c: Likewise.
7685 * math/w_log2l_compat.c: Likewise.
7686 * math/w_log_compat.c: Likewise.
7687 * math/w_logf_compat.c: Likewise.
7688 * math/w_logl_compat.c: Likewise.
7689 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7690 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7691 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7692 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7693 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7694 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7695 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7696 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7697 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7698 * sysdeps/ieee754/k_standardl.c: Likewise.
7699 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7700 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7701 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7702 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7703 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7704 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7705 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7706 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7707 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7708 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7709 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7710 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7711 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7712 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7713 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7714 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7715 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7716 * math/w_ilogb_template.c: Include <fenv.h> instead of
7717 <fenv_private.h>.
7718 * math/w_llogb_template.c: Likewise.
7719 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7720 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7721
7722 2018-09-03 Joseph Myers <joseph@codesourcery.com>
7723
7724 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
7725 * math/fromfp.h: Include <fenv_private.h>.
7726 * math/math-narrow.h: Likewise.
7727 * math/s_cexp_template.c: Likewise.
7728 * math/s_csin_template.c: Likewise.
7729 * math/s_csinh_template.c: Likewise.
7730 * math/s_ctan_template.c: Likewise.
7731 * math/s_ctanh_template.c: Likewise.
7732 * math/s_iseqsig_template.c: Likewise.
7733 * math/w_acos_compat.c: Likewise.
7734 * math/w_acosf_compat.c: Likewise.
7735 * math/w_acosl_compat.c: Likewise.
7736 * math/w_asin_compat.c: Likewise.
7737 * math/w_asinf_compat.c: Likewise.
7738 * math/w_asinl_compat.c: Likewise.
7739 * math/w_ilogb_template.c: Likewise.
7740 * math/w_j0_compat.c: Likewise.
7741 * math/w_j0f_compat.c: Likewise.
7742 * math/w_j0l_compat.c: Likewise.
7743 * math/w_j1_compat.c: Likewise.
7744 * math/w_j1f_compat.c: Likewise.
7745 * math/w_j1l_compat.c: Likewise.
7746 * math/w_jn_compat.c: Likewise.
7747 * math/w_jnf_compat.c: Likewise.
7748 * math/w_llogb_template.c: Likewise.
7749 * math/w_log10_compat.c: Likewise.
7750 * math/w_log10f_compat.c: Likewise.
7751 * math/w_log10l_compat.c: Likewise.
7752 * math/w_log2_compat.c: Likewise.
7753 * math/w_log2f_compat.c: Likewise.
7754 * math/w_log2l_compat.c: Likewise.
7755 * math/w_log_compat.c: Likewise.
7756 * math/w_logf_compat.c: Likewise.
7757 * math/w_logl_compat.c: Likewise.
7758 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
7759 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
7760 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
7761 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
7762 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7763 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7764 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7765 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7766 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7767 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7768 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7769 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7770 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
7771 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
7772 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7773 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
7774 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7775 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7776 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7777 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7778 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7779 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7780 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7781 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
7782 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7783 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7784 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
7785 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
7786 * sysdeps/ieee754/float128/float128_private.h: Likewise.
7787 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
7788 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7789 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7790 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
7791 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7792 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7793 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7794 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7795 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7796 * sysdeps/ieee754/k_standardl.c: Likewise.
7797 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7798 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
7799 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7800 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7801 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
7802 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
7803 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7804 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7805 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7806 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7807 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7808 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7809 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
7810 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7811 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
7812 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
7813 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7814 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
7815 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
7816 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7817 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7818 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7819 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7820 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7821 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
7822 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
7823 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7824 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
7825 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
7826 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7827 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7828 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7829 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7830 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7831 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7832 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
7833 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7834 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7835 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7836 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7837 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
7838 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7839 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
7840 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7841 * sysdeps/riscv/rvd/s_finite.c: Likewise.
7842 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
7843 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
7844 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
7845 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
7846 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
7847 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
7848 * sysdeps/riscv/rvf/fegetround.c: Likewise.
7849 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
7850 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
7851 * sysdeps/riscv/rvf/fesetround.c: Likewise.
7852 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
7853 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
7854 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
7855 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7856 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
7857 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7858 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
7859 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
7860 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
7861 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
7862 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
7863 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
7864 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
7865 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
7866 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7867 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7868
7869 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7870
7871 [BZ #20271]
7872 * include/stdio.h (__libc_fatal): Mention newline in comment.
7873 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
7874 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
7875 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7876 * nss/nsswitch.c (__nss_next2): Likewise.
7877 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
7878 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
7879 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
7880 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
7881 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
7882 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
7883 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
7884 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
7885 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
7886 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
7887 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
7888 * sysdeps/unix/sysv/linux/netlink_assert_response.c
7889 (__netlink_assert_response): Likewise.
7890
7891 2018-08-31 Joseph Myers <joseph@codesourcery.com>
7892
7893 * conform/glibcconform.py: New file.
7894 * conform/list-header-symbols.py: Likewise.
7895 * conform/list-header-symbols.pl: Remove.
7896 * conform/Makefile (tests-special): Only add linknamespace tests
7897 if [PYTHON].
7898 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
7899
7900 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
7901
7902 [BZ #23597]
7903 * support/Makefile (libsupport-routines): Add
7904 support_copy_file_range and xcopy_file_range.
7905 * support/support.h: Include <sys/types.h>.
7906 (support_copy_file_range): New prototype.
7907 * support/support_copy_file_range.c: New file. Copied and
7908 modified from io/copy_file_range-compat.c.
7909 * support/test-container.c (copy_one_file): Call xcopy_file_rang
7910 instead of copy_file_range.
7911 * support/xcopy_file_range.c: New file.
7912 * support/xunistd.h (xcopy_file_range): New prototype.
7913
7914 2018-08-30 Carlos O'Donell <carlos@redhat.com>
7915
7916 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
7917 xpthread_create and xpthread_join.
7918
7919 2018-08-30 Florian Weimer <fweimer@redhat.com>
7920
7921 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
7922
7923 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
7924
7925 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
7926 if malloc fails.
7927
7928 2018-08-29 Joseph Myers <joseph@codesourcery.com>
7929
7930 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
7931 and minus_oflow as non-finite.
7932
7933 2018-08-28 Joseph Myers <joseph@codesourcery.com>
7934
7935 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
7936 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
7937 moved to fenv_private.h except for ...
7938 (TOINT_INTRINSICS): Kept in math_private.h.
7939 (roundtoint): Likewise.
7940 (converttoint): Likewise.
7941 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
7942 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7943 * sysdeps/arm/math_private.h: Remove.
7944 * sysdeps/generic/fenv_private.h: New file. Contents moved from
7945 ....
7946 * sysdeps/generic/math_private.h: ... this file. Include
7947 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
7948 Include <fenv_private.h>. Remove functions and macros moved to
7949 fenv_private.h.
7950 * sysdeps/i386/fpu/math_private.h: Remove.
7951 * sysdeps/mips/math_private.h: Move to ....
7952 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7953 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7954 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7955 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7956 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7957 * sysdeps/powerpc/fpu/math_private.h: Do not include
7958 <fenv_private.h>.
7959 * sysdeps/riscv/rvf/math_private.h: Move to ....
7960 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7961 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7962 <fenv_private.h>.
7963 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7964 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7965 * sysdeps/sparc/fpu/math_private.h: Remove.
7966 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7967 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7968 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7969 <fenv_private.h>.
7970 * sysdeps/x86_64/fpu/math_private.h: Do not include
7971 <sysdeps/i386/fpu/fenv_private.h>.
7972
7973 2018-08-28 Florian Weimer <fweimer@redhat.com>
7974
7975 [BZ #23578]
7976 * posix/tst-regcomp-truncated.c: New file.
7977 * posix/Makefile (tests): Add it.
7978 (tst-regcomp-truncated.out): Depend on generated locales.
7979
7980 2018-08-28 Florian Weimer <fweimer@redhat.com>
7981
7982 * support/test-container.c (main): Treat unshare failure with
7983 EPERM as an unsupported test.
7984
7985 2018-08-28 Florian Weimer <fweimer@redhat.com>
7986
7987 [BZ #23520]
7988 nscd: Fix use-after-free in addgetnetgrentX and its callers.
7989 * nscd/netgroupcache.c
7990 (addgetnetgrentX): Add tofreep parameter. Do not free
7991 heap-allocated buffer.
7992 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
7993 (addgetnetgrentX_ignore): New function.
7994 (addgetnetgrent): Call it.
7995 (readdgetnetgrent): Likewise.
7996
7997 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7998
7999 * string/memmem.c: Use memcmp for first match.
8000
8001 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
8002
8003 [BZ #17426]
8004 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
8005
8006 2018-08-27 DJ Delorie <dj@redhat.com>
8007
8008 * support/Makefile (others): Don't list programs explicitly as a
8009 dependency of "others".
8010
8011 2018-08-27 Joseph Myers <joseph@codesourcery.com>
8012
8013 * sysdeps/generic/math-tests-trap-force.h: New file.
8014 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
8015 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
8016 * sysdeps/powerpc/math-tests.h: Remove file.
8017 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
8018
8019 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
8020 Torvald Riegel <triegel@redhat.com>
8021
8022 [BZ #23538]
8023 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
8024 Update r to include the set wake-request flag if waiters are
8025 remaining after spinning.
8026
8027 2018-08-27 Joseph Myers <joseph@codesourcery.com>
8028
8029 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
8030
8031 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
8032
8033 [BZ #23578]
8034 regex: fix uninitialized memory access
8035 I introduced this bug into gnulib in commit
8036 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
8037 eventually it was merged into glibc. The bug was found by
8038 project-repo <bugs@feusi.co> and reported here:
8039 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
8040 Diagnosis and draft fix reported by Assaf Gordon here:
8041 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
8042 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
8043 * posix/regex_internal.c (build_wcs_upper_buffer):
8044 Fix bug when mbrtowc returns 0.
8045
8046 2018-08-24 Carlos O'Donell <carlos@redhat.com>
8047
8048 * po/be.po: Update translation.
8049
8050 2018-08-24 DJ Delorie <dj@delorie.com>
8051
8052 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
8053 $(libunwind).
8054
8055 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
8056
8057 [BZ #23400]
8058 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
8059 create temporary files in source tree.
8060
8061 2018-08-24 Joseph Myers <joseph@codesourcery.com>
8062
8063 * sysdeps/generic/math-tests-trap.h: New file.
8064 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
8065 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
8066 * sysdeps/aarch64/math-tests.h: Remove file.
8067 * sysdeps/arm/math-tests.h: Likewise.
8068 * sysdeps/riscv/math-tests.h: Likewise.
8069 * sysdeps/aarch64/math-tests-trap.h: New file.
8070 * sysdeps/arm/math-tests-trap.h: Likewise.
8071 * sysdeps/riscv/math-tests-trap.h: Likewise.
8072
8073 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
8074
8075 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
8076 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
8077 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
8078 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
8079 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
8080 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
8081 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
8082 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
8083 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
8084 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
8085 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
8086 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8087 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
8088 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
8089 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
8090 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
8091 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
8092 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
8093
8094 2018-08-23 Joseph Myers <joseph@codesourcery.com>
8095
8096 * sysdeps/generic/math-tests-exceptions.h: New file.
8097 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
8098 (EXCEPTION_TESTS_float): Do not define here.
8099 (EXCEPTION_TESTS_double): Likewise.
8100 (EXCEPTION_TESTS_long_double): Likewise.
8101 (EXCEPTION_TESTS_float128): Likewise.
8102 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
8103 Likewise.
8104 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
8105 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
8106 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
8107 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
8108 * sysdeps/mips/math-tests.h: Likewise.
8109 * sysdeps/nios2/math-tests.h: Likewise.
8110 * sysdeps/riscv/math-tests.h [!__riscv_flen]
8111 (EXCEPTION_TESTS_float): Do not define here.
8112 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
8113 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
8114 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
8115
8116 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
8117
8118 * NEWS: Move optimized sinf entry to 2.29.
8119
8120 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
8121
8122 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
8123
8124 2018-08-22 DJ Delorie <dj@redhat.com>
8125
8126 * Makefile (testroot.pristine): New rules to initialize the
8127 test-in-container "testroot".
8128 * Makerules (all-testsuite): Add tests-container.
8129 * Rules (tests-expected): Add tests-container.
8130 (binaries-all-tests): Likewise.
8131 (tests-container): New, run these tests in the testroot container.
8132 * support/Makefile (others): Add *-container, support_paths.c,
8133 xmkdirp, and links-dso-program.
8134 * support/links-dso-program-c.c: New.
8135 * support/links-dso-program.cc: New.
8136 * support/test-container.c: New.
8137 * support/shell-container.c: New.
8138 * support/echo-container.c: New.
8139 * support/true-container.c: New.
8140 * support/xmkdirp.c: New.
8141 * support/xsymlink.c: New.
8142 * support/support_paths.c: New.
8143 * support/support.h: Add support paths prototypes.
8144 * support/xunistd.h: Add xmkdirp () and xsymlink ().
8145
8146 * nss/tst-nss-test3.c: Convert to test-in-container.
8147 * nss/tst-nss-test3.root/: New.
8148
8149 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
8150
8151 regex: port Gnulib code to z/OS POSIX environment
8152 Problem reported by Arnold Robbins in:
8153 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
8154 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
8155 Undef.
8156
8157 2018-08-22 Joseph Myers <joseph@codesourcery.com>
8158
8159 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
8160 (ROUNDING_TESTS_double): Remove.
8161 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
8162 (ROUNDING_TESTS_double): Remove.
8163 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
8164 (ROUNDING_TESTS_double): Remove.
8165 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
8166 (ROUNDING_TESTS_float): Remove.
8167 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
8168 (ROUNDING_TESTS_float): Remove.
8169 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
8170 (ROUNDING_TESTS_float): Remove.
8171 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
8172 !TEST_MATHVEC here.
8173 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
8174 (IF_ROUND_INIT_FE_UPWARD): Likewise.
8175
8176 * sysdeps/generic/math-tests-rounding.h: New file.
8177 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
8178 (ROUNDING_TESTS_float): Do not define here.
8179 (ROUNDING_TESTS_double): Likewise.
8180 (ROUNDING_TESTS_long_double): Likewise.
8181 (ROUNDING_TESTS_float128): Likewise.
8182 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
8183 (ROUNDING_TESTS_double): Undefine before defining.
8184 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
8185 (ROUNDING_TESTS_double): Undefine before defining.
8186 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
8187 (ROUNDING_TESTS_double): Undefine before defining.
8188 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
8189 (ROUNDING_TESTS_float): Undefine before defining.
8190 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
8191 (ROUNDING_TESTS_float): Undefine before defining.
8192 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
8193 (ROUNDING_TESTS_float): Undefine before defining.
8194 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
8195 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
8196 not define here.
8197 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
8198 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
8199 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
8200 * sysdeps/riscv/math-tests.h [!__riscv_flen]
8201 (ROUNDING_TESTS_float): Do not define here.
8202 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
8203 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
8204 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
8205 (ROUNDING_TESTS_float): Likewise.
8206 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
8207 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
8208 * sysdeps/mips/math-tests.h [__mips_soft_float]
8209 (ROUNDING_TESTS_float): Likewise.
8210 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
8211 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
8212 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
8213 (ROUNDING_TESTS_double): Likewise.
8214 (ROUNDING_TESTS_long_double): Likewise.
8215
8216 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
8217
8218 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
8219 (PF_XDP): New macro.
8220 (AF_XDP): New macro.
8221 (SOL_XDP): New macro.
8222
8223 2018-08-21 Joseph Myers <joseph@codesourcery.com>
8224
8225 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
8226 (TCP_INQ): Likewise.
8227 (TCP_CM_INQ): Likewise.
8228 (TCP_REPAIR_ON): Likewise.
8229 (TCP_REPAIR_OFF): Likewise.
8230 (TCP_REPAIR_OFF_NO_WP): Likewise.
8231 (struct tcp_zerocopy_receive): New type.
8232
8233 2018-08-21 Florian Weimer <fweimer@redhat.com>
8234
8235 * support/support.h (support_descriptor_supports_holes): Declare.
8236 * support/Makefile (libsupport-routines): Add
8237 support_descriptor_supports_holes.
8238 * support/support_descriptor_supports_holes.c: New file.
8239 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
8240 and stop testing if holes are not supported.
8241 * io/test-lfs.c (do_prepare): Likewise.
8242 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
8243 Likewise.
8244 * timezone/tst-tzset.c (create_tz_file): Likewise.
8245 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
8246 variable.
8247 (do_prepare): Set it.
8248 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
8249
8250 2018-08-21 Florian Weimer <fweimer@redhat.com>
8251
8252 [BZ #17248]
8253 * Makeconfig (+cflags): Do not sort (and deduplicate).
8254
8255 2018-08-21 Florian Weimer <fweimer@redhat.com>
8256
8257 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
8258 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
8259
8260 2018-08-20 Florian Weimer <fweimer@redhat.com>
8261
8262 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
8263 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
8264
8265 2018-08-20 Joseph Myers <joseph@codesourcery.com>
8266
8267 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
8268 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
8269 and ssi_arch members.
8270
8271 * elf/elf.c (NT_VMCOREDD): New macro.
8272 (AT_MINSIGSTKSZ): Likewise.
8273
8274 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8275
8276 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
8277 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
8278 s_cosf-ppc64 and s_cosf-power8.
8279 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
8280 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
8281 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
8282 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
8283 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
8284 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
8285 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
8286 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
8287 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
8288 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
8289 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
8290 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
8291
8292 2018-08-17 Florian Weimer <fweimer@redhat.com>
8293
8294 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8295
8296 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
8297
8298 * malloc/malloc.c (_int_malloc): Additional binning code checks.
8299
8300 2018-08-16 Florian Weimer <fweimer@redhat.com>
8301
8302 * configure.ac: Add --with-nonshared-cflags option.
8303 * config.make.in (extra-nonshared-cflags): Set variable.
8304 * Makeconfig (CFLAGS-.oS): Use it.
8305 * manual/install.texi (Configuring and compiling): Document
8306 --with-nonshared-cflags.
8307 * configure: Regenerate.
8308 * INSTALL: Likewise.
8309
8310 2018-08-16 Florian Weimer <fweimer@redhat.com>
8311
8312 * Makeconfig (ASFLAGS): Always append required assembler flags.
8313
8314 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
8315
8316 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
8317 (malloc_consolidate): Likewise.
8318
8319 2018-08-16 Pochang Chen <johnchen902@gmail.com>
8320
8321 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
8322
8323 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
8324
8325 * benchtests/bench-strlen.c (do_test): Allocate buffers before
8326 every strlen call.
8327
8328 * benchtests/bench-strlen.c: Print performance numbers in json.
8329
8330 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8331
8332 * sysdeps/powerpc/powerpc64/multiarch/Makefile
8333 (sysdep_routines): Build strcmp-power9 and strncmp-power9
8334 only for little endian.
8335 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8336 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
8337 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
8338 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
8339 Add check for little endian.
8340 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
8341 (__strcmp_power9): Add check for little endian.
8342 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
8343 Add check for little endian.
8344 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
8345 (__strncmp_power9): Add check for little endian.
8346 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
8347 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
8348 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
8349 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
8350 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
8351
8352 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
8353
8354 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
8355 [!STRLEN](STRLEN): Set to __strlen.
8356 * sysdeps/aarch64/multiarch/strlen.c: New file.
8357 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
8358 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
8359 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
8360 (__libc_ifunc_impl_list): Add strlen.
8361 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
8362 strlen_generic and strlen_asimd.
8363
8364 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8365
8366 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
8367 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
8368 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
8369
8370 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8371
8372 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
8373
8374 2018-08-14 Florian Weimer <fweimer@redhat.com>
8375
8376 [BZ #23519]
8377 * include/stdio.h (__vfxprintf): Declare.
8378 * stdio-common/fxprintf.c (__vfxprintf): New function.
8379 (__fxprintf): Call it.
8380 * misc/err.c (convert_and_print): Remove function.
8381 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
8382 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
8383 * misc/Makefile (tests): Add tst-warn-wide.
8384 * misc/tst-warn-wide.c: New file.
8385
8386 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
8387 Szabolcs Nagy <szabolcs.nagy@arm.com>
8388
8389 * NEWS: Mention sinf, cosf, sincosf.
8390 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
8391 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
8392 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
8393 constants rather than including generic sincosf.h.
8394 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
8395 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
8396 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
8397 (reduced_cos): Remove.
8398 (sinf_poly): New function.
8399 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
8400
8401 2018-08-14 Florian Weimer <fweimer@redhat.com>
8402
8403 [BZ #23521]
8404 [BZ #23522]
8405 * nss/nss_files/files-alias.c (get_next_alias): During :include:
8406 processing, bail out if no room, and close the stream before
8407 returning ERANGE.
8408 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
8409 (tst-nss-files-alias-leak): Link with libdl.
8410 (tst-nss-files-alias-leak.out): Depend on nss_files.
8411
8412 * nss/tst-nss-files-alias-leak.c: New file.
8413
8414 2018-08-14 Florian Weimer <fweimer@redhat.com>
8415
8416 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
8417 server_user, stat_user.
8418
8419 2018-08-13 Joseph Myers <joseph@codesourcery.com>
8420
8421 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8422 version to 4.18.
8423 (io_pgetevents): New syscall.
8424 (rseq): Likewise.
8425
8426 * manual/install.texi (Configuring and compiling): Do not list
8427 tools used for testing pretty printers here.
8428 (Tools for Compilation): List Python, PExpect and GDB here.
8429 Update descriptions of uses of Perl and Python.
8430 * INSTALL: Regenerate.
8431
8432 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8433 version to 4.18.
8434
8435 2018-08-13 Florian Weimer <fweimer@redhat.com>
8436
8437 * misc/error.c (error): Add missing va_end call.
8438 (error_at_line): Likewise.
8439
8440 2018-08-13 Florian Weimer <fweimer@redhat.com>
8441
8442 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
8443
8444 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
8445
8446 * benchtests/scripts/benchout.schema.json (properties): Add
8447 new properties.
8448
8449 * benchtests/bench-skeleton.c (main): Add duration and
8450 iterations attributes.
8451
8452 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
8453
8454 regex: Gnulib unibyte RRI uses bytes not chars
8455 Adjust the non-glibc code to agree with what Gawk needs for
8456 rational range interpretation (RRI) for regular expression ranges.
8457 In unibyte locales, Gawk wants ranges to use the underlying byte
8458 rather than the character code point. This change does not affect
8459 glibc proper.
8460 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
8461 In unibyte locales, use the byte value rather than
8462 running it through btowc.
8463
8464 2018-08-10 Joseph Myers <joseph@codesourcery.com>
8465
8466 * sysdeps/generic/math-tests-snan.h: New file.
8467 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
8468 (SNAN_TESTS_float): Do not define here.
8469 (SNAN_TESTS_double): Likewise.
8470 (SNAN_TESTS_long_double): Likewise.
8471 (SNAN_TESTS_float128): Likewise.
8472 * sysdeps/i386/fpu/math-tests-snan.h: New file.
8473 * sysdeps/i386/fpu/math-tests.h: Remove file.
8474 * sysdeps/ia64/math-tests-snan.h: New file.
8475 * sysdeps/ia64/math-tests.h: Remove file.
8476 * sysdeps/x86/math-tests.h: Likewise.
8477 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
8478
8479 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8480 Szabolcs Nagy <szabolcs.nagy@arm.com>
8481
8482 * math/Makefile: Add s_sincosf_data.c.
8483 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
8484 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
8485 (sincosf_poly): Likewise.
8486 (reduce_small): Likewise.
8487 (reduce_large): Likewise.
8488 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
8489 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
8490 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
8491 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
8492
8493 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8494 Szabolcs Nagy <szabolcs.nagy@arm.com>
8495
8496 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
8497 (converttoint): Use lround.
8498 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
8499 document the semantics when TOINT_INTRINSICS is set.
8500 (converttoint): Likewise.
8501 (TOINT_RINT): Remove.
8502 (TOINT_SHIFT): Remove.
8503 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
8504 path.
8505
8506 2018-08-10 Florian Weimer <fweimer@redhat.com>
8507
8508 [BZ #23497]
8509 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
8510 function.
8511 (__old_getdents64): Use getdents64. Convert entries without
8512 moving them.
8513 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
8514 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
8515 tst-readdir64-compat.
8516
8517 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8518
8519 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
8520 Fix unwind.
8521
8522 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8523
8524 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
8525 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
8526 code to s390x-mcount.h and #include it.
8527 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
8528 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
8529 (__fentry__): Add.
8530
8531 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8532
8533 * stdlib/Versions: Remove __fentry__.
8534 * sysdeps/i386/Versions: Add __fentry__.
8535 * sysdeps/x86_64/Versions: Add __fentry__.
8536
8537 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8538
8539 * sysdeps/s390/Makefile: Register the new tests.
8540 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
8541 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
8542 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
8543 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
8544 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
8545 * sysdeps/s390/tst-dl-runtime.c: New file.
8546
8547 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8548
8549 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8550 Do not clobber R0.
8551
8552 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8553
8554 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8555 Do not clobber R0.
8556
8557 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8558
8559 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8560 Do not clobber R0.
8561
8562 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8563
8564 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8565 Do not clobber R0.
8566
8567 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8568
8569 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8570 Use symbolic offsets for stack variables.
8571
8572 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8573
8574 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8575 Use symbolic offsets for stack variables.
8576
8577 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8578
8579 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8580 Use symbolic offsets for stack variables.
8581
8582 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8583
8584 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8585 Use symbolic offsets for stack variables.
8586
8587 2018-08-09 Joseph Myers <joseph@codesourcery.com>
8588
8589 * math/gen-libm-test.py: New file.
8590 * math/gen-libm-test.pl: Remove.
8591 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
8592 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
8593 gen-libm-test.pl.
8594 ($(libm-test-c-noauto-obj)): Likewise.
8595 ($(libm-test-c-auto-obj)): Likewise.
8596 ($(libm-test-c-narrow-obj)): Likewise.
8597 (regen-ulps): Likewise.
8598 * math/README.libm-test: Update references to gen-libm-test.pl.
8599 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
8600 referencing gen-libm-test.pl.
8601 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
8602 * math/libm-test-support.c: Likewise.
8603 * math/libm-test-support.h: Likewise.
8604 * sysdeps/generic/libm-test-ulps: Likewise.
8605
8606 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
8607
8608 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
8609 Fix value.
8610
8611 2018-08-08 Joseph Myers <joseph@codesourcery.com>
8612
8613 * math/libm-test-nextdown.inc (do_test): Move comment to ....
8614 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
8615
8616 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
8617
8618 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
8619 symbols.
8620 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
8621 __pthread_setspecific): Add hidden proto.
8622 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
8623 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
8624
8625 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
8626
8627 * benchtests/bench-string.h (buf1_size, buf2_size): New
8628 variables.
8629 (init_sizes): New function.
8630 (test_init): Use it.
8631 (alloc_buf, exit_error): New functions.
8632 (alloc_bufs): Use ALLOC_BUF.
8633 (realloc_bufs): Remove.
8634 * benchtests/bench-memcmp.c (do_test): Adjust.
8635 * benchtests/bench-memset-large.c (do_test): Likewise.
8636 * benchtests/bench-memset-walk.c (do_test): Likewise.
8637 * benchtests/bench-memset.c (do_test): Likewise.
8638 * benchtests/bench-strncmp.c (do_test): Likewise.
8639
8640 2018-08-06 Andreas Schwab <schwab@suse.de>
8641
8642 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
8643 of CONST_THREAD_AREA.
8644
8645 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
8646
8647 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
8648 (STATE_SAVE_MASK): Likewise.
8649 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
8650 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
8651 (STATE_SAVE_MASK): Likewise.
8652 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
8653 instead of <cpu-features.h>.
8654
8655 2018-08-03 DJ Delorie <dj@redhat.com>
8656
8657 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
8658 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
8659
8660 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
8661
8662 2018-08-03 Joseph Myers <joseph@codesourcery.com>
8663
8664 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
8665 after TEST_* calls.
8666 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
8667 * math/libm-test-logb.inc (logb_test_data): Likewise.
8668
8669 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
8670
8671 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
8672 * string/strstr.c (AVAILABLE): Likewise.
8673
8674 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8675
8676 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
8677 <init-arch.h>.
8678 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
8679 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
8680 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
8681
8682 2018-08-03 Carlos O'Donell <carlos@redhat.com>
8683
8684 * po/be.po: Update translation.
8685
8686 * po/be.po: Update translation.
8687
8688 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8689
8690 * sysdeps/x86/cpu-features-offsets.sym
8691 (rtld_global_ro_offsetof): Removed.
8692 (CPU_FEATURES_SIZE): Likewise.
8693 (CPUID_OFFSET): Likewise.
8694 (CPUID_SIZE): Likewise.
8695 (CPUID_EAX_OFFSET): Likewise.
8696 (CPUID_EBX_OFFSET): Likewise.
8697 (CPUID_ECX_OFFSET): Likewise.
8698 (CPUID_EDX_OFFSET): Likewise.
8699 (FAMILY_OFFSET): Likewise.
8700 (MODEL_OFFSET): Likewise.
8701 (FEATURE_OFFSET): Likewise.
8702 (FEATURE_SIZ): Likewise.
8703 (COMMON_CPUID_INDEX_1): Likewise.
8704 (COMMON_CPUID_INDEX_7): Likewise.
8705 (FEATURE_INDEX_1): Likewise.
8706 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
8707
8708 2018-08-02 Carlos O'Donell <carlos@redhat.com>
8709
8710 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
8711 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
8712 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
8713 (install-locales): Depend on install-locale-archive.
8714 (install-locale-archive): Define.
8715 (install-locale-files): Define.
8716 (build-one-locale): Define macro.
8717 * manual/install.texi (Running make install): Document.
8718 * manual/INSTALL: Regenerate.
8719
8720 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
8721
8722 * benchtests/scripts/compare_strings.py: Import traceback.
8723 (parse_file): Pretty-print error.
8724
8725 * NEWS: Mention the change.
8726 * elf/dl-tunables.list: Rename tune namespace to cpu.
8727 * sysdeps/powerpc/dl-tunables.list: Likewise.
8728 * sysdeps/x86/dl-tunables.list: Likewise.
8729 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
8730 cpu.name.
8731 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
8732 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
8733 * manual/README.tunables: Likewise.
8734 * manual/tunables.texi: Likewise.
8735 * sysdeps/powerpc/cpu-features.c: Likewise.
8736 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
8737 (init_cpu_features): Likewise.
8738 * sysdeps/x86/cpu-features.c: Likewise.
8739 * sysdeps/x86/cpu-features.h: Likewise.
8740 * sysdeps/x86/cpu-tunables.c: Likewise.
8741 * sysdeps/x86_64/Makefile: Likewise.
8742 * sysdeps/x86/dl-cet.c: Likewise.
8743
8744 2018-08-02 Joseph Myers <joseph@codesourcery.com>
8745
8746 [BZ #23479]
8747 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
8748 [__mips_hard_float].
8749 (FE_UNDERFLOW): Likewise.
8750 (FE_OVERFLOW): Likewise.
8751 (FE_DIVBYZERO): Likewise.
8752 (FE_INVALID): Likewise.
8753 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
8754 (FE_TOWARDZERO): Define only if [__mips_hard_float].
8755 (FE_UPWARD): Likewise.
8756 (FE_DOWNWARD): Likewise.
8757 (__FE_UNDEFINED): Define if [!__mips_hard_float]
8758 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
8759 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
8760 [__mips_hard_float].
8761 (FP_ROUNDMODE): Likewise.
8762 (FP_RND_NEAREST): Likewise.
8763 (FP_RND_ZERO): Likewise.
8764 (FP_RND_PINF): Likewise.
8765 (FP_RND_MINF): Likewise.
8766 (FP_EX_INVALID): Likewise.
8767 (FP_EX_OVERFLOW): Likewise.
8768 (FP_EX_UNDERFLOW): Likewise.
8769 (FP_EX_DIVZERO): Likewise.
8770 (FP_EX_INEXACT): Likewise.
8771 (FP_INIT_ROUNDMODE): Likewise.
8772 * sysdeps/mips/nofpu/fesetenv.c: New file.
8773 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
8774
8775 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8776
8777 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
8778 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
8779 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
8780 conditional on [FE_UPWARD].
8781
8782 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
8783
8784 regex: fix memory leak in Gnulib
8785 Problem and fix reported by Assaf Gordon in:
8786 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
8787 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
8788 range_ends members too, as they are defined in 'struct
8789 re_charset_t' even if not _LIBC. This affects only Gnulib.
8790
8791 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
8792
8793 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
8794 ...
8795 (get_common_indices): This.
8796 (init_cpu_features): Updated.
8797
8798 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8799
8800 * sysdeps/generic/math-tests-snan-payload.h: New file.
8801 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
8802 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
8803 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
8804 * sysdeps/generic/math-tests.h: Include
8805 <math-tests-snan-payload.h>.
8806 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8807 * sysdeps/hppa/math-tests.h: Remove file.
8808 * sysdeps/mips/math-tests.h [!__mips_nan2008]
8809 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8810 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
8811 Likewise.
8812
8813 * sysdeps/generic/math-tests-snan-cast.h: New file.
8814 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
8815 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
8816 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
8817 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
8818
8819 2018-08-01 Carlos O'Donel <carlos@redhat.com>
8820
8821 * version.h (RELEASE): Set to "development".
8822 (VERSION): Set to "2.28.9000".
8823 * NEWS (2.29): New section.
8824
8825 * version.h (RELEASE): Set to "stable".
8826 (VERSION): Set to "2.28".
8827 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
8828 * NEWS: Add the list of bugs fixed in 2.28.
8829
8830 * po/ca.po: Update to latest version.
8831 * po/cs.po: Likewise
8832 * po/da.po: Likewise
8833 * po/el.po: Likewise
8834 * po/eo.po: Likewise
8835 * po/es.po: Likewise
8836 * po/fi.po: Likewise
8837 * po/fr.po: Likewise
8838 * po/gl.po: Likewise
8839 * po/hu.po: Likewise
8840 * po/ia.po: Likewise
8841 * po/id.po: Likewise
8842 * po/it.po: Likewise
8843 * po/ja.po: Likewise
8844 * po/ko.po: Likewise
8845 * po/lt.po: Likewise
8846 * po/nb.po: Likewise
8847 * po/nl.po: Likewise
8848 * po/pt_BR.po: Likewise
8849 * po/ru.po: Likewise
8850 * po/rw.po: Likewise
8851 * po/sk.po: Likewise
8852 * po/sl.po: Likewise
8853 * po/tr.po: Likewise
8854 * po/zh_CN.po: Likewise
8855 * po/zh_TW.po: Likewise
8856
8857 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8858
8859 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
8860 initialization...
8861 (init): ... before initializing libpthread.
8862
8863 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
8864 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
8865 (__mach_setup_tls): ... new function.
8866 (mach_setup_tls): New alias.
8867 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
8868 __mach_setup_thread.
8869 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
8870 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
8871 * mach/Versions [libc] (mach_setup_tls): Add symbol.
8872 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
8873
8874 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8875
8876 * manual/install.texi: Update versions.
8877 * INSTALL: Regenerate.
8878
8879 * manual/contrib.texi (Contributors): Update contributions.
8880
8881 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8882
8883 * po/be.po: Update translations.
8884
8885 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8886
8887 * sysdeps/sh/libm-test-ulps: Update.
8888
8889 2018-07-30 Carlos O'Donell <carlos@redhat.com>
8890
8891 * po/bg.po: Update translations.
8892 * po/de.po: Likewise.
8893 * po/hr.po: Likewise.
8894 * po/pt_BR.po: Likewise.
8895 * po/sv.po: Likewise.
8896 * po/vi.po: Likewise.
8897
8898 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8899
8900 [BZ #23467]
8901 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8902 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
8903 (CFLAGS-tst-cet-property-1.o): New.
8904 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
8905 ($(objpfx)tst-cet-property-2): Likewise.
8906 ($(objpfx)tst-cet-property-2.out): Likewise.
8907 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
8908 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
8909 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
8910 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
8911 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
8912
8913 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8914
8915 [BZ #23458]
8916 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
8917
8918 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8919
8920 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
8921 __sbrk): Do not set attribute_hidden.
8922 * sysdeps/mach/hurd/not-errno.h: New file.
8923 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8924 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
8925
8926 2018-07-27 Carlos O'Donell <carlos@redhat.com>
8927
8928 * po/uk.po: Update translations.
8929 * po/cs.po: Likewise.
8930 * po/pl.po: Likewise.
8931
8932 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
8933
8934 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
8935 parse beyond the note end.
8936
8937 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8938
8939 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
8940 kernel does not support OFD locks.
8941 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
8942
8943 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
8944
8945 * sysdeps/mach/hurd/Versions (libc): Make __access and
8946 __access_noerrno external so they can override the ld symbols.
8947 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
8948 __writev, __open64, __access_noerrno extern so they can be overrided.
8949 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8950 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8951
8952 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8953
8954 * po/libc.pot: Regenerate.
8955
8956 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8957
8958 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8959
8960 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8961
8962 [BZ #23459]
8963 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8964 function.
8965 (init_cpu_features): Call get_extended_indices for both Intel
8966 and AMD CPUs.
8967 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8968 Remove "for AMD" comment.
8969
8970 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8971
8972 [BZ # 23456]
8973 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
8974 COMMON_CPUID_INDEX_80000001.
8975
8976 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
8977
8978 * string/tst-xbzero-opt.c (use_test_buffer): New function.
8979 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
8980
8981 2018-07-26 Florian Weimer <fweimer@redhat.com>
8982
8983 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
8984 aliases for symbols not in the implementation namespace.
8985
8986 2018-07-25 Carlos O'Donell <carlos@redhat.com>
8987
8988 [BZ #23393]
8989 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
8990 lowercase in LATIN script.
8991 * localedata/Makefile (test-input): Add en_US.UTF-8.
8992 * localedata/en_US.UTF-8.in: New file.
8993 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
8994 and restore old tests.
8995 * posix/tst-regexloc.c (do_test): Add back range expression test.
8996
8997 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8998
8999 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
9000
9001 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9002
9003 * nptl/threads.h: Move to ...
9004 * sysdeps/nptl/threads.h: ... here.
9005 * sysdeps/hurd/stdc-predef.h: New file.
9006
9007 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9008
9009 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
9010 tst-cet-setcontext-1 if CET is enabled.
9011 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
9012 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
9013
9014 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9015
9016 * include/threads.h: Move to ...
9017 * sysdeps/nptl/threads.h: ... here.
9018 * sysdeps/htl/threads.h: New file.
9019 * conform/Makefile (linknamespace-libs-ISO11): Use
9020 static-thread-library instead of linking libpthread.
9021 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
9022
9023 2018-07-25 Florian Weimer <fweimer@redhat.com>
9024
9025 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
9026 nanoseconds into seconds.
9027 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
9028 (do_test): Likewise.
9029 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
9030 (do_test): Likewise. Avoid nanosecond overflow and spurious
9031 timeouts due to system load.
9032 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
9033 (child_wait): Increment it.
9034 (do_test): Wait as long as necessary until all expected threads
9035 have arrived.
9036
9037 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
9038 H.J. Lu <hongjiu.lu@intel.com>
9039
9040 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
9041 __ssp.
9042 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
9043 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
9044 (__push___start_context): New.
9045 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
9046 <asm/prctl.h>.
9047 (__getcontext): Record the current shadow stack base. Save the
9048 caller's shadow stack pointer and base.
9049 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
9050 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
9051 (__push___start_context): New prototype.
9052 (__makecontext): Call __push___start_context to allocate a new
9053 shadow stack, push __start_context onto the new stack as well
9054 as the new shadow stack.
9055 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
9056 <asm/prctl.h>.
9057 (__setcontext): Restore the target shadow stack.
9058 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
9059 <asm/prctl.h>.
9060 (__swapcontext): Record the current shadow stack base. Save
9061 the caller's shadow stack pointer and base. Restore the target
9062 shadow stack.
9063 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
9064 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
9065 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
9066
9067 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9068
9069 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
9070 tst-setcontext8 and tst-setcontext9.
9071 * stdlib/tst-setcontext6.c: New file.
9072 * stdlib/tst-setcontext7.c: Likewise.
9073 * stdlib/tst-setcontext8.c: Likewise.
9074 * stdlib/tst-setcontext9.c: Likewise.
9075
9076 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9077
9078 * stdlib/Makefile ((tests): Add tst-setcontext5.
9079 * stdlib/tst-setcontext5.c: New file.
9080
9081 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9082
9083 * stdlib/Makefile (tests): Add tst-setcontext4.
9084 * stdlib/tst-setcontext4.c: New file.
9085
9086 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9087
9088 * stdlib/Makefile (tests): Add tst-swapcontext1.
9089 * stdlib/tst-swapcontext1.c: New test.
9090
9091 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9092
9093 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
9094 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
9095 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
9096 and tst-cet-legacy-4c.
9097 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
9098 and tst-cet-legacy-mod-4.
9099 (CFLAGS-tst-cet-legacy-2.c): New.
9100 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
9101 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
9102 (CFLAGS-tst-cet-legacy-3.c): Likewise.
9103 (CFLAGS-tst-cet-legacy-4.c): Likewise.
9104 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
9105 ($(objpfx)tst-cet-legacy-1): Likewise.
9106 ($(objpfx)tst-cet-legacy-2): Likewise.
9107 ($(objpfx)tst-cet-legacy-2.out): Likewise.
9108 ($(objpfx)tst-cet-legacy-2a): Likewise.
9109 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
9110 ($(objpfx)tst-cet-legacy-4): Likewise.
9111 ($(objpfx)tst-cet-legacy-4.out): Likewise.
9112 ($(objpfx)tst-cet-legacy-4a): Likewise.
9113 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
9114 (tst-cet-legacy-4a-ENV): Likewise.
9115 ($(objpfx)tst-cet-legacy-4b): Likewise.
9116 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
9117 (tst-cet-legacy-4b-ENV): Likewise.
9118 ($(objpfx)tst-cet-legacy-4c): Likewise.
9119 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
9120 (tst-cet-legacy-4c-ENV): Likewise.
9121 * sysdeps/x86/tst-cet-legacy-1.c: New file.
9122 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
9123 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
9124 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
9125 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
9126 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
9127 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
9128 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
9129 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
9130 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
9131 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
9132
9133 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9134
9135 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9136 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9137 with ssp_base.
9138 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9139 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9140 with ssp_base.
9141
9142 2018-07-25 Andreas Schwab <schwab@suse.de>
9143
9144 [BZ #23442]
9145 * locale/weightwc.h (findidx): Handle the case where usrc is a
9146 prefix of cp but one character too short.
9147
9148 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9149
9150 * NEWS: Add ISO C threads addition.
9151
9152 2018-07-24 Florian Weimer <fweimer@redhat.com>
9153
9154 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9155 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
9156 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
9157 4.13.
9158
9159 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9160
9161 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
9162 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
9163 <sys/prctl.h> and <asm/prctl.h>.
9164 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
9165 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
9166 and <asm/prctl.h>.
9167 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
9168 ARCH_CET_LEGACY_BITMAP.
9169 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
9170 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
9171 * sysdeps/x86/libc-start.c: Include <startup.h>.
9172
9173 2018-07-24 Florian Weimer <fweimer@redhat.com>
9174
9175 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
9176 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
9177
9178 2018-07-24 Rical Jasan <rj@2c3t.io>
9179 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9180 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
9181
9182 [BZ #14092]
9183 * manual/debug.texi: Update adjacent chapter name.
9184 * manual/probes.texi: Likewise.
9185 * manual/threads.texi (ISO C Threads): New section.
9186 (POSIX Threads): Convert to a section.
9187
9188 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9189 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
9190
9191 [BZ# 14092]
9192 * nptl/Makefile (tests): Add new test files.
9193 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
9194 * nptl/tst-cnd-basic.c: Likewise.
9195 * nptl/tst-cnd-broadcast.c: Likewise.
9196 * nptl/tst-cnd-timedwait.c: Likewise.
9197 * nptl/tst-mtx-basic.c: Likewise.
9198 * nptl/tst-mtx-recursive.c: Likewise.
9199 * nptl/tst-mtx-timedlock.c: Likewise.
9200 * nptl/tst-mtx-trylock.c: Likewise.
9201 * nptl/tst-thrd-basic.c: Likewise.
9202 * nptl/tst-thrd-detach.c: Likewise.
9203 * nptl/tst-thrd-sleep.c: Likewise.
9204 * nptl/tst-tss-basic.c: Likewise.
9205
9206 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9207
9208 [BZ #14092]
9209 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9210 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
9211 symbols.
9212 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9213 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9214 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9215 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9216 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9217 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9218 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9219 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9220 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9221 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9222 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9223 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9224 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9225 Likewise.
9226 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9227 Likewise.
9228 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
9229 Likewise.
9230 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9231 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9232 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9233 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9234 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9235 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9236 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9237 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9238 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9239 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
9240 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
9241 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
9242 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
9243 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
9244 Likewise.
9245 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
9246 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
9247 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
9248 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
9249 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
9250 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
9251 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
9252 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
9253 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
9254 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
9255 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
9256 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
9257 ikewise.
9258 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
9259 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
9260 Likewise.
9261 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
9262 Likewise.
9263 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
9264 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
9265 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
9266 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
9267 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
9268 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
9269 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
9270 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
9271
9272 [BZ #14092]
9273 * conform/data/threads.h-data (thread_local): New macro.
9274 (TSS_DTOR_ITERATIONS): Likewise.
9275 (tss_t): New type.
9276 (tss_dtor_t): Likewise.
9277 (tss_create): New function.
9278 (tss_get): Likewise.
9279 (tss_set): Likewise.
9280 (tss_delete): Likewise.
9281 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
9282 tss_get, and tss_set objects.
9283 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9284 * nptl/tss_create.c: New file.
9285 * nptl/tss_delete.c: Likewise.
9286 * nptl/tss_get.c: Likewise.
9287 * nptl/tss_set.c: Likewise.
9288 * sysdeps/nptl/threads.h (thread_local): New define.
9289 (TSS_DTOR_ITERATIONS): Likewise.
9290 (tss_t): New typedef.
9291 (tss_dtor_t): Likewise.
9292 (tss_create): New prototype.
9293 (tss_get): Likewise.
9294 (tss_set): Likewise.
9295 (tss_delete): Likewise.
9296
9297 [BZ #14092]
9298 * conform/data/threads.h-data (cnd_t): New type.
9299 (cnd_init): New function.
9300 (cnd_signal): Likewise.
9301 (cnd_broadcast): Likewise.
9302 (cnd_wait): Likewise.
9303 (cnd_timedwait): Likewise.
9304 (cnd_destroy): Likewise.
9305 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
9306 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
9307 object.
9308 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9309 * nptl/cnd_broadcast.c: New file.
9310 * nptl/cnd_destroy.c: Likewise.
9311 * nptl/cnd_init.c: Likewise.
9312 * nptl/cnd_signal.c: Likewise.
9313 * nptl/cnd_timedwait.c: Likewise.
9314 * nptl/cnd_wait.c: Likewise.
9315 * sysdeps/nptl/threads.h (cnd_t): New type.
9316 (cnd_init): New prototype.
9317 (cnd_signa): Likewise.
9318 (cnd_broadcast): Likewise.
9319 (cnd_wait): Likewise.
9320 (cnd_timedwait): Likewise.
9321 (cnd_destroy): Likewise.
9322
9323 [BZ #14092]
9324 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
9325 (once_flag): New type.
9326 (call_once): New function.
9327 * nptl/Makefile (libpthread-routines): Add call_once object.
9328 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
9329 * nptl/call_once.c: New file.
9330 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
9331 (once_flag): New type.
9332 (call_once): New prototype.
9333
9334 [BZ #14092]
9335 * conform/data/threads.h-data (mtx_plain): New constant.
9336 (mtx_recursive): Likewise.
9337 (mtx_timed): Likewise.
9338 (mtx_t): New type.
9339 (mtx_init): New function.
9340 (mtx_lock): Likewise.
9341 (mtx_timedlock): Likewise.
9342 (mtx_trylock): Likewise.
9343 (mtx_unlock): Likewise.
9344 (mtx_destroy): Likewise.
9345 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
9346 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
9347 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
9348 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
9349 * nptl/mtx_destroy.c: New file.
9350 * nptl/mtx_init.c: Likewise.
9351 * nptl/mtx_lock.c: Likewise.
9352 * nptl/mtx_timedlock.c: Likewise.
9353 * nptl/mtx_trylock.c: Likewise.
9354 * nptl/mtx_unlock.c: Likewise.
9355 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
9356 (mtx_recursive): Likewise.
9357 (mtx_timed): Likewise.
9358 (mtx_t): New type.
9359 (mtx_init): New prototype.
9360 (mtx_lock): Likewise.
9361 (mtx_timedlock): Likewise.
9362 (mtx_trylock): Likewise.
9363 (mtx_unlock): Likewise.
9364 (mtx_destroy): Likewise.
9365
9366 [BZ #14092]
9367 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
9368 (linknamespace-libs-ISO11): Add libpthread.a.
9369 * conform/data/threads.h-data: New file: add C11 thrd_* types and
9370 functions.
9371 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
9372 * nptl/Makefile (headers): Add threads.h.
9373 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
9374 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
9375 thrd_yield.
9376 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
9377 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
9378 thrd_join, thrd_sleep, and thrd_yield symbols.
9379 * nptl/descr.h (struct pthread): Add c11 field.
9380 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
9381 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
9382 routine with expected function prototype.
9383 (__pthread_create_2_1): Add C11 threads check based on attribute
9384 value.
9385 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
9386 * nptl/thrd_create.c: New file.
9387 * nptl/thrd_current.c: Likewise.
9388 * nptl/thrd_detach.c: Likewise.
9389 * nptl/thrd_equal.c: Likewise.
9390 * nptl/thrd_exit.c: Likewise.
9391 * nptl/thrd_join.c: Likewise.
9392 * nptl/thrd_priv.h: Likewise.
9393 * nptl/thrd_sleep.c: Likewise.
9394 * nptl/thrd_yield.c: Likewise.
9395 * include/threads.h: Likewise.
9396
9397 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9398
9399 * bits/indirect-return.h: New file.
9400 * misc/sys/cdefs.h (__glibc_has_attribute): New.
9401 * sysdeps/x86/bits/indirect-return.h: Likewise.
9402 * stdlib/Makefile (headers): Add bits/indirect-return.h.
9403 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
9404 (swapcontext): Add __INDIRECT_RETURN.
9405 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
9406 (prepare_test_buffer): Use it.
9407
9408 2018-07-24 Andreas Schwab <schwab@suse.de>
9409
9410 [BZ #23448]
9411 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
9412 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
9413
9414 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9415
9416 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
9417 Redefine if shadow stack is enabled.
9418 (SYSCALL_ERROR_LABEL): Likewise.
9419 (__vfork): Pop shadow stack and jump back to to caller directly
9420 when shadow stack is in use.
9421 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
9422 Redefine if shadow stack is enabled.
9423 (SYSCALL_ERROR_LABEL): Likewise.
9424 (__vfork): Pop shadow stack and jump back to to caller directly
9425 when shadow stack is in use.
9426
9427 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9428
9429 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
9430 enabled.
9431 (foo): Likewise.
9432 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
9433 (foo): Likewise.
9434
9435 2018-07-20 Joseph Myers <joseph@codesourcery.com>
9436
9437 * scripts/build-many-glibcs.py (Context.checkout): Default
9438 binutils version to 2.31 branch.
9439
9440 2018-07-20 Zong Li <zong@andestech.com>
9441
9442 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
9443 URL of gcc's tarball.
9444
9445 2018-07-20 Florian Weimer <fweimer@redhat.com>
9446
9447 [BZ #23396]
9448 * posix/regcomp.c (build_equiv_class): When comparing weights, do
9449 not compare an extra byte after the end of the weights.
9450
9451 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
9452
9453 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
9454 to 1.
9455 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
9456 hidden prototypes.
9457 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
9458 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
9459 * scripts/check-execstack.awk: Consider `xfail' variable containing a
9460 list of libraries whose stack executability is expected.
9461 * elf/Makefile ($(objpfx)check-execstack.out): Pass
9462 $(check-execstack-xfail) to check-execstack.awk through `xfail'
9463 variable.
9464 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
9465 libc.so libpthread.so.
9466
9467 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
9468
9469 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
9470 SOCK_NONBLOCK.
9471 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
9472 and SOCK_NONBLOCK.
9473 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
9474 implement __pipe2.
9475 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
9476
9477 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9478
9479 * benchtests/scripts/compare_bench.py (__main__): use the argparse
9480 library to improve command line parsing.
9481 (__main__): make schema file as optional parameter (--schema),
9482 defaulting to benchtests/scripts/benchout.schema.json.
9483 (main): move out of the parsing stuff to __main_  and leave it
9484 only as caller of main comparison functions.
9485
9486 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
9487
9488 * NEWS: Add a note for Intel CET status.
9489 * manual/install.texi: Likewise.
9490 * INSTALL: Regenerated.
9491
9492 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
9493
9494 [BZ #23140]
9495 * localedata/locales/oc_FR (mon): Rename to...
9496 (alt_mon): This, then update October (typo fix).
9497 (mon): New content (genitive case, month names preceded by
9498 "de" or "d’").
9499
9500 [BZ #23422]
9501 * localedata/locales/oc_FR (abday): Update all items.
9502 (day): Update Wednesday and Saturday (typo fixes).
9503 (abmon): Update all items, except May.
9504 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
9505 (LC_IDENTIFICATION): Bump the revision number and date.
9506 Keep the "category" entries in alphabetic order.
9507 (LC_ADDRESS): Remove no longer needed comment.
9508 (LC_COLLATE): Use “copy "ca_ES"”.
9509 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
9510 "name_mrs".
9511
9512 2018-07-18 Joseph Myers <joseph@codesourcery.com>
9513
9514 * grp/tst_fgetgrent.c: Include <unistd.h>.
9515 (main): Use mkstemp instead of tmpnam.
9516 * io/test-utime.c (main): Likewise.
9517 * posix/annexc.c (macrofile): Change to modifiable array.
9518 (main): Remove macrofile here.
9519 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9520 macrofile here.
9521 (check_header): Do not remove macrofile here.
9522 * posix/bug-getopt1.c: Include <stdlib.h>.
9523 (do_test): Use mkstemp instead of tmpnam.
9524 * posix/bug-getopt2.c: Include <stdlib.h>.
9525 (do_test): Use mkstemp instead of tmpnam.
9526 * posix/bug-getopt3.c: Include <stdlib.h>.
9527 (do_test): Use mkstemp instead of tmpnam.
9528 * posix/bug-getopt4.c: Include <stdlib.h>.
9529 (do_test): Use mkstemp instead of tmpnam.
9530 * posix/bug-getopt5.c: Include <stdlib.h>.
9531 (do_test): Use mkstemp instead of tmpnam.
9532 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
9533 (main): Use mkstemp instead of tmpnam.
9534 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
9535 (main): Use mkstemp instead of tmpnam.
9536 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
9537 (main): use mkstemp instead of tmpnam.
9538 * stdlib/isomac.c (macrofile): Change to modifiable array.
9539 (main): Remove macrofile here.
9540 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9541 macrofile here.
9542 (check_header): Do not remove macrofile here.
9543
9544 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9545
9546 * manual/tunables.texi: Document glibc.tune.x86_ibt and
9547 glibc.tune.x86_shstk.
9548
9549 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9550
9551 * NEWS: Mention --enable-cet.
9552 * manual/install.texi: Document --enable-cet.
9553 * INSTALL: Regenerated.
9554
9555 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9556
9557 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
9558 Add _CET_NOTRACK before indirect jump to jump table.
9559
9560 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9561
9562 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
9563 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9564 to jump table.
9565
9566 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9567
9568 * sysdeps/i386/i686/multiarch/strcat-sse2.S
9569 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9570 to jump table.
9571
9572 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9573
9574 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
9575 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9576 to jump table.
9577
9578 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9579
9580 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
9581 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9582 to jump table.
9583
9584 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9585
9586 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
9587 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9588 to jump table.
9589 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
9590
9591 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9592
9593 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
9594 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9595 to jump table.
9596
9597 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9598
9599 * sysdeps/i386/i686/multiarch/memset-sse2.S
9600 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9601 to jump table.
9602
9603 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9604
9605 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
9606 indirect jump to jump table.
9607
9608 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9609
9610 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
9611 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9612 to jump table.
9613 (MEMCPY): Likewise.
9614
9615 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9616
9617 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
9618 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9619 to jump table.
9620 (MEMCPY): Likewise.
9621
9622 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9623
9624 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9625 _CET_NOTRACK before indirect jump to jump table.
9626
9627 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9628
9629 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
9630 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9631 to jump table.
9632
9633 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9634
9635 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
9636 indirect jump to jump table.
9637
9638 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
9639
9640 [BZ #22241]
9641 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
9642 (LOCALES): Likewise.
9643 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
9644 * localedata/locales/sah_RU: New file.
9645 * localedata/sah_RU.UTF-8.in: New file.
9646
9647 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9648
9649 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
9650 "sysdep.h".
9651 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9652 _CET_ENDBR to indirect jump targets and adjust jump destination
9653 for _CET_ENDBR.
9654 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
9655 "sysdep.h".
9656 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9657 _CET_ENDBR to indirect jump targets and adjust jump destination
9658 for _CET_ENDBR.
9659 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
9660 "sysdep.h".
9661 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
9662 _CET_ENDBR to indirect jump targets and adjust jump destination
9663 for _CET_ENDBR.
9664
9665 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9666
9667 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9668 _CET_ENDBR.
9669
9670 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9671
9672 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
9673 _CET_ENDBR.
9674 (_dl_tlsdesc_undefweak): Likewise.
9675 (_dl_tlsdesc_dynamic): Likewise.
9676 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
9677 (_dl_tlsdesc_resolve_rel): Likewise.
9678 (_dl_tlsdesc_resolve_rela): Likewise.
9679 (_dl_tlsdesc_resolve_hold): Likewise.
9680 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
9681 (_dl_tlsdesc_undefweak): Likewise.
9682 (_dl_tlsdesc_dynamic): Likewise.
9683 (_dl_tlsdesc_resolve_rela): Likewise.
9684 (_dl_tlsdesc_resolve_hold): Likewise.
9685
9686 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9687
9688 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
9689 (_fini): Likewise.
9690 * sysdeps/x86_64/crti.S (_init): Likewise.
9691 (_fini): Likewise.
9692
9693 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
9694
9695 [BZ #23140]
9696 * localedata/locales/os_RU (mon): Rename to...
9697 (alt_mon): This.
9698 (mon): Import from CLDR (genitive case).
9699
9700 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9701
9702 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
9703 cet-tunables.h> when CET is enabled.
9704
9705 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
9706
9707 [BZ #21598]
9708 * configure.ac: Add --enable-cet.
9709 * configure: Regenerated.
9710 * elf/Makefille (all-built-dso): Add a comment.
9711 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
9712 Include <dl-prop.h>.
9713 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
9714 segment.
9715 * elf/dl-open.c: Include <dl-prop.h>.
9716 (dl_open_worker): Call _dl_open_check.
9717 * elf/rtld.c: Include <dl-prop.h>.
9718 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
9719 _rtld_main_check.
9720 * sysdeps/generic/dl-prop.h: New file.
9721 * sysdeps/i386/dl-cet.c: Likewise.
9722 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
9723 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
9724 * sysdeps/x86/cet-tunables.h: Likewise.
9725 * sysdeps/x86/check-cet.awk: Likewise.
9726 * sysdeps/x86/configure: Likewise.
9727 * sysdeps/x86/configure.ac: Likewise.
9728 * sysdeps/x86/dl-cet.c: Likewise.
9729 * sysdeps/x86/dl-procruntime.c: Likewise.
9730 * sysdeps/x86/dl-prop.h: Likewise.
9731 * sysdeps/x86/libc-start.h: Likewise.
9732 * sysdeps/x86/link_map.h: Likewise.
9733 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
9734 _CET_ENDBR.
9735 (_dl_runtime_profile): Likewise.
9736 (_dl_runtime_resolve_shstk): New.
9737 (_dl_runtime_profile_shstk): Likewise.
9738 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
9739 if CET is enabled.
9740 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
9741 (CFLAGS-.os): Likewise.
9742 (CFLAGS-.op): Likewise.
9743 (CFLAGS-.oS): Likewise.
9744 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
9745 is enabled.
9746 (tests-special): Add $(objpfx)check-cet.out.
9747 (cet-built-dso): New.
9748 (+$(cet-built-dso:=.note)): Likewise.
9749 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
9750 ($(objpfx)check-cet.out): New.
9751 (generated): Add check-cet.out.
9752 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
9753 <cet-tunables.h>.
9754 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
9755 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9756 (init_cpu_features): Call get_cet_status to check CET status
9757 and update dl_x86_feature_1 with CET status. Call
9758 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
9759 (set_x86_shstk). Disable and lock CET in libc.a.
9760 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
9761 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
9762 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9763 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
9764 (_CET_ENDBR): Define if not defined.
9765 (ENTRY): Add _CET_ENDBR.
9766 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
9767 x86_shstk.
9768 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
9769 _CET_ENDBR.
9770 (_dl_runtime_profile): Likewise.
9771
9772 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
9773
9774 [BZ #21895]
9775 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
9776 restore r2 on longjmp.
9777 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
9778 test list.
9779 Added rules to build test tst-setjmp-bug21895-static.
9780 Added module setjmp-bug21895 and rules to build a shared object from it.
9781 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
9782 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
9783
9784 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
9785
9786 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
9787 * benchtests/bench-strstr.c: Likewise.
9788 * string/memmem.c (FASTSEARCH): Define.
9789 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
9790 Add support for FASTSEARCH.
9791 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
9792 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
9793 (FASTSEARCH): Define.
9794 * string/test-strcasestr.c: Rename __strnlen to strnlen.
9795 * string/test-strstr.c: Likewise.
9796
9797 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
9798
9799 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
9800 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
9801
9802 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9803 H.J. Lu <hongjiu.lu@intel.com>
9804
9805 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
9806 (__longjmp): Restore shadow stack pointer if shadow stack is
9807 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9808 isn't defined for __longjmp_cancel.
9809 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
9810 (_setjmp): Save shadow stack pointer if shadow stack is enabled
9811 and SHADOW_STACK_POINTER_OFFSET is defined.
9812 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
9813 (setjmp): Save shadow stack pointer if shadow stack is enabled
9814 and SHADOW_STACK_POINTER_OFFSET is defined.
9815 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
9816 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9817 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9818 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
9819 <jmp_buf-ssp.h>.
9820 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9821 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9822 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
9823 Remove jmp_buf-ssp.sym.
9824 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
9825 <jmp_buf-ssp.h>.
9826 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9827 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9828 * sysdeps/x86/Makefile (gen-as-const-headers): Add
9829 jmp_buf-ssp.sym.
9830 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
9831 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
9832 (__longjmp): Restore shadow stack pointer if shadow stack is
9833 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9834 isn't defined for __longjmp_cancel.
9835 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
9836 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9837 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9838
9839 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
9840
9841 [BZ #22563]
9842 * nptl/pthread_create.c: Include <tls-setup.h>.
9843 (__pthread_create_2_1): Call tls_setup_tcbhead.
9844 * sysdeps/generic/tls-setup.h: New file.
9845 * sysdeps/x86/nptl/tls-setup.h: Likewise.
9846 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9847 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
9848 Likewise.
9849 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
9850 to feature_1.
9851 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
9852 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
9853 (X86_FEATURE_1_SHSTK): Likewise.
9854 (CET_ENABLED): Likewise.
9855 (IBT_ENABLED): Likewise.
9856 (SHSTK_ENABLED): Likewise.
9857
9858 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
9859
9860 [BZ #23208]
9861 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
9862 (LOCALES): Likewise.
9863 * localedata/dsb_DE.UTF-8.in: New file.
9864 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
9865
9866 2018-07-12 Florian Weimer <fweimer@redhat.com>
9867
9868 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
9869 __mprotect, not mprotect.
9870
9871 2018-07-11 Florian Weimer <fweimer@redhat.com>
9872
9873 * io/Makefile (headers): Add bits/statx.h.
9874
9875 2018-07-10 Mike FABIAN <mfabian@redhat.com>
9876
9877 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
9878 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
9879 and headers.
9880 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
9881 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
9882 for utf8_gen.py
9883
9884 2018-07-10 Florian Weimer <fweimer@redhat.com>
9885
9886 * io/Makefile (routines): Add statx.
9887 (tests-internal): Add tst-statx.
9888 * io/Versions (GLIBC_2.28): Export statx.
9889 * io/bits/statx.h: New file.
9890 * io/sys/stat.h [__USE_GNU]: Include it.
9891 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
9892 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
9893 Define.
9894 * io/statx.c: New file.
9895 * io/statx_generic.: Likewise.
9896 * io/tst-statx.: Likewise.
9897 * include/bits/statx.h: Likewise.
9898 * sysdeps/unix/sysv/linux/kernel-features.h
9899 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
9900 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9901 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
9902 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
9903 Undefine.
9904 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9905 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
9906 * sysdeps/unix/sysv/linux/statx.c: New file.
9907 * manual/filesys.texi: Note that statx is undocumented.
9908 * sysdeps/**/libc*.abilist: Update.
9909
9910 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9911
9912 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
9913 a kernel issue which lead to test failure in some cases.
9914
9915 2018-07-10 Florian Weimer <fweimer@redhat.com>
9916
9917 [BZ #23036]
9918 * posix/regexec.c (check_node_accept_bytes): When comparing
9919 weights, do not compare an extra byte after the end of the
9920 weights.
9921
9922 2018-07-10 Florian Weimer <fweimer@redhat.com>
9923
9924 * libio/readline.c: Fix copyright year.
9925 * libio/tst-readline.c Likewise.
9926 * nss/tst-nss-files-hosts-getent.c: Likewise.
9927
9928 2018-07-06 Florian Weimer <fweimer@redhat.com>
9929
9930 [BZ #18991]
9931 * nss/nss_files/files-XXX.c (internal_getent): Use
9932 __libc_readline_unlocked. Seek back to the start of the line if
9933 parsing failes with ERANGE.
9934 (get_contents_ret, get_contents): Remove.
9935 * nss/tst-nss-files-hosts-getent.c: New file.
9936 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
9937 (tst-nss-files-hosts-getent): Link with -ldl.
9938
9939 2018-07-06 Florian Weimer <fweimer@redhat.com>
9940
9941 * include/stdio.h (__libc_readline_unlocked): Declare.
9942 (__ftello64, __fseeko64): Declare aliases.
9943 * libio/readline.c: New file.
9944 * libio/tst-readline.c: Likewise.
9945 (routines): Add readline.
9946 (tests-internal): Add tst-readlime.
9947 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
9948 __libc_readline_unlocked.
9949 * libio/fseeko.c (__fseeko): Rename from fseeko.
9950 (fseeko): Add alias.
9951 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9952 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9953 (fseeko64): Add alias.
9954 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9955 * libio/ftello64.c (__ftello64): Rename from ftello64.
9956 (ftello64): Add alias.
9957
9958 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9959
9960 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9961 HWCAP_ATOMICS.
9962
9963 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9964
9965 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9966 Use dl_hwcap without masking.
9967 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9968 Remove HWCAP_CPUID.
9969
9970 2018-07-06 Florian Weimer <fweimer@redhat.com>
9971
9972 * conform/conformtest.pl (checknamespace): Escape literal braces
9973 in regular expressions.
9974
9975 2018-07-06 Amit Pawar <amit.pawar@amd.com>
9976
9977 * sysdeps/x86/cpu-features.c (get_common_indeces):
9978 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
9979 * sysdeps/x86/cpu-features.c (init_cpu_features):
9980 AVX_Fast_Unaligned_Load is disabled for Excavator core.
9981
9982 2018-07-05 Florian Weimer <fweimer@redhat.com>
9983
9984 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
9985 protector.
9986 (CFLAGS-elf-init.oS): Likewise.
9987
9988 2018-07-05 Florian Weimer <fweimer@redhat.com>
9989 Carlos O'Donell <carlos@redhat.com>
9990
9991 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
9992 $(no-stack-protector). stack_chk_fail_local.c can be compiled
9993 with stack protector enabled because there is no risk of infinite
9994 recursion.
9995
9996 2018-07-05 Maciej W. Rozycki <macro@mips.com>
9997
9998 [BZ #19818]
9999 [BZ #23307]
10000 * libc-abis (ABSOLUTE): New ABI.
10001 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
10002 * NEWS: Mention the new ABI.
10003
10004 2018-07-05 Florian Weimer <fweimer@redhat.com>
10005
10006 [BZ # 17662]
10007 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
10008 (RENAME_WHITEOUT): Define.
10009 [__USE_GNU] (renameat2): Declare.
10010 * stdio-common/Makefile (routines): Add renameat2.
10011 (tests): Add tst-renameat2.
10012 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
10013 * stdio-common/renameat2.c: New file.
10014 * stdio-common/tst-renameat2.c: Likewise.
10015 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
10016 * manual/filesys.texi (Temporary Files): Note that renameat2 is
10017 undocumented.
10018 * sysdeps/unix/sysv/linux/kernel-features.h
10019 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
10020 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10021 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
10022 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10023 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
10024 * sysdeps/unix/sysv/linux/sh/kernel-features.h
10025 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
10026 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10027 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
10028 * include/stdio.h (__renameat): Add alias for renameat.
10029 * stdio-common/renameat.c (__renameat): Rename from renameat.
10030 Add hidden definition and alias.
10031 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
10032 * sysdeps/mach/hurd/renameat.c: Likewise.
10033 * sysdeps/**/libc*.abilist: Add renameat2.
10034
10035 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10036
10037 * posix/bug-regex33.c: Fix build after regex sync.
10038
10039 2018-07-04 Carlos O'Donell <carlos@redhat.com>
10040
10041 [BZ #23164]
10042 * localedata/tst-langinfo-setlocale.c: New file.
10043 * localedata/tst-langinfo-setlocale-static.c: New file.
10044 * localedata/tst-langinfo-newlocale.c: New file.
10045 * localedata/tst-langinfo-newlocale-static.c: New file.
10046 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
10047 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
10048 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
10049 (tests-static): Remove tst-langinfo-static. Add
10050 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
10051 (tests-special): Remove $(objpfx)tst-langinfo.out,
10052 $(objpfx)tst-langinfo-static.out. Add
10053 $(objpfx)tst-langinfo-setlocale.out,
10054 $(objpfx)tst-langinfo-newlocale.out,
10055 $(objpfx)tst-langinfo-setlocale-static.out,
10056 $(objpfx)tst-langinfo-newlocale-static.out.
10057 ($(objpfx)tst-langinfo.out): Remove.
10058 ($(objpfx)tst-langinfo-static.out): Remove.
10059 ($(objpfx)tst-langinfo-newlocale.out): New target.
10060 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
10061 (test-xfail-tst-langinfo-newlocale-static): Add.
10062 ($(objpfx)tst-langinfo-setlocale.out): New target.
10063 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
10064 * localedata/tst-langinfo.c: Call test_locale.
10065 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
10066 data.
10067
10068 2018-07-04 Florian Weimer <fweimer@redhat.com>
10069
10070 testrun.sh: Implement --tool=strace, --tool=valgrind
10071 * Makefile (testrun-script): Define variable.
10072 (testrun.sh): Use variable.
10073 * manual/install.texi (Tools for Compilation): make 4.0 or later
10074 is required.
10075 * configure.ac: Check for make 4.0 or later.
10076 * INSTALL: Regenerate.
10077 * configure: Likewise.
10078
10079 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10080
10081 [BZ #23233]
10082 [BZ #21163]
10083 [BZ #18986]
10084 [BZ #13762]
10085 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
10086 * posix/PCRE.tests: Remove invalid test.
10087 * posix/bug-regex28.c: Fix expected values for used syntax.
10088 * posix/bug-regex37.c: New file.
10089 * posix/bug-regex38.c: Likewise.
10090 * posix/regcomp.c: Sync with gnulib.
10091 * posix/regex.c: Likewise.
10092 * posix/regex.h: Likewise.
10093 * posix/regex_internal.c: Likewise.
10094 * posix/regex_internal.h: Likewise.
10095 * posix/regexec.c: Likewise.
10096
10097 2018-06-26 Mike FABIAN <mfabian@redhat.com>
10098
10099 [BZ #23308]
10100 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
10101 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
10102 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
10103 * localedata/unicode-gen/PropList.txt: likewise.
10104 * localedata/unicode-gen/UnicodeData.txt: likewise.
10105 * localedata/charmaps/UTF-8: Regenerate.
10106 * localedata/locales/i18n_ctype: likewise.
10107 * localedata/locales/tr_TR: likewise.
10108 * localedata/locales/translit_circle: likewise.
10109 * localedata/locales/translit_cjk_compat: likewise.
10110 * localedata/locales/translit_combining: likewise.
10111 * localedata/locales/translit_compat: likewise.
10112 * localedata/locales/translit_font: likewise.
10113 * localedata/locales/translit_fraction: likewise.
10114
10115 2018-07-03 Florian Weimer <fweimer@redhat.com>
10116
10117 [BZ #23363]
10118 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
10119 * stdio-common/tst-printf.sh: Adjust expected output.
10120 * LICENSES: Update.
10121
10122 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10123
10124 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
10125 symbol.
10126
10127 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10128
10129 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
10130 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
10131 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
10132 * stdio-common/tst-printfsz-islongdouble.c: New file.
10133 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
10134 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
10135 [subdir == stdio-common] (routines): Add ieee128-printf_size.
10136 [subdir == stdio-common] (tests-internal): Add
10137 test-printf-size-ieee128, and test-printf-size-ibm128.
10138 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
10139 (CFLAGS-test-printf-size-ibm128.c): New variables.
10140 [subdir == stdio-common] (tests-special): Add
10141 $(objpfx)test-printf-size-ieee128.out and
10142 $(objpfx)test-printf-size-ibm128.out.
10143 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
10144 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
10145 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
10146 __printf_sizeieee128.
10147 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
10148 New file.
10149 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
10150 Likewise.
10151 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
10152 Likewise.
10153
10154 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
10155
10156 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
10157 (exp2f_inline): Likewise.
10158 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
10159 (__math_uflowf): Likewise.
10160 (__math_may_uflowf): Likewise.
10161 (__math_divzerof): Likewise.
10162 (__math_invalidf): Likewise.
10163 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
10164 (__math_oflowf): Likewise.
10165 (__math_uflowf): Likewise.
10166 (__math_may_uflowf): Likewise.
10167 (__math_divzerof): Likewise.
10168 (__math_invalidf): Likewise.
10169
10170 2018-06-29 DJ Delorie <dj@redhat.com>
10171 Carlos O'Donell <carlos@redhat.com>
10172
10173 [BZ #23329]
10174 * include/libc-symbols.h: Comment the freeres framework.
10175 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
10176 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
10177 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
10178 * dlfcn/dlerror.c: Include libc-symbols.h
10179 (__dlerror_main_freeres): New function.
10180 * dlfcn/dlfreeres.c: New file.
10181 * dlfcn/sdlfreeres.c: New file.
10182 * include/dlfcn.h: Declare __dlerror_main_freeres.
10183 * malloc/set-freeres.c: Declare __libdl_freeres, and
10184 __libpthread_freeres.
10185 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
10186 the releavant libraries are loaded.
10187 * malloc/thread-freeres.c: Add comments.
10188 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
10189 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
10190 * nptl/allocatestack.c (__nptl_free_stacks): New function.
10191 (__free_stacks): Rename to...
10192 (free_stacks): ...this. Mark static.
10193 (queue_stack): Call free_stacks.
10194 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
10195 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
10196 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
10197 ptr_freeres element from struct.
10198 (pthread_functions): Remove .ptr_freeres from struct initializer.
10199 [SHARED] (nptl_freeres): Remove.
10200 * nptl/nptlfreeres.c: New file.
10201 * nptl/pthreadP.h
10202 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
10203 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
10204 attribute_hidden.
10205 (__free_stacks): Rename to...
10206 (__nptl_stacks_freeres): ...this.
10207 (__shm_directory_freeres): Declare.
10208 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
10209 (__nptl_unwind_freeres): ...this.
10210 * resolv/res-close.c: Add comment.
10211 * resolv/resolv_conf.c: Include libc-symbols.h.
10212 * string/strerror_l.c: Include libc-symbols.h.
10213 * sunrpc/rpc_thread.c: Include libc-symbols.h.
10214 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
10215 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
10216 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
10217
10218 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10219
10220 * stdlib/tst-strfmon_l.c: Add tests for long double.
10221
10222 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
10223
10224 [BZ #23208]
10225 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
10226 * localedata/locales/dsb_DE: New file.
10227
10228 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10229
10230 [BZ #23140]
10231 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
10232 genitive case).
10233 (alt_mon): New entry, import from CLDR (nominative case).
10234
10235 2018-06-29 Sylvain Lesage <severo@rednegra.net>
10236
10237 [BZ #22996]
10238 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
10239
10240 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
10241
10242 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
10243 Use vector registers.
10244
10245 * sysdeps/aarch64/multiarch/memmove_falkor.S
10246 (__memcpy_falkor): Use vector registers.
10247
10248 2018-06-29 Martin Sebor <msebor@redhat.com>
10249
10250 * manual/stdio.texi (Customizing Printf): Mention interaction
10251 with GCC built-ins.
10252
10253 2018-06-29 Maciej W. Rozycki <macro@mips.com>
10254
10255 [BZ #23307]
10256 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
10257 `st_value' is 0 if `st_shndx' is SHN_ABS.
10258 * elf/tst-absolute-zero.c: New file.
10259 * elf/tst-absolute-zero-lib.c: New file.
10260 * elf/tst-absolute-zero-lib.lds: New file.
10261 * elf/Makefile (tests): Add `tst-absolute-zero'.
10262 (modules-names): Add `tst-absolute-zero-lib'.
10263 (LDLIBS-tst-absolute-zero-lib.so): New variable.
10264 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
10265 ($(objpfx)tst-absolute-zero: New dependency.
10266
10267 2018-06-29 Zack Weinberg <zackw@panix.com>
10268
10269 * configure.ac: New command-line option --disable-crypt.
10270 Force --disable-nss-crypt when --disable-crypt is given, with a
10271 warning if it was explicitly enabled.
10272 * configure: Regenerate.
10273 * config.make.in: New boolean substitution variable $(build-crypt).
10274 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
10275 when $(build-crypt).
10276 * manual/install.texi: Document --disable-crypt.
10277 * INSTALL: Regenerate.
10278
10279 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
10280 which is never set.
10281 * conform/Makefile: Only include libcrypt.a in
10282 linknamespace-libs-xsi and linknamespace-libs-XPG4
10283 when $(build-crypt).
10284 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
10285 USE_CRYPT to 1 when $(build-crypt).
10286 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
10287 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
10288 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
10289
10290 2018-06-29 Zack Weinberg <zackw@panix.com>
10291
10292 * crypt/crypt.h, posix/unistd.h: Update comments and
10293 prototypes for crypt and crypt_r.
10294
10295 * manual/crypt.texi (Cryptographic Functions): New initial
10296 exposition.
10297 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
10298 (Unpredictable Bytes): Improve initial exposition. Clarify error
10299 behavior of getentropy and getrandom.
10300 * manual/examples/genpass.c: Generate a salt using getentropy
10301 instead of the current time. Use hash $5$ (SHA-2-256).
10302 * manual/examples/testpass.c: Demonstrate validation against
10303 hashes generated with three different one-way functions.
10304
10305 * manual/intro.texi: crypt.texi does not need an overview
10306 anymore.
10307
10308 * manual/nss.texi, manual/memory.texi, manual/socket.texi
10309 * manual/terminal.texi: Consistently refer to "passphrases"
10310 * instead of "passwords", and to the "user database" instead
10311 * of the "password database".
10312 * manual/users.texi: Similarly. Add notes about how actual
10313 passphrase hashes are now stored in the shadow database.
10314 Remove 20-year-old junk todo note.
10315
10316 2018-06-29 Zack Weinberg <zackw@panix.com>
10317
10318 * manual/crypt.texi: Use a normal top-level @node declaration.
10319 Move most of the introductory text to the 'crypt' section.
10320 Move the example programs below the @deftypefun for 'crypt_r'.
10321 Move the 'getpass' section...
10322 * manual/terminal.texi: ...here.
10323
10324 2018-06-29 Zack Weinberg <zackw@panix.com>
10325 Florian Weimer <fweimer@redhat.com>
10326
10327 * posix/unistd.h: Do not declare encrypt.
10328 (_XOPEN_CRYPT): Remove macro definition.
10329 (crypt): Declare only for _USE_MISC.
10330 * stdlib/stdlib.h: Do not declare setkey.
10331 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
10332 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
10333
10334 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
10335 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
10336 into compat symbols. Don't define initial_perm if it's not
10337 going to be used.
10338 * crypt/cert.c: Link explicitly with the expected versions for
10339 setkey and encrypt. If they are not available at all, mark
10340 the test as unsupported.
10341
10342 * sunrpc/des_crypt.c: Unconditionally block linkage with
10343 cbc_crypt and ecb_crypt for new binaries.
10344 * sunrpc/des_soft.c: Unconditionally block linkage with
10345 des_setparity for new binaries.
10346
10347 * manual/crypt.texi: Remove the entire "DES Encryption"
10348 section. Also remove the paragraph talking about FIPS 140-2
10349 from the introduction.
10350 * manual/string.texi (strfry, memfrob): Revise. Recommend use
10351 of libgcrypt for "real" encryption, not DES.
10352 * manual/conf.texi (Constants for Sysconf): Mention that
10353 _XOPEN_CRYPT is no longer impelemented.
10354
10355 * conform/data/unistd.h-data: Remove crypt function declaration.
10356
10357 2018-06-29 Florian Weimer <fweimer@redhat.com>
10358
10359 [BZ #23351]
10360 * malloc/hooks.c: Update comments on restoring of dumped heaps.
10361 (disallow_malloc_check): Remove variable.
10362 (__malloc_check_init): Adjust.
10363 (malloc_set_state): Update comment.
10364 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
10365 declarations.
10366
10367 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10368
10369 [BZ #23140]
10370 * localedata/locales/ast_ES (mon): Rename to...
10371 (alt_mon): This.
10372 (mon): Import from CLDR (genitive case).
10373
10374 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
10375 Jakub Sitnicki <jkbs@redhat.com>
10376
10377 [BZ #21812]
10378 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
10379 on NLM_F_DUMP_INTR.
10380
10381 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
10382
10383 * manual/llio.texi: Remove spurious space.
10384
10385 2018-06-28 Florian Weimer <fweimer@redhat.com>
10386
10387 [BZ #23349]
10388 * time/bits/types/struct_timespec.h: Change header inclusion guard to
10389 _STRUCT_TIMESPEC.
10390
10391 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10392
10393 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
10394 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
10395 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
10396 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
10397 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
10398 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
10399 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
10400
10401 2018-06-27 Maciej W. Rozycki <macro@mips.com>
10402
10403 [BZ #23266]
10404 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
10405 Copy and null-terminate entries that are not terminated, in
10406 addition to empty ones.
10407
10408 2018-06-27 Florian Weimer <fweimer@redhat.com>
10409
10410 [BZ #18023]
10411 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
10412 (extend_alloca_account): Remove.
10413 * manual/stdio.texi (Variable Arguments Output): Update comment.
10414
10415 2018-06-27 Joseph Myers <joseph@codesourcery.com>
10416
10417 * nptl/sockperf.c: Remove file.
10418
10419 2018-06-27 Florian Weimer <fweimer@redhat.com>
10420
10421 [BZ #18023]
10422 * elf/dl-deps.c (_dl_map_object_deps): Use struct
10423 scratch_buffer instead of extend_alloca.
10424
10425 2018-06-27 Florian Weimer <fweimer@redhat.com>
10426
10427 [BZ #18023]
10428 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
10429 scratch_buffer instead of extend_alloca. Update comments.
10430
10431 2018-06-27 Florian Weimer <fweimer@redhat.com>
10432
10433 [BZ #18023]
10434 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
10435 instead of extend_alloca.
10436
10437 2018-06-26 Joseph Myers <joseph@codesourcery.com>
10438
10439 [BZ #13888]
10440 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
10441 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
10442 /tmp.
10443 * scripts/test-installation.pl: Put temporary files in build
10444 directory, not /tmp.
10445 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
10446 (CFLAGS-bug4.c): Likewise.
10447 (CFLAGS-bug5.c): Likewise.
10448 (CFLAGS-test-fseek.c): Likewise.
10449 (CFLAGS-test-popen.c): Likewise.
10450 (CFLAGS-test_rdwr.c): Likewise.
10451 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
10452 /tmp.
10453 * stdio-common/bug4.c (main): Likewise.
10454 * stdio-common/bug5.c (main): Likewise.
10455 * stdio-common/test-fseek.c (TESTFILE): Likewise.
10456 * stdio-common/test-popen.c (do_test): Likewise.
10457 * stdio-common/test_rdwr.c (main): Likewise.
10458
10459 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
10460
10461 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
10462 (sem_open): Set sem.newsem.pad to zero for valgrind.
10463
10464 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10465
10466 [BZ #20251]
10467 * NEWS: Mention fcntl64 addition.
10468 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
10469 * login/utmp_file.c: Likewise.
10470 * sysdeps/posix/fdopendir.c: Likewise.
10471 * sysdeps/posix/opendir.c: Likewise.
10472 * sysdeps/unix/pt-fcntl.c: Likewise.
10473 * include/fcntl.h (__libc_fcntl64, __fcntl64,
10474 __fcntl64_nocancel_adjusted): New prototype.
10475 (__fcntl_nocancel_adjusted): Remove prototype.
10476 * io/Makefile (routines): Add fcntl64.
10477 (CFLAGS-fcntl64.c): New rule.
10478 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
10479 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
10480 * io/fcntl.h (fcntl64): Add prototype and redirect if
10481 __USE_FILE_OFFSET64 is defined.
10482 * io/fcntl64.c: New file.
10483 * manual/llio.text: Add a note for which commands fcntl acts a
10484 cancellation point.
10485 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
10486 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
10487 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
10488 New symbols.
10489 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
10490 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
10491 non-LFS case.
10492 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
10493 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
10494 to __fcntl64_nocancel.
10495 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
10496 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
10497 to __fcntl64_nocancel.
10498 * sysdeps/generic/not-cancel.h: Likewise.
10499 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
10500 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
10501 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10502 (fcntl64): New symbol.
10503 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10504 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10505 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10506 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10507 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
10508 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10509 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10510 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10511 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10512 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10513 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
10514 fcntl64): Likewise.
10515 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10516 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
10517 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10518 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10519 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10520 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10521 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
10522 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10523 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10524 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10525 Likewise.
10526 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10527 Likewise.
10528 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10529 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10530 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10531
10532 2018-06-26 Florian Weimer <fweimer@redhat.com>
10533
10534 Run thread shutdown functions in an explicit order.
10535 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
10536 definition.
10537 (__libc_thread_freeres): Call thread shutdown functions
10538 explicitly.
10539 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
10540 * include/string.h (__strerror_thread_freeres): Declare.
10541 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
10542 arena_thread_freeres. No longer static. Remove thread shutdown
10543 hook registration.
10544 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
10545 Declare.
10546 * resolv/res-close.c (__res_thread_freeres): Renamed from
10547 res_thread_freeres. No longer static. Remove thread shutdown
10548 hook registration.
10549 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
10550 * resolv/resolv_conf.c (freeres): Remove incorrect section
10551 attribute and use libc_freeres_fn.
10552 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
10553 strerror_thread_freeres. No longer static. Remove thread
10554 shutdown hook registration.
10555 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
10556 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
10557 shutdown hook registration.
10558 * Makerules (shlib.lds): Do not provide section boundary symbols
10559 for __libc_thread_subfreeres.
10560 * manual/memory.texi (Basic Allocation): Update comment.
10561
10562 2018-06-26 Florian Weimer <fweimer@redhat.com>
10563
10564 Remove always-defined _RPC_THREAD_SAFE_ macro.
10565 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
10566 Do not define _RPC_THREAD_SAFE_.
10567 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
10568 conditional.
10569 * sunrpc/clnt_perr.c: Likewise.
10570 * sunrpc/clnt_raw.c: Likewise.
10571 * sunrpc/clnt_simp.c: Likewise.
10572 * sunrpc/key_call.c: Likewise.
10573 * sunrpc/rpc_common.c: Likewise.
10574 * sunrpc/rpc_main.c: Likewise.
10575 * sunrpc/rpc_thread.c: Likewise.
10576 * sunrpc/svc.c: Likewise.
10577 * sunrpc/svc_raw.c: Likewise.
10578 * sunrpc/svc_simple.c: Likewise.
10579 * sumrpc/svcauth_des.c: Likewise.
10580
10581 2018-06-26 Florian Weimer <fweimer@redhat.com>
10582
10583 * libio/Makefile (tests-internal): Add tst-vtables,
10584 tst-vtables-interposed.
10585 * libio/tst-vtables.c: New file.
10586 * libio/tst-vtables-common.c: Likewise.
10587 * libio/tst-vtables-interposed.c: Likewise.
10588
10589 2018-06-26 Florian Weimer <fweimer@redhat.com>
10590
10591 * support/support_test_main.c (support_test_main): Only call
10592 setvbuf if not disables.
10593 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
10594 * support/test-driver.h (struct test_config): Add no_setvbuf member.
10595
10596 2018-06-26 Florian Weimer <fweimer@redhat.com>
10597
10598 [BZ #23313]
10599 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
10600
10601 2018-06-25 Florian Weimer <fweimer@redhat.com>
10602
10603 [BZ #18023]
10604 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10605 Use struct scratch_buffer instead of extend_alloca.
10606
10607 2018-06-25 Florian Weimer <fweimer@redhat.com>
10608
10609 [BZ #18023]
10610 * nss/getent.c (initgroups_keys): Use dynarray instead of
10611 extend_alloca.
10612
10613 2018-06-25 Florian Weimer <fweimer@redhat.com>
10614
10615 [BZ #18023]
10616 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
10617 Use struct scratch_buffer instead of extend_alloca.
10618
10619 2018-06-25 Florian Weimer <fweimer@redhat.com>
10620
10621 [BZ #18023]
10622 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
10623 back to malloc directly, without stack allocations.
10624
10625 2018-06-25 Florian Weimer <fweimer@redhat.com>
10626
10627 [BZ #18023]
10628 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
10629 of extend_alloca.
10630
10631 2018-06-25 Florian Weimer <fweimer@redhat.com>
10632
10633 [BZ #18023]
10634 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
10635 of extend_alloca.
10636 * nscd/hstcache.c (addhstbyX): Likewise.
10637 * nscd/pwdcache.c (addpwbyX): Likewise.
10638 * nscd/servicescache.c (addservbyX): Likewise.
10639
10640 2018-06-25 Florian Weimer <fweimer@redhat.com>
10641
10642 [BZ #18023]
10643 * nscd/connections.c (read_cmdline): New function.
10644 (restart): Use it. Update comment.
10645
10646 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10647
10648 [BZ #23140]
10649 * localedata/locales/csb_PL (mon): Rename to...
10650 (alt_mon): This.
10651 (abmon): Rename to...
10652 (ab_alt_mon): This.
10653 (mon): Add with proper genitive forms, copy from Wikipedia.
10654 (abmon): Likewise.
10655
10656 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10657
10658 [BZ #19485]
10659 * localedata/locales/csb_PL (mon): Fix typos:
10660 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
10661 (yesstr): Add, value is "jo".
10662 (nostr): Add, value is "nié".
10663
10664 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10665
10666 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
10667 all log1p and significand functions on m680x0.
10668 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
10669 of s_significand.c..
10670 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
10671 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
10672 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
10673 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
10674 s_log1p.c and include it..
10675
10676 2018-06-21 Vincent Chen <vincentc@andestech.com>
10677
10678 * elf/elf.h (R_NDS32_NONE): New define.
10679 (R_NDS32_32_RELA): Likewise.
10680 (R_NDS32_COPY): Likewise.
10681 (R_NDS32_GLOB_DAT): Likewise.
10682 (R_NDS32_JUMP_SLOT): Likewise.
10683 (R_NDS32_RELATIVE): Likewise.
10684 (R_NDS32_TLS_TPOFF): Likewise.
10685 (R_NDS32_TLS_DESC): Likewise.
10686
10687 2018-06-21 Mark Wielaard <mark@klomp.org>
10688
10689 * elf/elf.h (R_BPF_MAP_FD): Removed.
10690 (R_BPF_64_64, R_BPF_64_32): New.
10691
10692 2018-06-21 Florian Weimer <fweimer@redhat.com>
10693
10694 [BZ #23253]
10695 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
10696 Renamed from libc_feholdsetround_ctx.
10697 (default_libc_feresetround_ctx): Renamed from
10698 libc_feresetround_ctx.
10699 (default_libc_feholdsetround_noex_ctx): Renamed from
10700 libc_feholdsetround_noex_ctx.
10701 (default_libc_feresetround_noex_ctx): Renamed from
10702 libc_feresetround_noex_ctx.
10703 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
10704 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
10705 forwardning to the old implementations under the new names.
10706 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
10707 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
10708 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
10709 (libc_feresetround_ctx): Forward to default implements for i386
10710 and MATH_SET_BOTH_ROUNDING_MODES.
10711 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
10712 Add -DMATH_SET_BOTH_ROUNDING_MODES.
10713
10714 2018-06-20 Joseph Myers <joseph@codesourcery.com>
10715
10716 * string/tst-cmp.c: Include <libc-diag.h>.
10717 (strncmp_max): Disable -Wstringop-overflow= around call to
10718 strncmp.
10719 (strncasecmp_max): Disable -Wstringop-overflow= around call to
10720 strncasecmp.
10721
10722 * string/bug-strpbrk1.c: Include <libc-diag.h>.
10723 (main): Disable -Wunused-value around call to strpbrk.
10724 * string/bug-strspn1.c: Include <libc-diag.h>.
10725 (main): Disable -Wunused-value around call to strspn.
10726
10727 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10728 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10729
10730 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
10731 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
10732
10733 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10734
10735 * math/Makefile (libm-calls): Move s_significandF to...
10736 (gen-libm-calls): ... here.
10737 * math/s_significand_template.c: New file.
10738 * math/s_significand.c: Removed.
10739 * math/s_significandf.c: Removed.
10740 * math/s_significandl.c: Removed.
10741 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
10742 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
10743
10744 * math/e_exp2_template.c (declare_mgen_finite_alias,
10745 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
10746 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
10747 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
10748
10749 2018-06-20 Florian Weimer <fweimer@redhat.com>
10750
10751 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
10752
10753 2018-06-19 Joseph Myers <joseph@codesourcery.com>
10754
10755 [BZ #23280]
10756 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
10757 floating-point number to strtod functions rather than possibly
10758 negating result of those functions.
10759 * stdio-common/tst-scanf-round.c: New file.
10760 * stdio-common/Makefile (tests): Add tst-scanf-round.
10761 ($(objpfx)tst-scanf-round): Depend on $(libm).
10762
10763 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
10764
10765 * sysdeps/mach/hurd/localplt.data: Move to...
10766 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
10767 R_386_GLOB_DAT like on Linux i386.
10768
10769 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10770
10771 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
10772 (SHM_STAT_ANY): New macro.
10773 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
10774 (SHM_STAT_ANY): Likewise.
10775 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
10776 (SHM_STAT_ANY): Likewise.
10777 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
10778 (SHM_STAT_ANY): Likewise.
10779 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
10780 (SHM_STAT_ANY): Likewise.
10781 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
10782 (SHM_STAT_ANY): Likewise.
10783 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
10784 (SHM_STAT_ANY): Likewise.
10785 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
10786 (SHM_STAT_ANY): Likewise.
10787 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
10788 (SHM_STAT_ANY): Likewise.
10789 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
10790 (SHM_STAT_ANY): Likewise.
10791 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
10792 (SHM_STAT_ANY): Likewise.
10793 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
10794 (SHM_STAT_ANY): Likewise.
10795
10796 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
10797 (SEM_STAT_ANY): New macro.
10798 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
10799 (SEM_STAT_ANY): Likewise.
10800 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
10801 (SEM_STAT_ANY): Likewise.
10802 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
10803 (SEM_STAT_ANY): Likewise.
10804 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
10805 (SEM_STAT_ANY): Likewise.
10806 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
10807 (SEM_STAT_ANY): Likewise.
10808 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
10809 (SEM_STAT_ANY): Likewise.
10810 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
10811 (SEM_STAT_ANY): Likewise.
10812 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
10813 (SEM_STAT_ANY): Likewise.
10814 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
10815 (SEM_STAT_ANY): Likewise.
10816
10817 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
10818 (MSG_STAT_ANY): New macro.
10819 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
10820 (MSG_STAT_ANY): Likewise.
10821 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
10822 (MSG_STAT_ANY): Likewise.
10823 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
10824 (MSG_STAT_ANY): Likewise.
10825 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
10826 (MSG_STAT_ANY): Likewise.
10827 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
10828 (MSG_STAT_ANY): Likewise.
10829 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
10830 (MSG_STAT_ANY): Likewise.
10831 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
10832 (MSG_STAT_ANY): Likewise.
10833 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
10834 (MSG_STAT_ANY): Likewise.
10835 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
10836 (MSG_STAT_ANY): Likewise.
10837
10838 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10839 (MAP_TYPE): Change value to 0x2b.
10840
10841 2018-06-18 Florian Weimer <fweimer@redhat.com>
10842
10843 [BZ #15722]
10844 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
10845 socket with SOCK_CLOEXEC.
10846
10847 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10848
10849 [BZ #23303]
10850 * sysdeps/powerpc/powerpc64/le/Makefile
10851 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
10852 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
10853 (gnulib-tests): Also add $(f128-loader-link) for
10854 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
10855
10856 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10857
10858 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
10859 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
10860 of sendfile.
10861 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
10862 (sendfile64): New strong alias.
10863 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
10864 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
10865 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
10866 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
10867 attribute.
10868 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
10869 ___pthread_get_cleanup_stack.
10870 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
10871 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
10872 * mach/shortcut.awk: Make syscall stubs include
10873 <mach-shortcuts-hidden.h> and add hidden definition.
10874 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
10875 (__mach_msg): Add hidden prototype.
10876 * mach/msg.c: Include <mach.h>.
10877 (__mach_msg): Add hidden definition.
10878 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
10879 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
10880 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
10881 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
10882 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
10883 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
10884 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
10885 prototype and definition.
10886 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
10887 hidden target for _hurd_self_sigstate.
10888
10889 2018-06-15 Joseph Myers <joseph@codesourcery.com>
10890
10891 [BZ #23007]
10892 * stdlib/tst-strtod-nan-sign-main.c: New file.
10893 * stdlib/tst-strtod-nan-sign.c: Likewise.
10894 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
10895 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
10896 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
10897 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
10898 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
10899
10900 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
10901
10902 [BZ #23007]
10903 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
10904 appropriate sign.
10905
10906 2018-06-14 Florian Weimer <fweimer@redhat.com>
10907
10908 [BZ #23290]
10909 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
10910 that the result stays within the ISO-8859-1 range.
10911 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
10912 characters are defined in IBM273.
10913
10914 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10915
10916 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
10917 __mach_task_self): Remove attribute_hidden.
10918
10919 2018-06-14 Joseph Myers <joseph@codesourcery.com>
10920
10921 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
10922 ignore -Wrestrict for one test.
10923
10924 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
10925 Szabolcs Nagy <szabolcs.nagy@arm.com>
10926
10927 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
10928
10929 2018-06-14 Florian Weimer <fweimer@redhat.com>
10930
10931 * scripts/update-abilist.sh: Accept empty list of files to patch.
10932
10933 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
10934
10935 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
10936 test-xfail-check-abi-libmachuser): Add.
10937 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
10938 __libc_read and __libc_write to __read and __write.
10939 * sysdeps/hurd/include/hurd/port.h: New file.
10940 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
10941 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
10942 __thread_switch, __evc_wait): Move declarations to...
10943 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
10944 attribute_hidden.
10945 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
10946 use PLT to call _hurd_self_sigstate.
10947
10948 2018-06-13 Joseph Myers <joseph@codesourcery.com>
10949
10950 [BZ #23279]
10951 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10952 MAX_EXP as overflowing.
10953 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10954 overflow flag.
10955 (round_str): Output also whether result overflows in each rounding
10956 mode.
10957 * stdlib/tst-strtod-round-data: Add more tests.
10958 * stdlib/tst-strtod-round-data.h: Regenerated.
10959 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10960 (TEST): Handle extra arguments for overflow flags.
10961 (struct test_overflow): New type.
10962 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10963 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10964 (test_in_one_mode): Take argument with overflow information.
10965 (do_test): Update calls to test_in_one_mode.
10966
10967 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10968
10969 * elf/dl-load (_dl_dst_substitute): Correct comment.
10970 (_dl_dst_count): Likewise.
10971
10972 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
10973 lll_futex_timed_wait.
10974
10975 2018-06-12 Joseph Myers <joseph@codesourcery.com>
10976
10977 [BZ #23277]
10978 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
10979 attribute.
10980 * math/test-nan-const.c: New file.
10981 * math/Makefile (tests): Add test-nan-const.
10982 (CFLAGS-test-nan-const.c): New variable.
10983
10984 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10985
10986 * benchtests/scripts/compare_strings.py (process_results): Add
10987 funcs argument. Compare only functions which are selected.
10988 (main): Check if base function is among selected functions.
10989 Pass selected functions to process_results.
10990 (__main__): Add -f/--functions argument.
10991
10992 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
10993 Hongbo Zhang <hongbo.zhang@linaro.org>
10994
10995 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
10996 __memcpy_falkor for phecda core.
10997 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
10998 __memmove_falkor for phecda core.
10999 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
11000 __memset_falkor for phecda core.
11001 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
11002 for phecda core.
11003 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
11004 macro to identify phecda core.
11005
11006 2018-06-12 Carlos O'Donell <carlos@redhat.com>
11007 Andreas Schwab <schwab@suse.de>
11008 Dmitry V. Levin <ldv@altlinux.org>
11009 Florian Weimer <fweimer@redhat.com>
11010
11011 [BZ #23102]
11012 [BZ #21942]
11013 [BZ #18018]
11014 [BZ #23259]
11015 CVE-2011-0536
11016 * elf/dl-dst.h: Remove DL_DST_COUNT.
11017 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
11018 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
11019 (is_dst): Comment. Support ELF gABI.
11020 (_dl_dst_count): Comment. Simplify and count DSTs.
11021 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
11022 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
11023 locals.
11024
11025 2018-06-12 Zack Weinberg <zackw@panix.com>
11026
11027 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
11028 * sysdeps/unix/sysv/linux/dl-sysdep.c
11029 Include not-cancel.h. Use __close_nocancel instead of __close,
11030 __open64_nocancel instead of __open, __read_nocancel instead of
11031 __libc_read, and __write_nocancel instead of __libc_write.
11032
11033 * csu/check_fds.c (check_one_fd)
11034 * sysdeps/posix/fdopendir.c (__fdopendir)
11035 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
11036 instead of __fcntl and/or __libc_fcntl.
11037
11038 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
11039 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
11040 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
11041 Use __open64_nocancel instead of __open_nocancel.
11042
11043 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
11044 hidden_proto declarations to the end and issue them if either
11045 IS_IN(libc) or IS_IN(rtld).
11046 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11047 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
11048 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
11049 read_nocancel, waitpid_nocancel, write_nocancel.
11050
11051 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
11052 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
11053 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
11054
11055 * nptl/pt-fcntl.c: New file.
11056 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
11057 (libpthread-routines): Add pt-fcntl.
11058 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
11059 (__libc_fcntl): Remove attribute_hidden.
11060 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
11061 __fcntl_nocancel_adjusted, not fcntl_common.
11062 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
11063 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
11064 to fcntl_nocancel.c.
11065 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
11066 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
11067 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
11068 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
11069
11070 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
11071 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
11072 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
11073 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
11074 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
11075 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
11076 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
11077 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
11078 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
11079 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
11080 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
11081 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
11082 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
11083 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
11084 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
11085 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
11086 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
11087 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
11088 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
11089 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
11090
11091 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
11092 libpthread-routines.
11093 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
11094 defines nothing.
11095
11096 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
11097 __libc_read, and __write instead of __libc_write. Define
11098 __open64 in addition to __open.
11099
11100 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
11101
11102 [BZ #23250]
11103 [BZ #10686]
11104 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
11105 to _private_tm[3] and add __glibc_reserved2.
11106 Add _Static_assert of offset of __private_ss == 0x30.
11107 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
11108 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
11109
11110 2018-06-12 Florian Weimer <fweimer@redhat.com>
11111
11112 x86: Make strncmp usable from rtld.
11113 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
11114 __strncmp_ia32 if in libc (and not in rtld).
11115 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
11116 strncmp if not in libc (and not to __strncmp_sse2).
11117
11118 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
11119
11120 [BZ #23140]
11121 * localedata/locales/gd_GB (mon): Rename to...
11122 (alt_mon): This.
11123 (mon): Import from CLDR (genitive case).
11124 * localedata/locales/hsb_DE (mon): Rename to...
11125 (alt_mon): This.
11126 (mon): Import from CLDR (genitive case).
11127 * localedata/locales/wa_BE (mon): Rename to...
11128 (alt_mon): This.
11129 (mon): Add, fill with the proper genitive forms, but CLDR data
11130 is incomplete; completed according to the comments in this file.
11131 (d_t_fmt): Do not use "di" before the month name, no longer needed.
11132
11133 * localedata/locales/wa_BE (country_name): Reword
11134 "Beljike" -> "Beldjike".
11135
11136 2018-06-11 Joseph Myers <joseph@codesourcery.com>
11137
11138 [BZ #23272]
11139 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
11140 cases of non-finite arguments.
11141 * math/libm-test-fma.inc (fma_test_data): Add more tests.
11142
11143 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
11144
11145 [BZ #23174]
11146 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
11147
11148 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11149
11150 [BZ #23264]
11151 * include/unistd.h (__execvpex): New prototype.
11152 * posix/Makefile (tests): Add tst-spawn4.
11153 (tests-internal): Add tst-spawn4-compat.
11154 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
11155 * posix/tst-spawn4-compat.c: New file.
11156 * posix/tst-spawn4.c: Likewise.
11157 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
11158 binaries as shell scripts.
11159 * sysdeps/posix/spawni.c (__spawni): Likewise.
11160
11161 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
11162
11163 [BZ #23145]
11164 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
11165 ($(all-built-dso:=.dynsym): New target.
11166 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
11167 ($(objpfx)check-initfini.out): New target.
11168 (generated): Add check-initfini.out.
11169 * scripts/check-initfini.awk: New file.
11170 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
11171 (_fini): Likewise.
11172 * sysdeps/alpha/crti.S (_init): Mark as hidden.
11173 (_fini): Likewise.
11174 * sysdeps/arm/crti.S (_init): Mark as hidden.
11175 (_fini): Likewise.
11176 * sysdeps/hppa/crti.S (_init): Mark as hidden.
11177 (_fini): Likewise.
11178 * sysdeps/i386/crti.S (_init): Mark as hidden.
11179 (_fini): Likewise.
11180 * sysdeps/ia64/crti.S (_init): Mark as hidden.
11181 (_fini): Likewise.
11182 * sysdeps/m68k/crti.S (_init): Mark as hidden.
11183 (_fini): Likewise.
11184 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
11185 (_fini): Likewise.
11186 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
11187 (_fini): Likewise.
11188 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
11189 (_fini): Likewise.
11190 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
11191 (_fini): Likewise.
11192 * sysdeps/nios2/crti.S (_init): Mark as hidden.
11193 (_fini): Likewise.
11194 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
11195 (_fini): Likewise.
11196 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
11197 (_fini): Likewise.
11198 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
11199 (_fini): Likewise.
11200 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
11201 (_fini): Likewise.
11202 * sysdeps/sh/crti.S (_init): Mark as hidden.
11203 (_fini): Likewise.
11204 * sysdeps/sparc/crti.S (_init): Mark as hidden.
11205 (_fini): Likewise.
11206 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
11207 (_fini): Likewise.
11208
11209 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11210
11211 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
11212 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
11213 and TF redirection to KFtype and KF only when the default
11214 long double type is not the IEEE 128-bit floating point type.
11215
11216 2018-06-05 Joseph Myers <joseph@codesourcery.com>
11217
11218 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
11219 macro.
11220 (HWCAP_USCAT): Likewise.
11221 (HWCAP_ILRCPC): Likewise.
11222 (HWCAP_FLAGM): Likewise.
11223 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
11224 Increase to 28.
11225 (_dl_aarch64_cap_flags): Add new flag names.
11226
11227 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
11228 (MAP_FIXED_NOREPLACE): New macro.
11229 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
11230 (MAP_FIXED_NOREPLACE): Likewise.
11231 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
11232 (MAP_FIXED_NOREPLACE): Likewise.
11233 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
11234 (MAP_FIXED_NOREPLACE): Likewise.
11235 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
11236 (MAP_FIXED_NOREPLACE): Likewise.
11237 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
11238 (MAP_FIXED_NOREPLACE): Likewise.
11239 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
11240 (MAP_FIXED_NOREPLACE): Likewise.
11241 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
11242 (MAP_FIXED_NOREPLACE): Likewise.
11243 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
11244 (MAP_FIXED_NOREPLACE): Likewise.
11245 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
11246 (MAP_FIXED_NOREPLACE): Likewise.
11247 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
11248 (MAP_FIXED_NOREPLACE): Likewise.
11249 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
11250 (MAP_FIXED_NOREPLACE): Likewise.
11251 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
11252 (MAP_FIXED_NOREPLACE): Likewise.
11253 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
11254 (MAP_FIXED_NOREPLACE): Likewise.
11255 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
11256 (MAP_FIXED_NOREPLACE): Likewise.
11257
11258 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11259 version to 4.17.
11260
11261 2018-06-04 Joseph Myers <joseph@codesourcery.com>
11262
11263 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11264 version to 4.17
11265
11266 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
11267
11268 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
11269 int.
11270 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
11271
11272 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11273
11274 * benchtests/scripts/compare_string.py: (process_results) Catch
11275 exception in non-existent base_func and catch exception in
11276 non-existent attribute.
11277 (parse_file) Catch exception if input file does not exist.
11278
11279 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11280
11281 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
11282 options to avoid diff calculation and omit header, respectively.
11283 (main): process --no-diff and --no-header
11284
11285 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11286 H.J. Lu <hongjiu.lu@intel.com>
11287
11288 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11289 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
11290 wcsncmp-sse2.
11291 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
11292 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
11293 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
11294 and __wcsncmp_sse2.
11295 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
11296 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
11297 AVX unaligned load is fast and vzeroupper is preferred.
11298 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
11299 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
11300 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
11301 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
11302 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
11303 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
11304 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
11305 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
11306 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
11307 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
11308 is undefined.
11309
11310 2018-06-01 Florian Weimer <fweimer@redhat.com>
11311
11312 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
11313 configuring with --disable-multi-arch, building with
11314 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
11315 Haswell-era CPU.
11316
11317 2018-06-01 Florian Weimer <fweimer@redhat.com>
11318
11319 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
11320 results from building with “-march=x86-64 -mtune=generic
11321 -mfpmath=sse” and running on a Haswell-era CPU.
11322
11323 2018-06-01 Joseph Myers <joseph@codesourcery.com>
11324
11325 [BZ #18473]
11326 * soft-fp/sqrttf2.c: Remove file.
11327 * soft-fp/sqrtdf2.c: Move to ....
11328 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
11329 <shlib-compat.h>.
11330 (__sqrtdf2): Make conditional on
11331 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11332 symbol.
11333 * soft-fp/sqrtsf2.c: Move to ....
11334 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
11335 <shlib-compat.h>.
11336 (__sqrtsf2): Make conditional on
11337 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11338 symbol.
11339 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
11340 (gcc-double-routines): Remove sqrtdf2.
11341 (gcc-quad-routines): Remove sqrttf2.
11342 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11343 Do not filter out sqrtsf2 and sqrtdf2.
11344 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
11345 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
11346
11347 2018-06-01 Florian Weimer <fweimer@redhat.com>
11348
11349 * sysdeps/generic/libcidn.abilist: Remove file.
11350
11351 2018-06-01 Florian Weimer <fweimer@redhat.com>
11352
11353 [BZ #23236]
11354 * libio/strfile.h (struct _IO_str_fields): Rename members to
11355 discourage their use and add comment.
11356 (_IO_STR_DYNAMIC): Remove unused macro.
11357 * libio/strops.c (_IO_str_init_static_internal): Do not use
11358 callback pointers. Call malloc and free.
11359 (_IO_str_overflow): Do not use callback pointers. Call malloc
11360 and free.
11361 (enlarge_userbuf): Likewise.
11362 (_IO_str_finish): Call free.
11363 * libio/wstrops.c (_IO_wstr_init_static): Initialize
11364 _allocate_buffer_unused.
11365 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
11366 and free.
11367 (enlarge_userbuf): Likewise.
11368 (_IO_wstr_finish): Call free.
11369 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
11370 _allocate_buffer_unused, _free_buffer_unused.
11371 * libio/memstream.c (__open_memstream): Likewise.
11372 * libio/vasprintf.c (_IO_vasprintf): Likewise.
11373 * libio/wmemstream.c (open_wmemstream): Likewise.
11374
11375 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
11376
11377 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
11378 AMD Ryzen 7 1800X.
11379
11380 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11381
11382 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
11383 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
11384 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
11385 New file.
11386 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
11387 Likewise.
11388 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
11389
11390 2018-05-29 Florian Weimer <fweimer@redhat.com>
11391
11392 * support/Makefile (libsupport-routines): Add
11393 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
11394 xpthread_barrierattr_setpshared.
11395 * support/xpthread_barrierattr_destroy.c: New file.
11396 * support/xpthread_barrierattr_init.c: Likewise.
11397 * support/xpthread_barrierattr_setpshared.c: Likewise.
11398
11399 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
11400
11401 [BZ #23206]
11402 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
11403 _r_debug and update DT_DEBUG for debugger.
11404
11405 2018-05-29 Florian Weimer <fweimer@redhat.com>
11406
11407 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
11408 (tst-strtod5i.out): Likewise.
11409
11410 2018-05-25 Joseph Myers <joseph@codesourcery.com>
11411
11412 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
11413 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
11414 (sparc64-quad-routines): New variable. Moved from ....
11415 [$(subdir) = soft-fp] (sysdep_routines): Add
11416 $(sparc64-quad-routines). Moved from ....
11417 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
11418 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
11419 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
11420 moved from ....
11421 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
11422 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
11423 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
11424 * sysdeps/sparc/sparc64/qp_add.c: ... here.
11425 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
11426 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
11427 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
11428 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
11429 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
11430 * sysdeps/sparc/sparc64/qp_div.c: ... here.
11431 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
11432 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
11433 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
11434 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
11435 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
11436 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
11437 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
11438 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
11439 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
11440 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
11441 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
11442 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
11443 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
11444 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
11445 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
11446 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
11447 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
11448 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
11449 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
11450 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
11451 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
11452 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
11453 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
11454 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
11455 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
11456 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
11457 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
11458 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
11459 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
11460 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
11461 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
11462 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
11463 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
11464 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
11465 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
11466 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
11467 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
11468 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
11469 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
11470 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
11471 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
11472 * sysdeps/sparc/sparc64/qp_util.c: ... here.
11473 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
11474 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
11475 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
11476 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
11477 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
11478 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
11479
11480 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
11481 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
11482 (sparc32-quad-routines): New variable. Moved from ....
11483 [$(subdir) = soft-fp] (sysdep_routines): Add
11484 $(sparc32-quad-routines). Moved from ....
11485 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
11486 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
11487 moved from ....
11488 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
11489 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
11490 * sysdeps/sparc/sparc32/q_add.c: ... here.
11491 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
11492 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
11493 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
11494 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
11495 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
11496 * sysdeps/sparc/sparc32/q_div.c: ... here.
11497 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
11498 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
11499 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
11500 * sysdeps/sparc/sparc32/q_feq.c: ... here.
11501 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
11502 * sysdeps/sparc/sparc32/q_fge.c: ... here.
11503 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
11504 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
11505 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
11506 * sysdeps/sparc/sparc32/q_fle.c: ... here.
11507 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
11508 * sysdeps/sparc/sparc32/q_flt.c: ... here.
11509 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
11510 * sysdeps/sparc/sparc32/q_fne.c: ... here.
11511 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
11512 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
11513 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
11514 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
11515 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
11516 * sysdeps/sparc/sparc32/q_mul.c: ... here.
11517 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
11518 * sysdeps/sparc/sparc32/q_neg.c: ... here.
11519 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
11520 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
11521 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
11522 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
11523 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
11524 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
11525 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
11526 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
11527 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
11528 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
11529 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
11530 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
11531 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
11532 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
11533 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
11534 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
11535 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
11536 * sysdeps/sparc/sparc32/q_sub.c: ... here.
11537 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
11538 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
11539 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
11540 * sysdeps/sparc/sparc32/q_util.c: ... here.
11541 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
11542 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
11543 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
11544 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
11545
11546 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11547 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11548
11549 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
11550 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
11551 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
11552 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
11553
11554 2018-05-24 Joseph Myers <joseph@codesourcery.com>
11555
11556 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
11557 powerpc/soft-fp.
11558 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
11559 Likewise.
11560 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
11561 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
11562
11563 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11564
11565 [BZ #23171]
11566 * math/math.h [C++] (iseqsig): Fix parameter type for the long
11567 double version.
11568
11569 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11570
11571 * sysdeps/sh/Implies: Remove sh/soft-fp.
11572 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
11573 * sysdeps/sh/sfp-machine.h: ... here.
11574
11575 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11576
11577 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11578 (__mempcpy_erms): Skip zero length.
11579 (__memmove_erms): Likewise.
11580 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11581 (__memset_erms): Likewise.
11582
11583 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11584
11585 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
11586 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11587 Add functions moved from ....
11588 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
11589 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
11590 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
11591 from ....
11592 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
11593 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
11594 * sysdeps/alpha/e_sqrtl.c: ... here.
11595 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
11596 * sysdeps/alpha/local-soft-fp.h: ... here.
11597 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
11598 * sysdeps/alpha/ots_add.c: ... here.
11599 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
11600 * sysdeps/alpha/ots_cmp.c: ... here.
11601 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
11602 * sysdeps/alpha/ots_cmpe.c: ... here.
11603 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
11604 * sysdeps/alpha/ots_cvtqux.c: ... here.
11605 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
11606 * sysdeps/alpha/ots_cvtqx.c: ... here.
11607 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
11608 * sysdeps/alpha/ots_cvttx.c: ... here.
11609 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
11610 * sysdeps/alpha/ots_cvtxq.c: ... here.
11611 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
11612 * sysdeps/alpha/ots_cvtxt.c: ... here.
11613 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
11614 * sysdeps/alpha/ots_div.c: ... here.
11615 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
11616 * sysdeps/alpha/ots_mul.c: ... here.
11617 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
11618 * sysdeps/alpha/ots_nintxq.c: ... here.
11619 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
11620 * sysdeps/alpha/ots_sub.c: ... here.
11621 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
11622 * sysdeps/alpha/sfp-machine.h: ... here.
11623
11624 2018-05-23 Florian Weimer <fweimer@redhat.com>
11625
11626 [BZ #19728]
11627 [BZ #19729]
11628 [BZ #22247]
11629 CVE-2016-6261
11630 CVE-2016-6263
11631 CVE-2017-14062
11632 Switch to extern IDNA implementation (libidn2).
11633 * libidn: Remove subdirectory.
11634 * LICENSES: Do not mention licensing conditions for the removed
11635 libidn code.
11636 * config.h.in (HAVE_LIBIDN): Remove.
11637 * include/dlfcn.h (__libc_dlopen): Update comment.
11638 * include/idna.h: Remove file.
11639 * inet/Makefile (routines): Add idna.
11640 (tests-static, tests-internal): Add tst-idna_name_classify.
11641 (LOCALES): Generate locales for tests.
11642 (tst-idna_name_classify.out): Depend on generated locales.
11643 * inet/idna_name_classify.c: New file.
11644 * inet/tst-idna_name_classify.c: Likewise.
11645 * inet/net-internal.h (__idna_to_dns_encoding)
11646 (__idna_from_dns_encoding): Declare.
11647 * inet/net-internal.h (enum idna_name_classification): Define.
11648 (__idna_name_classify): Declare.
11649 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
11650 __idna_from_dns_encoding.
11651 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
11652 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
11653 name as a fallback in case of encoding errors.
11654 (getnameinfo): Use DEPRECATED_NI_IDN.
11655 * inet/idna.c: New file.
11656 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
11657 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
11658 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
11659 (modules-names): Add tst-no-libidn2.
11660 (extra-test-objs): Add tst-no-libidn2.os.
11661 (LDFLAGS-tst-no-libidn2.so): Set soname.
11662 (LOCALES): Set, and generate locales.
11663 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
11664 (tst-resolv-ai_idn-latin1): Likewise.
11665 (tst-resolv-ai_idn-nolibidn2): Likewise.
11666 (tst-resolv-ai_idn.out): Depend on locales.
11667 (tst-resolv-ai_idn-latin1.out): Depend on locales.
11668 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
11669 tst-no-libidn2.so.
11670 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
11671 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
11672 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
11673 * resolv/tst-resolv-ai_idn.c: New file.
11674 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
11675 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
11676 * resolv/tst-no-libidn2.c: Likewise.
11677 * support/support_format_addrinfo.c (format_ai_flags): Do not
11678 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
11679 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
11680 (gaih_inet): Call __idna_to_dns_encoding and
11681 __idna_from_dns_encoding, and use the original (punycode) name if
11682 __idna_from_dns_encoding fails due to an encoding error.
11683 (getaddrinfo): Use DEPRECATED_AI_IDN.
11684 * sysdeps/unix/inet/Subdirs (libidn): Remove.
11685 * sysdeps/unix/inet/configure: Remove file.
11686 * sysdeps/unix/inet/configure.ac: Likewise.
11687
11688 2018-05-23 Florian Weimer <fweimer@redhat.com>
11689
11690 Implement allocate_once.
11691 * include/allocate_once.h: New file.
11692 * misc/allocate_once.c: Likewise.
11693 * misc/tst-allocate_once.c: Likewise.
11694 * misc/Makefile (routines): Add allocate_once.
11695 (tests-internal): Add tst-allocate_once.
11696 (generated): Add tst-allocate_once.mtrace,
11697 tst-allocate_once-mem.out.
11698 (tests-special): Add tst-allocate_once-mem.out.
11699 (tst-allocate_once-ENV): Set MALLOC_TRACE.
11700 (tst-allocate_once-mem.out): Call mtrace.
11701 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
11702
11703 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11704
11705 [BZ #23196]
11706 * string/test-memcpy.c (do_test1): New function.
11707 (test_main): Call it.
11708
11709 2018-05-23 Andreas Schwab <schwab@suse.de>
11710
11711 [BZ #23196]
11712 CVE-2018-11237
11713 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
11714 (L(preloop_large)): Save initial destination pointer in %r11 and
11715 use it instead of %rax after the loop.
11716 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
11717
11718 2018-05-22 Joseph Myers <joseph@codesourcery.com>
11719
11720 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
11721 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
11722 -I../soft-fp. Moved from ....
11723 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
11724 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
11725 * sysdeps/aarch64/e_sqrtl.c: ... here.
11726 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
11727 * sysdeps/aarch64/sfp-machine.h: ... here.
11728
11729 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
11730 -Wmaybe-uninitialized around access to fq[0].
11731 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11732 Likewise.
11733
11734 [BZ #18471]
11735 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
11736 aliases for non-libc case of versioned symbols.
11737 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
11738 (llseek): Define as compat symbol if
11739 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
11740 with link warning.
11741 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
11742 Make into a compat symbol, disabled for minimum symbol version
11743 GLIBC_2.28 and later.
11744 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
11745
11746 2018-05-22 Florian Weimer <fweimer@redhat.com>
11747
11748 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
11749 not add -mpreferred-stack-boundary=4.
11750 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
11751 (stack-align-test-flags): Likewise.
11752 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
11753 Likewise.
11754 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
11755 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
11756 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
11757 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
11758 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
11759 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
11760 (CFLAGS-tst-align2.c): Likewise.
11761
11762 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11763
11764 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
11765 (index_arch_Prefer_FSRM): Likewise.
11766 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
11767 Also check Prefer_FSRM.
11768 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
11769 Also return OPTIMIZE (erms) for Prefer_FSRM.
11770
11771 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11772
11773 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
11774 (index_cpu_FSRM): Likewise.
11775 (reg_FSRM): Likewise.
11776
11777 2018-05-18 Joseph Myers <joseph@codesourcery.com>
11778
11779 * math/gen-tgmath-tests.py: Import sys.
11780 (Tests.__init__): Initialize macros_seen.
11781 (Tests.add_tests): Add macro to macros_seen. Only generate tests
11782 if requested to do so for this macro.
11783 (Tests.add_all_tests): Take argument for macro for which to
11784 generate tests.
11785 (Tests.check_macro_list): New function.
11786 (main): Handle check-list argument and argument specifying macro
11787 for which to generate tests.
11788 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
11789 [PYTHON] (tgmath3-macro-tests): Likewise.
11790 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
11791 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
11792 not test-tgmath3.c.
11793 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
11794 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
11795 to CFLAGS.
11796 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
11797 [PYTHON] ($(foreach
11798 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
11799 rule.
11800 [PYTHON] (tests-special): Add
11801 $(objpfx)test-tgmath3-macro-list.out.
11802 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
11803
11804 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
11805 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
11806 later.
11807
11808 [BZ #22639]
11809 * time/tzset.c (SECSPERDAY): Cast to time_t.
11810 * time/tst-y2039.c: New file.
11811 * time/Makefile (tests): Add tst-y2039.
11812
11813 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11814
11815 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11816 (PREFETCH_ONE_SET): Remove duplicate line.
11817
11818 2018-05-17 Florian Weimer <fweimer@redhat.com>
11819
11820 * sysdeps/generic/math-type-macros-double.h: Include
11821 <math-nan-payload-double.h> after <libm-alias-double.h>.
11822 * sysdeps/generic/math-type-macros-float.h: Include
11823 <math-nan-payload-float.h> after <libm-alias-float.h>.
11824 * sysdeps/generic/math-type-macros-float128.h: Include
11825 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
11826 * sysdeps/generic/math-type-macros-ldouble.h: Include
11827 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
11828
11829 2018-05-17 Andreas Schwab <schwab@suse.de>
11830
11831 * resolv/res_send.c (__res_context_send): Don't set errno when
11832 returing error after malloc failure.
11833
11834 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
11835
11836 * nptl/allocatestack.c (allocate_stack): Remove the
11837 !__ASSUME_PRIVATE_FUTEX paths.
11838 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
11839 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
11840 Likewise.
11841 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
11842 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11843 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11844 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11845 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
11846 !__ASSUME_PRIVATE_FUTEX path.
11847 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
11848 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
11849 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11850 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
11851 !__ASSUME_PRIVATE_FUTEX macros.
11852 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
11853 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
11854 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
11855 * sysdeps/unix/sysv/linux/kernel-features.h
11856 (__ASSUME_PRIVATE_FUTEX): Removed.
11857
11858 2018-05-17 Joseph Myers <joseph@codesourcery.com>
11859
11860 * math/Makefile (libm-narrow-fns): Add div.
11861 (libm-test-funcs-narrow): Likewise.
11862 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
11863 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
11864 * math/gen-auto-libm-tests.c (test_functions): Add div.
11865 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
11866 (NARROW_DIV_ROUND_TO_ODD): Likewise.
11867 (NARROW_DIV_TRIVIAL): Likewise.
11868 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
11869 macro.
11870 (__ddivl): Likewise.
11871 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
11872 ddiv.
11873 (CFLAGS-nldbl-ddiv.c): New variable.
11874 (CFLAGS-nldbl-fdiv.c): Likewise.
11875 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11876 __nldbl_ddivl.
11877 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
11878 prototype.
11879 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
11880 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
11881 * math/auto-libm-test-in: Add tests of div.
11882 * math/auto-libm-test-out-narrow-div: New generated file.
11883 * math/libm-test-narrow-div.inc: New file.
11884 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
11885 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
11886 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
11887 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
11888 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
11889 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
11890 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
11891 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
11892 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
11893 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
11894 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
11895 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
11896 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
11897 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
11898 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
11899 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
11900 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
11901 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
11902 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11903 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11904 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11905 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11906 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11907 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11908 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11909 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11910 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11911 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11912 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11913 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11914 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11915 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11916 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11917 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11918 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11919 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11920 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11921 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11922 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11923 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11924 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11925 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11926 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11927 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11928
11929 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11930
11931 [BZ #23178]
11932 * nscd/nscd-client.h (sendfileall): Remove prototype.
11933 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
11934 (handle_request): Use writeall instead of sendfileall.
11935 * nscd/aicache.c (addhstaiX): Likewise.
11936 * nscd/grpcache.c (cache_addgr): Likewise.
11937 * nscd/hstcache.c (cache_addhst): Likewise.
11938 * nscd/initgrcache.c (addinitgroupsX): Likewise.
11939 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
11940 * nscd/pwdcache.c (cache_addpw): Likewise.
11941 * nscd/servicescache.c (cache_addserv): Likewise.
11942 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
11943 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
11944 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
11945 Remove define.
11946
11947 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
11948
11949 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11950 Include <string/strncat.c>.
11951 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11952 alias.
11953 (__GI___strncat): New hidden alias.
11954
11955 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11956
11957 * sysdeps/mips/mips32/libm-test-ulps: Update.
11958 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11959
11960 2018-05-16 Florian Weimer <fweimer@redhat.com>
11961
11962 * support/Makefile (libsupport-routines): Add support_quote_blob,
11963 support_test_compare_blob.
11964 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11965 * support/check.h (TEST_COMPARE_BLOB): Define.
11966 (support_test_compare_blob): Declare.
11967 * support/support.h (support_quote_blob): Declare.
11968 * support/support_quote_blob.c: New file.
11969 * support/support_test_compare_blob.c: Likewise.
11970 * support/tst-support_quote_blob.c: Likewise.
11971 * support/tst-test_compare_blob.c: Likewise.
11972
11973 2018-05-16 Florian Weimer <fweimer@redhat.com>
11974
11975 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
11976 of <strtod_nan_double.h>.
11977 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
11978 instead of SET_MANTISSA.
11979 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
11980 of include <strtod_nan_float.h>.
11981 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
11982 instead of <strtod_nan_ldouble.h>.
11983 * stdlib/strtod_nan_double.h: Move to ...
11984 * sysdeps/generic/math-nan-payload-double.h: ... here.
11985 (FLOAT): Remove definition.
11986 (SET_MANTISSA): Rename to ...
11987 (SET_NAN_PAYLOAD): ... this.
11988 * stdlib/strtod_nan_float.h: Move to ...
11989 * sysdeps/generic/math-nan-payload-float.h: ... here.
11990 (FLOAT): Remove definition.
11991 (SET_MANTISSA): Rename to ...
11992 (SET_NAN_PAYLOAD): ... this.
11993 * sysdeps/generic/math-type-macros-double.h: Include
11994 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
11995 instead of <math-svid-compat.h>.
11996 * sysdeps/generic/math-type-macros-float.h: Include
11997 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
11998 instead of <math-svid-compat.h>.
11999 * sysdeps/generic/math-type-macros-float128.h: Include
12000 <math-nan-payload-float128.h>.
12001 * sysdeps/generic/math-type-macros-ldouble.h: Include
12002 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
12003 instead of <math-svid-compat.h>.
12004 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
12005 check for definition.
12006 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
12007 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
12008 Include <ieee754_float128.h>.
12009 (FLOAT): Remove definition.
12010 (SET_MANTISSA): Rename to ...
12011 (SET_NAN_PAYLOAD): ... this.
12012 * sysdeps/ieee754/float128/strtof128_nan.c: Include
12013 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
12014 Do not include <float128_private.h>.
12015 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
12016 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
12017 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
12018 (FLOAT): Remove definition.
12019 (SET_MANTISSA): Rename to ...
12020 (SET_NAN_PAYLOAD): ... this.
12021 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
12022 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
12023 (FLOAT): Remove definition.
12024 (SET_MANTISSA): Rename to ...
12025 (SET_NAN_PAYLOAD): ... this.
12026 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
12027 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
12028 (FLOAT): Remove definition.
12029 (SET_MANTISSA): Rename to ...
12030 (SET_NAN_PAYLOAD): ... this.
12031 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
12032 of "../stdlib/strtod_nan_double.h".
12033 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
12034 of "../stdlib/strtod_nan_float.h".
12035 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
12036 instead of "../stdlib/strtod_nan_ldouble.h".
12037 * manual/arith.texi (Parsing of Floats): Adjust comment.
12038
12039 2018-05-16 Joseph Myers <joseph@codesourcery.com>
12040
12041 * math/Makefile (libm-narrow-fns): Add mul.
12042 (libm-test-funcs-narrow): Likewise.
12043 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
12044 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
12045 * math/gen-auto-libm-tests.c (test_functions): Add mul.
12046 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
12047 (NARROW_MUL_ROUND_TO_ODD): Likewise.
12048 (NARROW_MUL_TRIVIAL): Likewise.
12049 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
12050 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
12051 macro.
12052 (__dmull): Likewise.
12053 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
12054 dmul.
12055 (CFLAGS-nldbl-dmul.c): New variable.
12056 (CFLAGS-nldbl-fmul.c): Likewise.
12057 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
12058 __nldbl_dmull.
12059 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
12060 prototype.
12061 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
12062 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
12063 * math/auto-libm-test-in: Add tests of mul.
12064 * math/auto-libm-test-out-narrow-mul: New generated file.
12065 * math/libm-test-narrow-mul.inc: New file.
12066 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
12067 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
12068 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
12069 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
12070 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
12071 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
12072 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
12073 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
12074 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
12075 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
12076 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
12077 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
12078 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
12079 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
12080 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
12081 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
12082 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
12083 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
12084 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12085 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12086 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12087 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12088 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12089 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12090 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12091 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12092 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12093 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12094 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12095 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12096 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12097 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12098 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12099 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
12100 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12101 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12102 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12103 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12104 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12105 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12106 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12107 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12108 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12109 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12110
12111 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12112
12113 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
12114 with *%eax in call.
12115
12116 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12117
12118 * sysdeps/i386/ldsodefs.h: Removed.
12119 * sysdeps/x86_64/ldsodefs.h: Moved to ...
12120 * sysdeps/x86/ldsodefs.h: This.
12121 (La_i86_regs): New.
12122 (La_i86_retval): Likewise.
12123 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
12124 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
12125
12126 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12127
12128 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
12129 unnecessary testl.
12130
12131 2018-05-13 Alan Modra <amodra@gmail.com>
12132
12133 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
12134 R_PARISC_TLS_DTPOFF32 reloc addend.
12135
12136 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12137
12138 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
12139 * math/math.h: Restrict the prototype definition for the functions
12140 issignaling(_Float128) and iszero(_Float128); and template
12141 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
12142 __HAVE_FLOAT128_UNLIKE_LDBL.
12143 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
12144 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
12145 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
12146 __f128() constants; define the type _Float128 as long double;
12147 and reuse long double in __CFLOAT128.
12148
12149 2018-05-11 Joseph Myers <joseph@codesourcery.com>
12150
12151 * sysdeps/generic/math_private.h: Do not include
12152 <math-barriers.h>.
12153 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
12154 <math_private.h>.
12155 * math/fromfp.h: Include <math-barriers.h>.
12156 * math/math-narrow.h: Likewise.
12157 * math/s_nextafter.c: Likewise.
12158 * math/s_nexttowardf.c: Likewise.
12159 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
12160 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
12161 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
12162 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
12163 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12164 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12165 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12166 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12167 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12168 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12169 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12170 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12171 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12172 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12173 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12174 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12175 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12176 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12177 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12178 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12179 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12180 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12181 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12182 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12183 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12184 * sysdeps/ieee754/k_standardl.c: Likewise.
12185 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12186 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12187 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12188 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12189 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12190 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12191 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12192 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12193 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12194 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12195 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12196 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12197 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12198 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12199 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12200 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12201 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12202 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12203 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12204 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12205 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
12206 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
12207
12208 2018-05-11 Florian Weimer <fweimer@redhat.com>
12209
12210 Use 64-bit epoch values in the time zone file parser.
12211 * include/time.h (internal_time_t): Define.
12212 (__tzfile_compute): Use it.
12213 * time/tzfile.c (struct leap): Use internal_time_t for epoch
12214 member.
12215 (transitions): Switch to internal_time_t.
12216 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
12217 types.
12218 (__tzfile_compute): Use internal_time_t for timer argument. Check
12219 for truncation before calling __offtime.
12220
12221 2018-05-11 Florian Weimer <fweimer@redhat.com>
12222
12223 [BZ #23166]
12224 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
12225 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
12226 Likewise.
12227 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
12228 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
12229 export without --enable-obsolete-rpc.
12230 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
12231 symbol. This should not have been exported, ever.
12232
12233 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
12234
12235 [BZ #23152]
12236 * localedata/locales/gd_GB (abmon): Fix typo in May:
12237 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
12238
12239 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
12240
12241 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12242 Use multiple registers to copy data in loop tail.
12243
12244 * sysdeps/aarch64/multiarch/memmove_falkor.S
12245 (__memmove_falkor): Use multiple registers to move data in
12246 loop tail.
12247
12248 2018-05-10 Joseph Myers <joseph@codesourcery.com>
12249
12250 * math/math-underflow.h: New file.
12251 * sysdeps/generic/math_private.h: Do not include <float.h>.
12252 (fabs_tg): Remove macro. Moved to math-underflow.h.
12253 (min_of_type_f): Likewise.
12254 (min_of_type_): Likewise.
12255 (min_of_type_l): Likewise.
12256 (min_of_type_f128): Likewise.
12257 (min_of_type): Likewise.
12258 (math_check_force_underflow): Likewise.
12259 (math_check_force_underflow_nonneg): Likewise.
12260 (math_check_force_underflow_complex): Likewise.
12261 * math/e_exp2_template.c: Include <math-underflow.h>.
12262 * math/k_casinh_template.c: Likewise.
12263 * math/s_catan_template.c: Likewise.
12264 * math/s_catanh_template.c: Likewise.
12265 * math/s_ccosh_template.c: Likewise.
12266 * math/s_cexp_template.c: Likewise.
12267 * math/s_clog10_template.c: Likewise.
12268 * math/s_clog_template.c: Likewise.
12269 * math/s_csin_template.c: Likewise.
12270 * math/s_csinh_template.c: Likewise.
12271 * math/s_csqrt_template.c: Likewise.
12272 * math/s_ctan_template.c: Likewise.
12273 * math/s_ctanh_template.c: Likewise.
12274 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12275 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12276 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12277 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12278 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12279 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12280 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12281 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12282 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12283 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12284 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12285 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12286 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12287 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12288 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12289 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12290 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12291 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12292 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12293 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12294 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12295 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12296 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12297 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12298 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12299 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12300 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12301 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12302 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12303 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12304 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12305 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12306 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12307 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12308 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12309 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12310 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12311 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12312 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12313 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12314 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12315 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12316 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12317 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12318 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12319 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12320 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12321 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12322 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12323 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12324 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12325 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
12326 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12327 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
12328 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12329 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12330 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12331 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12332 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12333 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12334 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12335 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12336 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12337 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12338 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12339 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12340 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12341 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
12342 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12343 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12344 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12345 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12346 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12347 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
12348 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12349 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12350 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12351 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12352 * sysdeps/x86/fpu/powl_helper.c: Likewise.
12353 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
12354 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
12355 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
12356 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
12357 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
12358
12359 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12360
12361 * sysdeps/generic/math-barriers.h: New file.
12362 * sysdeps/generic/math_private.h [!math_opt_barrier]
12363 (math_opt_barrier): Move to math-barriers.h.
12364 [!math_opt_barrier] (math_force_eval): Likewise.
12365 * sysdeps/aarch64/fpu/math-barriers.h: New file.
12366 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
12367 math-barriers.h.
12368 (math_force_eval): Likewise.
12369 * sysdeps/alpha/fpu/math-barriers.h: New file.
12370 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
12371 math-barriers.h.
12372 (math_force_eval): Likewise.
12373 * sysdeps/x86/fpu/math-barriers.h: New file.
12374 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
12375 math-barriers.h.
12376 (math_force_eval): Likewise.
12377 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
12378 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
12379 multiple-include guard for rename.
12380 * sysdeps/powerpc/fpu/math-barriers.h: New file.
12381 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
12382 math-barriers.h.
12383 (math_force_eval): Likewise.
12384
12385 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
12386
12387 [BZ #22786]
12388 CVE-2018-11236
12389 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
12390 computation.
12391 * stdlib/Makefile (test-bz22786): New test.
12392 * stdlib/test-bz22786.c: New test.
12393
12394 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12395
12396 * include/math-narrow-eval.h: New file. Contents moved from ....
12397 * sysdeps/generic/math_private.h: ... here.
12398 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
12399 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
12400 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
12401 * stdlib/strtod_l.c: Likewise.
12402 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12403 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12404 * sysdeps/i386/fpu/s_fdim.c: Likewise.
12405 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12406 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12407 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12408 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12409 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12410 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12411 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
12412 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12413 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
12414 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12415 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12416 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12417 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12418 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12419 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12420 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12421 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12422 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12423 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12424 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12425 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12426 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12427 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12428 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12429 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12430 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
12431
12432 2018-05-08 Andreas Schwab <schwab@suse.de>
12433
12434 * sysdeps/nptl/internaltypes.h: Fix comment.
12435
12436 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
12437
12438 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
12439 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
12440 hidden.
12441
12442 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
12443
12444 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
12445 of I into loop header.
12446 * benchtests/bench-memmove-walk.c
12447 (test_main): Likewise.
12448
12449 2018-05-07 Alexandre Oliva <oliva@gnu.org>
12450
12451 Revert:
12452 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12453 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12454
12455 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
12456
12457 [BZ #20419]
12458 * elf/dl-load.c (open_verify): Fix stack overflow.
12459 * elf/Makefile (tst-big-note): New test.
12460 * elf/tst-big-note-lib.S: New.
12461 * elf/tst-big-note.c: New.
12462
12463 2018-05-04 Joseph Myers <joseph@codesourcery.com>
12464
12465 * scripts/abilist.awk: Ignore absolute symbols.
12466 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
12467 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
12468 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
12469 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
12470 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
12471 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
12472 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12473 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
12474 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
12475 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
12476 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
12477 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
12478 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
12479 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
12480 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
12481 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
12482 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
12483 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
12484 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12485 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
12486 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
12487 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
12488 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
12489 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
12490 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
12491 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
12492 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
12493 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
12494 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12495 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
12496 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
12497 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12498 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
12499 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
12500 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
12501 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
12502 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
12503 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
12504 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
12505 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
12506 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
12507 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12508 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
12509 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
12510 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12511 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
12512 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
12513 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
12514 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
12515 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
12516 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
12517 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
12518 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
12519 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
12520 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12521 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
12522 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
12523 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12524 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
12525 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
12526 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
12527 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
12528 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
12529 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
12530 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
12531 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
12532 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
12533 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12534 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
12535 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
12536 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12537 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
12538 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
12539 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
12540 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
12541 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
12542 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
12543 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
12544 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
12545 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
12546 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12547 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
12548 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
12549 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12550 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
12551 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
12552 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
12553 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
12554 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
12555 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
12556 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
12557 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
12558 Likewise.
12559 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
12560 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12561 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
12562 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
12563 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12564 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
12565 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
12566 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
12567 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
12568 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
12569 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
12570 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
12571 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
12572 Likewise.
12573 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
12574 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12575 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
12576 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
12577 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12578 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
12579 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
12580 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
12581 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
12582 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
12583 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
12584 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
12585 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
12586 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
12587 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12588 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
12589 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
12590 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12591 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
12592 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
12593 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
12594 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
12595 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
12596 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
12597 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12598 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
12599 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
12600 Likewise.
12601 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
12602 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
12603 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
12604 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
12605 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12606 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
12607 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
12608 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
12609 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
12610 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
12611 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
12612 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
12613 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
12614 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
12615 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
12616 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
12617 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
12618 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
12619 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12620 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
12621 Likewise.
12622 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
12623 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
12624 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
12625 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12626 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
12627 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
12628 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
12629 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
12630 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
12631 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
12632 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12633 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
12634 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
12635 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12636 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
12637 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
12638 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
12639 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
12640 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12641 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
12642 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
12643 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12644 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
12645 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
12646 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
12647 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
12648 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
12649 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
12650 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
12651 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12652 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
12653 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
12654 Likewise.
12655 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
12656 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
12657 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
12658 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
12659 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
12660 Likewise.
12661 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
12662 Likewise.
12663 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
12664 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
12665 Likewise.
12666 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
12667 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12668 Likewise.
12669 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12670 Likewise.
12671 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
12672 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
12673 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
12674 Likewise.
12675 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
12676 Likewise.
12677 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
12678 Likewise.
12679 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
12680 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12681 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12682 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
12683 Likewise.
12684 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
12685 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
12686 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
12687 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12688 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12689 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
12690 Likewise.
12691 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
12692 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
12693 Likewise.
12694 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
12695 Likewise.
12696 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
12697 Likewise.
12698 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
12699 Likewise.
12700 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
12701 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
12702 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
12703 Likewise.
12704 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
12705 Likewise.
12706 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
12707 Likewise.
12708 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
12709 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
12710 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
12711 Likewise.
12712 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
12713 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12714 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
12715 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
12716 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12717 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
12718 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
12719 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
12720 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
12721 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
12722 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
12723 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
12724 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
12725 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
12726 Likewise.
12727 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12728 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
12729 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
12730 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12731 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
12732 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
12733 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
12734 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
12735 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
12736 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
12737 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
12738 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
12739 Likewise.
12740 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12741 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
12742 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
12743 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12744 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
12745 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
12746 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
12747 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
12748 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
12749 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
12750 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
12751 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
12752 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
12753 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12754 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
12755 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
12756 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12757 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
12758 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
12759 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
12760 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
12761 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
12762 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
12763 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
12764 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
12765 Likewise.
12766 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
12767 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12768 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
12769 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
12770 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12771 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
12772 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
12773 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
12774 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
12775 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
12776 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
12777 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
12778 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
12779 Likewise.
12780 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
12781 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12782 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
12783 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
12784 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12785 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
12786 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
12787 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
12788 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
12789 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
12790 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
12791 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
12792 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
12793 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
12794 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12795 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
12796 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
12797 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12798 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
12799 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
12800 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
12801 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
12802 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
12803 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
12804 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
12805 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
12806 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
12807 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
12808 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12809 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
12810 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
12811 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12812 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
12813 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
12814 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
12815 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
12816 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
12817 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
12818
12819 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
12820
12821 [BZ #23137]
12822 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
12823 Use atomic_load_acquire to load __tid.
12824
12825 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12826
12827 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
12828 Restore the pointer into %rdx, after syscall and use %rdx,
12829 instead of %rsi, to restore context.
12830
12831 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12832
12833 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
12834 Pop the pointer into %rdx after syscall and use %rdx, instead
12835 of %rsi, to restore context.
12836
12837 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12838
12839 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
12840 handlers after setjmp.
12841 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
12842 defined.
12843 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
12844 <libc-pointer-arith.h>.
12845 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
12846 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
12847 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
12848 _JUMP_BUF_SIGSET_BITS_PER_WORD.
12849 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
12850 * sysdeps/x86/__longjmp_cancel.S: New file.
12851 * sysdeps/x86/longjmp.c: Likewise.
12852 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
12853
12854 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12855
12856 * NEWS: Add ustat.h deprecation entry.
12857 * bits/ustat.h: Remove file.
12858 * misc/sys/ustat.h: Likewise.
12859 * misc/ustat.h: Likewise.
12860 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
12861 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
12862 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
12863 compatibility mode.
12864 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
12865 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
12866 generic Linux implementation.
12867
12868 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12869
12870 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
12871 * math/w_expl_compat.c: Likewise.
12872 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
12873
12874 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12875
12876 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12877
12878 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12879
12880 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
12881 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
12882 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
12883 Remove.
12884 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
12885 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12886 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12887 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
12888 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
12889 and SYSCALL_LL64.
12890
12891 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12892
12893 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
12894
12895 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
12896 * math/w_asin_template.c: Likewise.
12897 * math/w_atanh_template.c: Likewise.
12898
12899 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12900
12901 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
12902 to powerpc/powerpc64/be for big-endian.
12903 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
12904 little-endian.
12905
12906 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
12907 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
12908 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
12909 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
12910 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
12911 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
12912 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
12913 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
12914 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
12915 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
12916 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
12917 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
12918 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
12919 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
12920 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
12921 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
12922 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
12923 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
12924 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
12925 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
12926 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
12927 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
12928 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
12929 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
12930 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
12931 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
12932 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
12933 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
12934 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
12935 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12936 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12937 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12938
12939 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
12940 adjusted to imply powerpc64 and older processors on powerpc64/be.
12941 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
12942 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
12943 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
12944 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
12945 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
12946 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
12947 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
12948 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
12949 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
12950 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
12951 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
12952 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
12953 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12954 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12955 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12956 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12957 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12958 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12959 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12960 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12961 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12962 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12963 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12964 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12965 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12966 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12967 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12968 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12969 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12970 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
12971 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
12972
12973 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
12974 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
12975 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
12976 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
12977
12978 * sysdeps/powerpc/powerpc64/be/Implies: New file.
12979 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
12980 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
12981 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
12982
12983 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
12984 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
12985 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
12986 * sysdeps/powerpc/powerpc64le/configure: Likewise.
12987 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
12988 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
12989 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
12990 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
12991 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
12992 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
12993 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
12994
12995 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
12996 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
12997 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
12998 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12999 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
13000 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
13001 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
13002 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
13003 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
13004 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
13005 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
13006
13007 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
13008 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
13009 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
13010 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
13011 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
13012 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
13013 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
13014 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
13015 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
13016 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
13017 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
13018 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
13019
13020 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
13021 and adjusted to imply olders processors.
13022 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
13023 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
13024 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
13025 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
13026 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
13027 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
13028 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
13029 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
13030 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
13031 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
13032 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
13033
13034 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
13035 powerpc64/le.
13036 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
13037 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
13038
13039 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
13040 powerpc64le.
13041 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
13042 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
13043
13044 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
13045 powerpc64/be.
13046 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
13047 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
13048 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
13049
13050 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
13051 powerpc64 and adjusted.
13052 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
13053 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
13054 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
13055 Likewise.
13056
13057 2018-04-27 Joseph Myers <joseph@codesourcery.com>
13058
13059 * sysdeps/tile: Remove.
13060 * sysdeps/unix/sysv/linux/tile: Likewise.
13061 * README (tilegx-*-linux-gnu): Remove from list of supported
13062 configurations.
13063 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
13064 contribution of support for generic Linux kernel syscall
13065 interface.
13066 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
13067 tilegx configurations.
13068 (Config.install_linux_headers): Do not handle tile.
13069 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
13070 in comment.
13071 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
13072 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
13073 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
13074 conditional undefine and redefine.
13075 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
13076 in comment.
13077 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
13078 conditional undefine and redefine.
13079
13080 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
13081
13082 * signal/tst-sigaction.c: New file to test BZ #23069.
13083 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
13084
13085 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13086
13087 [BZ #22766]
13088 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
13089 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
13090 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
13091 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
13092
13093 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13094
13095 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
13096 _DIRENT_MATCHES_DIRENT64 is not defined.
13097 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
13098 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
13099 is defined.
13100 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
13101 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
13102
13103 2018-04-25 Joseph Myers <joseph@codesourcery.com>
13104
13105 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
13106 version to GCC 8 branch.
13107
13108 2018-04-24 Joseph Myers <joseph@codesourcery.com>
13109
13110 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
13111 (check_no_hidden): Use type of original function when declaring
13112 alias.
13113
13114 * sysdeps/unix/sysv/linux/sys/ptrace.h
13115 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
13116 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
13117 (struct __ptrace_seccomp_metadata): New type.
13118 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
13119 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13120 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
13121 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13122 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
13123 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13124 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
13125 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13126 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
13127 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13128 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
13129 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13130 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
13131 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13132 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
13133 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13134
13135 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13136
13137 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
13138 defined.
13139 * dirent/versionsort.c (versionsort): Likewise.
13140 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
13141 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
13142 * dirent/versionsort64.c (versionsort64): Likewise.
13143 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
13144 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
13145 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
13146 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
13147 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
13148 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
13149 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
13150 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
13151 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
13152 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
13153 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
13154 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
13155 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
13156 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
13157
13158 2018-04-23 Joseph Myers <joseph@codesourcery.com>
13159
13160 * elf/elf.h (NT_PPC_PKEY): New macro.
13161
13162 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
13163
13164 [BZ #23094]
13165 * localedata/locales/hr_HR: fix thousands_sep and
13166 mon_thousands_sep
13167
13168 2018-04-20 Joseph Myers <joseph@codesourcery.com>
13169
13170 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
13171 (XTABS): Define to TAB3.
13172
13173 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13174
13175 * sysdeps/hppa/fpu/libm-test-ulps: Update.
13176
13177 * dirent/scandir-tail-common.c: New file.
13178 * dirent/scandir-tail.c: Use scandir-tail-common.c.
13179 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
13180 * dirent/scandir.c: Use scandir-tail-common.c.
13181 * dirent/scandirat.c: Likewise.
13182 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
13183 * dirent/scandir64.c (scandir64): Always build and alias to scandir
13184 if _DIRENT_MATCHES_DIRENT64 is defined.
13185 * dirent/scandirat64.c (scandirat64): Likewise.
13186 * include/dirent.h (__scandir_tail): Only define iff
13187 _DIRENT_MATCHES_DIRENT64 is not defined.
13188 (__scandir64_tail): Define regardless.
13189 (__scandirat, scandirat64): Remove libc_hidden_proto.
13190 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
13191 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
13192 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
13193 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
13194 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
13195 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
13196 * sysdeps/unix/sysv/linux/scandir64.c: New file.
13197
13198 2018-04-20 Joseph Myers <joseph@codesourcery.com>
13199
13200 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
13201 New macro.
13202 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13203 Increase to 24.
13204 (_dl_aarch64_cap_flags): Add asimdfhm.
13205
13206 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
13207
13208 * sysdeps/nios2/libm-test-ulps: Update.
13209
13210 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13211
13212 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
13213 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
13214
13215 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
13216 requirements.
13217 (_DIRENT_MATCHES_DIRENT64): Undef
13218 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
13219 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
13220 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
13221 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
13222 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
13223 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
13224 use getdents64 syscalls as base.
13225 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
13226 symbol if required.
13227 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
13228 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
13229 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
13230 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
13231 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
13232 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
13233 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
13234 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
13235 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13236 (__get_clockfreq_via_proc_openprom): Use __getdents64.
13237 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
13238
13239 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13240
13241 * scripts/test_printers_common.py (init_test): Disable lock elision.
13242
13243 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13244
13245 * math/test-tgmath.c (count_double, count_float,
13246 count_ldouble, count_cdouble, count_cfloat,
13247 count_cldouble): Use volatile int.
13248
13249 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13250
13251 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
13252 (conformtest-xfail-conds): Add i386-gnu.
13253 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
13254 i386-gnu.
13255 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
13256 ipc_perm.cuid, ipc_perm.cgid): Likewise.
13257 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
13258 msqid_ds.msg_lrpid): Likewise.
13259 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
13260 Likewise.
13261 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
13262 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
13263 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
13264 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
13265 unsigned int.
13266 (struct statvfs64): Likewise.
13267 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
13268 Likewise.
13269 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
13270 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
13271 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
13272 instead of wait_queue.
13273 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
13274 instead of vm_area_struct.
13275 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
13276 struct sched_param definition to it.
13277 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13278 * bits/types/struct_sched_param.h: New file.
13279 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
13280 <bits/types/struct_sched_param.h> instead of <sched.h>.
13281 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
13282 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
13283 generic version but include <bits/pthreadtypes.h> to make struct
13284 sigevent's sigev_notify_attributes field a pthread_attr_t*.
13285 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
13286 non-compliant.
13287 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
13288 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
13289 [__USE_XOPEN] (OFDEL): New macro.
13290 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
13291 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
13292 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
13293 prototypes.
13294 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
13295 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
13296 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
13297 non-compliant.
13298 * sysdeps/i386/sys/ucontext.h: Likewise.
13299 * sysdeps/m68k/sys/ucontext.h: Likewise.
13300 * sysdeps/mips/sys/ucontext.h: Likewise.
13301 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
13302 * sysdeps/mach/hurd/i386/Makefile
13303 (test-xfail-POSIX/fcntl.h/conform): Add.
13304 (test-xfail-POSIX/signal.h/conform): Add.
13305 (test-xfail-POSIX/semaphore.h/conform): Add.
13306 (test-xfail-POSIX/regex.h/conform): Add.
13307 (test-xfail-POSIX/aio.h/conform): Add.
13308 (test-xfail-POSIX/mqueue.h/conform): Add.
13309 (test-xfail-POSIX/sys/types.h/conform): Add.
13310 (test-xfail-UNIX98/fcntl.h/conform): Add.
13311 (test-xfail-UNIX98/netdb.h/conform): Add.
13312 (test-xfail-UNIX98/signal.h/conform): Add.
13313 (test-xfail-UNIX98/semaphore.h/conform): Add.
13314 (test-xfail-UNIX98/regex.h/conform): Add.
13315 (test-xfail-UNIX98/aio.h/conform): Add.
13316 (test-xfail-UNIX98/ftw.h/conform): Add.
13317 (test-xfail-UNIX98/mqueue.h/conform): Add.
13318 (test-xfail-UNIX98/netinet/in.h/conform): Add.
13319 (test-xfail-UNIX98/sys/wait.h/conform): Add.
13320 (test-xfail-UNIX98/sys/sem.h/conform): Add.
13321 (test-xfail-UNIX98/sys/uio.h/conform): Add.
13322 (test-xfail-UNIX98/sys/socket.h/conform): Add.
13323 (test-xfail-UNIX98/sys/types.h/conform): Add.
13324 (test-xfail-UNIX98/stdlib.h/conform): Add.
13325 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
13326 (test-xfail-POSIX2008/fcntl.h/conform): Add.
13327 (test-xfail-POSIX2008/netdb.h/conform): Add.
13328 (test-xfail-POSIX2008/signal.h/conform): Add.
13329 (test-xfail-POSIX2008/semaphore.h/conform): Add.
13330 (test-xfail-POSIX2008/regex.h/conform): Add.
13331 (test-xfail-POSIX2008/aio.h/conform): Add.
13332 (test-xfail-POSIX2008/mqueue.h/conform): Add.
13333 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
13334 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
13335 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
13336 (test-xfail-POSIX2008/sys/types.h/conform): Add.
13337 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
13338 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
13339 (test-xfail-XOPEN2K/netdb.h/conform): Add.
13340 (test-xfail-XOPEN2K/signal.h/conform): Add.
13341 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
13342 (test-xfail-XOPEN2K/regex.h/conform): Add.
13343 (test-xfail-XOPEN2K/aio.h/conform): Add.
13344 (test-xfail-XOPEN2K/ftw.h/conform): Add.
13345 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
13346 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
13347 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
13348 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
13349 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
13350 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
13351 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
13352 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
13353 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
13354 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
13355 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
13356 (test-xfail-XOPEN2K8/signal.h/conform): Add.
13357 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
13358 (test-xfail-XOPEN2K8/regex.h/conform): Add.
13359 (test-xfail-XOPEN2K8/aio.h/conform): Add.
13360 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
13361 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
13362 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
13363 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
13364 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
13365 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
13366 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
13367 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
13368 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
13369 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
13370 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
13371 i386-gnu.
13372 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
13373 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
13374
13375 2018-04-18 Joseph Myers <joseph@codesourcery.com>
13376
13377 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
13378 --enable-obsolete for powerpc-linux-gnuspe.
13379
13380 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13381
13382 * conform/data/sys/un.h-data: Allow sun_ prefix.
13383 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
13384 prototypes.
13385 * sysdeps/mach/include/mach.h: Likewise.
13386 * sysdeps/mach/include/mach/mig_support.h: Likewise.
13387 * sysdeps/mach/include/mach_error.h: Likewise.
13388
13389 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13390
13391 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
13392 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
13393 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
13394 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
13395
13396 2018-04-16 Andreas Schwab <schwab@suse.de>
13397
13398 [BZ #19527]
13399 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
13400
13401 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
13402
13403 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
13404 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
13405
13406 2018-04-12 DJ Delorie <dj@redhat.com>
13407
13408 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13409 version to 4.16.
13410
13411 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
13412
13413 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
13414 (struct kernel_sigaction): Use the same definition on 31bit as is used
13415 on 64bit.
13416
13417 2018-04-09 Florian Weimer <fweimer@redhat.com>
13418
13419 [BZ #23037]
13420 * resolv/res_send.c (send_dg): Use designated initializers instead
13421 of assignment to zero-initialize other fields of struct mmsghdr.
13422
13423 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13424
13425 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
13426 __READDIR_ALIAS): Undefine after usage.
13427 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
13428 __READDIR_R_ALIAS): Likewise.
13429 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
13430 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
13431 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
13432 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
13433 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
13434 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
13435 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
13436 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
13437 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
13438 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
13439 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
13440 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
13441 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
13442 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
13443 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
13444 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
13445 * sysdeps/unix/sysv/linux/readdir.c: New file.
13446 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
13447 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
13448 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
13449
13450 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
13451
13452 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
13453
13454 * manual/charset.texi (Converting a Character): Fix typo.
13455
13456 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13457
13458 * sysdeps/sparc/fpu/libm-test-ulps: Update.
13459
13460 * sysdeps/arm/libm-test-ulps: Update.
13461
13462 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
13463 as base implementation.
13464 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
13465 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13466 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13467 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13468 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13469 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
13470 remove unrequired definitions and update comments.
13471 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
13472 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
13473 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
13474 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
13475 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
13476 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
13477 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
13478 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
13479 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
13480 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
13481 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
13482 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
13483 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
13484 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
13485 and RESET_SA_RESTORER hooks.
13486
13487 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
13488
13489 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
13490
13491 2018-04-05 Florian Weimer <fweimer@redhat.com>
13492
13493 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
13494 integer overflow, memory leak on error, and indeterminate errno
13495 value. Add a null wide character to terminate the result string.
13496 * manual/charset.texi (Converting a Character): Mention embedded
13497 null bytes in the mbrtowc input string. Explain what happens in
13498 the -2 result case. Do not claim that mbrtowc is simple or
13499 obvious to use. Adjust the description of the code example. Use
13500 @code, not @var, for concrete variables.
13501
13502 2018-04-05 Florian Weimer <fweimer@redhat.com>
13503
13504 * manual/examples/mbstouwcs.c: New file.
13505 * manual/charset.texi (Converting a Character): Include it.
13506
13507 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
13508
13509 * include/dirent.h (dirfd): Add hidden proto.
13510 * dirent/dirfd.c (dirfd): Add hidden def.
13511 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
13512 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
13513
13514 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13515
13516 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
13517 sin, cos and sincos to 1 ULP.
13518
13519 2018-04-04 Maciej W. Rozycki <macro@mips.com>
13520
13521 [BZ #19818]
13522 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
13523 symbols.
13524 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
13525 * elf/tst-absolute-sym.c: New file.
13526 * elf/tst-absolute-sym-lib.c: New file.
13527 * elf/tst-absolute-sym-lib.lds: New file.
13528 * elf/Makefile (tests): Add `tst-absolute-sym'.
13529 (modules-names): Add `tst-absolute-sym-lib'.
13530 (LDLIBS-tst-absolute-sym-lib.so): New variable.
13531 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
13532 ($(objpfx)tst-absolute-sym): New dependency.
13533
13534 [BZ #19818]
13535 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
13536 parameter.
13537 (SYMBOL_ADDRESS): New macro.
13538 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
13539 SYMBOL_ADDRESS for symbol address calculation.
13540 * elf/dl-runtime.c (_dl_fixup): Likewise.
13541 (_dl_profile_fixup): Likewise.
13542 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
13543 * elf/rtld.c (dl_main): Likewise.
13544 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
13545 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
13546 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
13547 (elf_machine_rela): Likewise.
13548 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
13549 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
13550 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13551 (elf_machine_rela): Likewise.
13552 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13553 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
13554 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
13555 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
13556 Likewise.
13557 (elf_machine_reloc): Likewise.
13558 (elf_machine_got_rel): Likewise.
13559 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
13560 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
13561 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13562 Likewise.
13563 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13564 Likewise.
13565 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
13566 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
13567 Likewise.
13568 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
13569 Likewise.
13570 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13571 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
13572 Likewise.
13573 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13574 Likewise.
13575 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
13576 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13577
13578 2018-04-04 Zack Weinberg <zackw@panix.com>
13579
13580 * sysdeps/generic/internal-signals.h: Include signal.h,
13581 sigsetops.h, and stdbool.h.
13582 (__libc_signal_block_all): Actually block all signals.
13583 (__libc_signal_block_app): Likewise.
13584 (__libc_signal_restore_set): Actually restore the signal mask.
13585
13586 2018-04-04 Florian Weimer <fweimer@redhat.com>
13587
13588 inet: Actually build and run tst-deadline.
13589 * inet/Makefile (tests-internal): Add tst-deadline and do not
13590 overwrite the variable.
13591 (tests-static-internal): Remove variable.
13592
13593 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
13594
13595 [BZ #22947]
13596 * bits/uio-ext.h (RWF_APPEND): New.
13597 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
13598 * manual/llio.texi: Document RWF_APPEND.
13599 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
13600 (RWF_SUPPORTED): Add RWF_APPEND.
13601
13602 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13603
13604 [BZ #22391]
13605 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
13606 check for internal nptl signals.
13607 * nptl/sigaction.c (__sigaction): Likewise.
13608 * signal/sigaddset.c (sigaddset): Likewise.
13609 * signal/sigdelset.c (sigdelset): Likewise.
13610 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
13611 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
13612 value.
13613 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
13614 to filter out internal nptl signals.
13615 * signal/tst-sigset.c (do_test): Check ech signal indidually and
13616 also check realtime signals using standard macros.
13617 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
13618 __is_internal_signal, __libc_signal_block_all,
13619 __libc_signal_block_app, __libc_signal_restore_set): New functions.
13620 * sysdeps/nptl/sigfillset.c: Remove file.
13621 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
13622 Change return to bool.
13623 (__clear_internal_signals): Remove SIGTIMER clean since it is
13624 equal to SIGCANEL on Linux.
13625 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
13626 signal set was constructed using standard functions.
13627
13628 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
13629
13630 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
13631 ifname is too long.
13632 * hurd/hurdsig.c (interrupted_reply_port_location): Use
13633 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
13634 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
13635 hidden def.
13636 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
13637 * signal/sigaddset.c: Include <sigsetopts.h>.
13638 * signal/sigdelset.c: Likewise.
13639
13640 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13641
13642 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
13643 (__cos): Likewise.
13644 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
13645 logic as sin and cos.
13646
13647 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13648
13649 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
13650 inputs. Return correct sign.
13651 (do_sincos): Remove small input check before do_sin, let do_sin set
13652 the sign.
13653 (__sin): Likewise.
13654 (__cos): Likewise.
13655
13656 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13657
13658 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
13659 (do_cos_slow): Likewise.
13660 (do_sin_slow): Likewise.
13661 (reduce_and_compute): Likewise.
13662 (slow): Likewise.
13663 (slow1): Likewise.
13664 (slow2): Likewise.
13665 (sloww): Likewise.
13666 (sloww1): Likewise.
13667 (sloww2): Likewise.
13668 (bslow): Likewise.
13669 (bslow1): Likewise.
13670 (bslow2): Likewise.
13671 (cslow2): Likewise.
13672
13673 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13674
13675 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
13676 (do_cos): Remove corp parameter and calculations.
13677 (do_sin): Likewise.
13678 (do_sincos): Remove cor variable.
13679 (__sin): Use do_sincos for huge inputs.
13680 (__cos): Likewise.
13681 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13682 (reduce_and_compute_sincos): Remove unused function.
13683
13684 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13685
13686 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
13687 reduce_sincos, improve accuracy to 136 bits.
13688 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
13689 (__sin): Use improved reduction and simplified do_sincos calculation.
13690 (__cos): Likewise.
13691 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13692
13693 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13694
13695 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
13696 (do_sincos_2): Likewise.
13697 (__sin): Remove middle range reduction case.
13698 (__cos): Likewise.
13699 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
13700 reduction case.
13701
13702 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13703
13704 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
13705 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
13706 inputs.
13707 (__cos): Likewise.
13708 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
13709
13710 2018-04-03 Joseph Myers <joseph@codesourcery.com>
13711
13712 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13713 version to 4.16
13714
13715 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13716
13717 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
13718 Remove definitions.
13719 (opendir_oflags): Use O_DIRECTORY regardless.
13720 (__opendir, __opendirat): Remove need_isdir_precheck usage.
13721 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
13722
13723 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13724
13725 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
13726 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
13727 macros.
13728 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
13729 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
13730 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
13731 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
13732 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
13733 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
13734
13735 * htl/Makefile: Bump licence to LGPL 2.1+.
13736 * htl/alloca_cutoff.c: Likewise.
13737 * htl/cthreads-compat.c: Likewise.
13738 * htl/lockfile.c: Likewise.
13739 * htl/pt-alloc.c: Likewise.
13740 * htl/pt-cancel.c: Likewise.
13741 * htl/pt-cleanup.c: Likewise.
13742 * htl/pt-create.c: Likewise.
13743 * htl/pt-dealloc.c: Likewise.
13744 * htl/pt-detach.c: Likewise.
13745 * htl/pt-exit.c: Likewise.
13746 * htl/pt-getattr.c: Likewise.
13747 * htl/pt-initialize.c: Likewise.
13748 * htl/pt-internal.h: Likewise.
13749 * htl/pt-join.c: Likewise.
13750 * htl/pt-self.c: Likewise.
13751 * htl/pt-setcancelstate.c: Likewise.
13752 * htl/pt-setcanceltype.c: Likewise.
13753 * htl/pt-sigmask.c: Likewise.
13754 * htl/pt-spin-inlines.c: Likewise.
13755 * htl/pt-testcancel.c: Likewise.
13756 * htl/pt-yield.c: Likewise.
13757 * htl/tests/test-1.c: Likewise.
13758 * htl/tests/test-10.c: Likewise.
13759 * htl/tests/test-11.c: Likewise.
13760 * htl/tests/test-12.c: Likewise.
13761 * htl/tests/test-13.c: Likewise.
13762 * htl/tests/test-14.c: Likewise.
13763 * htl/tests/test-15.c: Likewise.
13764 * htl/tests/test-16.c: Likewise.
13765 * htl/tests/test-17.c: Likewise.
13766 * htl/tests/test-2.c: Likewise.
13767 * htl/tests/test-3.c: Likewise.
13768 * htl/tests/test-4.c: Likewise.
13769 * htl/tests/test-5.c: Likewise.
13770 * htl/tests/test-6.c: Likewise.
13771 * htl/tests/test-7.c: Likewise.
13772 * htl/tests/test-8.c: Likewise.
13773 * htl/tests/test-9.c: Likewise.
13774 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
13775 * sysdeps/htl/bits/cancelation.h: Likewise.
13776 * sysdeps/htl/bits/pthread-np.h: Likewise.
13777 * sysdeps/htl/bits/pthread.h: Likewise.
13778 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
13779 * sysdeps/htl/bits/semaphore.h: Likewise.
13780 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
13781 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
13782 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
13783 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
13784 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
13785 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
13786 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
13787 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
13788 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
13789 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
13790 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
13791 * sysdeps/htl/old_pt-atfork.c: Likewise.
13792 * sysdeps/htl/pt-atfork.c: Likewise.
13793 * sysdeps/htl/pt-attr-destroy.c: Likewise.
13794 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
13795 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
13796 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
13797 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
13798 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
13799 * sysdeps/htl/pt-attr-getscope.c: Likewise.
13800 * sysdeps/htl/pt-attr-getstack.c: Likewise.
13801 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
13802 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
13803 * sysdeps/htl/pt-attr-init.c: Likewise.
13804 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
13805 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
13806 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
13807 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
13808 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
13809 * sysdeps/htl/pt-attr-setscope.c: Likewise.
13810 * sysdeps/htl/pt-attr-setstack.c: Likewise.
13811 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
13812 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
13813 * sysdeps/htl/pt-attr.c: Likewise.
13814 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
13815 * sysdeps/htl/pt-barrier-init.c: Likewise.
13816 * sysdeps/htl/pt-barrier-wait.c: Likewise.
13817 * sysdeps/htl/pt-barrier.c: Likewise.
13818 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
13819 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
13820 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
13821 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
13822 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
13823 * sysdeps/htl/pt-cond-destroy.c: Likewise.
13824 * sysdeps/htl/pt-cond-init.c: Likewise.
13825 * sysdeps/htl/pt-cond-signal.c: Likewise.
13826 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
13827 * sysdeps/htl/pt-cond-wait.c: Likewise.
13828 * sysdeps/htl/pt-cond.c: Likewise.
13829 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
13830 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
13831 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
13832 * sysdeps/htl/pt-condattr-init.c: Likewise.
13833 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
13834 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
13835 * sysdeps/htl/pt-destroy-specific.c: Likewise.
13836 * sysdeps/htl/pt-equal.c: Likewise.
13837 * sysdeps/htl/pt-getconcurrency.c: Likewise.
13838 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
13839 * sysdeps/htl/pt-getschedparam.c: Likewise.
13840 * sysdeps/htl/pt-getspecific.c: Likewise.
13841 * sysdeps/htl/pt-init-specific.c: Likewise.
13842 * sysdeps/htl/pt-key-create.c: Likewise.
13843 * sysdeps/htl/pt-key-delete.c: Likewise.
13844 * sysdeps/htl/pt-key.h: Likewise.
13845 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
13846 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
13847 * sysdeps/htl/pt-mutex-init.c: Likewise.
13848 * sysdeps/htl/pt-mutex-lock.c: Likewise.
13849 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
13850 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
13851 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
13852 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
13853 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
13854 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
13855 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
13856 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
13857 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
13858 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
13859 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
13860 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
13861 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
13862 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
13863 * sysdeps/htl/pt-mutexattr.c: Likewise.
13864 * sysdeps/htl/pt-once.c: Likewise.
13865 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
13866 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
13867 * sysdeps/htl/pt-rwlock-init.c: Likewise.
13868 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
13869 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
13870 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
13871 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
13872 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
13873 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
13874 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
13875 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
13876 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
13877 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
13878 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
13879 * sysdeps/htl/pt-setconcurrency.c: Likewise.
13880 * sysdeps/htl/pt-setschedparam.c: Likewise.
13881 * sysdeps/htl/pt-setschedprio.c: Likewise.
13882 * sysdeps/htl/pt-setspecific.c: Likewise.
13883 * sysdeps/htl/pt-spin.c: Likewise.
13884 * sysdeps/htl/pt-startup.c: Likewise.
13885 * sysdeps/htl/pthread.h: Likewise.
13886 * sysdeps/htl/sem-close.c: Likewise.
13887 * sysdeps/htl/sem-destroy.c: Likewise.
13888 * sysdeps/htl/sem-getvalue.c: Likewise.
13889 * sysdeps/htl/sem-init.c: Likewise.
13890 * sysdeps/htl/sem-open.c: Likewise.
13891 * sysdeps/htl/sem-post.c: Likewise.
13892 * sysdeps/htl/sem-timedwait.c: Likewise.
13893 * sysdeps/htl/sem-trywait.c: Likewise.
13894 * sysdeps/htl/sem-unlink.c: Likewise.
13895 * sysdeps/htl/sem-wait.c: Likewise.
13896 * sysdeps/hurd/htl/pt-kill.c: Likewise.
13897 * sysdeps/i386/htl/pt-machdep.h: Likewise.
13898 * sysdeps/mach/htl/pt-block.c: Likewise.
13899 * sysdeps/mach/htl/pt-spin.c: Likewise.
13900 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
13901 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
13902 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
13903 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
13904 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
13905 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
13906 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
13907 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
13908 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
13909 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
13910 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
13911 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
13912 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
13913 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
13914 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
13915 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
13916 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
13917 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
13918 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
13919 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
13920 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
13921 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
13922 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
13923 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
13924 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
13925 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
13926 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
13927 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
13928 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
13929 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
13930 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
13931 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
13932 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
13933 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
13934 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
13935 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
13936 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
13937 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
13938 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
13939 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
13940 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
13941 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
13942 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
13943
13944 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
13945 * README: Remove the mention of out-of-tree patches needed for
13946 GNU/Hurd.
13947
13948 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
13949 (UTIME_NOW, UTIME_OMIT): Define macros.
13950
13951 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13952 instead of pthread_detach.
13953 (__cthread_fork): Call __pthread_create instead of pthread_create.
13954 (__cthread_keycreate): Call __pthread_key_create instead of
13955 pthread_key_create.
13956 (__cthread_getspecific): Call __pthread_getspecific instead of
13957 pthread_getspecific.
13958 (__cthread_setspecific): Call __pthread_setspecific instead of
13959 pthread_setspecific.
13960 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13961 __pthread_mutex_unlock instead of pthread_mutex_lock and
13962 pthread_mutex_unlock.
13963 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13964 ___pthread_get_cleanup_stack.
13965 (__pthread_get_cleanup_stack): New strong alias.
13966 * htl/pt-create.c: Include <pthreadP.h>.
13967 (entry_point): Call __pthread_exit instead of pthread_exit.
13968 (pthread_create): Rename to __pthread_create.
13969 (pthread_create): New strong alias.
13970 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
13971 (pthread_detach): New strong alias.
13972 (__pthread_detach): Call __pthread_cond_broadcast instead of
13973 pthread_cond_broadcast.
13974 * htl/pt-exit.c: Include <pthreadP.h>.
13975 (__pthread_exit): Call __pthread_setcancelstate and
13976 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
13977 __pthread_get_cleanup_stack.
13978 * htl/pt-testcancel.c: Include <pthreadP.h>.
13979 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
13980 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
13981 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
13982 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
13983 pthread_attr_getstacksize.
13984 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
13985 Rename to __pthread_attr_getstackaddr.
13986 (pthread_attr_getstackaddr): New strong alias.
13987 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
13988 Rename to __pthread_attr_getstacksize.
13989 (pthread_attr_getstacksize): New strong alias.
13990 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
13991 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
13992 (pthread_attr_setstack): New strong alias.
13993 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
13994 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
13995 pthread_attr_getstacksize, pthread_attr_setstacksize and
13996 pthread_attr_setstackaddr.
13997 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
13998 Rename to __pthread_attr_setstackaddr.
13999 (pthread_attr_setstackaddr): New strong alias.
14000 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
14001 Rename to __pthread_attr_setstacksize.
14002 (pthread_attr_setstacksize): New strong alias.
14003 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
14004 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
14005 pthread_exit.
14006 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
14007 (__pthread_key_create): New hidden def.
14008 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
14009 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
14010 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
14011 __pthread_exit, __pthread_key_create, __pthread_getspecific,
14012 __pthread_setspecific, __pthread_setcancelstate,
14013 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
14014 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
14015 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
14016 declarations.
14017 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
14018 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
14019 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
14020 (pthread_attr_setstackaddr): New strong alias.
14021 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
14022 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
14023 (pthread_attr_setstacksize): New strong alias.
14024 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
14025 (call_exit): Call __pthread_exit instead of pthread_exit.
14026 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
14027 (_pthread_mutex_init): New hidden definition.
14028 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
14029 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
14030 instead of pthread_attr_init and pthread_attr_setstack.
14031
14032 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
14033 __vm_deallocate instead of vm_allocate and vm_deallocate.
14034 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
14035 setenv.
14036 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
14037 of geteuid.
14038 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
14039 strdup.
14040 * hurd/siginfo.c: Include <libioP.h>.
14041 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
14042 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
14043 munmap.
14044 * mach/devstream.c: Include <libioP.h>.
14045 (dealloc_ref): Call __mach_port_deallocate instead of
14046 mach_port_deallocate.
14047 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
14048 Call __mach_port_deallocate instead of mach_port_deallocate.
14049 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
14050 pathconf.
14051 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
14052 munmap.
14053 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
14054 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
14055 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
14056 of munmap.
14057 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
14058 of close.
14059 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
14060 instead of sysconf.
14061 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
14062 __clock_gettime instead of clock_gettime.
14063 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
14064 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
14065 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
14066 * sysdeps/unix/bsd/stty.c (stty): Likewise.
14067 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
14068 tcgetattr.
14069 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
14070 __clock_gettime and __nanosleep instead of clock_gettime and
14071 nanosleep.
14072 * hurd/catch-signal.c (hurd_catch_signal): Rename to
14073 __hurd_catch_signal.
14074 (hurd_catch_signal): New strong alias.
14075 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
14076 __hurd_catch_signal instead of hurd_catch_signal.
14077 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
14078 * hurd/hurdexec.c (_hurd_init): Add hidden def.
14079 * hurd/hurdinit.c (_hurd_init): Add hidden def.
14080 * hurd/hurdsig.c: Include <mach/mig_support.h>.
14081 (_hurd_thread_sigstate): Add hidden def.
14082 (_hurd_internal_post_signal): Use __mutex_unlock instead of
14083 mutex_unlock.
14084 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
14085 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
14086 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
14087 __hurd_file_name_path_lookup.
14088 (hurd_file_name_path_lookup): New strong alias.
14089 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
14090 hurd_file_name_path_lookup.
14091 * mach/errstring.c (mach_error_type): Add hidden def.
14092 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
14093 * mach/mutex-init.c (__mutex_init): Add hidden def.
14094 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
14095 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
14096 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
14097 * sysdeps/mach/hurd/getcwd.c
14098 (_hurd_canonicalize_directory_name_internal): Rename to
14099 __hurd_canonicalize_directory_name_internal.
14100 (_hurd_canonicalize_directory_name_internal): New strong alias.
14101 (__canonicalize_directory_name_internal, __getcwd): Call
14102 __hurd_canonicalize_directory_name_internal instead of
14103 _hurd_canonicalize_directory_name_internal.
14104 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
14105 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
14106 hidden defs.
14107 * sysdeps/hurd/include/hurd.h: New file.
14108 * sysdeps/hurd/include/hurd/fd.h: New file.
14109 * sysdeps/hurd/include/hurd/signal.h: New file.
14110 * sysdeps/mach/include/lock-intern.h: New file.
14111 * sysdeps/mach/include/mach.h: New file.
14112 * sysdeps/mach/include/mach/mig_support.h: New file.
14113 * sysdeps/mach/include/mach_error.h: New file.
14114 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
14115 prototype.
14116 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
14117 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
14118 _HEADER_H_HIDDEN_DEF macro.
14119 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
14120 _hurd_fd_error_signal): Add hidden prototype.
14121 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
14122 hidden def.
14123 * libio/iolibio.h (_IO_puts): New hidden prototype.
14124 * libio/ioputs.c (_IO_puts): New hidden def.
14125 * sysdeps/mach/hurd/localplt.data: New file.
14126
14127 2018-04-02 Agustina Arzille <avarzille@riseup.net>
14128 Amos Jeffries <squid3@treenet.co.nz>
14129 David Michael <fedora.dm0@gmail.com>
14130 Marco Gerards <marco@gnu.org>
14131 Marcus Brinkmann <marcus@gnu.org>
14132 Neal H. Walfield <neal@gnu.org>
14133 Pino Toscano <toscano.pino@tiscali.it>
14134 Richard Braun <rbraun@sceen.net>
14135 Roland McGrath <roland@gnu.org>
14136 Samuel Thibault <samuel.thibault@ens-lyon.org>
14137 Thomas DiModica <ricinwich@yahoo.com>
14138 Thomas Schwinge <tschwinge@gnu.org>
14139
14140 * htl: New directory.
14141 * sysdeps/htl: New directory.
14142 * sysdeps/hurd/htl: New directory.
14143 * sysdeps/i386/htl: New directory.
14144 * sysdeps/mach/htl: New directory.
14145 * sysdeps/mach/hurd/htl: New directory.
14146 * sysdeps/mach/hurd/i386/htl: New directory.
14147 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
14148 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
14149 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
14150
14151 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
14152
14153 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
14154 signals in thread created for runing timers.
14155
14156 2018-04-01 Florian Weimer <fweimer@redhat.com>
14157
14158 * support/support_format_addrinfo.c (support_format_addrinfo):
14159 Include unknown error number in formatted result.
14160
14161 2018-03-29 Florian Weimer <fweimer@redhat.com>
14162
14163 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
14164 capture SIGBUS.
14165
14166 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14167
14168 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
14169 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
14170 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
14171 (__ASSUME_CLONE_BACKWARDS): Define.
14172
14173 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
14174
14175 [BZ #23024]
14176 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
14177 early when linux sentinel value is set.
14178
14179 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14180
14181 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
14182
14183 2018-03-27 Andreas Schwab <schwab@suse.de>
14184
14185 [BZ #23005]
14186 * resolv/res_send.c (__res_context_send): Return ENOMEM if
14187 allocation of private copy of nsaddr_list fails.
14188
14189 2018-03-26 Joseph Myers <joseph@codesourcery.com>
14190
14191 [BZ #16552]
14192 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
14193 * sysdeps/unix/sysv/linux/umount.c: ... here.
14194 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
14195 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
14196 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
14197 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
14198 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
14199 * sysdeps/unix/sysv/linux/umount.S: Likewise.
14200 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
14201
14202 2018-03-26 Andreas Schwab <schwab@suse.de>
14203
14204 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
14205 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
14206 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
14207 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
14208 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
14209 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
14210 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
14211 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
14212 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
14213 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
14214 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
14215 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
14216 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
14217 (R_RISCV_NUM): Define.
14218
14219 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
14220
14221 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
14222 TLS declaration of errno.
14223 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
14224 __libc_setup_tls.
14225 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
14226 (ARCH_SETUP_TLS): Likewise.
14227 * sysdeps/mach/hurd/libc-start.h: New file copied from
14228 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
14229 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
14230 instead of __libc_setup_tls.
14231 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
14232 __libc_setup_tls before initializing libpthread and running _hurd_init
14233 which starts the signal thread.
14234 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
14235 Declare function.
14236 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14237
14238 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
14239
14240 [BZ #22998]
14241 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
14242 after it is defined.
14243
14244 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
14245 Max Horn <max@quendi.de>
14246
14247 [BZ #22644]
14248 CVE-2017-18269
14249 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
14250 branch conditions.
14251 * string/test-memmove.c (do_test2): New testcase.
14252
14253 2018-03-22 Joseph Myers <joseph@codesourcery.com>
14254
14255 * sysdeps/generic/frame.h: Remove file.
14256 * sysdeps/arm/frame.h: Likewise.
14257 * sysdeps/hppa/frame.h: Likewise.
14258 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
14259 macro.
14260 (GET_FRAME): Likewise.
14261 (GET_STACK): Likewise.
14262 (CALL_SIGHANDLER): Likewise.
14263 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
14264 Likewise.
14265 (GET_FRAME): Likewise.
14266 (GET_STACK): Likewise.
14267 (CALL_SIGHANDLER): Likewise.
14268 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
14269 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14270 (GET_FRAME): Likewise.
14271 (GET_STACK): Likewise.
14272 (CALL_SIGHANDLER): Likewise.
14273 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
14274 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14275 (GET_FRAME): Likewise.
14276 (GET_STACK): Likewise.
14277 (ADVANCE_STACK_FRAME): Likewise.
14278 (CALL_SIGHANDLER): Likewise.
14279 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
14280 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14281 (GET_FRAME): Likewise.
14282 (GET_STACK): Likewise.
14283 (CALL_SIGHANDLER): Likewise.
14284 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
14285 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14286 (GET_FRAME): Likewise.
14287 (GET_STACK): Likewise.
14288 (CALL_SIGHANDLER): Likewise.
14289 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
14290 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14291 (GET_FRAME): Likewise.
14292 (GET_STACK): Likewise.
14293 (CALL_SIGHANDLER): Likewise.
14294 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
14295 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14296 (GET_FRAME): Likewise.
14297 (GET_STACK): Likewise.
14298 (CALL_SIGHANDLER): Likewise.
14299 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
14300 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14301 (GET_FRAME): Likewise.
14302 (GET_STACK): Likewise.
14303 (CALL_SIGHANDLER): Likewise.
14304 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
14305 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14306 (GET_FRAME): Likewise.
14307 (GET_STACK): Likewise.
14308 (CALL_SIGHANDLER): Likewise.
14309 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
14310 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14311 (GET_FRAME): Likewise.
14312 (GET_STACK): Likewise.
14313 (CALL_SIGHANDLER): Likewise.
14314 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
14315 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14316 (GET_FRAME): Likewise.
14317 (GET_STACK): Likewise.
14318 (CALL_SIGHANDLER): Likewise.
14319 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
14320 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14321 (GET_FRAME): Likewise.
14322 (GET_STACK): Likewise.
14323 (CALL_SIGHANDLER): Likewise.
14324 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
14325 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14326 (FIRST_FRAME_POINTER): Likewise.
14327 (ADVANCE_STACK_FRAME): Likewise.
14328 (GET_STACK): Likewise.
14329 (GET_FRAME): Likewise.
14330 (CALL_SIGHANDLER): Likewise.
14331 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
14332 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14333 (ADVANCE_STACK_FRAME): Likewise.
14334 (GET_STACK): Likewise.
14335 (GET_FRAME): Likewise.
14336 (CALL_SIGHANDLER): Likewise.
14337 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
14338 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14339 (GET_FRAME): Likewise.
14340 (GET_STACK): Likewise.
14341 (CALL_SIGHANDLER): Likewise.
14342 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
14343 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14344 (GET_FRAME): Likewise.
14345 (GET_STACK): Likewise.
14346 (CALL_SIGHANDLER): Likewise.
14347
14348 2018-03-21 Joseph Myers <joseph@codesourcery.com>
14349
14350 * sysdeps/x86_64/backtrace.c: Move to ....
14351 * debug/backtrace.c: ... here.
14352 * sysdeps/aarch64/backtrace.c: Remove file.
14353 * sysdeps/alpha/backtrace.c: Likewise.
14354 * sysdeps/hppa/backtrace.c: Likewise.
14355 * sysdeps/ia64/backtrace.c: Likewise.
14356 * sysdeps/mips/backtrace.c: Likewise.
14357 * sysdeps/nios2/backtrace.c: Likewise.
14358 * sysdeps/riscv/backtrace.c: Likewise.
14359 * sysdeps/sh/backtrace.c: Likewise.
14360 * sysdeps/tile/backtrace.c: Likewise.
14361
14362 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14363
14364 [BZ #22987]
14365 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
14366 function.
14367 (fdimf): Likewise.
14368 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
14369
14370 [BZ #17343]
14371 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
14372 possibly overflowing computations.
14373
14374 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14375
14376 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
14377 values from Linux-specific section now that it is in the GNU section.
14378 * sysdeps/gnu/errlist.c: Regenerate.
14379
14380 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14381
14382 * math/Makefile (libm-narrow-fns): Add sub.
14383 (libm-test-funcs-narrow): Likewise.
14384 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
14385 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
14386 * math/gen-auto-libm-tests.c (test_functions): Add sub.
14387 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
14388 (NARROW_SUB_ROUND_TO_ODD): Likewise.
14389 (NARROW_SUB_TRIVIAL): Likewise.
14390 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
14391 macro.
14392 (__dsubl): Likewise.
14393 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
14394 dsub.
14395 (CFLAGS-nldbl-dsub.c): New variable.
14396 (CFLAGS-nldbl-fsub.c): Likewise.
14397 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14398 __nldbl_dsubl.
14399 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
14400 prototype.
14401 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
14402 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
14403 * math/auto-libm-test-in: Add tests of sub.
14404 * math/auto-libm-test-out-narrow-sub: New generated file.
14405 * math/libm-test-narrow-sub.inc: New file.
14406 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14407 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
14408 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
14409 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
14410 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
14411 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
14412 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
14413 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
14414 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
14415 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
14416 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
14417 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
14418 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
14419 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
14420 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
14421 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
14422 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
14423 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
14424 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14425 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14426 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14427 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14428 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14429 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14430 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14431 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14432 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14433 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14434 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14435 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14436 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14437 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14438 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14439 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14440 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14441 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14442 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14443 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14444 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14445 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14446 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14447 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14448 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
14449 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
14450 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14451 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14452
14453 2018-03-19 Joseph Myers <joseph@codesourcery.com>
14454
14455 [BZ #20079]
14456 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
14457
14458 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
14459
14460 * benchtests/bench-timing.h (attribute_hidden): Undefine.
14461
14462 2018-03-18 Richard Braun <rbraun@sceen.net>
14463
14464 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
14465 thread reference.
14466
14467 2018-03-18 Agustina Arzille <avarzille@riseup.net>
14468
14469 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
14470 (__libc_cleanup_fct): Define function.
14471 (__libc_cleanup_region_start, __libc_cleanup_region_end,
14472 __libc_cleanup_end): Rewrite implementation using
14473 __attribute__ ((__cleanup__)).
14474 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
14475 * hurd/Makefile (routines): Add hurdlock.
14476 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
14477 interface.
14478 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
14479 * hurd/hurdpid.c: Include <lowlevellock.h>
14480 (_S_msg_proc_newids): Use lll_wait to synchronize.
14481 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
14482 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
14483 * mach/Makefile (lock-headers): Remove machine-lock.h.
14484 * mach/lock-intern.h: Include <lowlevellock.h> instead of
14485 <machine-lock.h>.
14486 (__spin_lock_t): New type.
14487 (__SPIN_LOCK_INITIALIZER): New macro.
14488 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
14489 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
14490 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
14491 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
14492 (__mutex_init): Initialize with lll.
14493 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
14494 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
14495 needing lll.
14496 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14497 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
14498 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
14499 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
14500 (__setpgid): Use lll for synchronization.
14501 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
14502 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
14503 instead of <cthreads.h>.
14504 (_IO_lock_inexpensive): New macro
14505 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
14506 (__libc_lock_self0): New declaration.
14507 (__libc_lock_owner_self): New macro.
14508 (__libc_key_t): Remove type.
14509 (_LIBC_LOCK_INITIALIZER): New macro.
14510 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
14511 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
14512 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
14513 __libc_lock_define_initialized_recursive,
14514 __rtld_lock_define_initialized_recursive,
14515 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
14516 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
14517 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
14518 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
14519 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
14520 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
14521 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
14522 New macros.
14523 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
14524 * hurd/hurdlock.c: New file.
14525 * hurd/hurdlock.h: New file.
14526 * mach/lowlevellock.h: New file
14527
14528 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14529
14530 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
14531 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
14532 when opening a symlink with O_NOFOLLOW.
14533 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
14534 path when flags contains O_NOFOLLOW.
14535 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
14536 if flags contains O_DIRECTORY and the result is a directory.
14537 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
14538 oneself when the pointer given in D is nul (as set by ext2fs).
14539 * sysdeps/mach/hurd/mlockall.c: New file.
14540 * sysdeps/mach/hurd/munlockall.c: New file.
14541
14542 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14543
14544 * hurd/hurdsig.c: Include <pthread.h>.
14545 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
14546 get the signal thread stack layout.
14547 * hurd/Makefile (headers): Remove threadvar.h.
14548 (inline-headers): Remove threadvar.h.
14549 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
14550 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
14551 __hurd_threadvar_max, __hurd_errno_location.
14552 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
14553 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
14554 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
14555 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
14556 unless TLS is not initialized yet, in which case we do not need a
14557 critical section yet anyway.
14558 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
14559 <machine-sp.h>.
14560 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
14561 declarations.
14562 (__hurd_threadvar_index): Remove enum.
14563 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
14564 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
14565 inlines.
14566 (__hurd_reply_port0): New variable declaration.
14567 (__hurd_local_reply_port): New macro.
14568 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
14569 (interrupted_reply_port_location): Add thread_t parameter. Use it
14570 with THREAD_TCB to access thread-local variables.
14571 (_hurdsig_abort_rpcs): Pass ss->thread to
14572 interrupted_reply_port_location.
14573 (_hurd_internal_post_signal): Likewise.
14574 (_hurdsig_init): Use presence of cthread_fork instead of
14575 __hurd_threadvar_stack_mask to start signal thread by hand.
14576 Remove signal thread threadvar initialization.
14577 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
14578 * hurd/sigunwind.c: Include <hurd/threadvar.h>
14579 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
14580 of threadvar.
14581 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
14582 __libc_lock_self0.
14583 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
14584 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
14585 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
14586 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
14587 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
14588 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
14589 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
14590 define variables.
14591 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
14592 <hurd/threadvar.h>.
14593 [IS_IN(rtld)] (rtld_errno): New variable.
14594 [IS_IN(rtld)] (__errno_location): New weak function.
14595 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
14596 * sysdeps/mach/hurd/errno.c: Remove file.
14597 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
14598 (__fork): Remove THREADVAR_SPACE macro and its use.
14599 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
14600 variable.
14601 (init): Do not initialize threadvar.
14602 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
14603 symbol.
14604 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
14605 __hurd_local_reply_port instead of threadvar.
14606 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
14607 _hurd_sigstate fields.
14608 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
14609 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
14610 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
14611 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
14612 instead of threadvar.
14613 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
14614 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
14615 (use_threadvar, global_reply_port): Remove variables.
14616 (__hurd_reply_port0): New variable.
14617 (__mig_get_reply_port): Use __hurd_local_reply_port and
14618 __hurd_reply_port0 instead of threadvar.
14619 (__mig_dealloc_reply_port): Likewise.
14620 (__mig_init): Do not initialize threadvar.
14621 * sysdeps/mach/hurd/profil.c: Fix comment.
14622 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
14623 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
14624 cthread_keycreate, cthread_getspecific, cthread_setspecific to
14625 __cthread_fork, __cthread_detach, __pthread_getattr_np,
14626 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
14627 __cthread_setspecific.
14628 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
14629 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
14630 __cthread_t instead of cthread_fork, cthread_detach,
14631 pthread_getattr_np, pthread_attr_getstack.
14632 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
14633 __cthread_keycreate.
14634 (cthread_getspecific): Rename to __cthread_getspecific.
14635 (cthread_setspecific): Rename to __cthread_setspecific.
14636 (__libc_getspecific): Use __cthread_getspecific instead of
14637 cthread_getspecific.
14638 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
14639 __cthread_keycreate instead of cthread_keycreate.
14640 (__libc_setspecific): Use __cthread_setspecific instead of
14641 cthread_setspecific.
14642 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
14643 Likewise.
14644 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
14645 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
14646 testing whether it is defined.
14647
14648 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
14649
14650 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
14651 Define macro.
14652 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
14653 * sysdeps/mach/i386/thread_state.h
14654 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
14655 i386_THREAD_STATE.
14656 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
14657 i386_THREAD_STATE.
14658 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
14659
14660 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
14661 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
14662
14663 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
14664 macros.
14665 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
14666 descriptor instead of creating a new one.
14667 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
14668
14669 * mach/setup-thread.c: Include <ldsodefs.h>.
14670 (__mach_setup_thread): Call _dl_allocate_tls, pass
14671 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
14672 MACHINE_THREAD_STATE_FLAVOR, before getting
14673 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
14674 MACHINE_THREAD_STATE_FLAVOR with the result.
14675 * hurd/hurdfault.c (_hurdsig_fault_init): Call
14676 MACHINE_THREAD_STATE_FIX_NEW.
14677 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
14678 too. Add original thread parameter.
14679
14680 2018-03-16 Joseph Myers <joseph@codesourcery.com>
14681
14682 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
14683 Remove inline function.
14684
14685 * sysdeps/i386/fpu/libm-test-ulps: Update.
14686 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14687
14688 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
14689
14690 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
14691 commit.
14692
14693 2018-03-15 Joseph Myers <joseph@codesourcery.com>
14694
14695 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
14696 (__sincos_code): Remove define and undefine.
14697 [__FAST_MATH__] (__sincos): Remove inline function.
14698 [__FAST_MATH__] (__sincosf): Remove inline function.
14699 [__FAST_MATH__] (__sincosl): Remove inline function.
14700 (__atan2l): Remove inline functions.
14701 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
14702 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
14703 function.
14704 (floor): Remove inline function.
14705 (ceil): Likewise.
14706 [__FAST_MATH__] (__ldexp_code): Remove macro.
14707 [__FAST_MATH__] (ldexp): Remove inline function.
14708 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
14709 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
14710 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
14711 [__USE_ISOC99] (__lrint_code): Remove macro.
14712 [__USE_ISOC99] (__llrint_code): Likewise.
14713 [__USE_ISOC99] (lrintf): Remove inline function.
14714 [__USE_ISOC99] (lrint): Likewise.
14715 [__USE_ISOC99] (lrintl): Likewise.
14716 [__USE_ISOC99] (llrint): Likewise.
14717 [__USE_ISOC99] (llrintf): Likewise.
14718 [__USE_ISOC99] (llrintl): Likewise.
14719
14720 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14721
14722 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
14723 (__ieee754_sqrtf): Remove.
14724 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
14725 (__ieee754_sqrtf): Remove.
14726 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
14727 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14728 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
14729 (__ieee754_sqrtf): Remove.
14730 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
14731 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
14732 (sqrtf): Remove.
14733 (sqrtl): Remove.
14734 (__ieee754_sqrt): Remove.
14735 (__ieee754_sqrtf): Remove.
14736 (__ieee754_sqrtl): Remove.
14737 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14738 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
14739 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
14740 (__ieee754_sqrtf): Remove.
14741 (__ieee754_sqrtl): Remove.
14742
14743 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14744
14745 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
14746 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
14747 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
14748 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
14749 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
14750 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14751 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
14752 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
14753 Likewise.
14754 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
14755 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
14756 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
14757 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
14758 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
14759 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
14760 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14761 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
14762 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
14763 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14764 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
14765 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
14766 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
14767 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
14768 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
14769 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
14770 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14771 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
14772 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
14773 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
14774 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
14775 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
14776 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
14777 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
14778 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
14779 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
14780 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14781 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
14782 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
14783 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14784 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
14785 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
14786 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
14787 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
14788 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14789 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14790 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
14791 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
14792 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
14793 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
14794
14795 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14796
14797 * include/math.h (sqrt): Declare with asm redirect.
14798 (sqrtf): Likewise.
14799 (sqrtl): Likewise.
14800 (sqrtf128): Likewise.
14801 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
14802 nonlib and libnldbl with -fmath-errno.
14803 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
14804 * math/w_sqrt_template.c: Likewise.
14805 * math/w_sqrtf_compat.c: Likewise.
14806 * math/w_sqrtl_compat.c: Likewise.
14807 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
14808 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
14809 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
14810 complex.h.
14811
14812 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14813
14814 * benchtests/Makefile: Define _ISOMAC.
14815 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
14816 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
14817 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
14818 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
14819 * benchtests/bench-timing.h: Define attribute_hidden.
14820
14821 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
14822
14823 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
14824 mov + lsr.
14825
14826 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14827
14828 [BZ #22963]
14829 * localedata/locales/cs_CZ (mon): Rename to...
14830 (alt_mon): This.
14831 (mon): Import from CLDR (genitive case).
14832
14833 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14834
14835 [BZ #22937]
14836 * localedata/locales/el_CY (abmon): Rename to...
14837 (ab_alt_mon): This.
14838 (abmon): Import from CLDR (abbreviated genitive case).
14839 * localedata/locales/el_GR (abmon): Rename to...
14840 (ab_alt_mon): This.
14841 (abmon): Import from CLDR (abbreviated genitive case).
14842
14843 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14844
14845 [BZ #22932]
14846 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
14847
14848 2018-03-15 Robert Buj <robert.buj@gmail.com>
14849
14850 [BZ #22848]
14851 * localedata/locales/ca_ES (abmon): Rename to...
14852 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
14853 (mon): Rename to...
14854 (alt_mon): This.
14855 (abmon): Import from CLDR (genitive case, month names preceded by
14856 "de" or "d’").
14857 (mon): Likewise.
14858 (abday): Synchronize with CLDR.
14859 (d_t_fmt): Likewise.
14860 (d_fmt): Likewise.
14861 (am_pm): Likewise.
14862
14863 (LC_TIME): Improve indentation.
14864 (LC_TELEPHONE): Likewise.
14865 (LC_NAME): Likewise.
14866 (LC_ADDRESS): Likewise.
14867
14868 2018-03-14 Joseph Myers <joseph@codesourcery.com>
14869
14870 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
14871 (lrintf): Remove definitions used only with old GCC.
14872 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
14873 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
14874 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
14875 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
14876 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
14877 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
14878 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
14879 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
14880 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
14881 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
14882 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
14883 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
14884 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
14885 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
14886 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
14887 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
14888 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
14889 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
14890 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
14891 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
14892 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
14893 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
14894 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
14895 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
14896 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
14897 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
14898 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
14899 [__FAST_MATH__] (__M_SQRT2): Remove macro.
14900
14901 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
14902
14903 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
14904 instruction to unbreak builds with binutils 2.26 and older.
14905
14906 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
14907
14908 * sysdeps/aarch64/strncmp.S (count): New macro.
14909 (strncmp): Store misaligned length in SRC1 in COUNT.
14910 (mutual_align): Adjust.
14911 (misaligned8): Load dword at a time when it is safe.
14912
14913 2018-03-12 Zack Weinberg <zackw@panix.com>
14914
14915 [BZ #1190]
14916 [BZ #19476]
14917 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
14918 if the _IO_EOF_SEEN bit is already set; update commentary.
14919 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
14920 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
14921
14922 * support/support_openpty.c, support/tty.h: New files.
14923 * support/Makefile (libsupport-routines): Add support_openpty.
14924
14925 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
14926 New test cases.
14927 * libio/Makefile (tests): Add tst-fgetc-after-eof.
14928 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
14929
14930 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
14931
14932 * po/pt_BR.po: Update translations.
14933
14934 2018-03-12 David Michael <fedora.dm0@gmail.com>
14935
14936 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
14937 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
14938 get a port to the startup server.
14939
14940 2018-03-11 Zack Weinberg <zackw@panix.com>
14941
14942 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
14943 before nldbl-compat.h.
14944
14945 2018-03-10 Zack Weinberg <zackw@panix.com>
14946
14947 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
14948 math.h or math_private.h.
14949
14950 * sysdeps/alpha/fpu/s_isnan.c
14951 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14952 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14953 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14954 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14955 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14956 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14957 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14958 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14959 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14960 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14961 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14962 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14963 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14964 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14965 Include math_private.h.
14966
14967 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14968 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14969 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14970 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
14971 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
14972 * sysdeps/powerpc/power7/fpu/s_logb.c:
14973 Include math.h and math_private.h.
14974
14975 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
14976 uses of $at in .set noat / .set at.
14977
14978 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
14979
14980 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
14981 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
14982 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
14983 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
14984 Likewise.
14985
14986 2018-03-09 Florian Weimer <fweimer@redhat.com>
14987
14988 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
14989 in comment.
14990
14991 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
14992
14993 [BZ #22919]
14994 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
14995 Add nop before __startcontext, add explaining comments.
14996
14997 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14998
14999 [BZ #22926]
15000 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
15001 empty for __SPE__.
15002 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
15003 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
15004 Do not build hardware transactional code for __SPE__.
15005 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
15006 (__lll_trylock_elision): Likewise.
15007 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
15008 (__lll_unlock_elision): Likewise.
15009
15010 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
15011 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
15012 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
15013 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
15014 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
15015 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
15016 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
15017 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
15018 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
15019 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
15020 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
15021 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
15022 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
15023 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
15024 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
15025 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
15026 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
15027 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
15028 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
15029 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
15030 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
15031 * sysdeps/unix/sysv/linux/arm/kernel-features.h
15032 (__ASSUME_CLONE_BACKWARDS): Define.
15033 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
15034 __clone2 if __NR_clone2 is defined.
15035 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
15036 (__ASSUME_CLONE_BACKWARDS): Likewise.
15037 * sysdeps/unix/sysv/linux/i386/kernel-features.h
15038 (__ASSUME_CLONE_BACKWARDS): Likewise.
15039 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
15040 (__ASSUME_CLONE2): Likewise.
15041 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15042 (__ASSUME_CLONE_BACKWARDS3): Likewise.
15043 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
15044 variants and the define architecture can use.
15045 (__ASSUME_CLONE_DEFAULT): Define as default.
15046 * sysdeps/unix/sysv/linux/mips/kernel-features.h
15047 (__ASSUME_CLONE_BACKWARDS): Likewise.
15048 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
15049 (__ASSUME_CLONE_BACKWARDS): Likewise.
15050 * sysdeps/unix/sysv/linux/s390/kernel-features.h
15051 (__ASSUME_CLONE_BACKWARDS2): Likewise.
15052
15053 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
15054
15055 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
15056
15057 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
15058 time.
15059
15060 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
15061 (do_test_limit): Likewise.
15062
15063 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
15064 for every implementation.
15065 (do_test): Likewise.
15066
15067 * benchtests/bench-strncmp.c: Convert output to json.
15068
15069 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
15070
15071 * io/futimens.c: Add missing start-of-file descriptive comment.
15072 * io/utime.c: Likewise.
15073 * misc/futimesat.c: Likewise.
15074 * misc/utimes.c: Likewise.
15075 * sysdeps/mach/hurd/futimesat.c: Likewise.
15076 * sysdeps/mach/hurd/utimes.c: Likewise.
15077 * sysdeps/posix/utime.c: Likewise.
15078 * sysdeps/posix/utimes.c: Likewise.
15079 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
15080 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
15081 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
15082 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
15083
15084 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15085
15086 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
15087 hurd_futimes.
15088 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
15089 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
15090 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
15091 (__futimens): Move implementation to...
15092 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
15093 utime_tvalue_from_tspec): ... new helper functions.
15094 (hurd_futimens): New function.
15095 * sysdeps/mach/hurd/futimesat.c: New file.
15096 * sysdeps/mach/hurd/utimensat.c: New file.
15097
15098 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
15099
15100 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
15101 UTIME_OMIT): New macros.
15102 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
15103 before reverting to converting time spec to time value and calling
15104 __file_utimes.
15105 * sysdeps/mach/hurd/utime-helper.c: New file.
15106 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
15107 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
15108 reverting to utime_tvalue_from_tval and __file_utimes.
15109 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
15110 (__lutimes): Just call hurd_futimens after lookup.
15111 * sysdeps/mach/hurd/utimes.c: Likewise.
15112
15113 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15114
15115 * bits/sigaction.h: Add include guard.
15116 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
15117 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
15118 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
15119 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
15120 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
15121 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
15122 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
15123 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
15124 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
15125
15126 2018-03-05 Joseph Myers <joseph@codesourcery.com>
15127
15128 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
15129 -Wmaybe-uninitialized for -Os.
15130 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
15131 this disabling.
15132
15133 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15134
15135 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
15136 __INO_T_MATCHES_INO64_T is defined.
15137 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
15138 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
15139 of definition.
15140 * dirent/alphasort64.c: Likewise.
15141 * dirent/scandir.c: Likewise.
15142 * dirent/scandir64-tail.c: Likewise.
15143 * dirent/scandir64.c: Likewise.
15144 * dirent/scandirat.c: Likewise.
15145 * dirent/scandirat64.c: Likewise.
15146 * dirent/versionsort.c: Likewise.
15147 * dirent/versionsort64.c: Likewise.
15148 * include/dirent.h: Likewise.
15149
15150 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
15151 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
15152 for socketpair endpoint.
15153 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
15154 WRITE_BUFFER_SIZE as buffer size for sending socket.
15155 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
15156 issue on system where send is implemented with sendto syscall.
15157 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
15158 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
15159 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
15160 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
15161
15162 [BZ #21269]
15163 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
15164 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
15165 sa_restorer for vDSO case.
15166 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
15167
15168 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15169
15170 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
15171 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
15172 * hurd/hurd/ioctl.h: Include <mach/port.h>
15173 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
15174 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
15175 <mach/mach_types.h> and <mach/message.h>.
15176 (headers): Move mach/param.h to bits/mach/param.h.
15177 * sysdeps/mach/i386/mach/param.h: Move file to ...
15178 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
15179 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
15180 of <mach/param.h>.
15181 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
15182 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
15183 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
15184 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
15185 trivial, for C++ conformity.
15186 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
15187 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
15188 Process mig output through $(migheadersed).
15189 * hurd/Makefile (migheadersed): Define variable.
15190 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
15191 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
15192 headers.
15193 * hurd/hurd.h: Include <bits/types/sigset_t.h>
15194 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
15195 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
15196 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
15197 <bits/types/sigset_t.h>.
15198 [!defined __USE_GNU]: Do not #error out.
15199 (struct hurd_sigstate): Use _NSIG instead of NSIG.
15200 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
15201 Include <stddef.h> and <bits/types/sigset_t.h>
15202 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
15203 instead of sighandler_t.
15204 * stdlib/errno.h (error_t): Move definition to...
15205 * bits/types/error_t.h: ... new header.
15206 * stdlib/Makefile (headers): Add bits/types/error_t.h.
15207 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
15208 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
15209 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
15210 * hurd/hurd.h: Include <bits/types/error_t.h>
15211 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
15212 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
15213 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
15214 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
15215 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
15216 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
15217 * sysdeps/mach/hurd/futimens.c: New file.
15218
15219 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
15220
15221 [BZ #22918]
15222 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
15223 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
15224 * nscd/gai.c (__nss_hosts_database): Readd definition.
15225 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
15226 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
15227 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
15228
15229 2018-03-02 Joseph Myers <joseph@codesourcery.com>
15230
15231 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
15232 (ifunc_one): Likewise.
15233
15234 2018-03-01 DJ Delorie <dj@delorie.com>
15235
15236 [BZ #22342]
15237 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
15238 key value.
15239
15240 2018-03-01 Maciej W. Rozycki <macro@mips.com>
15241
15242 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
15243 `match_pid' parameter.
15244 (td_ta_thr_iter): Update accordingly.
15245
15246 2018-03-01 Florian Weimer <fweimer@redhat.com>
15247
15248 * nptl/Makefile (install-lib-ldscripts): Remove.
15249 (install): Remove rule.
15250 ($(inst_libdir)/libpthread.so): Likewise.
15251
15252 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15253
15254 [BZ #22896]
15255 * localedata/locales/an_ES: update month and day names,
15256 improve d_fmt, improve postal_fmt, add country_post,
15257 add country_isbn
15258
15259 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15260
15261 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
15262 Ukrainian instead of Bulgarian.
15263
15264 2018-03-01 Florian Weimer <fweimer@redhat.com>
15265
15266 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
15267 reference.
15268
15269 2018-03-01 Florian Weimer <fweimer@redhat.com>
15270
15271 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
15272 * nptl/Makefile (routines): Add pthread_atfork.
15273 (static-only-routines): Set to pthread_atfork.
15274 (libpthread-routines): Remove pthread_atfork.
15275 (libpthread-static-only-routines): Remove.
15276 (install): Update comment.
15277 (libpthread.so): Do not install libpthread_nonshared.a.
15278 (tests): Do not link with libpthread_nonshared.a.
15279 (generated): Remove libpthread_nonshared.a.
15280 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
15281 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
15282 with libpthread_nonshared.a.
15283
15284 2018-02-28 Joseph Myers <joseph@codesourcery.com>
15285
15286 [BZ #22902]
15287 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
15288 (libc_feholdexcept_setroundf128): New macro.
15289 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
15290
15291 [BZ #15105]
15292 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
15293 libc_hidden_def.
15294 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
15295 * include/inttypes.h: New file.
15296
15297 2018-02-27 Joseph Myers <joseph@codesourcery.com>
15298
15299 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
15300 -Os in two more places.
15301
15302 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15303
15304 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
15305 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
15306 be sorted correctly at the moment because of a bug.
15307
15308 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15309
15310 [BZ #22550] - es_ES locale (and other es_* locales): collation should
15311 treat ñ as a primary different character, sync the collation
15312 for Spanish with CLDR.
15313 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
15314 * localedata/Makefile: Add new test files.
15315 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
15316 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
15317 collation order.
15318 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
15319 * localedata/am_ET.UTF-8.in: New test file.
15320 * localedata/az_AZ.UTF-8.in: Likewise.
15321 * localedata/be_BY.UTF-8.in: Likewise.
15322 * localedata/ber_DZ.UTF-8.in: Likewise.
15323 * localedata/ber_MA.UTF-8.in: Likewise.
15324 * localedata/bg_BG.UTF-8.in: Likewise.
15325 * localedata/br_FR.UTF-8.in: Likewise.
15326 * localedata/cmn_TW.UTF-8.in: Likewise.
15327 * localedata/crh_UA.UTF-8.in: Likewise.
15328 * localedata/csb_PL.UTF-8.in: Likewise.
15329 * localedata/cv_RU.UTF-8.in: Likewise.
15330 * localedata/cy_GB.UTF-8.in: Likewise.
15331 * localedata/dz_BT.UTF-8.in: Likewise.
15332 * localedata/eo.UTF-8.in: Likewise.
15333 * localedata/es_ES.UTF-8.in: Likewise.
15334 * localedata/fa_IR.UTF-8.in: Likewise.
15335 * localedata/fi_FI.UTF-8.in: Likewise.
15336 * localedata/fil_PH.UTF-8.in: Likewise.
15337 * localedata/fur_IT.UTF-8.in: Likewise.
15338 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
15339 * localedata/ha_NG.UTF-8.in: Likewise.
15340 * localedata/ig_NG.UTF-8.in: Likewise.
15341 * localedata/ik_CA.UTF-8.in: Likewise.
15342 * localedata/kk_KZ.UTF-8.in: Likewise.
15343 * localedata/ku_TR.UTF-8.in: Likewise.
15344 * localedata/ky_KG.UTF-8.in: Likewise.
15345 * localedata/ln_CD.UTF-8.in: Likewise.
15346 * localedata/mi_NZ.UTF-8.in: Likewise.
15347 * localedata/ml_IN.UTF-8.in: Likewise.
15348 * localedata/mn_MN.UTF-8.in: Likewise.
15349 * localedata/mr_IN.UTF-8.in: Likewise.
15350 * localedata/mt_MT.UTF-8.in: Likewise.
15351 * localedata/nb_NO.UTF-8.in: Likewise.
15352 * localedata/om_KE.UTF-8.in: Likewise.
15353 * localedata/os_RU.UTF-8.in: Likewise.
15354 * localedata/ps_AF.UTF-8.in: Likewise.
15355 * localedata/ro_RO.UTF-8.in: Likewise.
15356 * localedata/ru_RU.UTF-8.in: Likewise.
15357 * localedata/sc_IT.UTF-8.in: Likewise.
15358 * localedata/se_NO.UTF-8.in: Likewise.
15359 * localedata/sq_AL.UTF-8.in: Likewise.
15360 * localedata/sv_SE.UTF-8.in: Likewise.
15361 * localedata/szl_PL.UTF-8.in: Likewise.
15362 * localedata/tg_TJ.UTF-8.in: Likewise.
15363 * localedata/tk_TM.UTF-8.in: Likewise.
15364 * localedata/tt_RU.UTF-8.in: Likewise.
15365 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
15366 * localedata/ug_CN.UTF-8.in: Likewise.
15367 * localedata/uz_UZ.UTF-8.in: Likewise.
15368 * localedata/vi_VN.UTF-8.in: Likewise.
15369 * localedata/yi_US.UTF-8.in: Likewise.
15370 * localedata/yo_NG.UTF-8.in: Likewise.
15371 * localedata/zh_CN.UTF-8.in: Likewise.
15372 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
15373 file and fix bugs in the collation.
15374 * localedata/locales/az_AZ: Likewise.
15375 * localedata/locales/be_BY: Likewise.
15376 * localedata/locales/ber_DZ: Likewise.
15377 * localedata/locales/ber_MA: Likewise.
15378 * localedata/locales/bg_BG: Likewise.
15379 * localedata/locales/br_FR: Likewise.
15380 * localedata/locales/br_FR@euro: Likewise.
15381 * localedata/locales/ca_ES: Likewise.
15382 * localedata/locales/cns11643_stroke: Likewise.
15383 * localedata/locales/crh_UA: Likewise.
15384 * localedata/locales/cs_CZ: Likewise.
15385 * localedata/locales/csb_PL: Likewise.
15386 * localedata/locales/cv_RU: Likewise.
15387 * localedata/locales/cy_GB: Likewise.
15388 * localedata/locales/da_DK: Likewise.
15389 * localedata/locales/dz_BT: Likewise.
15390 * localedata/locales/en_CA: Likewise.
15391 * localedata/locales/eo: Likewise.
15392 * localedata/locales/es_CU: Likewise.
15393 * localedata/locales/es_EC: Likewise.
15394 * localedata/locales/es_ES: Likewise.
15395 * localedata/locales/es_US: Likewise.
15396 * localedata/locales/et_EE: Likewise.
15397 * localedata/locales/fa_IR: Likewise.
15398 * localedata/locales/fi_FI: Likewise.
15399 * localedata/locales/fil_PH: Likewise.
15400 * localedata/locales/fur_IT: Likewise.
15401 * localedata/locales/gez_ER@abegede: Likewise.
15402 * localedata/locales/ha_NG: Likewise.
15403 * localedata/locales/hr_HR: Likewise.
15404 * localedata/locales/hsb_DE: Likewise.
15405 * localedata/locales/hu_HU: Likewise.
15406 * localedata/locales/ig_NG: Likewise.
15407 * localedata/locales/ik_CA: Likewise.
15408 * localedata/locales/is_IS: Likewise.
15409 * localedata/locales/iso14651_t1_pinyin: Likewise.
15410 * localedata/locales/kk_KZ: Likewise.
15411 * localedata/locales/ku_TR: Likewise.
15412 * localedata/locales/ky_KG: Likewise.
15413 * localedata/locales/ln_CD: Likewise.
15414 * localedata/locales/lt_LT: Likewise.
15415 * localedata/locales/lv_LV: Likewise.
15416 * localedata/locales/mi_NZ: Likewise.
15417 * localedata/locales/ml_IN: Likewise.
15418 * localedata/locales/mn_MN: Likewise.
15419 * localedata/locales/mr_IN: Likewise.
15420 * localedata/locales/mt_MT: Likewise.
15421 * localedata/locales/nb_NO: Likewise.
15422 * localedata/locales/om_KE: Likewise.
15423 * localedata/locales/os_RU: Likewise.
15424 * localedata/locales/pl_PL: Likewise.
15425 * localedata/locales/ps_AF: Likewise.
15426 * localedata/locales/ro_RO: Likewise.
15427 * localedata/locales/ru_RU: Likewise.
15428 * localedata/locales/ru_UA: Likewise.
15429 * localedata/locales/sc_IT: Likewise.
15430 * localedata/locales/se_NO: Likewise.
15431 * localedata/locales/si_LK: Likewise.
15432 * localedata/locales/sq_AL: Likewise.
15433 * localedata/locales/sv_FI: Likewise.
15434 * localedata/locales/sv_FI@euro: Likewise.
15435 * localedata/locales/sv_SE: Likewise.
15436 * localedata/locales/szl_PL: Likewise.
15437 * localedata/locales/tg_TJ: Likewise.
15438 * localedata/locales/ti_ER: Likewise.
15439 * localedata/locales/tk_TM: Likewise.
15440 * localedata/locales/tl_PH: Likewise.
15441 * localedata/locales/tr_TR: Likewise.
15442 * localedata/locales/tt_RU: Likewise.
15443 * localedata/locales/tt_RU@iqtelif: Likewise.
15444 * localedata/locales/ug_CN: Likewise.
15445 * localedata/locales/uk_UA: Likewise.
15446 * localedata/locales/uz_UZ: Likewise.
15447 * localedata/locales/uz_UZ@cyrillic: Likewise.
15448 * localedata/locales/vi_VN: Likewise.
15449 * localedata/locales/yi_US: Likewise.
15450 * localedata/locales/yo_NG: Likewise.
15451
15452 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15453
15454 * gen-locales.mk: Make test files which contain @ modifiers in their
15455 name work.
15456 * localedata/gen-locale.sh: Likewise.
15457
15458 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15459
15460 * posix/tst-fnmatch.input: Fix results for range expressions
15461 for non C locales.
15462 * posix/tst-regexloc.c: Do not use a range expression for
15463 de_DE.ISO-8859-1 locale.
15464
15465 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15466
15467 * posix/bug-regex5.c: Fix test case because with the new
15468 iso14651_t1_common file, the da_DK locale now has 6 collating elements
15469 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
15470 file.
15471
15472 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15473
15474 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
15475 downloaded from ISO, the collation order of @-. and space has changed.
15476 Therefore, this test file needed to be adapted.
15477 * localedata/fr_CA.UTF-8.in: Likewise.
15478 * localedata/fr_FR.UTF-8.in: Likewise.
15479 * localedata/uk_UA.UTF-8.in: Likewise.
15480
15481 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15482
15483 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
15484 order of ȥ in the new iso14651_t1_common file.
15485 * localedata/pl_PL.UTF-8.in: Likewise.
15486
15487 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15488
15489 * localedata/locales/iso14651_t1_common: Add sections for various
15490 scripts to the iso14651_t1_common file.
15491
15492 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15493
15494 * localedata/locales/iso14651_t1_common: Use the code point of a
15495 character in the fourth collation level instead of IGNORE for all
15496 entries which have IGNORE on all 4 levels.
15497
15498 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15499
15500 * localedata/locales/iso14651_t1_common: Add some convenient collation
15501 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
15502 rules similar to those in CLDR.
15503
15504 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15505
15506 * localedata/locales/iso14651_t1_common: The new version of this
15507 file downloaded from ISO contained several syntax errors which
15508 are fixed by this patch.
15509
15510 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15511
15512 * localedata/locales/iso14651_t1_common: replace all <U.....>
15513 with <U000.....> because glibc understands only 4 digit or 8 digit
15514
15515 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15516
15517 * localedata/locales/iso14651_t1_common: Necessary changes
15518 to make the file downloaded from ISO usable by glibc.
15519
15520 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15521
15522 [BZ #14095]
15523 * localedata/locales/iso14651_t1_common: Update file to
15524 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
15525
15526 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15527
15528 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
15529 of <nptl/pthreadP.h>
15530 (thread_attr_compare): Move function to...
15531 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
15532 * sysdeps/nptl/timer_routines.h: ... new header.
15533 * sysdeps/mach/hurd/gai_misc.h: New file.
15534
15535 2018-02-26 Joseph Myers <joseph@codesourcery.com>
15536
15537 * string/strcoll_l.c: Include <libc-diag.h>.
15538 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
15539 declarations of seq1 and seq2.
15540
15541 [BZ #15105]
15542 * stdlib/atoi.c (atoi): Use libc_hidden_def.
15543 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
15544
15545 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
15546
15547 [BZ #22433]
15548 [BZ #22807]
15549 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
15550 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
15551 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
15552 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
15553 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
15554 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
15555
15556 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15557
15558 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
15559 macros used in __ptrace_request.
15560
15561 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
15562
15563 [BZ #22792]
15564 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
15565 to $(CC).
15566 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
15567 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
15568 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
15569 <tcb-offsets.h>.
15570
15571 2018-02-23 Joseph Myers <joseph@codesourcery.com>
15572
15573 [BZ #15105]
15574 * ctype/ctype.c (tolower): Use libc_hidden_def.
15575 (toupper): Likewise.
15576 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
15577 [!_ISOMAC] (toupper): Likewise.
15578
15579 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15580
15581 * localedata/Makefile: Remove --quiet argument when
15582 installing locales
15583
15584 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15585
15586 [BZ #17438]
15587 * localedata/locales/pt_BR (LC_TIME): use / instead of -
15588 in d_fmt.
15589 * localedata/locales/pt_PT (LC_TIME): likewise
15590
15591 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15592
15593 [BZ #22646]
15594 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
15595 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
15596 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
15597
15598 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15599
15600 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15601
15602 * nptl/Makefile (routines): Remove unregister-atfork.
15603 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
15604 (fork_handler_alloc): Remove function.
15605 (fork_handlers, fork_handler_init): New variables.
15606 (__fork_lock): Rename to atfork_lock.
15607 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
15608 to use a dynamic array to add/remove atfork handlers.
15609 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15610 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
15611 Remove declaration.
15612 (fork_handler): Remove next, refcntr, and need_signal member.
15613 (__run_fork_handler_type): New enum.
15614 (__run_fork_handlers): New prototype.
15615 * nptl/register-atfork.c: Remove file.
15616 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
15617
15618 * sysdeps/nptl/nptl-signals.h: Move to ...
15619 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
15620 comments.
15621 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
15622 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
15623 unnecessary check for SIGTIMER.
15624 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
15625 remove unnecessary removal of SIGTIMER.
15626 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
15627 include-signals.h rename.
15628 * nptl/pthreadP.h: Likewise.
15629 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
15630 __is_internal_signal instead of __nptl_is_internal_signal.
15631
15632 2018-02-22 Andrew Waterman <andrew@sifive.com>
15633
15634 [BZ # 22884]
15635 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
15636 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
15637 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
15638 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
15639
15640 2018-02-22 DJ Delorie <dj@delorie.com>
15641
15642 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
15643
15644 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
15645
15646 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
15647 do_misaligned, not misaligned8.
15648
15649 2018-02-22 Steve Ellcey <sellcey@cavium.com>
15650
15651 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
15652 Add memcpy_thunderx2.
15653 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
15654 Increment to 4.
15655 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
15656 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
15657 and IS_THUNDERX2PA checks.
15658 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
15659 Use macro to set name appropriately.
15660 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
15661 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
15662 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
15663 New macro.
15664 (IS_THUNDERX2): New macro.
15665
15666 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
15667
15668 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15669
15670 2018-02-21 Zack Weinberg <zackw@panix.com>
15671
15672 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
15673 Define here, unconditionally.
15674 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
15675 * libio/libioP.h: Remove #if 0 blocks.
15676 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
15677 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
15678 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
15679
15680 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
15681 Assume weak_alias is always defined.
15682
15683 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
15684 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
15685 Remove #if 0 and #ifdef TODO blocks.
15686 Assume text_set_element is always defined.
15687
15688 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
15689 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
15690 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
15691
15692 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
15693 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
15694 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
15695 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
15696 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
15697 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
15698 Reformat bit flags for _flags field to make occupancy clearer.
15699 Update commentary.
15700 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
15701 Keep definitions consistent with those in libio/libio.h.
15702
15703 * libio/libio.h (_IO_file_flags): Remove macro.
15704 All uses changed to _flags.
15705
15706 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
15707 (__HAVE_COLUMN, _IO_BE): Don't define.
15708 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
15709 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
15710 * libio/libioP.h (EOF): Don't define.
15711 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
15712 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
15713 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
15714 testing _IO_UNIFIED_JUMPTABLES.
15715
15716 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
15717 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
15718 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
15719 (_IO_size_t): Delete; all uses changed to size_t.
15720 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
15721 (_IO_off_t): Delete; all uses changed to off_t.
15722 (_IO_off64_t): Delete; all uses changed to off64_t.
15723 (_IO_pid_t): Delete; all uses changed to pid_t.
15724 (_IO_uid_t): Delete; all uses changed to uid_t.
15725 (_IO_wint_t): Delete; all uses changed to wint_t.
15726 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
15727 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
15728 (_IO_cookie_io_functions_t): Delete; all uses changed to
15729 cookie_io_functions_t.
15730 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
15731 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
15732 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
15733 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
15734
15735 * libio/iofopncook.c: Remove unnecessary forward declarations.
15736 * libio/iolibio.h: Correct outdated commentary.
15737 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
15738 * stdio-common/fxprintf.c (__fxprintf_nocancel):
15739 Remove unnecessary casts.
15740 * stdio-common/getline.c: Use _IO_getdelim directly.
15741 Don't redefine ssize_t.
15742 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
15743 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
15744 Remove outdated comments.
15745 * stdio-common/vfscanf.c: Don't redefine va_list.
15746
15747 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
15748 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
15749 Remove preprocessor conditionals on _LIBC and __USE_GNU,
15750 which are always true, and __cplusplus, which is always false.
15751
15752 2018-02-21 Joseph Myers <joseph@codesourcery.com>
15753
15754 [BZ #15105]
15755 [BZ #19463]
15756 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
15757 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
15758 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
15759 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
15760 libc_hidden_proto.
15761 [!_ISOMAC] (putc_unlocked): Likewise.
15762 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
15763 define inline if [__USE_EXTERN_INLINES].
15764 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
15765 putc_unlocked.
15766
15767 [BZ #15105]
15768 [BZ #19463]
15769 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
15770 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
15771 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
15772 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
15773 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
15774 getc_unlocked.
15775 * time/tzfile.c (__tzfile_read): Likewise.
15776
15777 2018-02-21 Mike FABIAN <mfabian@redhat.com>
15778
15779 [BZ #22517]
15780 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
15781
15782 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15783
15784 * io/fcntl.h: Fix a typo in a comment.
15785
15786 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15787
15788 [BZ #22862]
15789 * include/features.h: Add _ISOC11_SOURCE to test for whether to
15790 define _DEFAULT_SOURCE.
15791 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
15792
15793 2018-02-21 Florian Weimer <fweimer@redhat.com>
15794
15795 [BZ #20890]
15796 * elf/cache.c (save_cache): Call fsync on temporary file before
15797 renaming it.
15798 (save_aux_cache): Call fdatasync on temporary file before renaming
15799 it.
15800
15801 2018-02-21 Florian Weimer <fweimer@redhat.com>
15802
15803 [BZ #22787]
15804 * include/caller.h: Remove file.
15805 * elf/dl-caller.c: Likewise.
15806 * elf/Makefile (dl-routines): Remove dl-caller.
15807 (shared-only-routines): Do not add dl-caller.
15808 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
15809 __check_caller.
15810 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
15811 member.
15812 (dl_open_worker): Do not call __check_caller.
15813 (_dl_open): Do not set caller_dl_open member.
15814 * elf/rtld.c (_rtld_global_ro): Do not initialize
15815 _dl_check_caller member.
15816 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
15817 _dl_check_caller member.
15818 (_dl_check_caller): Remove declaration.
15819 * sysdeps/unix/sysv/linux/dl-execstack.c
15820 (_dl_make_stack_executable): Do not call __check_caller.
15821
15822 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
15823
15824 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
15825 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
15826
15827 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15828
15829 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
15830 description.
15831
15832 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15833
15834 [BZ #16335]
15835 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
15836 of 199606L, 200112L, and 200809L.
15837 (_XOPEN_SOURCE): Document special values of 600 and 700.
15838 (_ISOC11_SOURCE): Document macro.
15839 (_ATFILE_SOURCE): Likewise.
15840 (_FORTIFY_SOURCE): Likewise.
15841
15842 2018-02-19 Joseph Myers <joseph@codesourcery.com>
15843
15844 [BZ #15105]
15845 [BZ #19463]
15846 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
15847 and define as weak alias of __ferror_unlocked. Use
15848 libc_hidden_weak.
15849 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
15850 libc_hidden_proto.
15851 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
15852 function if [__USE_EXTERN_INLINES].
15853 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
15854 ferror_unlocked.
15855
15856 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
15857
15858 [BZ #6889]
15859 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
15860
15861 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15862
15863 [BZ #22818]
15864 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
15865 the GLIBC_2.1 version.
15866
15867 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15868
15869 [BZ #21508]
15870 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
15871 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
15872 intl/tst-gettext-de.po from po/de.po by removing the
15873 POT-Creation-Date line.
15874 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
15875 ../po/de.po.
15876 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
15877 ../po/de.po.
15878
15879 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
15880
15881 * mach/Makefile (headers): Add mach/param.h.
15882 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
15883 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
15884 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
15885 (__ptsname_r): Move implementation to...
15886 (__ptsname_internal): ... new function. Add filling the STP
15887 structure.
15888
15889 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
15890
15891 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
15892 idouble to 1 ULP.
15893
15894 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
15895
15896 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
15897 syntax.
15898
15899 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
15900
15901 * nptl/Makefile (tst-mutex8-ENV): Delete.
15902 * nptl/tst-mutex8.c (check_type):
15903 Add runtime check if mutex will be elided.
15904
15905 2018-02-15 Joseph Myers <joseph@codesourcery.com>
15906
15907 [BZ #20980]
15908 [BZ #21234]
15909 * manual/install.texi (Configuring and compiling): Describe
15910 passing CC and CFLAGS on configure command line, not as
15911 environment variables. Use @code markup on those variables.
15912 Specify what options go in CC and what go in CFLAGS. Note the
15913 requirement to compile with optimization.
15914 * INSTALL: Regenerated.
15915
15916 [BZ #18124]
15917 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
15918 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
15919 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
15920 __sigprocmask instead of sigprocmask.
15921 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
15922 Likewise.
15923 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
15924 __sigsetjmp and sigprocmask.
15925
15926 [BZ #15105]
15927 * include/argz.h (argz_next): Use libc_hidden_proto.
15928 (__argz_next): Likewise.
15929 * string-argz-next.c (__argz_next): Use libc_hidden_def.
15930 (argz_next): Use libc_hidden_weak.
15931
15932 [BZ #15105]
15933 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
15934 libc_hidden_proto.
15935 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
15936 libc_hidden_def.
15937
15938 [BZ #15105]
15939 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
15940 libc_hidden_proto.
15941 * libio/iofputs.c (fputs): Use libc_hidden_weak.
15942
15943 [BZ #15105]
15944 [BZ #19463]
15945 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
15946 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
15947 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
15948 (__feof_unlocked): New declaration, and inline function if
15949 [__USE_EXTERN_INLINES].
15950 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15951 instead of feof_unlocked.
15952 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15953 * nss/nsswitch.c (nss_parse_file): Likewise.
15954 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15955 Likewise.
15956 * time/getdate.c (__getdate_r): Likewise.
15957 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15958 Define as macro to call __feof_unlocked.
15959
15960 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15961
15962 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15963
15964 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15965
15966 * math/Makefile: Remove mpexp.c and mplog.c
15967 * sysdeps/i386/fpu/mpexp.c: Delete file.
15968 * sysdeps/i386/fpu/mplog.c: Likewise.
15969 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15970 * sysdeps/ia64/fpu/mplog.c: Likewise.
15971 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
15972 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
15973 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
15974 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15975 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
15976 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
15977 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
15978 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
15979 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15980 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15981 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
15982 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15983 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15984 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
15985 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15986 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15987
15988 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
15989
15990 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15991
15992 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15993
15994 * sysdeps/sh/libm-test-ulps: Update.
15995
15996 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15997
15998 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15999 idouble to 1 ULP.
16000
16001 2018-02-12 Zack Weinberg <zackw@panix.com>
16002
16003 [BZ #19239]
16004 * posix/sys/types.h: Don't include sys/sysmacros.h.
16005 * misc/sys/sysmacros.h: Remove the conditional deprecation
16006 warnings for the macros defined by this header.
16007
16008 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16009
16010 * manual/probes.texi: Remove slowexp probes.
16011 * math/Makefile: Remove slowexp.
16012 * sysdeps/generic/math_private.h (__slowexp): Remove.
16013 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
16014 document error bounds.
16015 * sysdeps/i386/fpu/slowexp.c: Remove.
16016 * sysdeps/ia64/fpu/slowexp.c: Remove.
16017 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
16018 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
16019 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
16020 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
16021 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
16022 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
16023 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
16024 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
16025 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
16026 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
16027 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
16028
16029 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
16030
16031 [BZ #13932]
16032 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
16033 * benchtests/pow-inputs: Update comment for slow path cases.
16034 * manual/probes.texi (slowpow_p10): Delete removed probe.
16035 (slowpow_p10): Likewise.
16036 * math/Makefile: Remove halfulp.c and slowpow.c.
16037 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
16038 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
16039 (__halfulp): Remove.
16040 (__slowpow): Remove.
16041 * sysdeps/i386/fpu/halfulp.c: Delete file.
16042 * sysdeps/i386/fpu/slowpow.c: Likewise.
16043 * sysdeps/ia64/fpu/halfulp.c: Likewise.
16044 * sysdeps/ia64/fpu/slowpow.c: Likewise.
16045 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
16046 improve comments and add error analysis.
16047 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
16048 (power1): Remove function:
16049 (log1): Remove error argument, add error analysis.
16050 (my_log2): Remove function.
16051 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
16052 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16053 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
16054 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
16055 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
16056 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
16057 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
16058 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
16059 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
16060 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
16061 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
16062 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
16063 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
16064 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
16065
16066 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
16067
16068 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
16069 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
16070
16071 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
16072
16073 [BZ #22433]
16074 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
16075 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
16076 and PTRACE_SETHBPREGS.
16077
16078 2018-02-10 Zack Weinberg <zackw@panix.com>
16079
16080 [BZ #22830]
16081 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
16082 correctly.
16083 * malloc/tst-malloc-stats-cancellation.c: New test case.
16084 * malloc/Makefile: Add new test case.
16085
16086 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
16087
16088 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
16089
16090 2018-02-10 Joseph Myers <joseph@codesourcery.com>
16091
16092 * math/Makefile (libm-narrow-fns): Add add.
16093 (libm-test-funcs-narrow): Likewise.
16094 * math/Versions (GLIBC_2.28): Add narrowing add functions.
16095 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
16096 * math/gen-auto-libm-tests.c (test_functions): Add add.
16097 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
16098 (NARROW_ADD_ROUND_TO_ODD): Likewise.
16099 (NARROW_ADD_TRIVIAL): Likewise.
16100 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
16101 macro.
16102 (__daddl): Likewise.
16103 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
16104 dadd.
16105 (CFLAGS-nldbl-dadd.c): New variable.
16106 (CFLAGS-nldbl-fadd.c): Likewise.
16107 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16108 __nldbl_daddl.
16109 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
16110 prototype.
16111 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
16112 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
16113 * math/auto-libm-test-in: Add tests of add.
16114 * math/auto-libm-test-out-narrow-add: New generated file.
16115 * math/libm-test-narrow-add.inc: New file.
16116 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
16117 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
16118 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
16119 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
16120 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
16121 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
16122 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
16123 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
16124 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
16125 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
16126 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
16127 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
16128 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
16129 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
16130 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
16131 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
16132 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
16133 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
16134 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16135 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16136 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16137 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16138 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16139 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16140 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16141 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16142 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16143 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16144 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16145 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16146 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16147 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16148 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16149 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16150 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16151 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16152 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16153 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16154 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16155 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16156 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16157 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16158 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16159 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16160 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16161 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16162
16163 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
16164 (f128-pairs): New variable.
16165 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
16166 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
16167 to CFLAGS.
16168 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
16169 Also make tests add $(f128-loader-link) to gnulib-tests.
16170
16171 2018-02-09 DJ Delorie <dj@redhat.com>
16172
16173 [BZ #22827]
16174 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
16175 64-bit ELF type for 64-bit ELF objects.
16176
16177 2018-02-09 Joseph Myers <joseph@codesourcery.com>
16178
16179 * math/libm-test-driver.c (snan_tests_arg): New variable.
16180 * math/libm-test-support.h (snan_tests_arg): New declaration.
16181 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
16182
16183 * math/Makefile (test-type-pairs): New variable.
16184 (test-type-pairs-f64xf128-yes): Likewise.
16185 (tests): Add test-narrow-macros.
16186 (libm-test-funcs-narrow): New variable.
16187 (libm-test-c-narrow): Likewise.
16188 (generated): Add $(libm-test-c-narrow).
16189 (libm-tests-base-narrow): New variable.
16190 (libm-tests-narrow): Likewise.
16191 (libm-tests): Add $(libm-tests-narrow).
16192 (libm-tests-for-type): Handle $(libm-tests-narrow).
16193 (libm-test-c-narrow-obj): New variable.
16194 ($(libm-test-c-narrow-obj)): New rule.
16195 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
16196 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
16197 $(o-iterator) to set dependencies and CFLAGS.
16198 * math/gen-auto-libm-tests.c: Document use for narrowing
16199 functions.
16200 (output_for_one_input_case): Take argument NARROW.
16201 (generate_output): Likewise. Update call to
16202 output_for_one_input_case.
16203 (main): Take --narrow option. Update call to generate_output.
16204 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
16205 (apply_lit): Update call to _apply_lit.
16206 (apply_arglit): New function.
16207 (parse_args): Handle "a" arguments.
16208 (parse_auto_input): Handle format names using ":".
16209 * math/README.libm-test: Document "a" parameter type.
16210 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
16211 (ARG_TYPE_TRUE_MIN): Likewise.
16212 (ARG_TYPE_MAX): Likwise.
16213 (ARG_MIN_EXP): Likewise.
16214 (ARG_MAX_EXP): Likewise.
16215 (ARG_MANT_DIG): Likewise.
16216 (TEST_COND_arg_ibm128): Likewise.
16217 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
16218 (TEST_COND_arg_fmt): New macro.
16219 (init_max_error): Update prototype.
16220 * math/libm-test-support.c (test_ibm128): New variable.
16221 (init_max_error): Take argument testing_ibm128 and set test_ibm128
16222 instead of using [TEST_COND_ibm128] conditional.
16223 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
16224 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
16225 [TEST_NARROW] (TEST_MSG): New definition.
16226 (arg_plus_zero): New macro.
16227 (arg_minus_zero): Likewise.
16228 (arg_plus_infty): Likewise.
16229 (arg_minus_infty): Likewise.
16230 (arg_qnan_value_pl): Likewise.
16231 (arg_qnan_value): Likewise.
16232 (arg_snan_value_pl): Likewise.
16233 (arg_snan_value): Likewise.
16234 (arg_max_value): Likewise.
16235 (arg_min_value): Likewise.
16236 (arg_min_subnorm_value): Likewise.
16237 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
16238 (RUN_TEST_LOOP_aa_f): New macro.
16239 (TEST_SUFF): New macro.
16240 (TEST_SUFF_STR): Likewise.
16241 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
16242 (TEST_COND_any_ibm128): New macro.
16243 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
16244 this_func. Update call to init_max_error.
16245 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
16246 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
16247 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
16248 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
16249 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
16250 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
16251 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
16252 * math/test-math-scalar.h (TEST_NARROW): Likewise.
16253 * math/test-math-vector.h (TEST_NARROW): Likewise.
16254 * math/test-arg-double.h: New file.
16255 * math/test-arg-float128.h: Likewise.
16256 * math/test-arg-float32x.h: Likewise.
16257 * math/test-arg-float64.h: Likewise.
16258 * math/test-arg-float64x.h: Likewise.
16259 * math/test-arg-ldouble.h: Likewise.
16260 * math/test-math-narrow.h: Likewise.
16261 * math/test-narrow-macros.c: Likewise.
16262 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
16263 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
16264 test-narrow-macros-ldbl-64.
16265 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
16266
16267 * math/bits/mathcalls-narrow.h: New file.
16268 * include/bits/mathcalls-narrow.h: Likewise.
16269 * math/math-narrow.h: Likewise.
16270 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
16271 (__MATHCALL_NARROW_ARGS_2): Likewise.
16272 (__MATHCALL_NARROW_ARGS_3): Likewise.
16273 (__MATHCALL_NARROW_NORMAL): Likewise.
16274 (__MATHCALL_NARROW_REDIR): Likewise.
16275 (__MATHCALL_NARROW): Likewise.
16276 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
16277 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
16278 defined.
16279 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16280 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
16281 (libm-narrow-fns): New variable.
16282 (libm-narrow-types-basic): Likewise.
16283 (libm-narrow-types-ldouble-yes): Likewise.
16284 (libm-narrow-types-float128-yes): Likewise.
16285 (libm-narrow-types-float128-alias-yes): Likewise.
16286 (libm-narrow-types): Likewise.
16287 (libm-routines): Add narrowing functions.
16288 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
16289 (libc_feholdexcept_setroundf128): New macro.
16290 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
16291 * sysdeps/ieee754/float128/float128_private.h: Include
16292 <math/math-narrow.h>.
16293 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
16294 Undefine and redefine.
16295 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
16296 (libm_alias_float_ldouble): Undefine and redefine.
16297 (libm_alias_double_ldouble): Likewise.
16298
16299 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
16300
16301 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
16302
16303 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
16304 FPCR/FPSR.
16305
16306 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
16307
16308 * manual/creature.texi: Convert references to gcc.info to gcc.
16309 * manual/stdio.texi: Likewise.
16310 * manual/string.texi: Likewise.
16311
16312 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16313
16314 [BZ #17979]
16315 * posix/bits/types.h (__int_least8_t): New typedef.
16316 (__uint_least8_t): Likewise.
16317 (__int_least16_t): Likewise.
16318 (__uint_least16_t): Likewise.
16319 (__int_least32_t): Likewise.
16320 (__uint_least32_t): Likewise.
16321 (__int_least64_t): Likewise.
16322 (__uint_least64_t): Likewise.
16323 * sysdeps/generic/stdint.h (int_least8_t): Define using
16324 __int_least8_t.
16325 (int_least16_t): Define using __int_least16_t.
16326 (int_least32_t): Define using __int_least32_t.
16327 (int_least64_t): Define using __int_least64_t.
16328 (uint_least8_t): Define using __uint_least8_t.
16329 (uint_least16_t): Define using __uint_least16_t.
16330 (uint_least32_t): Define using __uint_least32_t.
16331 (uint_least64_t): Define using __uint_least64_t.
16332 * wcsmbs/uchar.h: Include <bits/types.h>.
16333 (char16_t): Define using __uint_least16_t conditional only on
16334 [!__USE_ISOCXX11].
16335 (char32_t): Define using __uint_least32_t conditional only on
16336 [!__USE_ISOCXX11].
16337 * wcsmbs/test-char-types.c: New file.
16338 * wcsmbs/Makefile (tests): Add test-char-types.
16339
16340 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
16341 version to 4.0.1.
16342
16343 2018-02-07 Zack Weinberg <zackw@panix.com>
16344
16345 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
16346 Delete all contents except for definitions of _G_HAVE_MMAP and
16347 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
16348 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
16349 sysdeps/unix/sysv/linux/_G_config.h. Make same content
16350 change as above.
16351
16352 * libio/libio.h: Don't include bits/_G_config.h here.
16353 Include stddef.h with __need_wchar_t defined. Include
16354 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
16355 Define _IO_iconv_t here, directly.
16356 Don't define _IO_HAVE_ST_BLKSIZE.
16357 * libio/libioP.h: Include _G_config.h here. Move include of
16358 shlib-compat.h up with rest of includes. Simplify conditionals
16359 controlling definition of _IO_JUMPS_OFFSET.
16360
16361 * csu/init.c: Remove always-true #if around entire file.
16362 Don't include stdio.h. Set _IO_stdin_used to hardwired
16363 constant 0x20001, and update commentary.
16364 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
16365 Replace all uses of _G_va_list with __gnuc_va_list.
16366 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
16367 instead of #if _IO_HAVE_ST_BLKSIZE.
16368 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
16369 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
16370 not #ifdef.
16371
16372 * libio/bits/libio.h: Move back to libio/libio.h and adjust
16373 multiple-include guard to match.
16374 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
16375 into this file.
16376 Remove preprocessor conditionals that are always true and/or
16377 redundant to other preprocessor conditionals in the same nest.
16378 Include shlib-compat.h unconditionally.
16379 Error out if _LIBC is not defined, or if _ISOMAC is defined,
16380 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
16381 defined after including stdio.h.
16382 Use __BEGIN_DECLS/__END_DECLS.
16383
16384 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
16385 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
16386 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
16387
16388 2018-02-07 Zack Weinberg <zackw@panix.com>
16389
16390 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
16391 New single-type headers split from _G_config.h.
16392 * libio/bits/types/cookie_io_functions_t.h
16393 * libio/bits/types/struct_FILE.h
16394 New single-type headers split from libio.h.
16395
16396 * libio/Makefile: Install the above new headers. Don't install
16397 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
16398 bits/libio-ldbl.h.
16399 * libio/_G_config.h, libio/libio.h: Delete file.
16400
16401 * libio/bits/libio.h: Remove improper-inclusion guard.
16402 Include stdio.h and don't repeat anything that it does.
16403 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
16404 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
16405 __io_read_fn as cookie_read_function_t,
16406 __io_write_fn as cookie_write_function_t,
16407 __io_seek_fn as cookie_seek_function_t,
16408 __io_close_fn as cookie_close_function_t,
16409 and _IO_cookie_io_functions_t as cookie_io_functions_t.
16410 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
16411 here, in the "compatibility defines" section. Remove an #if 0
16412 block. Use the "body" macros from bits/types/struct_FILE.h to
16413 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
16414 and _IO_ferror_unlocked.
16415 Move prototypes of __uflow and __overflow...
16416
16417 * libio/stdio.h: ...here. Don't include bits/libio.h.
16418 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
16419 directly from stdarg.h. Include bits/types/__fpos_t.h,
16420 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
16421 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
16422 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
16423 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
16424 cookie_io_functions_t, not _IO_cookie_io_functions_t;
16425 __ssize_t, not _IO_ssize_t. Unconditionally define
16426 BUFSIZ as 8192 and EOF as (-1).
16427
16428 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
16429 macros from bits/types/struct_FILE.h instead of _IO_* macros
16430 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
16431 instead of _IO_ssize_t.
16432 * libio/bits/stdio2.h: Similarly.
16433
16434 * libio/iolibio.h: Add multiple-include guard.
16435 Include bits/libio.h after stdio.h.
16436 * libio/libioP.h: Add multiple-include guard.
16437 Include stdio.h and bits/libio.h before iolibio.h.
16438
16439 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
16440 * include/bits/types/cookie_io_functions_t.h
16441 * include/bits/types/struct_FILE.h: New wrappers.
16442
16443 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
16444 Get definitions of _G_fpos_t and _G_fpos64_t from
16445 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
16446 respectively. Remove improper-inclusion guards.
16447
16448 * conform/data/stdio.h-data: Update expectations of va_list.
16449 * scripts/check-installed-headers.sh: Remove special case for
16450 libio.h and _G_config.h.
16451
16452 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16453
16454 [BZ #15105]
16455 [BZ #19463]
16456 * include/sys/sysmacros.h [!_ISOMAC]
16457 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
16458 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
16459 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
16460 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
16461 libc_hidden_proto.
16462 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
16463 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
16464 Likewise.
16465 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
16466 Undefine and redefine to add use __gnu_dev_ prefix.
16467 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
16468 Likewise.
16469 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
16470 and define as hidden inline function.
16471 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
16472 Likewise.
16473 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
16474 Likewise.
16475 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
16476 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
16477 (gnu_dev_minor): Likewise.
16478 (gnu_dev_makedev): Likewise.
16479 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
16480 makedev.
16481 * posix/wordexp.c (exec_comm_child): Likewise.
16482 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
16483 instead of minor and __gnu_dev_major instead of major.
16484 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
16485 __gnu_dev_major instead of major.
16486 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
16487 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
16488 instead of gnu_dev_minor.
16489 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
16490 (SLAVE_P): Likewise.
16491 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
16492 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
16493 instead of major.
16494
16495 [BZ #21313]
16496 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
16497 in another place.
16498 * locale/weightwc.h (findidx): Likewise.
16499
16500 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
16501
16502 * manual/probes.texi (slowlog): Delete documentation of removed probe.
16503 (slowlog_inexact): Likewise
16504 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
16505 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
16506
16507 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
16508
16509 [BZ #22797]
16510 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
16511 missing second underscore to parameter name.
16512
16513 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16514
16515 [BZ #14508]
16516 [BZ #15512]
16517 [BZ #17082]
16518 [BZ #20530]
16519 * bits/byteswap.h: Update file comment. Do not include
16520 <bits/byteswap-16.h>.
16521 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
16522 constant.
16523 (__bswap_16): Define as inline function.
16524 (__bswap_constant_32): Reformat definition.
16525 (__bswap_32): Always define as inline function, not macro, using
16526 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
16527 otherwise __bswap_constant_32.
16528 (__bswap_constant_64): Reformat definition. Do not use
16529 __extension__ here.
16530 (__bswap_64): Always define as inline function, not macro. Use
16531 __extension__ on function definition. Use __builtin_bswap64 if
16532 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
16533 * string/test-endian-file-scope.c: New file.
16534 * string/test-endian-sign-conversion.c: Likewise.
16535 * string/Makefile (headers): Remove bits/byteswap-16.h.
16536 (tests): Add test-endian-file-scope and
16537 test-endian-sign-conversion.
16538 (CFLAGS-test-endian-sign-conversion.c): New variable.
16539 * bits/byteswap-16.h: Remove file.
16540 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
16541 * sysdeps/ia64/bits/byteswap.h: Likewise.
16542 * sysdeps/m68k/bits/byteswap.h: Likewise.
16543 * sysdeps/s390/bits/byteswap-16.h: Likewise.
16544 * sysdeps/s390/bits/byteswap.h: Likewise.
16545 * sysdeps/tile/bits/byteswap.h: Likewise.
16546 * sysdeps/x86/bits/byteswap-16.h: Likewise.
16547 * sysdeps/x86/bits/byteswap.h: Likewise.
16548
16549 [BZ #17721]
16550 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
16551 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
16552 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
16553 199901L] (__restrict): Define to restrict.
16554
16555 [BZ #19667]
16556 * string/testcopy.c: Include <support/support.h>. Do not include
16557 <malloc.h>. Use <support/test-driver.c>.
16558 (main): Rename to do_test. Make static. Use xmalloc instead of
16559 malloc.
16560
16561 [BZ #13575]
16562 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
16563 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
16564 (SSIZE_MAX): Define to INT_MAX.
16565 * posix/test-ssize-max.c: New file.
16566 * posix/Makefile (tests): Add test-ssize-max.
16567
16568 [BZ #19668]
16569 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
16570 <support/support.h>. Do not include <malloc.h>.
16571 (query_auxv): Use xmalloc instead of malloc.
16572
16573 [BZ #14553]
16574 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
16575 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
16576 instead of loff_t.
16577
16578 2018-02-06 Florian Weimer <fweimer@redhat.com>
16579
16580 [BZ #18023]
16581 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16582 Use scratch_buffer instead of extend_alloca.
16583
16584 2018-02-06 Zack Weinberg <zackw@panix.com>
16585
16586 * libio/stdio.h: Don't define getc or putc as macros.
16587 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
16588 not _IO_getc and _IO_putc.
16589
16590 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
16591 * stdio-common/tstgetln.c: Don't redefine ssize_t.
16592
16593 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16594
16595 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
16596 (TCP_FASTOPEN_NO_COOKIE): Likewise.
16597
16598 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
16599
16600 [BZ #14890]
16601 * elf/elf.h (NT_PRFPREG): New macro.
16602 (NT_S390_VXRS_LOW): Likewise.
16603 (NT_S390_VXRS_HIGH): Likewise.
16604 (NT_S390_GS_CB): Likewise.
16605 (NT_S390_GS_BC): Likewise.
16606 (NT_S390_RI_CB): Likewise.
16607
16608 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16609 (MAP_SYNC): New macro.
16610 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
16611 Likewise.
16612 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16613 (MAP_SYNC): Likewise.
16614 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16615 (MAP_SYNC): Likewise.
16616 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16617 (MAP_SYNC): Likewise.
16618 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16619 (MAP_SYNC): Likewise.
16620 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16621 (MAP_SYNC): Likewise.
16622 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16623 (MAP_SYNC): Likewise.
16624 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
16625 Likewise.
16626 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
16627 Likewise.
16628
16629 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
16630 (MAP_SHARED_VALIDATE): New macro.
16631 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16632 (MAP_SHARED_VALIDATE): Likewise.
16633
16634 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16635
16636 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
16637 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
16638 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
16639
16640 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16641
16642 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
16643 (DT_NUM): Updated to 35.
16644
16645 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16646
16647 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
16648 __builtin_expect with __glibc_likely and __glibc_unlikely.
16649 (elf_machine_rela): Likewise.
16650 (elf_machine_lazy_rel): Likewise.
16651
16652 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16653
16654 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
16655 __builtin_expect with __glibc_likely and __glibc_unlikely.
16656 (elf_machine_lazy_rel): Likewise.
16657
16658 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16659
16660 [BZ #22638]
16661 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
16662 SHARED.
16663 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
16664
16665 2018-02-05 Andreas Schwab <schwab@suse.de>
16666
16667 [BZ #22761]
16668 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
16669 string.
16670
16671 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
16672
16673 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
16674 not check against PTHREAD_STACK_MIN.
16675
16676 2018-02-02 Sean McKean <smckean83@gmail.com>
16677
16678 [BZ #22735]
16679 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
16680
16681 2018-02-02 Florian Weimer <fweimer@redhat.com>
16682
16683 [BZ #22753]
16684 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
16685 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
16686 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
16687 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
16688 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
16689 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
16690 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
16691 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
16692 * manual/llio.texi (Scatter-Gather): Mention offset -1.
16693 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
16694 * misc/tst-preadvwritev2.c (do_test): Call it.
16695 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
16696
16697 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
16698
16699 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
16700
16701 * benchtests/bench-memcmp.c: Print json instead of plain text.
16702
16703 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
16704 every test run.
16705
16706 2018-02-01 Joseph Myers <joseph@codesourcery.com>
16707
16708 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16709 version to 4.15.
16710 (s390_sthyi): New syscall.
16711
16712 * sysdeps/generic/ldbl-classify-compat.h: New file.
16713 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
16714 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
16715 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
16716 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
16717 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
16718 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
16719 * sysdeps/ieee754/dbl-64/s_finite.c: Include
16720 <ldbl-classify-compat.h>.
16721 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16722 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
16723 <ldbl-classify-compat.h>.
16724 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16725 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
16726 <ldbl-classify-compat.h>.
16727 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16728 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
16729 <ldbl-classify-compat.h>.
16730 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16731 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
16732 <ldbl-classify-compat.h>.
16733 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16734 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
16735 <ldbl-classify-compat.h>.
16736 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16737 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
16738 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
16739 * sysdeps/m68k/coldfire/math_private.h: Remove file.
16740 * sysdeps/microblaze/math_private.h: Likewise.
16741 * sysdeps/nios2/math_private.h: Likewise.
16742 * sysdeps/sh/math_private.h: Likewise.
16743
16744 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
16745 * sysdeps/m68k/coldfire/math_private.h: ... here.
16746 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
16747 * sysdeps/tile/math_private.h: Likewise.
16748 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
16749 Remove macro.
16750 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
16751 Likewise.
16752
16753 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
16754 Remove macro.
16755 (libc_fetestexcept): Likewise.
16756 (libc_feupdateenv_test): Likewise.
16757 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
16758 (libc_fetestexcept): Likewise.
16759 (libc_feupdateenv_test): Likewise.
16760 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
16761 (libc_fetestexcept): Likewise.
16762 (libc_feupdateenv_test): Likewise.
16763 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
16764 (libc_fetestexcept): Likewise.
16765 (libc_feupdateenv_test): Likewise.
16766
16767 * sysdeps/generic/math_private.h
16768 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
16769 New inline function.
16770 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
16771 Likewise.
16772
16773 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
16774 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
16775 * sysdeps/generic/math_private.h
16776 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
16777 inline function.
16778 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
16779 Likewise.
16780 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
16781 Likewise.
16782 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
16783 Likewise.
16784 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
16785 Likewise.
16786 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
16787 Likewise.
16788 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
16789 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
16790 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
16791 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
16792 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
16793 (__fegetenv): Likewise.
16794 (fesetenv): Likewise.
16795 (__fesetenv): Likewise.
16796 (feupdateenv): Likewise.
16797 (__feupdateenv): Likewise.
16798 (fegetround): Likewise.
16799 (__fegetround): Likewise.
16800 (fesetround): Likewise.
16801 (__fesetround): Likewise.
16802
16803 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
16804 (feraiseexcept): New macro.
16805 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
16806 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
16807 Remove macro.
16808 (__feraiseexcept): Likewise.
16809 (feclearexcept): Likewise.
16810 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
16811 (__feraiseexcept): Likewise.
16812 (feclearexcept): Likewise.
16813 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
16814 (__feraiseexcept): Likewise.
16815 (feclearexcept): Likewise.
16816 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
16817 (__feraiseexcept): Likewise.
16818 (feclearexcept): Likewise.
16819 (fetestexcept): Likewise.
16820
16821 * sysdeps/m68k/coldfire/math-tests.h: New file.
16822
16823 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
16824 * sysdeps/m68k/bits/fenv.h: ... here.
16825 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
16826 not define.
16827 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
16828 Likewise.
16829 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
16830 Likewise.
16831 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
16832 Likewise.
16833 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
16834 Likewise.
16835 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
16836 Define to 0.
16837 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
16838 (__FE_UNDEFINED): New enum constant.
16839 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
16840 Do not define.
16841 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
16842 Likewise.
16843 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
16844 Likewise.
16845 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
16846 to match generic bits/fenv.h.
16847 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
16848 Do not define.
16849
16850 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
16851 packed on bits.
16852 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
16853 * soft-fp/half.h (union _FP_UNION_H): Likewise.
16854 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
16855 * soft-fp/single.h (union _FP_UNION_S): Likewise.
16856
16857 2018-02-01 Carlos O'Donell <carlos@redhat.com>
16858 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
16859 Joseph Myers <joseph@codesourcery.com>
16860
16861 [BZ #21314]
16862 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
16863 (__log1p): Disable -Wmaybe-uninitialized for -Os around
16864 computation using c.
16865 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
16866 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
16867 computation using c.
16868
16869 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16870
16871 * version.h (RELEASE): Set to "development".
16872 (VERSION): Set to "2.27.9000".
16873 * NEWS (2.28): New section.
16874
16875 * version.h (RELEASE): Set to "stable".
16876 (VERSION): Set to "2.27".
16877 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
16878
16879 * NEWS: Add the list of bugs fixed in 2.27.
16880
16881 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16882
16883 * stdlib/test-atexit-race-common.c (do_test): Check stack size
16884 against PTHREAD_STACK_MIN.
16885
16886 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16887
16888 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
16889 New entries.
16890 (Rafal Luzynski, Andreas Schwab): Update.
16891
16892 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
16893
16894 [BZ #10871]
16895 * NEWS: List the languages which actually use the alternative
16896 months feature in this release. Also explain that "alt_mon" and
16897 "ab_alt_mon" are optional.
16898
16899 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
16900
16901 [BZ #22765]
16902 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
16903
16904 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
16905
16906 * manual/install.texi (Tools for Compilation): Update the newest
16907 versions of gcc, binutils, texinfo, gawk, bison, and sed.
16908 * INSTALL: Regenerated.
16909
16910 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
16911
16912 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
16913 instead of __builtin_expect.
16914
16915 2018-01-30 Florian Weimer <fweimer@redhat.com>
16916
16917 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
16918 data.
16919 * nss/tst-nss-getpwent.c (do_test): Likewise.
16920
16921 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
16922
16923 [BZ #10871]
16924 * localedata/locales/hr_HR (mon): Rename to...
16925 (alt_mon): This.
16926 (mon): Import from CLDR (genitive case).
16927 (d_t_fmt): Update the comment.
16928
16929 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
16930
16931 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
16932 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
16933 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
16934
16935 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16936
16937 * mach/Versions: Fix version when __mach_host_self_ was added.
16938 * hurd/Versions: Fix version when _hurd_exec_paths was added.
16939 * sysdeps/mach/hurd/i386/ld.abilist: New file.
16940 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
16941 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
16942 * sysdeps/mach/hurd/i386/libc.abilist: New file.
16943 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
16944 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
16945 * sysdeps/mach/hurd/i386/libm.abilist: New file.
16946 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
16947 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
16948 * sysdeps/mach/hurd/i386/librt.abilist: New file.
16949 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16950 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16951 || to respect codestyle.
16952 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16953 (do_test_bz20181): Rename accordingly.
16954 * malloc/malloc.c: Include <assert.h>.
16955 (assert): Do not define.
16956 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16957 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16958 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16959 * sysdeps/mach/hurd/hp-timing.h: New file.
16960 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16961
16962 2018-01-29 Darius Rad <darius@bluespec.com>
16963
16964 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16965
16966 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16967
16968 * sysdeps/init_array/crti.S (.section .init_array): Add
16969 PREINIT_FUNCTION when defined.
16970 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
16971 * config.h.in: Regenerate.
16972 * manual/platform.texi: Add RISC-V documenation for
16973 __riscv_flush_icache.
16974 * sysdeps/riscv/__longjmp.S: New file.
16975 * sysdeps/riscv/backtrace.c: Likewise.
16976 * sysdeps/riscv/bits/endian.h: Likewise.
16977 * sysdeps/riscv/bits/setjmp.h: Likewise.
16978 * sysdeps/riscv/bits/wordsize.h: Likewise.
16979 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
16980 * sysdeps/riscv/bsd-setjmp.c: Likewise.
16981 * sysdeps/riscv/dl-trampoline.S: Likewise.
16982 * sysdeps/riscv/gccframe.h: Likewise.
16983 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
16984 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
16985 * sysdeps/riscv/machine-gmon.h: Likewise.
16986 * sysdeps/riscv/memusage.h: Likewise.
16987 * sysdeps/riscv/setjmp.S: Likewise.
16988 * sysdeps/riscv/sys/asm.h: Likewise.
16989 * sysdeps/riscv/tls-macros.h: Likewise.
16990 * sysdeps/riscv/dl-tls.h: New file.
16991 * sysdeps/riscv/libc-tls.c: Likewise.
16992 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
16993 * sysdeps/riscv/nptl/tls.h: Likewise.
16994 * sysdeps/riscv/stackinfo.h: Likewise.
16995 * sysdeps/riscv/bits/fenv.h: New file.
16996 * sysdeps/riscv/e_sqrtl.c: Likewise.
16997 * sysdeps/riscv/fpu_control.h: Likewise.
16998 * sysdeps/riscv/math-tests.h: Likewise.
16999 * sysdeps/riscv/nofpu/Implies: Likewise.
17000 * sysdeps/riscv/sfp-machine.h: Likewise.
17001 * sysdeps/riscv/tininess.h: Likewise.
17002 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
17003 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
17004 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
17005 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
17006 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
17007 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
17008 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
17009 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
17010 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
17011 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
17012 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
17013 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
17014 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
17015 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
17016 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
17017 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
17018 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
17019 * sysdeps/riscv/rvd/s_finite.c: Likewise.
17020 * sysdeps/riscv/rvd/s_fma.c: Likewise.
17021 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
17022 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
17023 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
17024 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
17025 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
17026 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
17027 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
17028 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
17029 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
17030 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
17031 * sysdeps/riscv/rvf/fegetround.c: Likewise.
17032 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
17033 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
17034 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
17035 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
17036 * sysdeps/riscv/rvf/fesetround.c: Likewise.
17037 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
17038 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
17039 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
17040 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
17041 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
17042 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
17043 * sysdeps/riscv/rvf/math_private.h: Likewise.
17044 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
17045 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
17046 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
17047 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
17048 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
17049 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
17050 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
17051 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
17052 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
17053 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
17054 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
17055 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
17056 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
17057 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
17058 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
17059 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
17060 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
17061 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
17062 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
17063 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
17064 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
17065 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
17066 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
17067 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
17068 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
17069 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
17070 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
17071 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
17072 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
17073 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
17074 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
17075 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
17076 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
17077 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
17078 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
17079 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
17080 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
17081 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
17082 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
17083 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
17084 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
17085 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
17086 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
17087 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
17088 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
17089 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
17090 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
17091 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
17092 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
17093 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
17094 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
17095 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
17096 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
17097 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
17098 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
17099 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
17100 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
17101 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
17102 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
17103 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
17104 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
17105 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
17106 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
17107 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
17108 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17109 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
17110 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
17111 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
17112 * sysdeps/riscv/Implies: New file.
17113 * sysdeps/riscv/Makefile: Likewise.
17114 * sysdeps/riscv/configure: Likewise.
17115 * sysdeps/riscv/configure.ac: Likewise.
17116 * sysdeps/riscv/nptl/Makefile: Likewise.
17117 * sysdeps/riscv/preconfigure: Likewise.
17118 * sysdeps/riscv/rv64/Implies-after: Likewise.
17119 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
17120 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
17121 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
17122 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
17123 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
17124 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
17125 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
17126 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
17127 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
17128 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
17129 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
17130 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
17131 (Config): Likewise.
17132
17133 2018-01-29 Florian Weimer <fweimer@redhat.com>
17134
17135 [BZ #22701]
17136 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
17137 libnsl_hidden_proto.
17138 * include/rpcsvc/yp.h (yp_xdrall): Declare with
17139 libnsl_hidden_proto.
17140 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
17141 * nis/Makefile (libnsl-routines): Add nss-default only for
17142 build-obsolete-nsl.
17143 * nis/nis_defaults.c (__nis_default_ttl): Add
17144 libnsl_hidden_nolink_def.
17145 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
17146 declaration.
17147 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
17148 * nis/ypclnt.c (yp_maplist): Likewise.
17149
17150 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
17151
17152 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17153 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
17154
17155 2018-01-29 Joseph Myers <joseph@codesourcery.com>
17156
17157 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
17158 clean -dxfq for git updates when replacing sources.
17159
17160 * scripts/build-many-glibcs.py (Config.build_gcc): Use
17161 --disable-libcilkrts unconditionally, not just for the final GCC
17162 build for Hurd.
17163
17164 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
17165 version to 4.15.
17166
17167 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17168
17169 [BZ #10871]
17170 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
17171 case).
17172
17173 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17174
17175 [BZ #10871]
17176 * localedata/locales/be_BY (mon): Rename to...
17177 (alt_mon): This, then synchronize with CLDR (nominative case).
17178 (abmon): Rename to...
17179 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
17180 (mon): Import from CLDR (genitive case).
17181 (abmon): Likewise.
17182 * localedata/locales/be_BY@latin (mon): Rename to...
17183 (alt_mon): This.
17184 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
17185
17186 * localedata/locales/be_BY@latin (lang_name): Reworded to
17187 "biełaruskaja mova".
17188
17189 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17190
17191 [BZ #10871]
17192 * localedata/locales/el_CY (mon): Renamed to...
17193 (alt_mon): This.
17194 (mon): Import from CLDR (genitive case).
17195 * localedata/locales/el_GR: Likewise.
17196
17197 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17198
17199 [BZ #10871]
17200 * localedata/locales/ru_RU (mon): Rename to...
17201 (alt_mon): This.
17202 (abmon): Rename to...
17203 (ab_alt_mon): This.
17204 (mon): Import from CLDR (genitive case).
17205 (abmon): Copy from the old content except the 5th month which is
17206 now in the genitive case, even when abbreviated.
17207 * localedata/locales/ru_UA: Likewise.
17208 * time/tst-strptime.c (day_tests): Add an actual example of
17209 a difference between %b and %Ob in Russian.
17210
17211 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
17212
17213 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
17214 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
17215 a `c' variable.
17216 * resolv/res-close.c: Include <stdlib.h>.
17217 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
17218 <sys/wait.h>, <time.h>, <sys/uio.h>.
17219 (NOT_CANCEL_H): Add inclusion guard.
17220 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
17221 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
17222 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
17223 return 0.
17224 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
17225 vm_address_t * to ElfW(Addr) * for dl_main parameter.
17226 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
17227 instead of void *.
17228 * sysdeps/pthread/timer_create.c (timer_create): Do not use
17229 timer_ptr2id to cast struct timer_node * to void *.
17230 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
17231 --disable-libcilkrts to gcc configure.
17232 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
17233 and make them the default for now.
17234 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
17235 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
17236 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
17237 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
17238 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
17239 MACH_IPC_COMPAT.
17240 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
17241 __task_terminate would ever return successfully.
17242 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
17243 to global scope.
17244 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
17245 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
17246 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
17247 critical section to make code simpler and avoid warning.
17248 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
17249 critical section to make code simpler and avoid warning.
17250 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
17251 const char * instead of char *.
17252 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
17253 __hurd_file_name_split, hurd_file_name_split,
17254 __hurd_directory_name_split, hurd_directory_name_split,
17255 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
17256 hurd_file_name_path_lookup): Make lookup function parameter take a
17257 const char *name instead of char *name.
17258 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
17259 __hurd_directory_name_split): Likewise.
17260 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
17261 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
17262 * sysdeps/mach/hurd/check_native.c: New file.
17263 * sysdeps/mach/hurd/check_pf.c: New file.
17264 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
17265 (__freeifaddrs): Define macro to freeifaddrs.
17266 * sysdeps/mach/hurd/libhurduser.abilist: New file.
17267 * sysdeps/mach/libmachuser.abilist: New file.
17268 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
17269 (do_test_bz20181): Rename accordingly.
17270 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
17271 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
17272 <sys/mount.h>.
17273 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
17274 version only if __USE_EXTERN_INLINES is defined.
17275 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
17276 __hurd_sockfail): Likewise.
17277 (_hurd_fd_get): Always declare functions, and provide inline versions
17278 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
17279 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
17280 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
17281 _hurd_port_set): Always declare functions, and provide inline versions
17282 only if __USE_EXTERN_INLINES and _LIBC are defined and
17283 IS_IN(libc).
17284 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
17285 _hurd_critical_section_unlock): Likewise.
17286 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
17287 * __hurd_threadvar_location): Likewise.
17288 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
17289 _hurd_userlink_clear): Likewise.
17290 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
17291 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
17292 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
17293 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
17294 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
17295 __spin_lock_locked): Likewise.
17296 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
17297 __spin_lock_locked): Likewise.
17298 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
17299 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
17300 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
17301 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
17302 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
17303 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
17304 _POSIX_NO_TRUNC): Define to 0.
17305 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
17306 check size against PTHREAD_STACK_MIN.
17307 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
17308 IS_IN(libpthread)]: Include <sigsetops.h>.
17309 * mach/Makefile (user-interfaces): Add mach/gnumach.
17310 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
17311 * sysdeps/mach/configure (mach_interface_list): Regenerate.
17312 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
17313 instead of invalid -1.
17314 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
17315 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
17316 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
17317 <net/ppp_defs.h>.
17318
17319 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
17320
17321 * hurd/fcntl-internal.h: New file.
17322
17323 2018-01-27 James Clarke <jrtc27@jrtc27.com>
17324
17325 * sysdeps/hppa/fpu/libm-test-ulps: Update.
17326
17327 * sysdeps/alpha/fpu/libm-test-ulps: Update.
17328
17329 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
17330
17331 [BZ #22701]
17332 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
17333 Build only shared objects.
17334
17335 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17336
17337 * README: Update for hppa.
17338
17339 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17340
17341 * sysdeps/sparc/fpu/libm-test-ulps: Update
17342 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
17343
17344 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17345
17346 Revert:
17347
17348 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17349
17350 [BZ #22563]
17351 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17352 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17353 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17354 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17355 to feature_1.
17356
17357 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17358
17359 [BZ #22563]
17360 * bits/types/__cancel_jmp_buf_tag.h: New file.
17361 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17362 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17363 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17364 * nptl/Makefile (headers): Add
17365 bits/types/__cancel_jmp_buf_tag.h.
17366 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17367 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17368 * sysdeps/nptl/pthread.h: Include
17369 <bits/types/__cancel_jmp_buf_tag.h>.
17370 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17371 __cancel_jmp_buf.
17372 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17373
17374 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
17375
17376 [BZ #10871]
17377 * localedata/locales/uk_UA (mon): Renamed to...
17378 (alt_mon): This.
17379 (alt_digits): "0" removed and then renamed to...
17380 (mon): This.
17381 (date_fmt): Definition changed not to use the alternative
17382 digits hack.
17383
17384 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
17385
17386 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
17387 FLAG_RISCV_FLOAT_ABI_DOUBLE.
17388 * elf/elf.h (EF_RISCV_RVC): New define.
17389 (EF_RISCV_FLOAT_ABI): Likewise.
17390 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
17391 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
17392 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17393 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
17394 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
17395 define.
17396 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17397
17398 2018-01-25 Andreas Schwab <schwab@suse.de>
17399
17400 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
17401 single quotes.
17402 * sysdeps/gnu/configure: Regenerate.
17403 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
17404 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
17405 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
17406 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
17407 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
17408 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
17409 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
17410 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
17411
17412 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
17413
17414 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
17415 URL, and run autoconf, make it the default for now.
17416
17417 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17418
17419 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17420 soft-float ColdFire configuration.
17421
17422 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
17423 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
17424 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
17425
17426 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
17427 MicroBlaze file.
17428
17429 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
17430 ....
17431 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
17432 ... here.
17433 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
17434 New file.
17435
17436 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
17437 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
17438 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
17439 file.
17440
17441 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
17442
17443 [BZ #22742]
17444 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
17445 Rename to __reserved and add comment.
17446 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
17447 Rename to __reserved.
17448
17449 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17450
17451 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17452 i686-gnu configurations.
17453 (Context.run_builds): Include mig, gnumach and hurd in components
17454 considered.
17455 (Context.checkout): Add mig, gnumach and hurd to components.
17456 (Context.checkout_tar): Add URL mappings for mig, gnumach and
17457 hurd.
17458 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
17459 (Config.build): Install gnumach headers, build mig and install
17460 hurd headers for 'gnu' OS.
17461 (Config.install_gnumach_headers): New function.
17462 (Config.install_hurd_headers): Likewise.
17463 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
17464 when building for 'gnu' OS.
17465
17466 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
17467
17468 * manual/tunables.texi (Hardware Capability Tunables): Fix
17469 spelling.
17470
17471 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
17472
17473 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
17474 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
17475 (ALTMON_11, ALTMON_12): Improve documentation.
17476 * manual/time.texi (strftime): Likewise.
17477
17478 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17479
17480 [BZ #10871]
17481 * localedata/locales/pl_PL: Alternative month names added,
17482 primary month names are genitive now.
17483 * time/tst-strptime.c (day_tests): Actually use a genitive case
17484 of a month name in Polish language.
17485
17486 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17487
17488 [BZ #10871]
17489 * manual/locale.texi: Document ALTMON_1..12 constants for
17490 nl_langinfo. Specify when to use ALTMON instead of MON.
17491 * manual/time.texi (strftime, strptime): Document GNU extension
17492 permitting O modifier with %B and %b. Specify when to use
17493 %OB instead of %B.
17494
17495 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17496
17497 [BZ #10871]
17498 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
17499 names, define them as the same as abbreviated month names explicitly.
17500 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
17501 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
17502 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
17503 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
17504 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
17505 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
17506 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
17507 _NL_WABALTMON_12): New enum constants.
17508 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
17509 wab_alt_mon, and ab_alt_mon_defined members.
17510 (time_output): Output ab_alt_mon and wab_alt_mon members.
17511 (time_read): Read them, initialize them as copies of abmon and wabmon
17512 respectively if they are missing, initialize ab_alt_mon_defined.
17513 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
17514 * locale/programs/locfile-kw.h: Regenerate.
17515 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
17516 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
17517 and ru_RU.UTF-8.
17518 * time/strftime_l.c (a_altmonth, aam_len): New macros.
17519 [!COMPILE_WIDE] (ABALTMON_1): New macro.
17520 (__strftime_internal): Handle %Ob and %Oh formats.
17521 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
17522 (__strptime_internal): Handle %Ob and %Oh formats.
17523 * time/tst-strptime.c (day_tests): Add more tests to parse different
17524 forms of month names including the new %Ob format specifier.
17525
17526 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17527
17528 [BZ #10871]
17529 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
17530 define them as the same as primary full month names explicitly.
17531 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
17532 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
17533 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
17534 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
17535 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
17536 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
17537 _NL_WALTMON_12): New enum constants.
17538 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
17539 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
17540 macros.
17541 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
17542 walt_mon, and alt_mon_defined members.
17543 (time_output): Output alt_mon and walt_mon members.
17544 (time_read): Read them, initialize them as copies of mon and wmon
17545 respectively if they are missing, initialize alt_mon_defined.
17546 * locale/programs/locfile-kw.gperf (alt_mon): Define.
17547 * locale/programs/locfile-kw.h: Regenerate.
17548 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
17549 * localedata/tst-langinfo.c (map): Add tests for the new constants
17550 ALTMON_1 .. ALTMON_12.
17551 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
17552 and pl_PL.UTF-8.
17553 * time/strftime_l.c (f_altmonth): New macro.
17554 (__strftime_internal): Handle %OB format.
17555 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
17556 (__strptime_internal): Handle %OB format.
17557 * time/tst-strptime.c (day_tests): Add tests to parse different forms
17558 of month names including the new %OB format specifier.
17559
17560 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17561
17562 [BZ #22685]
17563 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
17564 from ABORT_TRANSACTION.
17565 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
17566 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
17567 ABORT_TRANSACTION_IMPL): Likewise.
17568 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
17569 Linux code, but remove the code that aborts transactions.
17570
17571 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
17572
17573 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
17574
17575 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
17576
17577 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
17578 in date: "2004-14-09" should be "2004-09-14".
17579 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
17580 "2003-15-09" should be "2003-09-15".
17581
17582 2018-01-18 Arjun Shankar <arjun@redhat.com>
17583
17584 [BZ #22343]
17585 [BZ #22774]
17586 CVE-2018-6485
17587 CVE-2018-6551
17588 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
17589 after padding.
17590 (_int_memalign): check for integer overflow before calling
17591 _int_malloc.
17592 * malloc/tst-malloc-too-large.c: New test.
17593 * malloc/Makefile: Add tst-malloc-too-large.
17594
17595 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
17596
17597 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
17598 in date: "2017-24-07" should be "2017-07-24".
17599 * localedata/locales/mai_IN: Likewise.
17600 * localedata/locales/mai_NP: Likewise.
17601
17602 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
17603
17604 * po/ru.po: Update translations.
17605
17606 2018-01-17 Joseph Myers <joseph@codesourcery.com>
17607
17608 [BZ #22719]
17609 * sysdeps/hppa/backtrace.c: New file.
17610
17611 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
17612
17613 [BZ #22715]
17614 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
17615 align La_x86_64_retval to VEC_SIZE.
17616
17617 2018-01-16 Joseph Myers <joseph@codesourcery.com>
17618
17619 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
17620 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
17621
17622 2018-01-16 Florian Weimer <fweimer@redhat.com>
17623
17624 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
17625 Move tst-thread-exit-clobber ...
17626 [$(CXX)] (tests-unsupported): ... to here.
17627
17628 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17629
17630 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
17631 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
17632 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17633 (_dl_aarch64_cap_flags): Update.
17634 (_DL_HWCAP_COUNT): Update.
17635
17636 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17637
17638 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
17639 (_DL_HWCAP_LAST): Remove.
17640 (_DL_HWCAP_COUNT): Move to ...
17641 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17642 (_DL_HWCAP_COUNT): ... here.
17643
17644 2018-01-16 Florian Weimer <fweimer@redhat.com>
17645
17646 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
17647 mode with GNU extensions.
17648
17649 2018-01-15 Alan Hayward <alan.hayward@arm.com>
17650
17651 * elf/elf.h (NT_ARM_SVE): Define.
17652
17653 2018-01-15 Florian Weimer <fweimer@redhat.com>
17654
17655 [BZ #22636]
17656 * nptl/tst-minstack-throw.cc: New file.
17657 * nptl/Makefile (tests): Add tst-minstack-throw.
17658 (LDLIBS-tst-minstack-throw): Link with libstdc++.
17659 [!CXX] (tests-unsupported): Add tst-minstack-throw.
17660
17661 2018-01-15 Joseph Myers <joseph@codesourcery.com>
17662
17663 * scripts/build-many-glibcs.py (Context.checkout): Default
17664 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
17665 version to 1.1.0.
17666
17667 2018-01-13 Carlos O'Donell <carlos@redhat.com>
17668
17669 [BZ #22707]
17670 * elf/elf.h (DF_1_STUB): Define.
17671 (DF_1_PIE): Define.
17672
17673 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17674
17675 [BZ #22697]
17676 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
17677 Do not add 0.5 to integer or out-of-range arguments.
17678
17679 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17680
17681 * po/bg.po: Update translations.
17682 * po/cs.po: Likewise.
17683 * po/de.po: Likewise.
17684 * po/ko.po: Likewise.
17685 * po/pl.po: Likewise.
17686 * po/sv.po: Likewise.
17687 * po/uk.po: Likewise.
17688 * po/vi.po: Likewise.
17689
17690 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17691
17692 * aarch64/start.S (_start): Use __wrap_main.
17693 (__wrap_main): New local symbol.
17694
17695 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17696
17697 [BZ #22679]
17698 CVE-2018-1000001
17699 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
17700 generic_getcwd if the path returned by getcwd syscall is not absolute.
17701 * io/tst-getcwd-abspath.c: New test.
17702 * io/Makefile (tests): Add tst-getcwd-abspath.
17703
17704 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
17705
17706 * malloc/malloc.c (malloc_consolidate): Add size check.
17707
17708 2018-01-12 Florian Weimer <fweimer@redhat.com>
17709
17710 * support/write_message.c (write_message): Preserve errno.
17711 * support/check.c (print_failure): Likewise.
17712 * support/support_test_verify_impl.c (support_test_verify_impl):
17713 Likewise.
17714 * support/support_test_compare_failure.c
17715 (support_test_compare_failure): Likewise.
17716
17717 2018-01-12 Florian Weimer <fweimer@redhat.com>
17718
17719 [BZ #22701]
17720 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
17721 Prevent installation of libnsl.so.
17722 (libnsl-inhibit-o): Do not build (or install) static libraries.
17723
17724 2018-01-12 Egmont Koblinger <egmont@gmail.com>
17725
17726 [BZ #22657]
17727 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
17728 before the day number which may produce a double space.
17729 (date_fmt): Likewise.
17730
17731 2018-01-12 Joseph Myers <joseph@codesourcery.com>
17732
17733 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
17734 instead of fegetenv.
17735
17736 2018-01-11 Joseph Myers <joseph@codesourcery.com>
17737
17738 [BZ #22702]
17739 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
17740 comment to say exceptions are discarded.
17741 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
17742 __fegetenv.
17743 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
17744 be enabled.
17745
17746 2018-01-11 Florian Weimer <fweimer@redhat.com>
17747
17748 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
17749 and error message.
17750
17751 2018-01-11 Florian Weimer <fweimer@redhat.com>
17752
17753 [BZ #22636]
17754 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
17755 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
17756
17757 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17758
17759 [BZ #22693]
17760 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
17761 negative arguments in test for NaN or infinity argument.
17762
17763 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
17764
17765 * po/libc.pot: Regenerate.
17766
17767 2018-01-10 Florian Weimer <fweimer@redhat.com>
17768
17769 [BZ #22636]
17770 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
17771 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
17772
17773 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
17774
17775 * hurd/hurd/fd.h: Include <fcntl.h>
17776 (__hurd_at_flags): New function.
17777 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
17778 with call to __hurd_at_flags.
17779 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
17780 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
17781 __faccessat
17782 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
17783 (__access_noerrno): Use __faccessat_common instead of access_common.
17784 (__access): Likewise.
17785 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
17786 with a call to __faccessat.
17787 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
17788 (__faccessat_common): ... this. Move implementation of __access into it when
17789 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
17790 reauthenticate_cwdir_at helper to implement AT mechanism.
17791 (__faccessat_noerrno): New function, just calls __faccessat_common.
17792 (__faccessat): New function, just calls __faccessat_common.
17793 (faccessat): Define weak alias.
17794
17795 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17796
17797 [BZ #22691]
17798 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17799 (CFLAGS-s_fmaxmagl.c): New variable.
17800 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
17801
17802 [BZ #22690]
17803 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
17804 long int for arguments of possibly overflowing addition or
17805 subtraction.
17806 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
17807
17808 2018-01-09 Joseph Myers <joseph@codesourcery.com>
17809
17810 [BZ #22688]
17811 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17812 (CFLAGS-e_remainderl.c): New variable.
17813
17814 [BZ #22687]
17815 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
17816 variable.
17817 (CFLAGS-s_cacoshl.c): Likewise.
17818 (CFLAGS-s_casinhl.c): Likewise.
17819 (CFLAGS-s_catanl.c): Likewise.
17820 (CFLAGS-s_catanhl.c): Likewise.
17821 (CFLAGS-s_cexpl.c): Likewise.
17822 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
17823 (CFLAGS-s_csinhl.c): Likewise.
17824 (CFLAGS-s_clogl.c): Likewise.
17825 (CFLAGS-s_clog10l.c): Likewise.
17826 (CFLAGS-s_csinl.c): Likewise.
17827 (CFLAGS-s_csqrtl.c): Likewise.
17828
17829 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
17830 2017-01-09 Svante Signell <svante.signell@gmail.com>
17831
17832 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
17833 (_hurd_exec_paths): New function.
17834 * hurd/hurd.h (_hurd_exec): Deprecate function.
17835 (_hurd_exec_paths): Declare function.
17836 * hurd/Versions: Export _hurd_exec_paths.
17837 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
17838 (__execve): Use __getcwd to build absolute path, and use
17839 _hurd_exec_paths instead of _hurd_exec.
17840 * sysdeps/mach/hurd/spawni.c: Likewise.
17841 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
17842 _hurd_exec.
17843
17844 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
17845
17846 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
17847 test instead of failing in case of ENOENT returned by posix_openpt.
17848
17849 2018-01-08 Florian Weimer <fweimer@redhat.com>
17850
17851 resolv: Support binary labels in test framework.
17852 * support/resolv_test.c (struct to_be_freed): Remove.
17853 (struct compressed_name): New.
17854 (allocate_compressed_name, ascii_tolower)
17855 (compare_compressed_name): New functions.
17856 (struct resolv_response_builder): Update type of
17857 compression_offsets for use with tsearch. Rempve to_be_freed.
17858 (response_push_pointer_to_free): Remove function.
17859 (resolv_response_add_name): Rewrite using struct compressed_name
17860 and tsearch instead of hsearch_r.
17861 (response_builder_allocate): Remove initialization of
17862 compression_offsets.
17863 (response_builder_free): Update for removal of to_be_freed. Use
17864 tdestroy instead of hdestroy_r.
17865 * resolv/Makefile (tests): Add tst-resolv-binary.
17866 (tst-resolv-binary): Link with -lresolv -lpthread.
17867
17868 2018-01-08 Florian Weimer <fweimer@redhat.com>
17869
17870 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
17871 time. Pass positive flag instead of negative flag to
17872 support_test_compare_failure.
17873 (support_test_compare_failure): Change negative parameter to
17874 positive.
17875 * support/support_test_compare_failure.c (report)
17876 (support_test_compare_failure): Likewise.
17877 * support/tst-test_compare.c (return_ssize_t, return_int): New.
17878 (do_test): Check int/size_t, ssize_t/size_t comparisons.
17879
17880 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
17881
17882 [BZ #22637]
17883 * nptl/descr.h (stackblock, stackblock_size): Update comments.
17884 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
17885 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
17886 stacksize.
17887 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
17888
17889 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
17890
17891 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17892 Add s_sincosf-sse2 and s_sincosf-fma.
17893 (CFLAGS-s_sincosf-fma.c): New.
17894 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
17895 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
17896 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
17897 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
17898 __sincosf is defined.
17899
17900 2018-01-08 Florian Weimer <fweimer@redhat.com>
17901
17902 * nptl/tst-thread-exit-clobber.cc: New file.
17903 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
17904 C++11 mode.
17905 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
17906 (tests): Add tst-thread-exit-clobber.
17907 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
17908
17909 2018-01-08 Florian Weimer <fweimer@redhat.com>
17910
17911 * support/check.h (support_static_assert): Define.
17912 (TEST_COMPARE): Use it.
17913
17914 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
17915
17916 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
17917 [!__RLIM_T_MATCHES_RLIM64_T]
17918 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
17919 __getrlimit64. Add libc_hidden_weak.
17920
17921 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
17922
17923 * elf/elf.h (R_RISCV_NONE): New define.
17924 (R_RISCV_32): Likewise.
17925 (R_RISCV_64): Likewise.
17926 (R_RISCV_RELATIVE): Likewise.
17927 (R_RISCV_COPY): Likewise.
17928 (R_RISCV_JUMP_SLOT): Likewise.
17929 (R_RISCV_TLS_DTPMOD32): Likewise.
17930 (R_RISCV_TLS_DTPMOD64): Likewise.
17931 (R_RISCV_TLS_DTPREL32): Likewise.
17932 (R_RISCV_TLS_DTPREL64): Likewise.
17933 (R_RISCV_TLS_TPREL32): Likewise.
17934 (R_RISCV_TLS_TPREL64): Likewise.
17935 * Makerules (make-link-multidir): Make directories before linking into
17936 them.
17937 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
17938 define.
17939 (VDSO_HASH_LINUX_4_15): Likewise.
17940 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
17941 in subdirectories of lib.
17942 * nptl/Makefile (/librt.so): Always depend on
17943 "$(shared-thread-library)".
17944
17945 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17946
17947 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
17948 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
17949 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17950 (___tls_get_addr).
17951 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17952 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17953 "-O2 -march=i686".
17954 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17955 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17956 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17957 * sysdeps/gnu/glob-lstat-compat.c: New file.
17958 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17959 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17960
17961 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17962
17963 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17964 Reserve 16 chars to reloc_addr before calling _itoa_word.
17965
17966 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17967
17968 [BZ #22678]
17969 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17970 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
17971
17972 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
17973 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
17974
17975 * resource/tst-getrlimit.c: Add copyright header.
17976
17977 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17978 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17979
17980 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17981 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
17982 Define __GI_getrlimit64 as weak alias of __getrlimit64.
17983 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
17984 instead.
17985 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17986 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
17987 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
17988 RLIM64_INFINITY): Fix values to match the kernel ones.
17989 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
17990 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
17991 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
17992 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
17993 getrlimit64@@GLIBC_2_27.
17994 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
17995 and setrlimit64.
17996 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
17997 getrlimit, setrlimit, getrlimit64 and setrlimit64.
17998 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17999 setrlimit, getrlimit64 and setrlimit64.
18000
18001 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18002
18003 [BZ #22648]
18004 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
18005 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
18006
18007 2018-01-04 Joseph Myers <joseph@codesourcery.com>
18008
18009 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
18010 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
18011 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
18012
18013 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18014
18015 [BZ #15479]
18016 [BZ #22666]
18017 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
18018 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
18019
18020 [BZ #15479]
18021 [BZ #22665]
18022 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
18023 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
18024 * sysdeps/alpha/fpu/s_floor.c: Likewise.
18025 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
18026
18027 2018-01-04 Florian Weimer <fweimer@redhat.com>
18028
18029 [BZ #22667]
18030 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
18031 Align the stack before calling exit.
18032 * stdlib/tst-makecontext-align.c: New file.
18033 * stdlib/Makefile (tests): Add tst-makecontext-align.
18034
18035 2018-01-04 Florian Weimer <fweimer@redhat.com>
18036
18037 Add support for calling dlvsym from libc.so.
18038 * include/dlfcn.h (__libc_dlvsym): Declare.
18039 * elf/Makefile (tests-static-internal): Add
18040 tst-libc_dlvsym-static.
18041 (tests-internal): Add tst-libc_dlvsym.
18042 (modules-names): Add tst-libc_dlvsym-dso.
18043 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
18044 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
18045 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
18046 object tst-libc_dlvsym-dso.so needs to be built before running
18047 these tests.
18048 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
18049 * elf/Versions: Export __libc_dlvsym.
18050 * elf/dl-libc.c (struct do_dlvsym_args): New.
18051 (do_dlvsym, __libc_dlvsym): New functions.
18052 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
18053 (_dl_open_hook2): New variable.
18054 (__libc_register_dl_open_hook): Set it.
18055 * elf/tst-libc_dlvsym-dso.c: New file.
18056 * elf/tst-libc_dlvsym-static.c: Likewise.
18057 * elf/tst-libc_dlvsym.c: Likewise.
18058 * elf/tst-libc_dlvsym.h: Likewise.
18059
18060 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
18061
18062 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
18063 include <sys/mount.h>.
18064
18065 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
18066
18067 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
18068 Add __NO_MATH_ERRNO__ check.
18069
18070 2018-01-02 Joseph Myers <joseph@codesourcery.com>
18071
18072 * sysdeps/mips/mips32/libm-test-ulps: Update.
18073 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18074
18075 2018-01-02 Florian Weimer <fweimer@redhat.com>
18076
18077 * misc/tst-pselect.c: Add copyright header.
18078
18079 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
18080
18081 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
18082 comment.
18083 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
18084 comment.
18085 (settrlimit): Rename into setrlimit.
18086 (__sttrlimit): Rename into __setrlimit.
18087
18088 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
18089 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
18090 never defined in that case.
18091
18092 2018-01-02 Joseph Myers <joseph@codesourcery.com>
18093
18094 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
18095
18096 * sysdeps/arm/libm-test-ulps: Update.
18097
18098 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
18099 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
18100
18101 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18102
18103 * NEWS: Add cosf and sincosf to list of optimized functions.
18104
18105 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
18106
18107 [BZ #22660]
18108 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
18109 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
18110 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
18111 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
18112
18113 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
18114
18115 [BZ #22433]
18116 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
18117
18118 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
18119 making a copy of it.
18120
18121 2018-01-01 Joseph Myers <joseph@codesourcery.com>
18122
18123 * manual/texinfo.tex: Update to version 2017-12-26.21 with
18124 trailing whitespace removed.
18125 * scripts/config.guess: Update to version 2018-01-01.
18126 * scripts/config.sub: Update to version 2018-01-01.
18127 * scripts/move-if-change: Update from gnulib.
18128
18129 * NEWS: Update copyright dates.
18130 * catgets/gencat.c (print_version): Likewise.
18131 * csu/version.c (banner): Likewise.
18132 * debug/catchsegv.sh: Likewise.
18133 * debug/pcprofiledump.c (print_version): Likewise.
18134 * debug/xtrace.sh (do_version): Likewise.
18135 * elf/ldconfig.c (print_version): Likewise.
18136 * elf/ldd.bash.in: Likewise.
18137 * elf/pldd.c (print_version): Likewise.
18138 * elf/sotruss.sh: Likewise.
18139 * elf/sprof.c (print_version): Likewise.
18140 * iconv/iconv_prog.c (print_version): Likewise.
18141 * iconv/iconvconfig.c (print_version): Likewise.
18142 * locale/programs/locale.c (print_version): Likewise.
18143 * locale/programs/localedef.c (print_version): Likewise.
18144 * login/programs/pt_chown.c (print_version): Likewise.
18145 * malloc/memusage.sh (do_version): Likewise.
18146 * malloc/memusagestat.c (print_version): Likewise.
18147 * malloc/mtrace.pl: Likewise.
18148 * manual/libc.texinfo: Likewise.
18149 * nptl/version.c (banner): Likewise.
18150 * nscd/nscd.c (print_version): Likewise.
18151 * nss/getent.c (print_version): Likewise.
18152 * nss/makedb.c (print_version): Likewise.
18153 * posix/getconf.c (main): Likewise.
18154 * scripts/test-installation.pl: Likewise.
18155 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
18156
18157 * All files with FSF copyright notices: Update copyright dates
18158 using scripts/update-copyrights.
18159 * locale/programs/charmap-kw.h: Regenerated.
18160 * locale/programs/locfile-kw.h: Likewise.
18161
18162 2017-12-31 Zack Weinberg <zackw@panix.com>
18163
18164 * libio/bits/libio-ldbl.h: Correct check for improper
18165 inclusion. Add own multiple include guard.
18166
18167 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
18168 Dmitry V. Levin <ldv@altlinux.org>
18169
18170 [BZ #22625]
18171 CVE-2017-16997
18172 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
18173 string token expansion. Check for NULL pointer or empty string possibly
18174 returned by expand_dynamic_string_token.
18175 (decompose_rpath): Check for empty path after dynamic string
18176 token expansion.
18177
18178 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
18179
18180 [BZ #22433]
18181 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
18182
18183 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
18184 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
18185 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
18186 and PTRACE_SYSCALL.
18187 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
18188 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18189 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18190 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18191 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18192 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18193
18194 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
18195 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18196 __ptrace_peeksiginfo_flags, ptrace): Move to ...
18197 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
18198 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18199 bits/ptrace-shared.h.
18200 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
18201 <bits/ptrace-shared.h>.
18202 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18203 __ptrace_peeksiginfo_flags, ptrace): Remove.
18204 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18205 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18206 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18207 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18208 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18209
18210 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
18211
18212 [BZ #17804]
18213 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
18214 end of the loop. Improve comments.
18215
18216 2017-12-29 Zack Weinberg <zackw@panix.com>
18217
18218 [BZ #22615]
18219 * manual/errno.texi (Checking for Errors): Explicitly say that errno
18220 might be set on success.
18221
18222 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
18223
18224 [BZ #22611]
18225 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
18226 is unchanged on success.
18227
18228 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
18229
18230 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
18231 updated.
18232 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
18233 expand_dynamic_string_token): Likewise.
18234 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
18235 is_path argument.
18236
18237 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
18238 contains ':'.
18239
18240 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
18241 is set and name contains ':', and all code depending on these checks.
18242
18243 2017-12-24 Zack Weinberg <zackw@panix.com>
18244
18245 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
18246 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
18247 respectively.
18248 * libio/libio.h: Rename the original version of this file to
18249 libio/bits/libio.h. Error out if not included by stdio.h or the
18250 stub libio.h.
18251 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
18252 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
18253 if not included by bits/libio.h or the stub _G_config.h.
18254 * sysdeps/unix/sysv/linux/_G_config.h: Move to
18255 sysdeps/unix/sysv/linux/bits. Error out if not included by
18256 bits/libio.h or the stub _G_config.h.
18257 * libio/stdio.h: Include bits/libio.h, not libio.h.
18258 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
18259 well as libio.h and _G_config.h.
18260
18261 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
18262 * libio/strfile.h, stdio-common/vfscanf.c
18263 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
18264 Include stdio.h, not _G_config.h nor libio.h.
18265 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
18266 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
18267
18268 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
18269
18270 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
18271
18272 [BZ #22347]
18273 * stdlib/getrandom.c (getrandom): Fix comment.
18274 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
18275
18276 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
18277
18278 [BZ #21161]
18279 * manual/arith.texi (strtoul): Fix a typo.
18280
18281 [BZ #22596]
18282 * manual/arith.texi (finite): Fix the description of the return
18283 value.
18284
18285 2017-12-22 Eric Blake <ebb9@byu.net>
18286
18287 Avoid gcc warnings on cygwin
18288 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18289 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18290 Avoid unused variable.
18291
18292 2017-12-22 Florian Weimer <fweimer@redhat.com>
18293
18294 * io/Makefile (routines): Add copy_file_range.
18295 (tests): Add tst-copy_file_range.
18296 (tests-static, tests-internal): Add tst-copy_file_range-compat.
18297 * io/Versions (GLIBC_2.27): Export copy_file_range.
18298 * io/copy_file_range-compat.c: New file.
18299 * io/copy_file_range.c: Likewise.
18300 * io/tst-copy_file_range-compat.c: Likewise.
18301 * io/tst-copy_file_range.c: Likewise.
18302 * manual/llio.texi (Copying File Data): New section.
18303 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
18304 * support/Makefile (libsupport-routines): Add support-xfstat,
18305 xftruncate, xlseek.
18306 * support/support-xfstat.c: New file.
18307 * support/xftruncate.c: Likewise.
18308 * support/xlseek.c: Likewise.
18309 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
18310 * sysdeps/unix/sysv/linux/**.abilist: Update.
18311 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
18312
18313 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
18314
18315 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18316 disable-multi-arch variant to aarch64-linux-gnu.
18317
18318 2017-12-20 Joseph Myers <joseph@codesourcery.com>
18319
18320 * manual/texinfo.tex: Update to version 2017-12-18.20 with
18321 trailing whitespace removed.
18322 * scripts/config.guess: Update to version 2017-12-17.
18323 * scripts/config.sub: Update to version 2017-11-23.
18324 * scripts/install-sh: Update to version 2017-09-23.17.
18325 * scripts/move-if-change: Update to version 2017-09-13 06:45.
18326
18327 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18328
18329 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
18330 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18331 * sysdeps/tile/_mcount.S (__mcount): Likewise.
18332 * sysdeps/tile/crti.S (_init, _fini): Likewise.
18333 * sysdeps/tile/crtn.S: Likewise.
18334 * sysdeps/tile/dl-start.S (_start): Likewise.
18335 * sysdeps/tile/dl-trampoline.S: Likewise.
18336 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
18337 * sysdeps/tile/start.S (_start): Likewise.
18338 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
18339 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
18340 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
18341 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
18342 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
18343 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
18344 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
18345
18346 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
18347 comment.
18348 * sysdeps/tile/preconfigure: Remove tilegx folder.
18349 * sysdeps/tile/tilegx/Implies: Move definitions to ...
18350 * sysdeps/tile/Implies: ... here.
18351 * sysdeps/tile/tilegx/Makefile: Move rules to ...
18352 * sysdeps/tile/Makefile: ... here.
18353 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
18354 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
18355 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
18356 * sysdeps/tile/bits/wordsize.h: ... here.
18357 * sysdeps/tile/tilegx/*: Move to ...
18358 * sysdeps/tile/*: ... here.
18359 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
18360 * sysdeps/tile/tilegx32/Implies: ... here.
18361 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
18362 * sysdeps/tile/tilegx64/Implies: ... here.
18363 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
18364 to ...
18365 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
18366 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
18367 * sysdeps/unix/sysv/linux/tile/*: ... here.
18368 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
18369 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
18370 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
18371 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
18372
18373 * README: Remove tilepro-*-linux-gnu from supported architecture.
18374 * scripts/build-many-glibcs.py: Likewise.
18375 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18376 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
18377 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
18378 elf_machine_matches_host, elf_machine_dynamic,
18379 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
18380 howto, elf_machine_rela): Likewise.
18381 * sysdeps/tile/dl-start.S (_start): Likewise.
18382 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
18383 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
18384 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
18385 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
18386 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
18387 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
18388 Likewise.
18389 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
18390 * sysdeps/tile/preconfigure: Likewise.
18391 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
18392 POINTER_CHK_GUARD): Likewise.
18393 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
18394 * sysdeps/tile/start.S (_start): Likewise.
18395 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
18396 Likewise.
18397 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
18398 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
18399 CMOVNEZ): Remove.
18400 * sysdeps/unix/sysv/linux/tile/bits/environments.h
18401 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
18402 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
18403 Likewise.
18404 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
18405 * sysdeps/tile/tilepro/Implies: Remove file.
18406 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
18407 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
18408 * sysdeps/tile/tilepro/memchr.c: Likewise.
18409 * sysdeps/tile/tilepro/memcpy.S: Likewise.
18410 * sysdeps/tile/tilepro/memset.c: Likewise.
18411 * sysdeps/tile/tilepro/memusage.h: Likewise.
18412 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
18413 * sysdeps/tile/tilepro/strchr.c: Likewise.
18414 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
18415 * sysdeps/tile/tilepro/strlen.c: Likewise.
18416 * sysdeps/tile/tilepro/strrchr.c: Likewise.
18417 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
18418 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
18419 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
18420 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
18421 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
18422 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
18423 Likewise.
18424 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
18425 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18426 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
18427 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
18428 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18429 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
18430 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
18431 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
18432 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
18433 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
18434 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
18435 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
18436 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
18437 tilepro mention in comment.
18438
18439 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
18440 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
18441 * nptl/pthread_join_common.c: New file: common function used on
18442 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
18443 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
18444 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
18445 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
18446 (cleanup): Move definition to pthread_join_common.c.
18447 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
18448 Remove superflous checks.
18449 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
18450 Likewise.
18451
18452 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
18453
18454 * sysdeps/aarch64/libm-test-ulps: Update.
18455
18456 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18457
18458 * sysdeps/aarch64/memset.S (MEMSET): Define.
18459
18460 2017-12-20 Florian Weimer <fweimer@redhat.com>
18461
18462 [BZ #22635]
18463 nptl: Provide full implementation of pthread_self in libc.so.
18464 * nptl/Makefile (routines): Add pthread_self.
18465 (libpthread-routines): Replace pthread_self with
18466 compat-pthread_self.
18467 * nptl/forward.c (pthread_self): Remove.
18468 * nptl/nptl-init.c (pthread_functions): Do not initialize
18469 ptr_pthread_self.
18470 * nptl/pthread_self.c (pthread_self): Remove weak alias.
18471 * nptl/compat-pthread_self.c: New file.
18472 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
18473 Remove ptr_pthread_self.
18474
18475 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
18476
18477 * posix/regcomp.c: Fix spelling in comments.
18478 * posix/regex.h: Likewise.
18479 * posix/regex_internal.c: Likewise.
18480 * posix/regexec.c: Likewise.
18481
18482 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18483
18484 [BZ #22377]
18485 * math/Makefile [C++] (tests): Add test for iseqsig.
18486 * math/math.h [C++] (iseqsig): New implementation, which does
18487 not rely on __MATH_TG/__builtin_types_compatible_p.
18488 * math/test-math-iseqsig.cc: New file.
18489 * sysdeps/powerpc/powerpc64le/Makefile
18490 (CFLAGS-test-math-iseqsig.cc): New variable.
18491
18492 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
18493
18494 * elf/dl-load.c (is_trusted_path): Remove.
18495 (fillin_rpath): Remove check_trusted argument and its use,
18496 all callers changed.
18497
18498 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18499
18500 [BZ #22630]
18501 * Makeconfig (link-pie-before-libc): Replace -pie with
18502 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
18503 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
18504 (tst-dlopen-aout-no-pie): New.
18505 (LDFLAGS-tst-prelink): Removed.
18506 (tst-prelink-no-pie): New.
18507 (LDFLAGS-tst-main1): Removed.
18508 (tst-main1-no-pie): New.
18509 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
18510 (tst-gmon-no-pie): New.
18511
18512 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18513
18514 * manual/install.texi: Document that --enable-static-pie
18515 implies PIE.
18516 * INSTALL: Regenerated.
18517
18518 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18519
18520 [BZ #21309]
18521 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
18522 unsigned.
18523
18524 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18525
18526 Revert:
18527
18528 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18529
18530 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18531
18532 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18533
18534 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18535 <errno.h>. Include "eexp.tbl".
18536 (half): New constant.
18537 (one): Likewise.
18538 (__ieee754_exp): Rewrite.
18539 (__slowexp): Remove prototype.
18540 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18541 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18542 * sysdeps/i386/fpu/slowexp.c: Likewise.
18543 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18544 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18545 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18546 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18547 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18548 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18549 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18550 comment.
18551 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18552 (CPPFLAGS-slowexp.c): Remove variable.
18553 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18554 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18555 (CFLAGS-slowexp-fma.c): Remove variable.
18556 (CFLAGS-slowexp-fma4.c): Likewise.
18557 (CFLAGS-slowexp-avx.c): Likewise.
18558 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18559 define as macro.
18560 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18561 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18562 * math/Makefile (type-double-routines): Remove slowexp.
18563 * manual/probes.texi (slowexp_p6): Remove.
18564 (slowexp_p32): Likewise.
18565
18566 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18567
18568 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
18569 arithmetic.
18570
18571 * lib/glob.c (glob): Do not pass NULL to mempcpy.
18572
18573 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18574
18575 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18576
18577 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18578
18579 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18580 <errno.h>. Include "eexp.tbl".
18581 (half): New constant.
18582 (one): Likewise.
18583 (__ieee754_exp): Rewrite.
18584 (__slowexp): Remove prototype.
18585 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18586 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18587 * sysdeps/i386/fpu/slowexp.c: Likewise.
18588 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18589 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18590 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18591 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18592 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18593 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18594 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18595 comment.
18596 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18597 (CPPFLAGS-slowexp.c): Remove variable.
18598 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18599 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18600 (CFLAGS-slowexp-fma.c): Remove variable.
18601 (CFLAGS-slowexp-fma4.c): Likewise.
18602 (CFLAGS-slowexp-avx.c): Likewise.
18603 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18604 define as macro.
18605 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18606 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18607 * math/Makefile (type-double-routines): Remove slowexp.
18608 * manual/probes.texi (slowexp_p6): Remove.
18609 (slowexp_p32): Likewise.
18610
18611 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18612 James Clarke <jrtc27@jrtc27.com>
18613
18614 [BZ #22603]
18615 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
18616 addition.
18617
18618 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18619
18620 [BZ #22605]
18621 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
18622 code.
18623
18624 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18625
18626 [BZ #22563]
18627 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18628 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18629 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18630 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18631 to feature_1.
18632
18633 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18634
18635 [BZ #22563]
18636 * bits/types/__cancel_jmp_buf_tag.h: New file.
18637 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18638 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18639 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18640 * nptl/Makefile (headers): Add
18641 bits/types/__cancel_jmp_buf_tag.h.
18642 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18643 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18644 * sysdeps/nptl/pthread.h: Include
18645 <bits/types/__cancel_jmp_buf_tag.h>.
18646 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18647 __cancel_jmp_buf.
18648 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18649
18650 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18651
18652 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18653 --enable-static-pie variants to x86_64, x32 and i686.
18654
18655 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18656
18657 [BZ #22631]
18658 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
18659 argument for attrubutes. All callers changed.
18660 (__inline_mathop1): Likewise. All callers changed.
18661 (__inline_mathop): Likewise. All callers changed.
18662 [__USE_MISC] (scalbn): Use __inline_forward instead of
18663 __inline_forward_c.
18664 [__USE_ISOC99] (scalbln): Likewise.
18665 [__USE_ISOC99] (nearbyint): Likewise.
18666 [__USE_ISOC99] (lrint): Likewise.
18667 [__USE_MISC] (scalbnf): Likewise.
18668 [__USE_ISOC99] (scalblnf): Likewise.
18669 [__USE_ISOC99] (nearbyintf): Likewise.
18670 [__USE_ISOC99] (lrintf): Likewise.
18671 [__USE_MISC] (scalbnl): Likewise.
18672 [__USE_ISOC99] (scalblnl): Likewise.
18673 [__USE_ISOC99] (nearbyintl): Likewise.
18674 [__USE_ISOC99] (lrintl): Likewise.
18675 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
18676 __inline_mathop and __m81_defun changed.
18677
18678 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
18679 CPU or FPU for ARM hard-float configurations.
18680
18681 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18682
18683 * nptl/tst-attr3.c: Include <libc-diag.h>.
18684 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
18685
18686 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
18687
18688 * string/tester.c (test_strncat): Also disable -Warray-bounds
18689 warnings for two tests.
18690
18691 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18692
18693 [BZ #22614]
18694 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
18695 $(cc-pie-default) == yes.
18696 * config.make.in (cc-pie-default): New.
18697 * configure.ac (libc_cv_pie_default): Renamed to ...
18698 (libc_cv_cc_pie_default): This.
18699 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
18700 * configure: Regenerated.
18701
18702 2017-12-18 Florian Weimer <fweimer@redhat.com>
18703
18704 [BZ #20204]
18705 ld.so: Harden dl-libc/libdl hooks.
18706 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
18707 (rtld_active): New function.
18708 * dlfcn/dladdr.c (__dladdr): Call it.
18709 * dlfcn/dladdr1.c (__dladdr1): Likewise.
18710 * dlfcn/dlclose.c (__dlcose): Likewise.
18711 * dlfcn/dlerror.c (__dlerror): Likewise.
18712 * dlfcn/dlinfo.c (__dlinfo): Likewise.
18713 * dlfcn/dlmopen.c (__dlmopen): Likewise.
18714 * dlfcn/dlopen.c (__dlopen): Likewise.
18715 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
18716 * dlfcn/dlsym.c (__dlsym): Likewise.
18717 * dlfcn/dlvsym.c (__dlvsym): Likewise.
18718 * libio/vtables.c (_IO_vtable_check): Likewise.
18719 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
18720 (__libc_dlclose): Likewise.
18721 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
18722 assignment.
18723
18724 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18725
18726 [BZ #22446]
18727 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
18728 buffers for readlink input and output.
18729
18730 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
18731
18732 [BZ #22624]
18733 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
18734 inhibit_stack_protector.
18735
18736 [BZ #22624]
18737 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
18738 inhibit_stack_protector.
18739
18740 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
18741
18742 [BZ #22627]
18743 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
18744 code and invocation.
18745
18746 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
18747
18748 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
18749
18750 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
18751
18752 [BZ #22505]
18753 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
18754
18755 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18756
18757 * sysdeps/s390/fpu/libm-test-ulps: Update.
18758
18759 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18760
18761 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18762
18763 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18764
18765 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
18766 constants to s_sincosf.h file.
18767 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18768 * sysdeps/ieee754/flt-32/s_sincosf.c: New
18769 implementation.
18770 * sysdeps/ieee754/flt-32/s_sincosf.h:
18771 New file.
18772
18773 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18774
18775 [BZ #14681]
18776 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
18777 before mtrace.
18778
18779 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
18780
18781 [BZ #19574]
18782 * INSTALL: Regenerated.
18783 * Makeconfig (real-static-start-installed-name): New.
18784 (pic-default): Updated for --enable-static-pie.
18785 (pie-default): New for --enable-static-pie.
18786 (default-pie-ldflag): Likewise.
18787 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
18788 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
18789 Replace $(static-start-installed-name) with
18790 $(real-static-start-installed-name).
18791 (+prectorT): Updated for --enable-static-pie.
18792 (+postctorT): Likewise.
18793 (CFLAGS-.o): Add $(pie-default).
18794 (CFLAGS-.op): Likewise.
18795 * NEWS: Mention --enable-static-pie.
18796 * config.h.in (ENABLE_STATIC_PIE): New.
18797 * configure.ac (--enable-static-pie): New configure option.
18798 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
18799 (have-static-pie): Likewise.
18800 Enable static PIE if linker supports --no-dynamic-linker.
18801 (ENABLE_STATIC_PIE): New AC_DEFINE.
18802 (enable-static-pie): New LIBC_CONFIG_VAR.
18803 * configure: Regenerated.
18804 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
18805 gr$(start-installed-name) for --enable-static-pie.
18806 (extra-objs): Likewise.
18807 (install-lib): Likewise.
18808 (extra-objs): Add static-reloc.o and static-reloc.os
18809 ($(objpfx)$(start-installed-name)): Also depend on
18810 $(objpfx)static-reloc.o.
18811 ($(objpfx)r$(start-installed-name)): New.
18812 ($(objpfx)g$(start-installed-name)): Also depend on
18813 $(objpfx)static-reloc.os.
18814 ($(objpfx)gr$(start-installed-name)): New.
18815 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
18816 in libc.a.
18817 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
18818 initimage.
18819 * csu/static-reloc.c: New file.
18820 * elf/Makefile (routines): Add dl-reloc-static-pie.
18821 (elide-routines.os): Likewise.
18822 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
18823 (tst-tls1-static-non-pie-no-pie): New.
18824 * elf/dl-reloc-static-pie.c: New file.
18825 * elf/dl-support.c (_dl_get_dl_main_map): New function.
18826 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
18827 STATIC_PIE_BOOTSTRAP.
18828 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18829 * gmon/Makefile (tests): Add tst-gmon-static-pie.
18830 (tests-static): Likewise.
18831 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
18832 (tst-gmon-static-no-pie): New.
18833 (CFLAGS-tst-gmon-static-pie.c): Likewise.
18834 (CRT-tst-gmon-static-pie): Likewise.
18835 (tst-gmon-static-pie-ENV): Likewise.
18836 (tests-special): Likewise.
18837 ($(objpfx)tst-gmon-static-pie.out): Likewise.
18838 (clean-tst-gmon-static-pie-data): Likewise.
18839 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
18840 * gmon/tst-gmon-static-pie.c: New file.
18841 * manual/install.texi: Document --enable-static-pie.
18842 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
18843 (_dl_get_dl_main_map): Likewise.
18844 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
18845 * sysdeps/x86_64/configure.ac: Likewise.
18846 * sysdeps/i386/configure: Regenerated.
18847 * sysdeps/x86_64/configure: Likewise.
18848 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
18849 (ASFLAGS-.op): Likewise.
18850
18851 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18852
18853 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
18854 * posix/tst-mmap-offset.c (fname): Use /tmp.
18855 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
18856
18857 2017-12-15 Steve Ellcey <sellcey@cavium.com>
18858
18859 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
18860
18861 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
18862
18863 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
18864 errno.
18865
18866 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18867
18868 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18869 --with-float=hard for arm-linux-gnueabihf configurations.
18870
18871 [BZ #14121]
18872 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
18873 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
18874 ($(mo-installed)): Use $(objpfx)%.mo.
18875 (realclean): Remove rule.
18876
18877 * po/Makefile (linguas): Remove rule and dependencies.
18878 (linguas.mo): Likewise.
18879 (.PHONY): Do not depend on linguas and linguas.mo.
18880 (podir): Remove variable.
18881 (pofiles): Likewise.
18882 [$(pofiles)] (%.po): Remove rule.
18883
18884 * sysdeps/sparc/sparc32/Makefile
18885 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
18886 start-of-line whitespace in argument of echo.
18887 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
18888 with whitespace. Generate __wrap_.udiv alias.
18889 * sysdeps/sparc/sparc32/rem.S: Regenerated.
18890 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
18891 * sysdeps/sparc/sparc32/udiv.S: Likewise.
18892 * sysdeps/sparc/sparc32/urem.S: Likewise.
18893
18894 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18895
18896 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
18897 for aligned inputs.
18898
18899 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
18900
18901 * benchtests/bench-strcmp.c: Print output in JSON format.
18902
18903 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
18904
18905 2017-12-14 Florian Weimer <fweimer@redhat.com>
18906
18907 [BZ #22607]
18908 CVE-2017-1000409
18909 * elf/dl-load.c (_dl_init_paths): Compute number of components in
18910 the expanded path string.
18911
18912 2017-12-14 Florian Weimer <fweimer@redhat.com>
18913
18914 [BZ #22606]
18915 CVE-2017-1000408
18916 * elf/dl-load.c (system_dirs): Update comment.
18917 (nsystem_dirs_len): Use array_length.
18918 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
18919
18920 2017-12-14 Florian Weimer <fweimer@redhat.com>
18921
18922 Simplify compiling most of support/ outside of glibc.
18923 * support/check_addrinfo.c: Include <string.h>.
18924 * support/check_dns_packet.c: Likewise.
18925 * support/check_hostent.c: Likewise.
18926 * support/support_can_chroot.c: Include <support/xunistd.h>.
18927 * support/support_format_addrinfo.c: Include <stdlib.h>
18928 * support/support_format_dns_packet.c: Include <stdbool.h>.
18929 * support/support_format_hostent.c: Include <stdlib.h>.
18930 * support/support_format_netent.c: Likewise.
18931 * support/support_write_string.c: Include <support/xunistd.h>.
18932 * support/xdlfcn.c: Include <stddef.h>.
18933
18934 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
18935
18936 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
18937
18938 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18939 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18940
18941 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18942 (sysdeps_routines): Add memset-niagara7.
18943 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
18944 Likewise.
18945 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
18946 file.
18947 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
18948 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18949 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18950 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18951 Add niagara7 option.
18952 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18953 memset.
18954
18955 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18956 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18957 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18958 Likewise.
18959 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18960 New file.
18961 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18962 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18963 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18964 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18965 and __memmove_niagara7.
18966 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18967 Add niagara7 option.
18968 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18969 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18970 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
18971 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
18972 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
18973
18974 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
18975
18976 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
18977 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
18978 * sysdeps/sparc/sparc64/memmove.S: Likewise.
18979 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
18980
18981 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
18982 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
18983 _dl_sparc_cap_flags array.
18984 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
18985
18986 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
18987
18988 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
18989 time whenever possible.
18990
18991 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18992
18993 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
18994 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
18995
18996 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18997
18998 * soft-fp/fmadf4.c: Move to ....
18999 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
19000 * soft-fp/fmasf4.c: Move to ....
19001 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
19002 * soft-fp/fmatf4.c: Move to ....
19003 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
19004 * sysdeps/ieee754/soft-fp/Makefile: New file.
19005 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
19006 * sysdeps/arm/preconfigure: Regenerated.
19007 * sysdeps/arm/nofpu/Implies: New file.
19008 * sysdeps/arm/s_fma.c: Remove file.
19009 * sysdeps/arm/s_fmaf.c: Likewise.
19010 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
19011 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
19012 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
19013 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
19014 * sysdeps/microblaze/s_fma.c: Remove file.
19015 * sysdeps/microblaze/s_fmaf.c: Likewise.
19016 * sysdeps/mips/mips32/nofpu/Implies: New file.
19017 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
19018 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
19019 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
19020 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
19021 * sysdeps/mips/ieee754/s_fma.c: Remove file.
19022 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
19023 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
19024 implementation.
19025 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
19026 * sysdeps/nios2/s_fma.c: Remove file.
19027 * sysdeps/nios2/s_fmaf.c: Likewise.
19028 * sysdeps/sh/nofpu/Implies: New file.
19029 * sysdeps/sh/s_fma.c: Remove file.
19030 * sysdeps/sh/s_fmaf.c: Likewise.
19031 * sysdeps/tile/Implies: Add ieee754/soft-fp.
19032 * sysdeps/tile/s_fma.c: Remove file.
19033 * sysdeps/tile/s_fmaf.c: Likewise.
19034
19035 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
19036
19037 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19038 Add s_cosf-sse2 and s_cosf-fma.
19039 (CFLAGS-s_cosf-fma.c): New.
19040 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
19041 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
19042 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
19043
19044 2017-12-12 Steve Ellcey <sellcey@cavium.com>
19045
19046 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
19047
19048 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19049
19050 * libio/Makefile (tests): Add tst-bz22415.
19051 (tst-bz22415-ENV): New rule.
19052 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
19053 (tests-special): Add tst-bz22415-mem.out.
19054 ($(objpfx)tst-bz22415-mem.out): New rule.
19055 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
19056 in case of a successful seek operation.
19057 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
19058 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
19059 buffer is required.
19060 * libio/tst-bz22415.c: New test.
19061
19062 * sysdeps/ia64/fpu/libm-test-ulps: Update.
19063
19064 2017-12-12 James Clarke <jrtc27@jrtc27.com>
19065
19066 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
19067 __IPC_64 to 0 to avoid IPC_64 being set.
19068
19069 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
19070
19071 [BZ #22593]
19072 * math/bits/mathcalls.h (nextafter): Remove const.
19073 (nexttoward): Likewise.
19074
19075 2017-12-12 Joseph Myers <joseph@codesourcery.com>
19076
19077 * configure.ac (--with-fp): Remove configure option.
19078 (with_fp_cond): New variable.
19079 (libc_cv_with_fp): New configure test. Use this variable instead
19080 of with_fp.
19081 * configure: Regenerated.
19082 * config.make.in (with-fp): Use @libc_cv_with_fp@.
19083 * manual/install.texi (Configuring and compiling): Remove
19084 --without-fp.
19085 * INSTALL: Regenerated.
19086 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
19087 * sysdeps/mips/preconfigure (with_fp_cond): Define.
19088 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
19089 * sysdeps/sh/preconfigure (with_fp_cond): Define.
19090 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
19091 use --without-fp to configure glibc.
19092
19093 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
19094
19095 * manual/locale.texi (nl_langinfo): Fix a typo.
19096
19097 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
19098
19099 [BZ #22588]
19100 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
19101
19102 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19103
19104 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
19105 (CFLAGS-argp-parse.c): Likewise.
19106 (CFLAGS-argp-fmtstream.c): Likewise.
19107 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
19108 (CPPFLAGS-sha512-crypt.c): Likewise.
19109 (CPPFLAGS-md5-crypt.c): Likewise.
19110 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
19111 (CFLAGS-stack_chk_fail_local.c): Likewise.
19112 (CFLAGS-backtrace.c): Likewise.
19113 (CFLAGS-sprintf_chk.c): Likewise.
19114 (CFLAGS-snprintf_chk.c): Likewise.
19115 (CFLAGS-vsprintf_chk.c): Likewise.
19116 (CFLAGS-vsnprintf_chk.c): Likewise.
19117 (CFLAGS-asprintf_chk.c): Likewise.
19118 (CFLAGS-vasprintf_chk.c): Likewise.
19119 (CFLAGS-obprintf_chk.c): Likewise.
19120 (CFLAGS-dprintf_chk.c): Likewise.
19121 (CFLAGS-vdprintf_chk.c): Likewise.
19122 (CFLAGS-printf_chk.c): Likewise.
19123 (CFLAGS-fprintf_chk.c): Likewise.
19124 (CFLAGS-vprintf_chk.c): Likewise.
19125 (CFLAGS-vfprintf_chk.c): Likewise.
19126 (CFLAGS-gets_chk.c): Likewise.
19127 (CFLAGS-fgets_chk.c): Likewise.
19128 (CFLAGS-fgets_u_chk.c): Likewise.
19129 (CFLAGS-fread_chk.c): Likewise.
19130 (CFLAGS-fread_u_chk.c): Likewise.
19131 (CFLAGS-swprintf_chk.c): Likewise.
19132 (CFLAGS-vswprintf_chk.c): Likewise.
19133 (CFLAGS-wprintf_chk.c): Likewise.
19134 (CFLAGS-fwprintf_chk.c): Likewise.
19135 (CFLAGS-vwprintf_chk.c): Likewise.
19136 (CFLAGS-vfwprintf_chk.c): Likewise.
19137 (CFLAGS-fgetws_chk.c): Likewise.
19138 (CFLAGS-fgetws_u_chk.c): Likewise.
19139 (CFLAGS-read_chk.c): Likewise.
19140 (CFLAGS-pread_chk.c): Likewise.
19141 (CFLAGS-pread64_chk.c): Likewise.
19142 (CFLAGS-recv_chk.c): Likewise.
19143 (CFLAGS-recvfrom_chk.c): Likewise.
19144 (CFLAGS-tst-longjmp_chk.c): Likewise.
19145 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
19146 (CFLAGS-tst-longjmp_chk2.c): Likewise.
19147 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
19148 (CFLAGS-tst-longjmp_chk3.c): Likewise.
19149 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
19150 (CFLAGS-tst-chk1.c): Likewise.
19151 (CFLAGS-tst-chk2.c): Likewise.
19152 (CFLAGS-tst-chk3.c): Likewise.
19153 (CFLAGS-tst-chk4.cc): Likewise.
19154 (CFLAGS-tst-chk5.cc): Likewise.
19155 (CFLAGS-tst-chk6.cc): Likewise.
19156 (CFLAGS-tst-lfschk1.c): Likewise.
19157 (CFLAGS-tst-lfschk2.c): Likewise.
19158 (CFLAGS-tst-lfschk3.c): Likewise.
19159 (CFLAGS-tst-lfschk4.cc): Likewise.
19160 (CFLAGS-tst-lfschk5.cc): Likewise.
19161 (CFLAGS-tst-lfschk6.cc): Likewise.
19162 (CFLAGS-tst-ssp-1.c): Likewise.
19163 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
19164 (CFLAGS-scandir64.c): Likewise.
19165 (CFLAGS-scandir-tail.c): Likewise.
19166 (CFLAGS-scandir64-tail.c): Likewise.
19167 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
19168 (CFLAGS-dl-tunables.c): Likewise.
19169 (CFLAGS-dl-runtime.c): Likewise.
19170 (CFLAGS-dl-lookup.c): Likewise.
19171 (CFLAGS-dl-iterate-phdr.c): Likewise.
19172 (CFLAGS-vismain.c): Likewise.
19173 (CFLAGS-tst-linkall-static.c): Likewise.
19174 (CFLAGS-tst-linkall-static.c): Likewise.
19175 (CPPFLAGS-dl-load.c): Likewise.
19176 (CFLAGS-ldconfig.c): Likewise.
19177 (CFLAGS-dl-cache.c): Likewise.
19178 (CFLAGS-cache.c): Likewise.
19179 (CFLAGS-rtld.c): Likewise.
19180 (CFLAGS-multiload.c): Likewise.
19181 (CFLAGS-filtmod1.c): Likewise.
19182 (CFLAGS-tst-align.c): Likewise.
19183 (CFLAGS-tst-align2.c): Likewise.
19184 (CFLAGS-tst-alignmod.c): Likewise.
19185 (CFLAGS-tst-alignmod2.c): Likewise.
19186 (CPPFLAGS-tst-execstack.c): Likewise.
19187 (CFLAGS-tst-ptrguard1-static.c): Likewise.
19188 (CFLAGS-tst-latepthreadmod.c): Likewise.
19189 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
19190 (CFLAGS-getgrnam_r.c): Likewise.
19191 (CFLAGS-getgrent_r.c): Likewise.
19192 (CFLAGS-getgrent.c): Likewise.
19193 (CFLAGS-fgetgrent.c): Likewise.
19194 (CFLAGS-fgetgrent_r.c): Likewise.
19195 (CFLAGS-putgrent.c): Likewise.
19196 (CFLAGS-initgroups.c): Likewise.
19197 (CFLAGS-getgrgid.c): Likewise.
19198 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
19199 (CFLAGS-getsgent.c): Likewise.
19200 (CFLAGS-fgetsgent.c): Likewise.
19201 (CFLAGS-fgetsgent_r.c): Likewise.
19202 (CFLAGS-putsgent.c): Likewise.
19203 (CFLAGS-getsgnam.c): Likewise.
19204 (CFLAGS-getsgnam_r.c): Likewise.
19205 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
19206 (CFLAGS-iconv_charmap.c): Likewise.
19207 (CFLAGS-dummy-repertoire.c): Likewise.
19208 (CFLAGS-charmap.c): Likewise.
19209 (CFLAGS-linereader.c): Likewise.
19210 (CFLAGS-simple-hash.c): Likewise.
19211 (CFLAGS-gconv_conf.c): Likewise.
19212 (CFLAGS-iconvconfig.c): Likewise.
19213 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
19214 (CFLAGS-gethstbyad.c): Likewise.
19215 (CFLAGS-gethstbynm_r.c): Likewise.
19216 (CFLAGS-gethstbynm.c): Likewise.
19217 (CFLAGS-gethstbynm2_r.c): Likewise.
19218 (CFLAGS-gethstbynm2.c): Likewise.
19219 (CFLAGS-gethstent_r.c): Likewise.
19220 (CFLAGS-gethstent.c): Likewise.
19221 (CFLAGS-rcmd.c): Likewise.
19222 (CFLAGS-getnetbynm_r.c): Likewise.
19223 (CFLAGS-getnetbynm.c): Likewise.
19224 (CFLAGS-getnetbyad_r.c): Likewise.
19225 (CFLAGS-getnetbyad.c): Likewise.
19226 (CFLAGS-getnetent_r.c): Likewise.
19227 (CFLAGS-getnetent.c): Likewise.
19228 (CFLAGS-getaliasent_r.c): Likewise.
19229 (CFLAGS-getaliasent.c): Likewise.
19230 (CFLAGS-getrpcent_r.c): Likewise.
19231 (CFLAGS-getrpcent.c): Likewise.
19232 (CFLAGS-getservent_r.c): Likewise.
19233 (CFLAGS-getservent.c): Likewise.
19234 (CFLAGS-getprtent_r.c): Likewise.
19235 (CFLAGS-getprtent.c): Likewise.
19236 (CFLAGS-either_ntoh.c): Likewise.
19237 (CFLAGS-either_hton.c): Likewise.
19238 (CFLAGS-getnetgrent.c): Likewise.
19239 (CFLAGS-getnetgrent_r.c): Likewise.
19240 (CFLAGS-tst-checks-posix.c): Likewise.
19241 (CFLAGS-tst-sockaddr.c): Likewise.
19242 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
19243 (CFLAGS-tst-translit.c): Likewise.
19244 (CFLAGS-tst-gettext2.c): Likewise.
19245 (CFLAGS-tst-codeset.c): Likewise.
19246 (CFLAGS-tst-gettext3.c): Likewise.
19247 (CFLAGS-tst-gettext4.c): Likewise.
19248 (CFLAGS-tst-gettext5.c): Likewise.
19249 (CFLAGS-tst-gettext6.c): Likewise.
19250 * io/Makefile (CFLAGS-open.c): Likewise.
19251 (CFLAGS-open64.c): Likewise.
19252 (CFLAGS-creat.c): Likewise.
19253 (CFLAGS-creat64.c): Likewise.
19254 (CFLAGS-fcntl.c): Likewise.
19255 (CFLAGS-poll.c): Likewise.
19256 (CFLAGS-ppoll.c): Likewise.
19257 (CFLAGS-lockf.c): Likewise.
19258 (CFLAGS-statfs.c): Likewise.
19259 (CFLAGS-fstatfs.c): Likewise.
19260 (CFLAGS-statvfs.c): Likewise.
19261 (CFLAGS-fstatvfs.c): Likewise.
19262 (CFLAGS-fts.c): Likewise.
19263 (CFLAGS-fts64.c): Likewise.
19264 (CFLAGS-ftw.c): Likewise.
19265 (CFLAGS-ftw64.c): Likewise.
19266 (CFLAGS-lockf.c): Likewise.
19267 (CFLAGS-posix_fallocate.c): Likewise.
19268 (CFLAGS-posix_fallocate64.c): Likewise.
19269 (CFLAGS-fallocate.c): Likewise.
19270 (CFLAGS-fallocate64.c): Likewise.
19271 (CFLAGS-read.c): Likewise.
19272 (CFLAGS-write.c): Likewise.
19273 (CFLAGS-test-stat.c): Likewise.
19274 (CFLAGS-test-lfs.c): Likewise.
19275 * libio/Makefile (CFLAGS-fileops.c): Likewise.
19276 (CFLAGS-fputc.c): Likewise.
19277 (CFLAGS-fputwc.c): Likewise.
19278 (CFLAGS-freopen64.c): Likewise.
19279 (CFLAGS-freopen.c): Likewise.
19280 (CFLAGS-fseek.c): Likewise.
19281 (CFLAGS-fseeko64.c): Likewise.
19282 (CFLAGS-fseeko.c): Likewise.
19283 (CFLAGS-ftello64.c): Likewise.
19284 (CFLAGS-ftello.c): Likewise.
19285 (CFLAGS-fwide.c): Likewise.
19286 (CFLAGS-genops.c): Likewise.
19287 (CFLAGS-getc.c): Likewise.
19288 (CFLAGS-getchar.c): Likewise.
19289 (CFLAGS-getwc.c): Likewise.
19290 (CFLAGS-getwchar.c): Likewise.
19291 (CFLAGS-iofclose.c): Likewise.
19292 (CFLAGS-iofflush.c): Likewise.
19293 (CFLAGS-iofgetpos64.c): Likewise.
19294 (CFLAGS-iofgetpos.c): Likewise.
19295 (CFLAGS-iofgets.c): Likewise.
19296 (CFLAGS-iofgetws.c): Likewise.
19297 (CFLAGS-iofputs.c): Likewise.
19298 (CFLAGS-iofputws.c): Likewise.
19299 (CFLAGS-iofread.c): Likewise.
19300 (CFLAGS-iofsetpos64.c): Likewise.
19301 (CFLAGS-iofsetpos.c): Likewise.
19302 (CFLAGS-ioftell.c): Likewise.
19303 (CFLAGS-iofwrite.c): Likewise.
19304 (CFLAGS-iogetdelim.c): Likewise.
19305 (CFLAGS-iogetline.c): Likewise.
19306 (CFLAGS-iogets.c): Likewise.
19307 (CFLAGS-iogetwline.c): Likewise.
19308 (CFLAGS-ioputs.c): Likewise.
19309 (CFLAGS-ioseekoff.c): Likewise.
19310 (CFLAGS-ioseekpos.c): Likewise.
19311 (CFLAGS-iosetbuffer.c): Likewise.
19312 (CFLAGS-iosetvbuf.c): Likewise.
19313 (CFLAGS-ioungetc.c): Likewise.
19314 (CFLAGS-ioungetwc.c): Likewise.
19315 (CFLAGS-oldfileops.c): Likewise.
19316 (CFLAGS-oldiofclose.c): Likewise.
19317 (CFLAGS-oldiofgetpos64.c): Likewise.
19318 (CFLAGS-oldiofgetpos.c): Likewise.
19319 (CFLAGS-oldiofsetpos64.c): Likewise.
19320 (CFLAGS-oldiofsetpos.c): Likewise.
19321 (CFLAGS-peekc.c): Likewise.
19322 (CFLAGS-putc.c): Likewise.
19323 (CFLAGS-putchar.c): Likewise.
19324 (CFLAGS-putwc.c): Likewise.
19325 (CFLAGS-putwchar.c): Likewise.
19326 (CFLAGS-rewind.c): Likewise.
19327 (CFLAGS-wfileops.c): Likewise.
19328 (CFLAGS-wgenops.c): Likewise.
19329 (CFLAGS-oldiofopen.c): Likewise.
19330 (CFLAGS-iofopen.c): Likewise.
19331 (CFLAGS-iofopen64.c): Likewise.
19332 (CFLAGS-oldtmpfile.c): Likewise.
19333 (CFLAGS-tst_putwc.c): Likewise.
19334 * locale/Makefile (CFLAGS-md5.c): Likewise.
19335 (CFLAGS-charmap.c): Likewise.
19336 (CFLAGS-locfile.c): Likewise.
19337 (CFLAGS-charmap-dir.c): Likewise.
19338 * login/Makefile (CFLAGS-grantpt.c): Likewise.
19339 (CFLAGS-getpt.c): Likewise.
19340 (CFLAGS-pt_chown.c): Likewise.
19341 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
19342 (CFLAGS-obstack.c): Likewise.
19343 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
19344 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
19345 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
19346 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
19347 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
19348 (CFLAGS-test-tgmath.c): Likewise.
19349 (CFLAGS-test-tgmath2.c): Likewise.
19350 (CFLAGS-test-tgmath-ret.c): Likewise.
19351 (CFLAGS-test-powl.c): Likewise.
19352 (CFLAGS-test-snan.c): Likewise.
19353 (CFLAGS-test-signgam-finite.c): Likewise.
19354 (CFLAGS-test-signgam-finite-c99.c): Likewise.
19355 (CFLAGS-test-signgam-finite-c11.c): Likewise.
19356 (CFLAGS-test-signgam-uchar.c): Likewise.
19357 (CFLAGS-test-signgam-uchar-init.c): Likewise.
19358 (CFLAGS-test-signgam-uchar-static.c): Likewise.
19359 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
19360 (CFLAGS-test-signgam-uint.c): Likewise.
19361 (CFLAGS-test-signgam-uint-init.c): Likewise.
19362 (CFLAGS-test-signgam-uint-static.c): Likewise.
19363 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
19364 (CFLAGS-test-signgam-ullong.c): Likewise.
19365 (CFLAGS-test-signgam-ullong-init.c): Likewise.
19366 (CFLAGS-test-signgam-ullong-static.c): Likewise.
19367 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
19368 (CFLAGS-test-math-cxx11.cc): Likewise.
19369 (CFLAGS-test-math-isinff.cc): Likewise.
19370 (CFLAGS-test-math-iszero.cc): Likewise.
19371 (CFLAGS-test-math-issignaling.cc): Likewise.
19372 (CFLAGS-test-math-iscanonical.cc): Likewise.
19373 (CFLAGS-test-iszero-excess-precision.c): Likewise.
19374 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
19375 (CFLAGS-test-flt-eval-method.c): Likewise.
19376 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
19377 (CFLAGS-test-finite-macros.c): Likewise.
19378 * misc/Makefile (CFLAGS-select.c): Likewise.
19379 (CFLAGS-tsearch.c): Likewise.
19380 (CFLAGS-lsearch.c): Likewise.
19381 (CFLAGS-pselect.c): Likewise.
19382 (CFLAGS-readv.c): Likewise.
19383 (CFLAGS-writev.c): Likewise.
19384 (CFLAGS-preadv.c): Likewise.
19385 (CFLAGS-preadv64.c): Likewise.
19386 (CFLAGS-pwritev.c): Likewise.
19387 (CFLAGS-pwritev64.c): Likewise.
19388 (CFLAGS-preadv2.c): Likewise.
19389 (CFLAGS-preadv64v2.c): Likewise.
19390 (CFLAGS-pwritev2.c): Likewise.
19391 (CFLAGS-pwritev64v2.c): Likewise.
19392 (CFLAGS-usleep.c): Likewise.
19393 (CFLAGS-syslog.c): Likewise.
19394 (CFLAGS-error.c): Likewise.
19395 (CFLAGS-getpass.c): Likewise.
19396 (CFLAGS-mkstemp.c): Likewise.
19397 (CFLAGS-mkstemp64.c): Likewise.
19398 (CFLAGS-getsysstats.c): Likewise.
19399 (CFLAGS-getusershell.c): Likewise.
19400 (CFLAGS-err.c): Likewise.
19401 (CFLAGS-tst-tsearch.c): Likewise.
19402 (CFLAGS-msync.c): Likewise.
19403 (CFLAGS-fdatasync.c): Likewise.
19404 (CFLAGS-fsync.c): Likewise.
19405 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
19406 (CFLAGS-unwind.c): Likewise.
19407 (CFLAGS-unwind-forcedunwind.c): Likewise.
19408 (CFLAGS-pthread_cancel.c): Likewise.
19409 (CFLAGS-pthread_setcancelstate.c): Likewise.
19410 (CFLAGS-pthread_setcanceltype.c): Likewise.
19411 (CFLAGS-cancellation.c): Likewise.
19412 (CFLAGS-libc-cancellation.c): Likewise.
19413 (CFLAGS-pthread_exit.c): Likewise.
19414 (CFLAGS-forward.c): Likewise.
19415 (CFLAGS-pthread_testcancel.c): Likewise.
19416 (CFLAGS-pthread_join.c): Likewise.
19417 (CFLAGS-pthread_timedjoin.c): Likewise.
19418 (CFLAGS-pthread_once.c): Likewise.
19419 (CFLAGS-pthread_cond_wait.c): Likewise.
19420 (CFLAGS-sem_wait.c): Likewise.
19421 (CFLAGS-sem_timedwait.c): Likewise.
19422 (CFLAGS-fcntl.c): Likewise.
19423 (CFLAGS-lockf.c): Likewise.
19424 (CFLAGS-pread.c): Likewise.
19425 (CFLAGS-pread64.c): Likewise.
19426 (CFLAGS-pwrite.c): Likewise.
19427 (CFLAGS-pwrite64.c): Likewise.
19428 (CFLAGS-wait.c): Likewise.
19429 (CFLAGS-waitpid.c): Likewise.
19430 (CFLAGS-sigwait.c): Likewise.
19431 (CFLAGS-msgrcv.c): Likewise.
19432 (CFLAGS-msgsnd.c): Likewise.
19433 (CFLAGS-tcdrain.c): Likewise.
19434 (CFLAGS-open.c): Likewise.
19435 (CFLAGS-open64.c): Likewise.
19436 (CFLAGS-pause.c): Likewise.
19437 (CFLAGS-recv.c): Likewise.
19438 (CFLAGS-send.c): Likewise.
19439 (CFLAGS-accept.c): Likewise.
19440 (CFLAGS-sendto.c): Likewise.
19441 (CFLAGS-connect.c): Likewise.
19442 (CFLAGS-recvfrom.c): Likewise.
19443 (CFLAGS-recvmsg.c): Likewise.
19444 (CFLAGS-sendmsg.c): Likewise.
19445 (CFLAGS-close.c): Likewise.
19446 (CFLAGS-read.c): Likewise.
19447 (CFLAGS-write.c): Likewise.
19448 (CFLAGS-nanosleep.c): Likewise.
19449 (CFLAGS-sigsuspend.c): Likewise.
19450 (CFLAGS-msync.c): Likewise.
19451 (CFLAGS-fdatasync.c): Likewise.
19452 (CFLAGS-fsync.c): Likewise.
19453 (CFLAGS-pt-system.c): Likewise.
19454 (CFLAGS-tst-cleanup2.c): Likewise.
19455 (CFLAGS-tst-cleanupx2.c): Likewise.
19456 (CFLAGS-flockfile.c): Likewise.
19457 (CFLAGS-ftrylockfile.c): Likewise.
19458 (CFLAGS-funlockfile.c): Likewise.
19459 (CFLAGS-tst-initializers1.c): Likewise.
19460 (CFLAGS-tst-initializers1-c89.c): Likewise.
19461 (CFLAGS-tst-initializers1-c99.c): Likewise.
19462 (CFLAGS-tst-initializers1-c11.c): Likewise.
19463 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
19464 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
19465 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
19466 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
19467 (CFLAGS-nscd_getgr_r.c): Likewise.
19468 (CFLAGS-nscd_gethst_r.c): Likewise.
19469 (CFLAGS-nscd_getai.c): Likewise.
19470 (CFLAGS-nscd_initgroups.c): Likewise.
19471 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
19472 (CFLAGS-pause.c): Likewise.
19473 (CFLAGS-pread.c): Likewise.
19474 (CFLAGS-pread64.c): Likewise.
19475 (CFLAGS-pwrite.c): Likewise.
19476 (CFLAGS-pwrite64.c): Likewise.
19477 (CFLAGS-sleep.c): Likewise.
19478 (CFLAGS-wait.c): Likewise.
19479 (CFLAGS-waitid.c): Likewise.
19480 (CFLAGS-waitpid.c): Likewise.
19481 (CFLAGS-getopt.c): Likewise.
19482 (CFLAGS-wordexp.c): Likewise.
19483 (CFLAGS-sysconf.c): Likewise.
19484 (CFLAGS-pathconf.c): Likewise.
19485 (CFLAGS-fpathconf.c): Likewise.
19486 (CFLAGS-spawn.c): Likewise.
19487 (CFLAGS-spawnp.c): Likewise.
19488 (CFLAGS-spawni.c): Likewise.
19489 (CFLAGS-glob.c): Likewise.
19490 (CFLAGS-glob64.c): Likewise.
19491 (CFLAGS-getconf.c): Likewise.
19492 (CFLAGS-nanosleep.c): Likewise.
19493 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
19494 (CFLAGS-getpwent.c): Likewise.
19495 (CFLAGS-getpw.c): Likewise.
19496 (CFLAGS-fgetpwent_r.c): Likewise.
19497 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
19498 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
19499 (CFLAGS-mq_timedreceive.c): Likewise.
19500 (CFLAGS-mq_timedsend.c): Likewise.
19501 (CFLAGS-clock_nanosleep.c): Likewise.
19502 (CFLAGS-librt-cancellation.c): Likewise.
19503 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
19504 (CFLAGS-getspent.c): Likewise.
19505 (CFLAGS-fgetspent.c): Likewise.
19506 (CFLAGS-fgetspent_r.c): Likewise.
19507 (CFLAGS-putspent.c): Likewise.
19508 (CFLAGS-getspnam.c): Likewise.
19509 (CFLAGS-getspnam_r.c): Likewise.
19510 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
19511 (CFLAGS-sigsuspend.c): Likewise.
19512 (CFLAGS-sigtimedwait.c): Likewise.
19513 (CFLAGS-sigwait.c): Likewise.
19514 (CFLAGS-sigwaitinfo.c): Likewise.
19515 (CFLAGS-sigreturn.c): Likewise.
19516 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
19517 (CFLAGS-vfwprintf.c): Likewise.
19518 (CFLAGS-tmpfile.c): Likewise.
19519 (CFLAGS-tmpfile64.c): Likewise.
19520 (CFLAGS-tempname.c): Likewise.
19521 (CFLAGS-psignal.c): Likewise.
19522 (CFLAGS-vprintf.c): Likewise.
19523 (CFLAGS-cuserid.c): Likewise.
19524 (CFLAGS-errlist.c): Likewise.
19525 (CFLAGS-siglist.c): Likewise.
19526 (CFLAGS-scanf15.c): Likewise.
19527 (CFLAGS-scanf17.c): Likewise.
19528 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
19529 (CFLAGS-msort.c): Likewise.
19530 (CFLAGS-qsort.c): Likewise.
19531 (CFLAGS-system.c): Likewise.
19532 (CFLAGS-fmtmsg.c): Likewise.
19533 (CFLAGS-strfmon.c): Likewise.
19534 (CFLAGS-strfmon_l.c): Likewise.
19535 (CFLAGS-strfromd.c): Likewise.
19536 (CFLAGS-strfromf.c): Likewise.
19537 (CFLAGS-strfroml.c): Likewise.
19538 (CFLAGS-tst-bsearch.c): Likewise.
19539 (CFLAGS-tst-qsort.c): Likewise.
19540 (CFLAGS-tst-makecontext2.c): Likewise.
19541 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
19542 (CFLAGS-xnlm_prot.c): Likewise.
19543 (CFLAGS-xrstat.c): Likewise.
19544 (CFLAGS-xyppasswd.c): Likewise.
19545 (CFLAGS-xklm_prot.c): Likewise.
19546 (CFLAGS-xrex.c): Likewise.
19547 (CFLAGS-xsm_inter.c): Likewise.
19548 (CFLAGS-xmount.c): Likewise.
19549 (CFLAGS-xrusers.c): Likewise.
19550 (CFLAGS-xspray.c): Likewise.
19551 (CFLAGS-xnfs_prot.c): Likewise.
19552 (CFLAGS-xrquota.c): Likewise.
19553 (CFLAGS-xkey_prot.c): Likewise.
19554 (CFLAGS-auth_unix.c): Likewise.
19555 (CFLAGS-key_call.c): Likewise.
19556 (CFLAGS-pmap_rmt.c): Likewise.
19557 (CFLAGS-clnt_perr.c): Likewise.
19558 (CFLAGS-openchild.c): Likewise.
19559 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
19560 (CFLAGS-msgsnd.c): Likewise.
19561 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
19562 * time/Makefile (CFLAGS-tzfile.c): Likewise.
19563 (CFLAGS-tzset.c): Likewise.
19564 (CFLAGS-getdate.c): Likewise.
19565 (CFLAGS-test_time.c): Likewise.
19566 (CPPFLAGS-tst-tzname.c): Likewise.
19567 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
19568 (CFLAGS-zic.c): Likewise.
19569 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
19570 (CFLAGS-wcswidth.c): Likewise.
19571 (CFLAGS-wcstol.c): Likewise.
19572 (CFLAGS-wcstoul.c): Likewise.
19573 (CFLAGS-wcstoll.c): Likewise.
19574 (CFLAGS-wcstoull.c): Likewise.
19575 (CFLAGS-wcstod.c): Likewise.
19576 (CFLAGS-wcstold.c): Likewise.
19577 (CFLAGS-wcstof128.c): Likewise.
19578 (CFLAGS-wcstof.c): Likewise.
19579 (CFLAGS-wcstol_l.c): Likewise.
19580 (CFLAGS-wcstoul_l.c): Likewise.
19581 (CFLAGS-wcstoll_l.c): Likewise.
19582 (CFLAGS-wcstoull_l.c): Likewise.
19583 (CFLAGS-wcstod_l.c): Likewise.
19584 (CFLAGS-wcstold_l.c): Likewise.
19585 (CFLAGS-wcstof128_l.c): Likewise.
19586 (CFLAGS-wcstof_l.c): Likewise.
19587 (CPPFLAGS-tst-wchar-h.c): Likewise.
19588 (CPPFLAGS-wcstold_l.c): Likewise.
19589
19590 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
19591
19592 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
19593
19594 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
19595 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19596
19597 * manual/tunables.texi (Hardware Capability Tunables): Document
19598 glibc.tune.cached_memopt.
19599 * sysdeps/powerpc/cpu-features.c: New file.
19600 * sysdeps/powerpc/cpu-features.h: New file.
19601 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
19602 _dl_powerpc_cpu_features.
19603 * sysdeps/powerpc/dl-tunables.list: New file.
19604 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
19605 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
19606 (INIT_ARCH): Initialize use_aligned_memopt.
19607 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
19608 IS_IN(rtld))]: Restrict dl_platform_init availability and
19609 initialize CPU features used by tunables.
19610 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
19611 Add memcpy-power8-cached.
19612 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
19613 __memcpy_power8_cached.
19614 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
19615 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
19616 New file.
19617
19618 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19619
19620 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
19621 (CFLAGS-noinl-tester.c): Likewise.
19622 (CFLAGS-tst-strlen.c): Likewise.
19623 (CFLAGS-stratcliff.c): Likewise.
19624 (CFLAGS-test-ffs.c): Likewise.
19625 (CFLAGS-tst-inlcall.c): Likewise.
19626 (CFLAGS-tst-xbzero-opt.c): Likewise.
19627 (CFLAGS-memcpy.c): Likewise.
19628 (CFLAGS-wordcopy.c): Likewise.
19629
19630 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
19631
19632 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
19633 Store r15 on stack and add cfi rule.
19634 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
19635 Likewise.
19636
19637 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
19638
19639 [BZ #22577]
19640 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
19641 call.
19642
19643 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19644
19645 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19646 Add s_sinf-sse2 and s_sinf-fma.
19647 (CFLAGS-s_sinf-fma.c): New.
19648 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
19649 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
19650 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
19651
19652 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19653
19654 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
19655
19656 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19657
19658 [BZ #22568]
19659 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
19660 part of result to imaginary part of argument if it is zero and the
19661 real part of the argument is not finite.
19662 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
19663 of result to real part of argument if it is zero and the imaginary
19664 part of the argument is not finite.
19665
19666 2017-12-07 Mike FABIAN <mfabian@redhat.com>
19667
19668 [BZ #22524]
19669 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
19670 and to the list of locales to be built for testing.
19671 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
19672 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
19673 and build the collation rules upon that.
19674
19675 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19676
19677 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
19678 * manual/math.texi (Mathematics): Document support for _Float32.
19679 * math/Makefile (test-types): Add float32.
19680 * math/Versions (GLIBC_2.27): Add _Float32 functions.
19681 * stdlib/Versions (GLIBC_2.27): Likewise.
19682 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19683 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19684 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19685 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19686 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19687 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19688 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19689 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19690 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19691 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19692 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19693 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19694 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19695 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19696 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19697 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19698 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19699 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19700 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19701 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19702 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19703 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19704 Likewise.
19705 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19706 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19707 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19708 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19709 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19710 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19711 Likewise.
19712 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19713 Likewise.
19714 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19715 Likewise.
19716 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19717 Likewise.
19718
19719 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19720 Likewise.
19721 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19722 Likewise.
19723 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19724 Likewise.
19725 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19726 Likewise.
19727 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19728 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19729 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19730 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19731 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19732 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19733 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19734 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19735 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19736 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19737 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19738 Likewise.
19739 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19740 Likewise.
19741 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19742 Likewise.
19743 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19744 Likewise.
19745 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19746 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19747 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19748 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19749 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19750 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19751 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19752 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19753
19754 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19755
19756 * stdlib/strtof.c: Include <bits/floatn.h>
19757 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
19758 and later undefine as macro. Define as weak alias if
19759 [!USE_WIDE_CHAR].
19760 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
19761 and later undefine as macro. Define as weak alias if
19762 [USE_WIDE_CHAR].
19763 * stdlib/strtof_l.c: Include <bits/floatn.h>
19764 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
19765 and later undefine as macro. Define as weak alias if
19766 [!USE_WIDE_CHAR].
19767 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
19768 and later undefine as macro. Define as weak alias if
19769 [USE_WIDE_CHAR].
19770
19771 * stdlib/strfromf.c: Include <bits/floatn.h>.
19772 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
19773 and later undefine as macro and define as weak alias.
19774
19775 * math/test-float32.h: New file.
19776
19777 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
19778 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
19779 (libm_alias_float_other_r): Create f32 alias.
19780 (libm_alias_float_r): Use semicolon before call to
19781 libm_alias_float_other_r.
19782
19783 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
19784 second argument to libm_alias_float_other.
19785 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
19786 second argument to libm_alias_float_other.
19787 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
19788 argument to libm_alias_float_other.
19789
19790 [BZ #22561]
19791 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
19792 real part of result for argument 0 + i * NaN.
19793 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
19794 results for tests of 0 + i * NaN.
19795
19796 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19797
19798 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19799
19800 2017-12-06 David S. Miller <davem@davemloft.net>
19801
19802 * sysdeps/sparc/fpu/libm-test-ulps: Update
19803 exp_{downward,towardzero,upward} ulps.
19804
19805 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19806
19807 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
19808 variables static.
19809
19810 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
19811 (Y0_2D): Likewise.
19812 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
19813 (Y0_2D): Likewise.
19814 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
19815 (Y0_2D): Likewise.
19816 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
19817 (Y0_2D): Likewise.
19818
19819 2017-12-06 Mike FABIAN <mfabian@redhat.com>
19820
19821 [BZ #22515]
19822 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
19823 and to the list of locales to be built for testing.
19824 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
19825 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
19826 and build the collation rules upon that.
19827
19828 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19829
19830 * NEWS: Add sinf to list of optimized functions.
19831
19832 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19833
19834 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
19835 (__HAVE_FLOAT32X): Likewise.
19836 * manual/math.texi (Mathematics): Document support for _Float64
19837 and _Float32x.
19838 * math/Makefile (test-types): Add float64 and float32x.
19839 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
19840 functions.
19841 * stdlib/Versions (GLIBC_2.27): Likewise.
19842 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19843 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19844 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19845 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19846 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19847 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19848 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19849 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19850 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19851 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19852 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19853 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19854 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19855 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19856 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19857 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19858 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19859 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19860 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19861 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19862 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19863 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19864 Likewise.
19865 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19866 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19867 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19868 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19869 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19870 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19871 Likewise.
19872 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19873 Likewise.
19874 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19875 Likewise.
19876 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19877 Likewise.
19878 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19879 Likewise.
19880 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19881 Likewise.
19882 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19883 Likewise.
19884 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19885 Likewise.
19886 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19887 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19888 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19889 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19890 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19891 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19892 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19893 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19894 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19895 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19896 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19897 Likewise.
19898 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19899 Likewise.
19900 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19901 Likewise.
19902 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19903 Likewise.
19904 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19905 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19906 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19907 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19908 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19909 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19910 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19911 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19912
19913 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19914
19915 * bits/floatn-common.h: Include <bits/long-double.h>.
19916 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19917 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
19918 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19919 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
19920 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19921 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
19922 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19923 (__builtin_huge_valf64): Use __builtin_huge_vall.
19924 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19925 (__builtin_inff64): Use __builtin_infl.
19926 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19927 (__builtin_nanf64): Use __builtin_nanl.
19928 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19929 (__builtin_nansf64): Use __builtin_nansl.
19930
19931 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
19932 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
19933 Carlos O'Donnell <carlos@redhat.com>
19934
19935 * elf/dl-tunables.list: Add elision parameters.
19936 * manual/tunables.texi: Add entries about elision tunable.
19937 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
19938 Add callback functions to dynamically enable/disable elision.
19939 Add multiple callbacks functions to set elision parameters.
19940 Deleted __libc_enable_secure check.
19941 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
19942 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
19943 * configure: Regenerated.
19944 * configure.ac: Option enable_lock_elision was deleted.
19945 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
19946 * config.make.in: Remove references to enable_lock_elision.
19947 * manual/install.texi: Elision configure option was removed.
19948 * INSTALL: Regenerated to remove enable_lock_elision.
19949 * nptl/Makefile:
19950 Disable elision so it can verify error case for destroying a mutex.
19951 * sysdeps/powerpc/nptl/elide.h:
19952 Cleanup ENABLE_LOCK_ELISION check.
19953 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19954 * sysdeps/s390/configure: Regenerated.
19955 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19956 * nptl/tst-mutex8.c:
19957 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19958 * sysdeps/powerpc/powerpc32/sysdep.h:
19959 Deleted all ENABLE_LOCK_ELISION checks.
19960 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19961 * sysdeps/powerpc/sysdep.h: Likewise.
19962 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19963 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19964 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19965 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19966 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19967 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19968 enable-lock-elision.
19969
19970 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19971
19972 * stdlib/strtod.c: Include <bits/floatn.h>.
19973 (BUILD_DOUBLE): New macro.
19974 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19975 (strtof64): Define and later undefine as macro. Define as weak
19976 alias if [!USE_WIDE_CHAR].
19977 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19978 (wcstof64): Define and later undefine as macro. Define as weak
19979 alias if [USE_WIDE_CHAR].
19980 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19981 (strtof32x): Define and later undefine as macro. Define as weak
19982 alias if [!USE_WIDE_CHAR].
19983 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19984 (wcstof32x): Define and later undefine as macro. Define as weak
19985 alias if [USE_WIDE_CHAR].
19986 * stdlib/strtod_l.c: Include <bits/floatn.h>.
19987 (BUILD_DOUBLE): New macro.
19988 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19989 (strtof64_l): Define and later undefine as macro. Define as weak
19990 alias if [!USE_WIDE_CHAR].
19991 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19992 (wcstof64_l): Define and later undefine as macro. Define as weak
19993 alias if [USE_WIDE_CHAR].
19994 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19995 (strtof32x_l): Define and later undefine as macro. Define as weak
19996 alias if [!USE_WIDE_CHAR].
19997 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19998 (wcstof32x_l): Define and later undefine as macro. Define as weak
19999 alias if [USE_WIDE_CHAR].
20000
20001 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20002
20003 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
20004 (reduced): Use ones as double instead of integer.
20005
20006 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
20007
20008 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
20009
20010 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20011
20012 * stdlib/strfromd.c: Include <bits/floatn.h>.
20013 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
20014 and later undefine as macro and define as weak alias.
20015 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
20016 Likewise.
20017
20018 * math/test-float32x.h: New file.
20019 * math/test-float64.h: Likewise.
20020
20021 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
20022 (libm_alias_double_other_r_f64): New macro.
20023 (libm_alias_double_other_r_f32x): Likewise.
20024 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
20025 libm_alias_double_other_r_f32x.
20026 (libm_alias_double_r): Use semicolon before call to
20027 libm_alias_double_other_r.
20028 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
20029 <bits/floatn.h>.
20030 (libm_alias_double_other_r_f64): New macro.
20031 (libm_alias_double_other_r_f32x): Likewise.
20032 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
20033 libm_alias_double_other_r_f32x.
20034
20035 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
20036
20037 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
20038 int.
20039 (SINF_FUNC): Likewise. Replace floor with simple casts.
20040
20041 2017-12-05 Mike FABIAN <mfabian@redhat.com>
20042
20043 [BZ #22517]
20044 * localedata/Makefile: Add et_EE.UTF-8 to test-input
20045 and to the list of locales to be built for testing.
20046 * localedata/et_EE.UTF-8.in: New file for testing the collation.
20047 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
20048 and build the collation rules upon that.
20049
20050 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
20051
20052 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
20053 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
20054 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
20055 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
20056 instead of __insn__xxx.
20057 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
20058 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
20059 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
20060 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
20061 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
20062 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
20063
20064 2017-12-05 Florian Weimer <fweimer@redhat.com>
20065
20066 Linux: Implement interfaces for memory protection keys
20067 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
20068 xsignal, xsysconf.
20069 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
20070 * support/xunistd.h (xsysconf): Declare.
20071 * support/xraise.c: New file.
20072 * support/xsigaction.c: Likewise.
20073 * support/xsignal.c: Likewise.
20074 * support/xsysconf.c: Likewise.
20075 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
20076 pkey_set, pkey_get, pkey_mprotect.
20077 [misc] (tests): Add tst-pkey.
20078 (tst-pkey): Link with -lpthread.
20079 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
20080 pkey_free, pkey_set, pkey_get, pkey_mprotect.
20081 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
20082 (PKEY_DISABLE_WRITE): Define.
20083 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
20084 Declare.
20085 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
20086 (SEGV_PKUERR): Add.
20087 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
20088 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
20089 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
20090 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
20091 Add.
20092 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
20093 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
20094 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
20095 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
20096 * sysdeps/unix/sysv/linux/**.abilist: Update.
20097
20098 2017-12-05 Florian Weimer <fweimer@redhat.com>
20099
20100 * support/tst-test_compare.c (subprocess): Use long long instead
20101 of long argument for consistent type width across 32-bit and
20102 64-bit architectures.
20103 (do_test): Adjust expected output.
20104
20105 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20106
20107 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
20108 (cosf): Define using libm_alias_float.
20109 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
20110 (fabsf): Define using libm_alias_float.
20111 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
20112 (fmaf): Define using libm_alias_float.
20113 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
20114 (rintf): Define using libm_alias_float.
20115 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
20116 (sinf): Define using libm_alias_float.
20117 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
20118 <libm-alias-float.h>.
20119 (modff): Define using libm_alias_float.
20120 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
20121 <libm-alias-float.h>.
20122 (logbf): Define using libm_alias_float.
20123 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
20124 <libm-alias-float.h>.
20125 (ceilf): Define using libm_alias_float.
20126 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20127 <libm-alias-float.h>.
20128 (copysignf): Define using libm_alias_float.
20129 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
20130 <libm-alias-float.h>.
20131 (floorf): Define using libm_alias_float.
20132 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
20133 <libm-alias-float.h>.
20134 (llrintf): Define using libm_alias_float.
20135 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
20136 <libm-alias-float.h>.
20137 (llroundf): Define using libm_alias_float.
20138 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20139 <libm-alias-float.h>.
20140 (lrintf): Define using libm_alias_float.
20141 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20142 <libm-alias-float.h>.
20143 (lroundf): Define using libm_alias_float.
20144 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
20145 <libm-alias-float.h>.
20146 (nearbyintf): Define using libm_alias_float.
20147 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
20148 <libm-alias-float.h>.
20149 (rintf): Define using libm_alias_float.
20150 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
20151 <libm-alias-float.h>.
20152 (roundf): Define using libm_alias_float.
20153 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
20154 <libm-alias-float.h>.
20155 (truncf): Define using libm_alias_float.
20156 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
20157 Include <libm-alias-float.h>.
20158 (ceilf): Define using libm_alias_float.
20159 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
20160 Include <libm-alias-float.h>.
20161 (copysignf): Define using libm_alias_float.
20162 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
20163 Include <libm-alias-float.h>.
20164 (floorf): Define using libm_alias_float.
20165 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
20166 Include <libm-alias-float.h>.
20167 (llrintf): Define using libm_alias_float.
20168 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
20169 Include <libm-alias-float.h>.
20170 (llroundf): Define using libm_alias_float.
20171 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
20172 Include <libm-alias-float.h>.
20173 (logbf): Define using libm_alias_float.
20174 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
20175 Include <libm-alias-float.h>.
20176 (lrintf): Define using libm_alias_float.
20177 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
20178 Include <libm-alias-float.h>.
20179 (lroundf): Define using libm_alias_float.
20180 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
20181 Include <libm-alias-float.h>.
20182 (modff): Define using libm_alias_float.
20183 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
20184 Include <libm-alias-float.h>.
20185 (roundf): Define using libm_alias_float.
20186 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
20187 Include <libm-alias-float.h>.
20188 (truncf): Define using libm_alias_float.
20189 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
20190 <libm-alias-float.h>.
20191 (llrintf): Define using libm_alias_float.
20192 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20193 <libm-alias-float.h>.
20194 (llroundf): Define using libm_alias_float.
20195 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
20196 <libm-alias-float.h>.
20197 (ceilf): Define using libm_alias_float.
20198 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
20199 <libm-alias-float.h>.
20200 (floorf): Define using libm_alias_float.
20201 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20202 <libm-alias-float.h>.
20203 (llroundf): Define using libm_alias_float.
20204 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20205 <libm-alias-float.h>.
20206 (lroundf): Define using libm_alias_float.
20207 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
20208 <libm-alias-float.h>.
20209 (roundf): Define using libm_alias_float.
20210 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
20211 <libm-alias-float.h>.
20212 (truncf): Define using libm_alias_float.
20213 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20214 <libm-alias-float.h>.
20215 (copysignf): Define using libm_alias_float.
20216 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
20217 <libm-alias-float.h>.
20218 (llrintf): Define using libm_alias_float.
20219 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20220 <libm-alias-float.h>.
20221 (llroundf): Define using libm_alias_float.
20222 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20223 <libm-alias-float.h>.
20224 (lrintf): Define using libm_alias_float.
20225 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20226 <libm-alias-float.h>.
20227 (lroundf): Define using libm_alias_float.
20228 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
20229 <libm-alias-float.h>.
20230 (ceilf): Define using libm_alias_float.
20231 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
20232 <libm-alias-float.h>.
20233 (copysignf): Define using libm_alias_float.
20234 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
20235 <libm-alias-float.h>.
20236 (cosf): Define using libm_alias_float.
20237 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
20238 <libm-alias-float.h>.
20239 (floorf): Define using libm_alias_float.
20240 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
20241 <libm-alias-float.h>.
20242 (llrintf): Define using libm_alias_float.
20243 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
20244 <libm-alias-float.h>.
20245 (llroundf): Define using libm_alias_float.
20246 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
20247 <libm-alias-float.h>.
20248 (logbf): Define using libm_alias_float.
20249 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
20250 <libm-alias-float.h>.
20251 (modff): Define using libm_alias_float.
20252 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
20253 <libm-alias-float.h>.
20254 (roundf): Define using libm_alias_float.
20255 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
20256 <libm-alias-float.h>.
20257 (sinf): Define using libm_alias_float.
20258 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
20259 <libm-alias-float.h>.
20260 (truncf): Define using libm_alias_float.
20261 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
20262 <libm-alias-float.h>.
20263 (ceilf): Define using libm_alias_float.
20264 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20265 <libm-alias-float.h>.
20266 (copysignf): Define using libm_alias_float.
20267 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
20268 <libm-alias-float.h>.
20269 (floorf): Define using libm_alias_float.
20270 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20271 <libm-alias-float.h>.
20272 (llrintf): Define using libm_alias_float.
20273 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
20274 <libm-alias-float.h>.
20275 (llroundf): Define using libm_alias_float.
20276 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
20277 <libm-alias-float.h>.
20278 (nearbyintf): Define using libm_alias_float.
20279 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
20280 <libm-alias-float.h>.
20281 (rintf): Define using libm_alias_float.
20282 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
20283 <libm-alias-float.h>.
20284 (roundf): Define using libm_alias_float.
20285 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
20286 <libm-alias-float.h>.
20287 (truncf): Define using libm_alias_float.
20288 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
20289 <libm-alias-float.h>.
20290 (ceilf): Define using libm_alias_float.
20291 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
20292 <libm-alias-float.h>.
20293 (floorf): Define using libm_alias_float.
20294 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20295 <libm-alias-float.h>.
20296 (llroundf): Define using libm_alias_float.
20297 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
20298 <libm-alias-float.h>.
20299 (roundf): Define using libm_alias_float.
20300 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
20301 <libm-alias-float.h>.
20302 (truncf): Define using libm_alias_float.
20303 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20304 <libm-alias-float.h>.
20305 (copysignf): Define using libm_alias_float.
20306 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20307 <libm-alias-float.h>.
20308 (llrintf): Define using libm_alias_float.
20309 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20310 <libm-alias-float.h>.
20311 (llroundf): Define using libm_alias_float.
20312 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
20313 <libm-alias-float.h>.
20314 (cosf): Define using libm_alias_float.
20315 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20316 <libm-alias-float.h>.
20317 (llrintf): Define using libm_alias_float.
20318 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20319 <libm-alias-float.h>.
20320 (llroundf): Define using libm_alias_float.
20321 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
20322 <libm-alias-float.h>.
20323 (sinf): Define using libm_alias_float.
20324
20325 2017-12-04 Florian Weimer <fweimer@redhat.com>
20326
20327 * support/check.h (TEST_COMPARE): Define.
20328 (support_test_compare_failure): Declare.
20329 * support/Makefile (libsupport-routines): Add
20330 support_test_compare_failure.
20331 (tests): Add tst-test_compare.
20332 * support /support_test_compare_failure.c: New file.
20333 * support/tst-test_compare.c: Likewise.
20334
20335 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20336
20337 [BZ #22527]
20338 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
20339 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
20340 available, this rewrite of the collation rules does reproduce
20341 the test file in the same order.
20342
20343 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20344
20345 [BZ #10580]
20346 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
20347 digraphs in the month and day names. Using single code points for
20348 digraphs is deprecated. While there are dedicated Unicode
20349 codepoints, for the digraphs, these are included for backwards
20350 compatibility and modern texts use a sequence of Basic Latin
20351 characters. See: https://www.unicode.org/faq/ligature_digraph.html
20352 This makes the month and day names agree exactly with CLDR now,
20353 CLDR does not use the single code points for the digraphs either.
20354
20355 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
20356
20357 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
20358
20359 2017-12-04 Joseph Myers <joseph@codesourcery.com>
20360
20361 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
20362 of floor.
20363
20364 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
20365
20366 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
20367 Define only for libc.so.
20368
20369 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
20370
20371 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
20372 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
20373 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
20374 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
20375 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
20376
20377 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20378
20379 [BZ #5997]
20380 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
20381
20382 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
20383
20384 [BZ libc/19170]
20385 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
20386 PREINIT_FUNCTION_WEAK is nonzero.
20387 (gmon_initializer): New function. Put procedure label for it in
20388 .init_array section.
20389 (_init): Don't call PREINIT_FUNCTION.
20390 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
20391 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
20392 value when map argument is null.
20393
20394 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
20395 depi instruction from PIC pc-relative sequence.
20396 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
20397 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
20398 (elf_machine_load_address): Likewise.
20399 (elf_machine_runtime_setup): Likewise.
20400
20401 2017-12-02 Joseph Myers <joseph@codesourcery.com>
20402
20403 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
20404 <libm-alias-double.h>.
20405 (logb): Define using libm_alias_double.
20406 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20407 <libm-alias-double.h>.
20408 (copysign): Define using libm_alias_double.
20409 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
20410 <libm-alias-double.h>.
20411 (llrint): Define using libm_alias_double.
20412 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
20413 <libm-alias-double.h>.
20414 (llround): Define using libm_alias_double.
20415 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20416 <libm-alias-double.h>.
20417 (lrint): Define using libm_alias_double.
20418 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20419 <libm-alias-double.h>.
20420 (lround): Define using libm_alias_double.
20421 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
20422 Include <libm-alias-double.h>.
20423 (copysign): Define using libm_alias_double.
20424 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
20425 Include <libm-alias-double.h>.
20426 (llrint): Define using libm_alias_double.
20427 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
20428 Include <libm-alias-double.h>.
20429 (llround): Define using libm_alias_double.
20430 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
20431 <libm-alias-double.h>.
20432 (logb): Define using libm_alias_double.
20433 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
20434 Include <libm-alias-double.h>.
20435 (lrint): Define using libm_alias_double.
20436 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
20437 Include <libm-alias-double.h>.
20438 (lround): Define using libm_alias_double.
20439 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
20440 <libm-alias-double.h>.
20441 (llrint): Define using libm_alias_double.
20442 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20443 <libm-alias-double.h>.
20444 (llround): Define using libm_alias_double.
20445 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20446 <libm-alias-double.h>.
20447 (llround): Define using libm_alias_double.
20448 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20449 <libm-alias-double.h>.
20450 (lround): Define using libm_alias_double.
20451 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20452 <libm-alias-double.h>.
20453 (copysign): Define using libm_alias_double.
20454 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
20455 <libm-alias-double.h>.
20456 (llrint): Define using libm_alias_double.
20457 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20458 <libm-alias-double.h>.
20459 (llround): Define using libm_alias_double.
20460 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20461 <libm-alias-double.h>.
20462 (lrint): Define using libm_alias_double.
20463 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20464 <libm-alias-double.h>.
20465 (lround): Define using libm_alias_double.
20466 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
20467 <libm-alias-double.h>.
20468 (copysign): Define using libm_alias_double.
20469 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
20470 <libm-alias-double.h>.
20471 (llrint): Define using libm_alias_double.
20472 (lrint): Likewise.
20473 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
20474 <libm-alias-double.h>.
20475 (llround): Define using libm_alias_double.
20476 (lround): Likewise.
20477 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
20478 <libm-alias-double.h>.
20479 (logb): Define using libm_alias_double.
20480 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20481 <libm-alias-double.h>.
20482 (copysign): Define using libm_alias_double.
20483 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20484 <libm-alias-double.h>.
20485 (llrint): Define using libm_alias_double.
20486 (lrint): Likewise.
20487 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
20488 <libm-alias-double.h>.
20489 (llround): Define using libm_alias_double.
20490 (lround): Likewise.
20491 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20492 <libm-alias-double.h>.
20493 (llround): Define using libm_alias_double.
20494 (lround): Likewise.
20495 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20496 <libm-alias-double.h>.
20497 (copysign): Define using libm_alias_double.
20498 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20499 <libm-alias-double.h>.
20500 (llrint): Define using libm_alias_double.
20501 (lrint): Likewise.
20502 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20503 <libm-alias-double.h>.
20504 (llround): Define using libm_alias_double.
20505 (lround): Likewise.
20506 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20507 <libm-alias-double.h>.
20508 (llrint): Define using libm_alias_double.
20509 (lrint): Likewise.
20510 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20511 <libm-alias-double.h>.
20512 (llround): Define using libm_alias_double.
20513 (lround): Likewise.
20514
20515 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20516
20517 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
20518 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
20519 compat symbol based on llround.
20520
20521 * sysdeps/powerpc/power7/fpu/s_logb.c
20522 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
20523 symbol based on __logb, not on logb.
20524 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
20525 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20526 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
20527 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20528
20529 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
20530 (rint): Define using libm_alias_double.
20531 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
20532 <libm-alias-double.h>.
20533 (modf): Define using libm_alias_double.
20534 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
20535 <libm-alias-double.h>.
20536 (ceil): Define using libm_alias_double.
20537 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
20538 <libm-alias-double.h>.
20539 (floor): Define using libm_alias_double.
20540 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
20541 <libm-alias-double.h>.
20542 (nearbyint): Define using libm_alias_double.
20543 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
20544 <libm-alias-double.h>.
20545 (rint): Define using libm_alias_double.
20546 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
20547 <libm-alias-double.h>.
20548 (round): Define using libm_alias_double.
20549 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
20550 <libm-alias-double.h>.
20551 (trunc): Define using libm_alias_double.
20552 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
20553 <libm-alias-double.h>.
20554 (ceil): Define using libm_alias_double.
20555 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
20556 Include <libm-alias-double.h>.
20557 (floor): Define using libm_alias_double.
20558 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
20559 <libm-alias-double.h>.
20560 (modf): Define using libm_alias_double.
20561 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
20562 Include <libm-alias-double.h>.
20563 (round): Define using libm_alias_double.
20564 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
20565 Include <libm-alias-double.h>.
20566 (trunc): Define using libm_alias_double.
20567 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
20568 <libm-alias-double.h>.
20569 (ceil): Define using libm_alias_double.
20570 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
20571 <libm-alias-double.h>.
20572 (floor): Define using libm_alias_double.
20573 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
20574 <libm-alias-double.h>.
20575 (round): Define using libm_alias_double.
20576 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
20577 <libm-alias-double.h>.
20578 (trunc): Define using libm_alias_double.
20579 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
20580 <libm-alias-double.h>.
20581 (ceil): Define using libm_alias_double.
20582 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
20583 <libm-alias-double.h>.
20584 (floor): Define using libm_alias_double.
20585 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
20586 <libm-alias-double.h>.
20587 (modf): Define using libm_alias_double.
20588 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
20589 <libm-alias-double.h>.
20590 (round): Define using libm_alias_double.
20591 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
20592 <libm-alias-double.h>.
20593 (trunc): Define using libm_alias_double.
20594 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
20595 <libm-alias-double.h>.
20596 (ceil): Define using libm_alias_double.
20597 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
20598 <libm-alias-double.h>.
20599 (floor): Define using libm_alias_double.
20600 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
20601 <libm-alias-double.h>.
20602 (nearbyint): Define using libm_alias_double.
20603 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
20604 <libm-alias-double.h>.
20605 (rint): Define using libm_alias_double.
20606 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
20607 <libm-alias-double.h>.
20608 (round): Define using libm_alias_double.
20609 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
20610 <libm-alias-double.h>.
20611 (trunc): Define using libm_alias_double.
20612 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
20613 <libm-alias-double.h>.
20614 (ceil): Define using libm_alias_double.
20615 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
20616 <libm-alias-double.h>.
20617 (floor): Define using libm_alias_double.
20618 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
20619 <libm-alias-double.h>.
20620 (round): Define using libm_alias_double.
20621 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
20622 <libm-alias-double.h>.
20623 (trunc): Define using libm_alias_double.
20624
20625 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
20626 (fabs): Define using libm_alias_double.
20627 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
20628 (fma): Define using libm_alias_double.
20629 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
20630 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
20631 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
20632 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
20633
20634 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20635
20636 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
20637
20638 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
20639 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
20640 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20641
20642 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
20643 due redirect macro.
20644
20645 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
20646
20647 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
20648
20649 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20650
20651 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
20652 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
20653 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
20654 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
20655
20656 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20657 (libm-sysdep_routines): Add s_nearbyintf-generic and
20658 s_nearbyint-generic.
20659 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
20660 New file.
20661 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
20662 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
20663 Likewise.
20664 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
20665 Likewise.
20666 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
20667 file.
20668 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20669 Likewise.
20670
20671 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20672 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
20673 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
20674 file.
20675 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
20676 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
20677 Likewise.
20678 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
20679 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
20680 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
20681
20682 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20683 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
20684 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
20685 file.
20686 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
20687 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
20688 Likewise.
20689 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
20690 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
20691 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
20692
20693 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20694 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
20695 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
20696 file.
20697 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
20698 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
20699 Likewise.
20700 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
20701 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
20702 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
20703
20704 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20705 (sysdep_calls): New rule.
20706 (sysdep_routines): Use sysdep_calls as base.
20707 (libm-sysdep_routines): Add generic rule for symbols shared with
20708 libc. Add s_copysign-generic and s_copysign-generic objects.
20709 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
20710 New file.
20711 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
20712 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
20713 Likewise.
20714 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
20715 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
20716 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
20717
20718 2017-12-01 Mike FABIAN <mfabian@redhat.com>
20719
20720 [BZ #22519]
20721 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
20722 the list of locales to be built for testing.
20723 * localedata/is_IS.UTF-8.in: New file.
20724 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
20725 on iso14651_t1.
20726
20727 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20728
20729 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
20730 <libm-alias-float.h>.
20731 (fabsf): Define using libm_alias_float.
20732
20733 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20734
20735 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
20736
20737 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20738
20739 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
20740 <libm-alias-float.h>.
20741 (fabsf): Define using libm_alias_float.
20742 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
20743 <libm-alias-float.h>.
20744 (lrintf): Define using libm_alias_float.
20745 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
20746 <libm-alias-float.h>.
20747 (rintf): Define using libm_alias_float.
20748
20749 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
20750 <libm-alias-double.h>.
20751 (fabs): Define using libm_alias_double.
20752 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
20753 <libm-alias-double.h>.
20754 (lrint): Define using libm_alias_double.
20755 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
20756 <libm-alias-double.h>.
20757 (rint): Define using libm_alias_double.
20758
20759 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
20760 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
20761 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
20762 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
20763 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
20764 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
20765 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
20766 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
20767 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
20768 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
20769 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
20770 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
20771 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
20772 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
20773 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
20774 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
20775 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
20776 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
20777 s_atan_template.c.
20778 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
20779 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
20780 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
20781 s_ceil_template.c.
20782 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
20783 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
20784 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
20785 s_cos_template.c.
20786 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
20787 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
20788 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
20789 s_expm1_template.c.
20790 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
20791 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
20792 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
20793 s_fabs_template.c.
20794 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
20795 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
20796 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
20797 s_floor_template.c.
20798 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
20799 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
20800 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
20801 s_frexp_template.c.
20802 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
20803 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
20804 s_lrint_template.c.
20805 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
20806 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
20807 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
20808 s_modf_template.c.
20809 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
20810 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
20811 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
20812 s_nearbyint_template.c.
20813 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
20814 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
20815 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
20816 s_remquo_template.c.
20817 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
20818 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
20819 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
20820 s_rint_template.c.
20821 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
20822 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
20823 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
20824 s_sin_template.c.
20825 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
20826 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
20827 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
20828 s_sincos_template.c.
20829 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
20830 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
20831 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
20832 s_tan_template.c.
20833 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
20834 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
20835 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
20836 s_tanh_template.c.
20837 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
20838 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
20839 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
20840 s_trunc_template.c.
20841 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
20842 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
20843 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
20844 s_atan.c instead of including s_atan.c.
20845 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
20846 s_atanf.c instead of including s_atanf.c.
20847 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
20848 s_atanl.c instead of including s_atanl.c.
20849 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
20850 instead of s_atan.c.
20851 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
20852 instead of s_atanf.c.
20853 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
20854 instead of s_atanl.c.
20855
20856 * scripts/update-copyrights: Do not handle intl/plural.c
20857 specially.
20858
20859 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
20860
20861 [BZ #22432]
20862 * configure.ac (BISON): Require to be present.
20863 * configure: Regenerated.
20864 * intl/Makefile (generated): Add plural.c.
20865 [$(BISON) != no]: Make code unconditional.
20866 (plural.c): Change rule to $(objpfx)plural.c.
20867 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
20868 * intl/plural.c: Remove.
20869 * manual/install.texi (Tools for Compilation): Document bison as
20870 required.
20871 * INSTALL: Regenerated.
20872
20873 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20874
20875 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
20876 <libm-alias-double.h>.
20877 (llrint): Define using libm_alias_double.
20878 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
20879 <libm-alias-float.h>.
20880 (llrintf): Define using libm_alias_float.
20881 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
20882 <libm-alias-ldouble.h>.
20883 (llrintl): Define using libm_alias_ldouble.
20884
20885 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
20886 declare_mgen_alias instead of weak_alias.
20887 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
20888 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
20889 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
20890
20891 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20892
20893 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20894 Add add_n-generic.
20895 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
20896 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
20897 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
20898
20899 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20900 Add submul_1-generic.
20901 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
20902 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
20903 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
20904
20905 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20906 Add addmul_1-generic.
20907 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
20908 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
20909 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
20910
20911 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20912 Add sub_n-generic.
20913 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
20914 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
20915 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
20916
20917 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20918 Add mul_1-generic.
20919 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
20920 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
20921 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
20922
20923 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20924
20925 According to CLDR, collation rules for Serbian and Bosnian
20926 should be the same as for Croatian.
20927
20928 [BZ #22534]
20929 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
20930 and to the list of locales to be built for testing.
20931 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20932 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20933 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
20934 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
20935
20936 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20937
20938 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
20939 to make test case pass.
20940 * localedata/hr_HR.UTF-8.in: Add more test strings.
20941
20942 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20943
20944 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
20945
20946 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20947
20948 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
20949 the list of locales to built for testing.
20950 * localedata/hr_HR.UTF-8.in: New file.
20951
20952 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20953
20954 [BZ #10580]
20955 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20956 iso14651_t1.
20957 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20958 CLDR (except use ligatures for the digraphs, CLDR does not use
20959 the ligatures), add first_workday, some fixes in the date and time
20960 formats.
20961 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20962 for Đ and đ.
20963 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20964 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20965 Add int_p_cs_precedes and int_n_cs_precedes.
20966 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20967 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20968 LC_MONETARY now).
20969 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20970 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
20971 name_miss.
20972 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
20973 and lang_lib. Change postal_fmt.
20974
20975 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20976
20977 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
20978 <setjmp.h>.
20979 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20980 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
20981 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20982 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
20983 * sysdeps/generic/setjmpP.h: New file.
20984 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
20985 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
20986 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
20987 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
20988 Add jmp_buf-ssp.sym.
20989 (tests): Add tst-saved_mask-1.
20990
20991 2017-11-30 Arjun Shankar <arjun@redhat.com>
20992
20993 [BZ #22375]
20994 CVE-2017-17426
20995 * malloc/malloc.c (__libc_malloc): Use checked_request2size
20996 instead of request2size.
20997
20998 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20999
21000 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
21001 (__lllrint): Remove alias.
21002 (lllrint): Likewise.
21003 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
21004 (__lllrintf): Likewise.
21005 (lllrintf): Likewise.
21006
21007 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
21008 <libm-alias-float.h>.
21009 (copysignf): Define using libm_alias_float.
21010 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
21011 <libm-alias-float.h>.
21012 (fabsf): Define using libm_alias_float.
21013 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
21014 Include <libm-alias-float.h>.
21015 (copysignf): Define using libm_alias_float.
21016 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
21017 <libm-alias-float.h>.
21018 (fabsf): Define using libm_alias_float.
21019 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
21020 <libm-alias-float.h>.
21021 (fdimf): Define using libm_alias_float.
21022 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
21023 <libm-alias-float.h>.
21024 (fmaf): Define using libm_alias_float.
21025 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
21026 <libm-alias-float.h>.
21027 (llrintf): Define using libm_alias_float.
21028 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
21029 Include <libm-alias-float.h>.
21030 (nearbyintf): Define using libm_alias_float.
21031 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
21032 <libm-alias-float.h>.
21033 (rintf): Define using libm_alias_float.
21034 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
21035 <libm-alias-float.h>.
21036 (llrintf): Define using libm_alias_float.
21037 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
21038 <libm-alias-float.h>.
21039 (lrintf): Define using libm_alias_float.
21040 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
21041 <libm-alias-float.h>.
21042 (nearbyintf): Define using libm_alias_float.
21043 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
21044 <libm-alias-float.h>.
21045 (rintf): Define using libm_alias_float.
21046 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
21047 <libm-alias-float.h>.
21048 (ceilf): Define using libm_alias_float.
21049 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
21050 <libm-alias-float.h>.
21051 (floorf): Define using libm_alias_float.
21052 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
21053 <libm-alias-float.h>.
21054 (fmaf): Define using libm_alias_float.
21055 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
21056 <libm-alias-float.h>.
21057 (lrintf): Define using libm_alias_float.
21058 (llrintf): Likewise.
21059 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
21060 <libm-alias-float.h>.
21061 (nearbyintf): Define using libm_alias_float.
21062 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
21063 <libm-alias-float.h>.
21064 (rintf): Define using libm_alias_float.
21065 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
21066 <libm-alias-float.h>.
21067 (truncf): Define using libm_alias_float.
21068 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
21069 <libm-alias-float.h>.
21070 (copysignf): Define using libm_alias_float.
21071 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
21072 <libm-alias-float.h>.
21073 (fabsf): Define using libm_alias_float.
21074 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
21075 <libm-alias-float.h>.
21076 (lrintf): Define using libm_alias_float.
21077 (llrintf): Likewise.
21078 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
21079 <libm-alias-float.h>.
21080 (nearbyintf): Define using libm_alias_float.
21081 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
21082 <libm-alias-float.h>.
21083 (rintf): Define using libm_alias_float.
21084
21085 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21086
21087 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
21088 <libm-alias-double.h>.
21089 (copysign): Define using libm_alias_double.
21090 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
21091 <libm-alias-double.h>.
21092 (fabs): Define using libm_alias_double.
21093 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
21094 Include <libm-alias-double.h>.
21095 (copysign): Define using libm_alias_double.
21096 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
21097 <libm-alias-double.h>.
21098 (fabs): Define using libm_alias_double.
21099 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
21100 <libm-alias-double.h>.
21101 (fdim): Define using libm_alias_double.
21102 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
21103 <libm-alias-double.h>.
21104 (fma): Define using libm_alias_double.
21105 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
21106 <libm-alias-double.h>.
21107 (llrint): Define using libm_alias_double.
21108 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
21109 Include <libm-alias-double.h>.
21110 (nearbyint): Define using libm_alias_double.
21111 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
21112 <libm-alias-double.h>.
21113 (rint): Define using libm_alias_double.
21114 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21115 <libm-alias-double.h>.
21116 (fabs): Define using libm_alias_double.
21117 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
21118 <libm-alias-double.h>.
21119 (llrint): Define using libm_alias_double.
21120 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
21121 <libm-alias-double.h>.
21122 (nearbyint): Define using libm_alias_double.
21123 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
21124 <libm-alias-double.h>.
21125 (rint): Define using libm_alias_double.
21126 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
21127 <libm-alias-double.h>.
21128 (ceil): Define using libm_alias_double.
21129 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
21130 <libm-alias-double.h>.
21131 (floor): Define using libm_alias_double.
21132 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
21133 <libm-alias-double.h>.
21134 (fma): Define using libm_alias_double.
21135 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
21136 <libm-alias-double.h>.
21137 (lrint): Define using libm_alias_double.
21138 (llrint): Likewise.
21139 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
21140 <libm-alias-double.h>.
21141 (nearbyint): Define using libm_alias_double.
21142 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
21143 <libm-alias-double.h>.
21144 (rint): Define using libm_alias_double.
21145 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
21146 <libm-alias-double.h>.
21147 (trunc): Define using libm_alias_double.
21148 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
21149 <libm-alias-double.h>.
21150 (copysign): Define using libm_alias_double.
21151 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
21152 <libm-alias-double.h>.
21153 (fabs): Define using libm_alias_double.
21154 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
21155 <libm-alias-double.h>.
21156 (lrint): Define using libm_alias_double.
21157 (llrint): Likewise.
21158 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
21159 <libm-alias-double.h>.
21160 (nearbyint): Define using libm_alias_double.
21161 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
21162 <libm-alias-double.h>.
21163 (rint): Define using libm_alias_double.
21164
21165 [BZ #22229]
21166 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21167 <math_ldbl_opt.h>.
21168 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
21169
21170 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
21171 SPARC --disable-multi-arch glibc variants.
21172
21173 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
21174 <libm-alias-float.h>.
21175 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21176 if [SHARED].
21177 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
21178 <libm-alias-float.h>.
21179 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21180 if [SHARED].
21181 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
21182 <libm-alias-float.h>.
21183 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21184 if [SHARED].
21185 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
21186 <libm-alias-float.h>.
21187 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21188 if [SHARED].
21189 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
21190 <libm-alias-float.h>.
21191 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21192 if [SHARED].
21193 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
21194 <libm-alias-float.h>.
21195 (ceilf): Define using libm_alias_float.
21196 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
21197 <libm-alias-float.h>.
21198 (floorf): Define using libm_alias_float.
21199 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
21200 <libm-alias-float.h>.
21201 (fmaf): Define using libm_alias_float.
21202 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
21203 <libm-alias-float.h>.
21204 (nearbyintf): Define using libm_alias_float.
21205 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
21206 <libm-alias-float.h>.
21207 (rintf): Define using libm_alias_float.
21208 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
21209 <libm-alias-float.h>.
21210 (truncf): Define using libm_alias_float.
21211 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21212 (copysignf): Define using libm_alias_float.
21213 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
21214 (cosf): Define using libm_alias_float.
21215 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21216 (fabsf): Define using libm_alias_float.
21217 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21218 (fmaxf): Define using libm_alias_float.
21219 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
21220 (fminf): Define using libm_alias_float.
21221 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21222 (llrintf): Define using libm_alias_float.
21223 [!__ILP32__] (lrintf): Likewise.
21224 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
21225 (sincosf): Define using libm_alias_float.
21226 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
21227 (sinf): Define using libm_alias_float.
21228 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21229 (lrintf): Define using libm_alias_float.
21230
21231 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
21232 <libm-alias-double.h>.
21233 (atan): Define using libm_alias_double.
21234 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
21235 <libm-alias-double.h>.
21236 (ceil): Define using libm_alias_double.
21237 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
21238 <libm-alias-double.h>.
21239 (floor): Define using libm_alias_double.
21240 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
21241 <libm-alias-double.h>.
21242 (fma): Define using libm_alias_double.
21243 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
21244 <libm-alias-double.h>.
21245 (nearbyint): Define using libm_alias_double.
21246 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
21247 <libm-alias-double.h>.
21248 (rint): Define using libm_alias_double.
21249 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
21250 <libm-alias-double.h>.
21251 (sin): Define using libm_alias_double.
21252 (cos): Likewise.
21253 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
21254 <libm-alias-double.h>.
21255 (tan): Define using libm_alias_double.
21256 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
21257 <libm-alias-double.h>.
21258 (trunc): Define using libm_alias_double.
21259 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
21260 (copysign): Define using libm_alias_double.
21261 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
21262 (fabs): Define using libm_alias_double.
21263 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
21264 (fmax): Define using libm_alias_double.
21265 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
21266 (fmin): Define using libm_alias_double.
21267 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
21268 (llrint): Define using libm_alias_double.
21269 [!__ILP32__] (lrint): Likewise.
21270 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
21271 (lrint): Define using libm_alias_double.
21272
21273 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21274
21275 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21276 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
21277 objects.
21278 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
21279 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
21280 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
21281 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
21282 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
21283 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
21284
21285 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21286 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
21287 objects.
21288 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
21289 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
21290 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
21291 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
21292 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
21293 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
21294
21295 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21296 (libm-sysdep_routines): Add s_nearbyint-generic and
21297 s_nearbyintf-generic objects.
21298 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
21299 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
21300 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
21301 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
21302 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
21303 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
21304
21305 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21306 Add s_finitef-generic and s_finite-generic objects.
21307 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
21308 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
21309 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
21310 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
21311 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
21312 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
21313
21314 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21315 Add s_isinff-generic and s_isinf-generic objects.
21316 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
21317 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
21318 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
21319 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
21320 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
21321 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
21322
21323 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21324 Add s_isnanf-generic and s_isnan-generic objects.
21325 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
21326 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
21327 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
21328 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
21329 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
21330 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
21331
21332 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
21333 macro.
21334 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
21335 rule.
21336 (sysdep_routines): Use sysdep_calls as base.
21337 (libm-sysdep_routines): Add generic rule for symbols shared with
21338 libc. Add s_signbit-generic and s_signbitf-generic objects.
21339 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
21340 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
21341 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
21342 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
21343 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
21344 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
21345
21346 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21347
21348 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
21349 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
21350 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
21351 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
21352 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
21353 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
21354 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
21355 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
21356 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
21357 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
21358 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
21359 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
21360 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
21361 libm_alias_float_r.
21362 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
21363 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
21364 (logf): Likewise.
21365 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
21366 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
21367 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
21368 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
21369 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
21370 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
21371 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
21372 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
21373 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
21374 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
21375 libm_alias_float.
21376 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
21377 (cosf): Likewise.
21378 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
21379 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
21380 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
21381 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
21382 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
21383 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
21384 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
21385 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
21386 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
21387 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
21388 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
21389 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
21390 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
21391 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
21392 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
21393 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
21394 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
21395 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
21396 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
21397 libm_alias_float.
21398 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
21399 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
21400 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
21401 * sysdeps/ia64/fpu/w_lgammaf_main.c
21402 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
21403 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
21404
21405 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21406 Alexandre Oliva <aoliva@redhat.com>
21407
21408 [BZ #17750]
21409 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
21410 * localedata/fr_CA.UTF-8.in: New file with test data for backward
21411 accents sorting.
21412 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
21413 sorting.
21414 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
21415 * localedata/locales/de_DE (LC_COLLATE): Likewise.
21416 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
21417 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
21418 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
21419 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
21420 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
21421 instead of “ifdef DIACRIT_BACKWARD”.
21422
21423 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21424
21425 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
21426 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
21427 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
21428 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
21429 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
21430 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
21431 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
21432 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
21433 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
21434 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
21435 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
21436 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
21437 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
21438 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
21439 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
21440 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
21441 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
21442 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
21443 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21444 ($(have-as-vis3) == yes): Remove conditional.
21445 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
21446 Likewise.
21447 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
21448 file.
21449 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
21450 file.
21451 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
21452 file.
21453 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
21454 file.
21455 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
21456 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
21457 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
21458 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
21459 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
21460 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
21461 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
21462 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
21463
21464 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21465
21466 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
21467 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
21468 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
21469 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
21470 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
21471 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
21472 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
21473 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
21474 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
21475 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
21476 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
21477 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
21478 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
21479 libm_alias_double_r.
21480 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
21481 (log): Likewise.
21482 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
21483 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
21484 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
21485 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
21486 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
21487 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
21488 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
21489 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
21490 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
21491 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
21492 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
21493 libm_alias_double.
21494 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
21495 (cos): Likewise.
21496 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
21497 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
21498 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
21499 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
21500 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
21501 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
21502 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
21503 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
21504 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
21505 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
21506 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
21507 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
21508 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
21509 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
21510 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
21511 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
21512 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
21513 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
21514 libm_alias_double.
21515 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
21516 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
21517 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
21518 * sysdeps/ia64/fpu/w_lgamma_main.c
21519 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
21520 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
21521
21522 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
21523
21524 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
21525 address of $global$ into %dp register earlier. Use pc-relative
21526 instruction sequence for PIC case.
21527
21528 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21529
21530 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
21531 (asinhf): Define using libm_alias_float.
21532 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
21533 (atanf): Define using libm_alias_float.
21534 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
21535 (cbrtf): Define using libm_alias_float.
21536 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
21537 (ceilf): Define using libm_alias_float.
21538 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21539 (copysignf): Define using libm_alias_float.
21540 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
21541 (expm1f): Define using libm_alias_float.
21542 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
21543 (fabsf): Define using libm_alias_float.
21544 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
21545 (floorf): Define using libm_alias_float.
21546 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21547 (fmaxf): Define using libm_alias_float.
21548 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
21549 (fminf): Define using libm_alias_float.
21550 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
21551 (frexpf): Define using libm_alias_float.
21552 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21553 (llrintf): Define using libm_alias_float.
21554 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
21555 (logbf): Define using libm_alias_float.
21556 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21557 (lrintf): Define using libm_alias_float.
21558 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
21559 (nearbyintf): Define using libm_alias_float.
21560 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
21561 (remquof): Define using libm_alias_float.
21562 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
21563 (rintf): Define using libm_alias_float.
21564 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
21565 (truncf): Define using libm_alias_float.
21566 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
21567 <libm-alias-float.h>.
21568 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21569 if [SHARED].
21570 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
21571 <libm-alias-float.h>.
21572 (expf): Define using libm_alias_float, or libm_alias_float_other
21573 if [SHARED].
21574 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
21575 <libm-alias-float.h>.
21576 (log2f): Define using libm_alias_float, or libm_alias_float_other
21577 if [SHARED].
21578 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
21579 <libm-alias-float.h>.
21580 (logf): Define using libm_alias_float, or libm_alias_float_other
21581 if [SHARED].
21582 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
21583 <libm-alias-float.h>.
21584 (powf): Define using libm_alias_float, or libm_alias_float_other
21585 if [SHARED].
21586 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
21587 <libm-alias-float.h>.
21588 (cosf): Define using libm_alias_float.
21589 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
21590 <libm-alias-float.h>.
21591 (sincosf): Define using libm_alias_float.
21592 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
21593 <libm-alias-float.h>.
21594 (sinf): Define using libm_alias_float.
21595 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21596 (fmaxf): Define using libm_alias_float.
21597 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
21598 (fminf): Define using libm_alias_float.
21599 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21600 <libm-alias-float.h>.
21601 (fmaf): Define using libm_alias_float.
21602
21603 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
21604 (asinh): Define using libm_alias_double.
21605 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
21606 (atan): Define using libm_alias_double.
21607 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
21608 (cbrt): Define using libm_alias_double.
21609 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
21610 (ceil): Define using libm_alias_double.
21611 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
21612 (copysign): Define using libm_alias_double.
21613 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
21614 (expm1): Define using libm_alias_double.
21615 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
21616 (fabs): Define using libm_alias_double.
21617 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
21618 (fdim): Define using libm_alias_double.
21619 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
21620 (floor): Define using libm_alias_double.
21621 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
21622 (fmax): Define using libm_alias_double.
21623 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
21624 (fmin): Define using libm_alias_double.
21625 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
21626 (frexp): Define using libm_alias_double.
21627 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
21628 (llrint): Define using libm_alias_double.
21629 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
21630 (logb): Define using libm_alias_double.
21631 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
21632 (lrint): Define using libm_alias_double.
21633 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
21634 (nearbyint): Define using libm_alias_double.
21635 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
21636 (remquo): Define using libm_alias_double.
21637 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
21638 (rint): Define using libm_alias_double.
21639 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
21640 (trunc): Define using libm_alias_double.
21641 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
21642 (fmax): Define using libm_alias_double.
21643 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
21644 (fmin): Define using libm_alias_double.
21645 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
21646 (fma): Define using libm_alias_double.
21647
21648 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
21649
21650 [BZ #22370]
21651 * elf/dl-hwcaps.c (ROUND): Removed.
21652 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
21653 and ELF_NOTE_NEXT_OFFSET.
21654 * elf/dl-load.c (ROUND): Removed.
21655 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21656 * elf/readelflib.c (ROUND): Removed.
21657 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21658 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
21659 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
21660 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
21661
21662 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21663
21664 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21665 [!__fmaf] (fmaf): Define using libm_alias_float.
21666
21667 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
21668 [!__fma] (fma): Define using libm_alias_double.
21669 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
21670
21671 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21672
21673 [BZ #22336]
21674 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
21675 and implement the collation rules for cs from CLDR on top of that.
21676 * Makefile: Add cs_CZ.UTF-8 to test-input.
21677 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
21678
21679 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
21680
21681 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
21682
21683 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21684 Icarus Sparry <icarus.w.sparry@intel.com>
21685
21686 * benchtests/Makefile:Add BENCHSET to allow subsets of
21687 benchmarks to be run.
21688 * benchtests/README: Add documentation for: Running subsets of
21689 benchmarks.
21690
21691 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21692
21693 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
21694 range of tests names.
21695
21696 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
21697 result from property and remove "max", min" and "mean" from
21698 required properties based on benchtests/bench-skeleton.c.
21699
21700 2017-11-28 Florian Weimer <fweimer@redhat.com>
21701
21702 [BZ #20826]
21703 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
21704 due to Internet requirement.
21705 * posix/Makefile (tests): Remove tst-getaddrinfo4,
21706 tst-getaddrinfo5.
21707 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
21708
21709 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21710
21711 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21712 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
21713 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21714 (sysdep_routines): Add memset-ultra1.
21715 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
21716 file.
21717 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
21718 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
21719 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
21720 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
21721 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
21722 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
21723 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
21724 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21725
21726 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
21727 file.
21728 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
21729 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
21730 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
21731 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
21732 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
21733 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
21734 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
21735 macro.
21736 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21737 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
21738 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21739 (sysdep_routines): Add memcpy-ultra1.
21740 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
21741 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
21742
21743 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21744
21745 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
21746 (cfloat_versions): Take function argument without trailing 'f'.
21747 Call libm_alias_float_other.
21748 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
21749 * sysdeps/alpha/fpu/cargf.c: Likewise.
21750 * sysdeps/alpha/fpu/cimagf.c: Likewise.
21751 * sysdeps/alpha/fpu/conjf.c: Likewise.
21752 * sysdeps/alpha/fpu/crealf.c: Likewise.
21753 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
21754 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
21755 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
21756 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
21757 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
21758 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
21759 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
21760 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
21761 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
21762 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
21763 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
21764 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
21765 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
21766 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
21767 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
21768 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
21769 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
21770 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
21771 (clog10f): Use libm_alias_float_other.
21772 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21773 (ceilf): Define using libm_alias_float.
21774 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
21775 (copysignf): Define using libm_alias_float.
21776 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21777 (fabsf): Define using libm_alias_float.
21778 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
21779 (floorf): Define using libm_alias_float.
21780 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
21781 (fmaxf): Define using libm_alias_float.
21782 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
21783 (fminf): Define using libm_alias_float.
21784 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21785 (lrintf): Define using libm_alias_float.
21786 (llrintf): Likewise.
21787 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21788 (lroundf): Define using libm_alias_float.
21789 (llroundf): Likewise.
21790 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
21791 (rintf): Define using libm_alias_float.
21792 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
21793 (truncf): Define using libm_alias_float.
21794
21795 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21796 (ceilf): Define using libm_alias_float.
21797 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
21798 (floorf): Define using libm_alias_float.
21799 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21800 (fmaf): Define using libm_alias_float.
21801 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
21802 (fmaxf): Define using libm_alias_float.
21803 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
21804 (fminf): Define using libm_alias_float.
21805 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
21806 (llrintf): Define using libm_alias_float.
21807 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
21808 (llroundf): Define using libm_alias_float.
21809 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21810 (lrintf): Define using libm_alias_float.
21811 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21812 (lroundf): Define using libm_alias_float.
21813 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
21814 <libm-alias-float.h>.
21815 (nearbyintf): Define using libm_alias_float.
21816 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
21817 (rintf): Define using libm_alias_float.
21818 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
21819 (roundf): Define using libm_alias_float.
21820 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
21821 (truncf): Define using libm_alias_float.
21822
21823 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
21824 (ceil): Define using libm_alias_double.
21825 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
21826 (copysign): Define using libm_alias_double.
21827 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
21828 (fabs): Define using libm_alias_double.
21829 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
21830 (floor): Define using libm_alias_double.
21831 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
21832 (fmax): Define using libm_alias_double.
21833 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
21834 (fmin): Define using libm_alias_double.
21835 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
21836 (lrint): Define using libm_alias_double.
21837 (llrint): Likewise.
21838 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
21839 (lround): Define using libm_alias_double.
21840 (llround): Likewise.
21841 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
21842 (rint): Define using libm_alias_double.
21843 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
21844 (trunc): Define using libm_alias_double.
21845
21846 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
21847 (libm_alias_double_r): Add semicolon after weak_alias call.
21848
21849 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21850
21851 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
21852 (ceil): Define using libm_alias_double.
21853 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
21854 (floor): Define using libm_alias_double.
21855 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
21856 (fma): Define using libm_alias_double.
21857 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
21858 (fmax): Define using libm_alias_double.
21859 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
21860 (fmin): Define using libm_alias_double.
21861 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
21862 (llrint): Define using libm_alias_double.
21863 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
21864 (llround): Define using libm_alias_double.
21865 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
21866 (lrint): Define using libm_alias_double.
21867 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
21868 (lround): Define using libm_alias_double.
21869 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
21870 (nearbyint): Define using libm_alias_double.
21871 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
21872 (rint): Define using libm_alias_double.
21873 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
21874 (round): Define using libm_alias_double.
21875 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
21876 (trunc): Define using libm_alias_double.
21877
21878 2017-11-27 Florian Weimer <fweimer@redhat.com>
21879
21880 * sysdeps/unix/sysv/linux/mlock2.c: New file.
21881 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
21882 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
21883 (tests): Add tst-mlock2.
21884 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
21885 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
21886 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
21887 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
21888 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
21889 for mlock. Document mlock2.
21890
21891 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21892
21893 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
21894 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
21895 Likewise.
21896 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
21897 Likewise.
21898 * sysdeps/x86/Makeconfig: New file.
21899 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
21900 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21901 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
21902 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21903 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21904 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21905 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
21906 Likewise.
21907 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21908 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21909 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21910 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21911 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21912 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21913 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21914 * manual/math.texi (Mathematics): Document support for _Float64x.
21915 * math/Versions (GLIBC_2.27): Add _Float64x functions.
21916 * stdlib/Versions (GLIBC_2.27): Likewise.
21917 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21918 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21919 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21920 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21921 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21922 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21923 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21924 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21925 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21926 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21927 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21928 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21929 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21930 Likewise.
21931 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21932 Likewise.
21933 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21934 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21935 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21936 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21937 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21938 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21939 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21940 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21941 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21942 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21943 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21944 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21945 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21946 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21947
21948 2017-11-27 Andreas Schwab <schwab@suse.de>
21949
21950 * elf/Makefile (dl-routines): Add dl-sort-maps.
21951 * elf/dl-sort-maps.c: New file.
21952 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21953 (_dl_sort_maps): Declare.
21954 * elf/dl-fini.c (_dl_sort_fini): Remove.
21955 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21956 * elf/dl-close.c (_dl_close_worker): Likewise.
21957 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21958 open-coding it.
21959 * elf/dl-open.c (dl_open_worker): Likewise.
21960
21961 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21962
21963 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21964 using libm_alias_float128.
21965 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21966 Likewise.
21967 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21968 Likewise.
21969 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21970 (setpayloadsigf128): Likewise.
21971 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
21972 Likewise.
21973 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
21974 Likewise.
21975
21976 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
21977 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
21978 -mfloat128 to CFLAGS.
21979 ($(foreach
21980 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
21981 Likewise.
21982 (CFLAGS-libm-test-support-float64x.c): New variable.
21983 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
21984 $(f128-loader-link) to gnulib-tests.
21985
21986 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
21987 (libm_alias_float128_other_r): If
21988 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
21989 alias.
21990 (libm_alias_float128_r): Add semicolon after weak_alias call.
21991 * sysdeps/generic/libm-alias-ldouble.h
21992 (libm_alias_ldouble_other_r_f128): New macro.
21993 (libm_alias_ldouble_other_r_f64x): Likewise.
21994 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21995 and libm_alias_ldouble_other_r_f64x.
21996 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
21997 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21998 (libm_alias_ldouble_other_r_f128): New macro.
21999 (libm_alias_ldouble_other_r_f64x): Likewise.
22000 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
22001 and libm_alias_ldouble_other_r_f64x.
22002
22003 * stdlib/strfroml.c: Always include <stdlib.h>.
22004 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
22005 undefine as macro and define as weak alias.
22006 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
22007 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
22008 <stdlib.h>.
22009 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
22010 Define and later undefine as macro and define as weak alias.
22011
22012 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
22013 Define and later undefine as macro. Define as weak alias if
22014 [!USE_WIDE_CHAR].
22015 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
22016 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22017 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
22018 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
22019 Define and later undefine as macro. Define as weak alias if
22020 [!USE_WIDE_CHAR].
22021 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
22022 Define and later undefine as macro. Define as weak alias if
22023 [USE_WIDE_CHAR].
22024 * sysdeps/ieee754/float128/strtof128_l.c
22025 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
22026 Define and later undefine as macro. Define as weak alias if
22027 [!USE_WIDE_CHAR].
22028 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
22029 Define and later undefine as macro. Define as weak alias if
22030 [USE_WIDE_CHAR].
22031 * sysdeps/ieee754/ldbl-128/strtold_l.c
22032 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22033 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22034 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22035 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22036 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
22037 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22038 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22039 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22040 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22041 * sysdeps/ieee754/ldbl-96/strtold_l.c
22042 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22043 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22044 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22045 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22046
22047 * math/test-float64x.h: New file.
22048 * math/Makefile (type-float64x-yes): New variable.
22049 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
22050
22051 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
22052 function-like macro.
22053 (min_of_type_): Likewise.
22054 (min_of_type_l): Likewise.
22055 (min_of_type_f128): Likewise.
22056 (min_of_type): Pass () as last argument of __MATH_TG.
22057
22058 * stdlib/tst-strtod-round-skeleton.c
22059 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
22060 headers.
22061
22062 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
22063 for combinations of long double with _Float64 and _Float64x.
22064
22065 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
22066 (__DECL_SIMD_cosf32): Likewise.
22067 (__DECL_SIMD_cosf64): Likewise.
22068 (__DECL_SIMD_cosf32x): Likewise.
22069 (__DECL_SIMD_cosf64x): Likewise.
22070 (__DECL_SIMD_cosf128x): Likewise.
22071 (__DECL_SIMD_sinf16): Likewise.
22072 (__DECL_SIMD_sinf32): Likewise.
22073 (__DECL_SIMD_sinf64): Likewise.
22074 (__DECL_SIMD_sinf32x): Likewise.
22075 (__DECL_SIMD_sinf64x): Likewise.
22076 (__DECL_SIMD_sinf128x): Likewise.
22077 (__DECL_SIMD_sincosf16): Likewise.
22078 (__DECL_SIMD_sincosf32): Likewise.
22079 (__DECL_SIMD_sincosf64): Likewise.
22080 (__DECL_SIMD_sincosf32x): Likewise.
22081 (__DECL_SIMD_sincosf64x): Likewise.
22082 (__DECL_SIMD_sincosf128x): Likewise.
22083 (__DECL_SIMD_logf16): Likewise.
22084 (__DECL_SIMD_logf32): Likewise.
22085 (__DECL_SIMD_logf64): Likewise.
22086 (__DECL_SIMD_logf32x): Likewise.
22087 (__DECL_SIMD_logf64x): Likewise.
22088 (__DECL_SIMD_logf128x): Likewise.
22089 (__DECL_SIMD_expf16): Likewise.
22090 (__DECL_SIMD_expf32): Likewise.
22091 (__DECL_SIMD_expf64): Likewise.
22092 (__DECL_SIMD_expf32x): Likewise.
22093 (__DECL_SIMD_expf64x): Likewise.
22094 (__DECL_SIMD_expf128x): Likewise.
22095 (__DECL_SIMD_powf16): Likewise.
22096 (__DECL_SIMD_powf32): Likewise.
22097 (__DECL_SIMD_powf64): Likewise.
22098 (__DECL_SIMD_powf32x): Likewise.
22099 (__DECL_SIMD_powf64x): Likewise.
22100 (__DECL_SIMD_powf128x): Likewise.
22101
22102 * stdlib/Versions (libc): Move entries for wcstof128 and
22103 wcstof128_l to ....
22104 * wcsmbs/Versions (libc): ... here.
22105 Include <float128-abi.h>.
22106
22107 2017-11-24 Florian Weimer <fweimer@redhat.com>
22108
22109 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22110 bits/mman-shared.h.
22111 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
22112 <bits/mman-shared.h>.
22113 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
22114 to ...
22115 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
22116 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
22117 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
22118 <bits/mman-shared.h>.
22119
22120 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22121
22122 [BZ #22457]
22123 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
22124 posix_memalign/free.
22125 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
22126
22127 2017-11-22 Mike FABIAN <mfabian@redhat.com>
22128
22129 [BZ #22469]
22130 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
22131 and implement the collation rules for pl from CLDR on top of that.
22132 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
22133 of locales to be built for testing.
22134 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
22135
22136 2017-11-23 Joseph Myers <joseph@codesourcery.com>
22137
22138 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
22139 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
22140 libm_alias_ldouble_other.
22141 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
22142 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
22143 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
22144 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
22145 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
22146 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
22147 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
22148 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
22149 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
22150 libm_alias_ldouble_r.
22151 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
22152 libm_alias_ldouble_other.
22153 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
22154 (log10l): Likewise.
22155 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
22156 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
22157 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
22158 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
22159 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
22160 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
22161 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
22162 (atan2l): Likewise.
22163 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
22164 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
22165 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
22166 libm_alias_ldouble.
22167 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
22168 (cosl): Likewise.
22169 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
22170 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
22171 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
22172 (expl): Likewise.
22173 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
22174 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
22175 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
22176 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
22177 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
22178 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
22179 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
22180 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
22181 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
22182 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
22183 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
22184 libm_alias_ldouble.
22185 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
22186 libm_alias_ldouble_other.
22187 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
22188 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
22189 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
22190 libm_alias_ldouble.
22191 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
22192 libm_alias_ldouble_other.
22193 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
22194 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
22195 * sysdeps/ia64/fpu/w_lgammal_main.c
22196 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
22197 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
22198
22199 2017-11-23 Florian Weimer <fweimer@redhat.com>
22200
22201 * malloc/malloc.c (tcache_thread_shutdown): Rename from
22202 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
22203 alike. Remove freeres marker.
22204 * malloc/arena.c (arena_thread_freeres): Call
22205 tcache_thread_shutdown.
22206
22207 2017-11-23 Florian Weimer <fweimer@redhat.com>
22208
22209 [BZ #22459]
22210 Export nscd hash function as __nss_hash.
22211 * include/nss.h (__nss_hash): Declare.
22212 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
22213 symbol.
22214 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
22215 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
22216 of __nscd_hash.
22217 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
22218 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
22219 * nss/Makefiles (routines): Add nss_hash.
22220 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
22221 * nss/nss_hash.c: Rename from nis/nis_hash.c.
22222 (__nss_hash): Rename from __nis_hash. Define hidden alias.
22223 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
22224
22225 2017-11-23 Florian Weimer <fweimer@redhat.com>
22226
22227 [BZ #22478]
22228 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
22229 Return error code, not -1.
22230 * signal/tst-sigwait-eintr.c: New file.
22231 * signal/Makefile (tests): Add tst-sigwait-eintr.
22232
22233 2017-11-23 Florian Weimer <fweimer@redhat.com>
22234
22235 Linux: Add memfd_create system call wrapper
22236 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
22237 tst-memfd_create.
22238 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
22239 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
22240 [__USE_GNU] (memfd_create): Declare.
22241 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
22242 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
22243 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
22244 * sysdeps/unix/sysv/linux/**.abilist: Update.
22245 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
22246
22247 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22248
22249 * localedata/gen-locale.sh: Fix typo in variable name.
22250
22251 * resolv/res_debug.c (p_secstodate): Condition definition on
22252 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
22253 directly as __p_secstodate, and as a compat symbol. Do not use
22254 libresolv_hidden_def.
22255 * resolv/resolv.h (p_secstodate): Remove macro and function
22256 declaration.
22257 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
22258 using p_secstodate.
22259 * include/resolv.h (__p_secstodate): Do not use
22260 libresolv_hidden_proto.
22261 * resolv/Makefile (tests): Move tst-p_secstodate to ....
22262 (tests-internal): ... here.
22263 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
22264 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
22265 and declare and use __p_secstodate and use compat_symbol_reference
22266 in that case.
22267 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
22268 implementation returning 77.
22269
22270 [BZ #22463]
22271 * resolv/res_debug.c: Include <libc-diag.h>.
22272 (p_secstodate): Assert time_t at least as wide as u_long. On
22273 overflow, use integer seconds since the epoch as output, or use
22274 "<overflow>" as output and set errno to EOVERFLOW if integer
22275 seconds since the epoch would be 14 or more characters.
22276 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
22277 for sprintf call.
22278 * resolv/tst-p_secstodate.c: New file.
22279 * resolv/Makefile (tests): Add tst-p_secstodate.
22280 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
22281
22282 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
22283 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
22284 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
22285
22286 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
22287
22288 * posix/regcomp.c (init_word_char): Add comments.
22289
22290 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22291
22292 [BZ #22447]
22293 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
22294 strlen to compute length of ut_user and set trailing NUL byte of
22295 result explicitly.
22296
22297 2017-11-21 Mike FABIAN <mfabian@redhat.com>
22298
22299 [BZ #15537]
22300 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
22301 using “copy "iso14651_t1"” and then implementing the
22302 collation rules for lv from CLDR on top of that.
22303 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
22304 of locales to be built for testing.
22305 * lv_LV.UTF-8.in: New file with test data to test the Latvian
22306 sorting.
22307
22308 2017-11-21 Joseph Myers <joseph@codesourcery.com>
22309
22310 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22311 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
22312 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
22313 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
22314 [__USE_MISC] (MADV_HWPOISON): New macro.
22315 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
22316
22317 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22318
22319 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
22320 -Wmissing-braces on GCC 4.9.
22321
22322 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22323
22324 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
22325 * sysdeps/s390/s390-32/start.S (_start): Likewise
22326 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
22327 (thread_start): Likewise.
22328 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
22329 (thread_start): Likewise.
22330 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
22331 (__makecontext_ret): Likewise.
22332 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
22333 (__makecontext_ret): Likewise.
22334
22335 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22336
22337 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
22338 __wcschrnul): Remove attribute_hidden.
22339
22340 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
22341
22342 regex: don't assume uint64_t or uint32_t
22343 This avoids -Werror=overflow errors for 32-bit systems in
22344 the 64-bit case. Problem reported by Joseph Myers in:
22345 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
22346 Also, when this code is used in Gnulib it ports to platforms
22347 that lack uint64_t and uint32_t. The C standard doesn't guarantee
22348 them, and on some 32-bit compilers there is no uint64_t.
22349 Problem reported by Gianluigi Tiesi in:
22350 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
22351 * posix/regcomp.c (init_word_char): Don't assume that the types
22352 uint64_t and uint32_t exist. Adapted from Gnulib patch
22353 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
22354 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
22355
22356 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
22357
22358 * sysdeps/aarch64/memset-reg.h: New file.
22359 * sysdeps/aarch64/memset.S: Use it.
22360 (__memset): Rename to MEMSET macro.
22361 [ZVA_MACRO]: Use zva_macro.
22362 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
22363 Add memset_generic and memset_falkor.
22364 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
22365 (__libc_ifunc_impl_list): Add memset ifuncs.
22366 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
22367 local variable zva_size.
22368 * sysdeps/aarch64/multiarch/memset.c: New file.
22369 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
22370 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
22371 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
22372 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
22373 (DCZID_DZP_MASK): New macro.
22374 (DCZID_BS_MASK): Likewise.
22375 (init_cpu_features): Read and set zva_size.
22376 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
22377 (struct cpu_features): New member zva_size.
22378
22379 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
22380 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
22381 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
22382
22383 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
22384 backwards. Fix timing computation.
22385 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
22386 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
22387 on memset by N at a time. Fix timing computation.
22388
22389 2017-11-20 Florian Weimer <fweimer@redhat.com>
22390
22391 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
22392 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
22393
22394 2017-11-19 Florian Weimer <fweimer@redhat.com>
22395
22396 manual: Document mprotect
22397 * manual/memory.texi (Memory Protection): New section.
22398 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
22399 documentation of PROT_* flags and reference the Memory Protection
22400 section instead.
22401
22402 2017-11-19 Florian Weimer <fweimer@redhat.com>
22403
22404 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
22405 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
22406 (Scatter-Gather): ... to here. Remove misleading comment.
22407
22408 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
22409
22410 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
22411 style.
22412
22413 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
22414 when /proc/<pid>/setgroups does not exist.
22415
22416 2017-11-18 Florian Weimer <fweimer@redhat.com>
22417
22418 * sysdeps/unix/sysv/linux/tst-ttyname.c
22419 (become_root_in_mount_ns): Remove.
22420 (do_in_chroot_1): Call support_enter_mount_namespace.
22421 (do_in_chroot_2): Likewise.
22422 (do_test): Call support_become_root early.
22423
22424 2017-11-18 Florian Weimer <fweimer@redhat.com>
22425
22426 * support/namespace.h (support_enter_mount_namespace): Declare.
22427 * support/support_enter_mount_namespace.c: New file.
22428 * support/Makefile (libsupport-routines): Add
22429 support_enter_mount_namespace.
22430
22431 2017-11-18 Florian Weimer <fweimer@redhat.com>
22432
22433 * support/temp_file.c (support_create_temp_directory): Use
22434 test_dir and do not rely on the presence of the XXXXXX suffix.
22435 * support/temp_file.h (support_create_temp_directory): Update
22436 comment.
22437 * support/tst-xreadlink.c (do_test): Adjust.
22438 * support/support_chroot.c (support_chroot_create): Likewise.
22439
22440 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22441
22442 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
22443 macro.
22444 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
22445 htm-no-suspend.
22446
22447 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22448
22449 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22450 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22451 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22452 (ceill): Define using libm_alias_ldouble.
22453 * sysdeps/x86_64/fpu/s_copysignl.S: Include
22454 <libm-alias-ldouble.h>.
22455 (copysignl): Define using libm_alias_ldouble.
22456 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22457 (fabsl): Define using libm_alias_ldouble.
22458 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22459 (floorl): Define using libm_alias_ldouble.
22460 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22461 (fmaxl): Define using libm_alias_ldouble.
22462 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22463 (fminl): Define using libm_alias_ldouble.
22464 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22465 (llrintl): Define using libm_alias_ldouble.
22466 (lrintl): Likewise.
22467 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
22468 <libm-alias-ldouble.h>.
22469 (nearbyintl): Define using libm_alias_ldouble.
22470 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22471 (truncl): Define using libm_alias_ldouble.
22472 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
22473 <libm-alias-ldouble.h>.
22474 (lrintl): Define using libm_alias_ldouble.
22475
22476 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22477 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22478 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
22479 (asinhl): Define using libm_alias_ldouble.
22480 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
22481 (atanl): Define using libm_alias_ldouble.
22482 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
22483 (cbrtl): Define using libm_alias_ldouble.
22484 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22485 (ceill): Define using libm_alias_ldouble.
22486 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
22487 (copysignl): Define using libm_alias_ldouble.
22488 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22489 (fabsl): Define using libm_alias_ldouble.
22490 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22491 (floorl): Define using libm_alias_ldouble.
22492 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22493 (fmaxl): Define using libm_alias_ldouble.
22494 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22495 (fminl): Define using libm_alias_ldouble.
22496 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
22497 (frexpl): Define using libm_alias_ldouble.
22498 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22499 (llrintl): Define using libm_alias_ldouble.
22500 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
22501 (logbl): Define using libm_alias_ldouble.
22502 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
22503 (lrintl): Define using libm_alias_ldouble.
22504 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
22505 (nearbyintl): Define using libm_alias_ldouble.
22506 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
22507 (nextafterl): Define using libm_alias_ldouble.
22508 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
22509 (remquol): Define using libm_alias_ldouble.
22510 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
22511 (rintl): Define using libm_alias_ldouble.
22512 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22513 (truncl): Define using libm_alias_ldouble.
22514 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22515 (fmaxl): Define using libm_alias_ldouble.
22516 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22517 (fminl): Define using libm_alias_ldouble.
22518
22519 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
22520 to C syntax instead of availability and properties of types.
22521 * bits/floatn.h [!__ASSEMBLER]: Likewise.
22522 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
22523 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
22524 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
22525 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
22526 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
22527
22528 2017-11-17 Florian Weimer <fweimer@redhat.com>
22529
22530 support_become_root: Enable file creation in namespaces.
22531 * support/support_become_root.c (setup_mapping): New function.
22532 (support_become_root): Call it.
22533
22534 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22535
22536 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
22537 macro.
22538
22539 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22540
22541 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
22542 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
22543
22544 2017-11-16 Joseph Myers <joseph@codesourcery.com>
22545
22546 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
22547
22548 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22549 version to 4.14.
22550
22551 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
22552
22553 * INSTALL: Fix botched up regeneration.
22554
22555 * NEWS: Update sourceare link to https.
22556 * configure.ac: Likewise.
22557 * crypt/md5test-giant.c: Likewise.
22558 * dlfcn/bug-atexit1.c: Likewise.
22559 * dlfcn/bug-atexit2.c: Likewise.
22560 * localedata/README: Likewise.
22561 * malloc/tst-mallocfork.c: Likewise.
22562 * manual/install.texi: Likewise.
22563 * nptl/tst-pthread-getattr.c: Likewise.
22564 * stdio-common/tst-fgets.c: Likewise.
22565 * stdio-common/tst-fwrite.c: Likewise.
22566 * sunrpc/Makefile: Likewise.
22567 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
22568 * wcsmbs/tst-mbrtowc2.c: Likewise.
22569 * configure: Regenerate.
22570 * INSTALL: Regenerate.
22571
22572 2017-11-15 Martin Sebor <msebor@redhat.com>
22573
22574 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
22575 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
22576 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
22577
22578 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22579
22580 [BZ #22145]
22581 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
22582 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
22583
22584 [BZ #22145]
22585 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
22586 Defer is_pty check until end of the function.
22587 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
22588
22589 [BZ #22145]
22590 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
22591 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
22592 (ttyname): Likewise.
22593 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
22594 (__ttyname_r): Likewise.
22595
22596 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
22597 int to bool.
22598
22599 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
22600
22601 * manual/terminal.texi (Is It a Terminal):
22602 Mention ENODEV for ttyname and ttyname_r.
22603
22604 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22605
22606 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
22607 constant and macro.
22608
22609 * sysdeps/unix/sysv/linux/bits/mman-linux.h
22610 [__USE_MISC] (MADV_WIPEONFORK): New macro.
22611 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22612 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22613 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
22614 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22615
22616 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22617
22618 * signal/sigrelse.c (sigrelse): Optimize implementation.
22619
22620 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
22621 (__sigpause): Rely on __sigsuspend to implement single thread
22622 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
22623
22624 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22625
22626 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22627 kernel version to 4.14.
22628
22629 2017-11-15 Steve Ellcey <sellcey@cavium.com>
22630
22631 [BZ #22442]
22632 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
22633 Check if ifname is too long.
22634
22635 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22636
22637 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
22638
22639 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22640
22641 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
22642 was accidentally lost.
22643
22644 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22645
22646 * localedata/locales/az_IR: Add standard copyright header.
22647
22648 2017-11-15 Florian Weimer <fweimer@redhat.com>
22649
22650 [BZ #22439]
22651 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
22652 not just the top one. Output a new "subheaps" statistic.
22653
22654 2017-11-15 Florian Weimer <fweimer@redhat.com>
22655
22656 [BZ #22408]
22657 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
22658 under the per-arena lock.
22659 * malloc/Makefile (tests): Add tst-malloc_info.
22660 (tst-malloc_info): Link with libpthread.
22661 * malloc/tst-malloc_info.c: New file.
22662
22663 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22664
22665 [BZ #21660]
22666 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
22667 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
22668 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
22669 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
22670 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
22671 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
22672 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
22673 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
22674 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
22675 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
22676 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
22677 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
22678 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
22679 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
22680 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
22681 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
22682 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
22683 (__floating_type): Likewise.
22684 (__real_integer_type): Likewise.
22685 (__complex_integer_type): Likewise.
22686 (__expr_is_real): Likewise.
22687 (__tgmath_real_type_sub): Likewise.
22688 (__tgmath_real_type): Likewise.
22689 (__tgmath_complex_type_sub): Likewise.
22690 (__tgmath_complex_type): Likewise.
22691 (__TGMATH_F128): Likewise.
22692 (__TGMATH_CF128): Likewise.
22693 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
22694 new macros.
22695 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
22696 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
22697 Likewise.
22698 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
22699 Likewise.
22700 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
22701 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
22702 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
22703 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
22704 Likewise.
22705 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
22706 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
22707 Likewise.
22708 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
22709 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
22710 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
22711 Likewise.
22712 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
22713 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
22714 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
22715 (cimag): Likewise.
22716 (creal): Likewise.
22717
22718 2017-11-14 Joseph Myers <joseph@codesourcery.com>
22719
22720 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
22721 for stpncpy calls for GCC 8.
22722 (test_strncat): Disable -Wstringop-truncation warning for strncat
22723 calls for GCC 8. Disable -Wstringop-overflow= warning for one
22724 strncat call for GCC 7.
22725 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
22726 calls for GCC 8.
22727 (test_memcmp): Use memcpy instead of strncpy for calls not copying
22728 trailing NUL.
22729
22730 * string/bug-strncat1.c: Include <libc-diag.h>.
22731 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
22732
22733 2017-11-13 Claude Paroz <claude@2xlibre.net>
22734
22735 [BZ #22387]
22736 * localedata/locales/aa_DJ: Improved readibility by replacing
22737 <Uxxxx> sequences in the ASCII printable range by their ASCII
22738 character equivalents.
22739 * localedata/locales/aa_ER: Likewise.
22740 * localedata/locales/aa_ER@saaho: Likewise.
22741 * localedata/locales/aa_ET: Likewise.
22742 * localedata/locales/af_ZA: Likewise.
22743 * localedata/locales/agr_PE: Likewise.
22744 * localedata/locales/ak_GH: Likewise.
22745 * localedata/locales/am_ET: Likewise.
22746 * localedata/locales/anp_IN: Likewise.
22747 * localedata/locales/ar_AE: Likewise.
22748 * localedata/locales/ar_BH: Likewise.
22749 * localedata/locales/ar_DZ: Likewise.
22750 * localedata/locales/ar_EG: Likewise.
22751 * localedata/locales/ar_IN: Likewise.
22752 * localedata/locales/ar_IQ: Likewise.
22753 * localedata/locales/ar_JO: Likewise.
22754 * localedata/locales/ar_KW: Likewise.
22755 * localedata/locales/ar_LB: Likewise.
22756 * localedata/locales/ar_LY: Likewise.
22757 * localedata/locales/ar_MA: Likewise.
22758 * localedata/locales/ar_OM: Likewise.
22759 * localedata/locales/ar_QA: Likewise.
22760 * localedata/locales/ar_SA: Likewise.
22761 * localedata/locales/ar_SD: Likewise.
22762 * localedata/locales/ar_SS: Likewise.
22763 * localedata/locales/ar_SY: Likewise.
22764 * localedata/locales/ar_TN: Likewise.
22765 * localedata/locales/ar_YE: Likewise.
22766 * localedata/locales/as_IN: Likewise.
22767 * localedata/locales/ast_ES: Likewise.
22768 * localedata/locales/ayc_PE: Likewise.
22769 * localedata/locales/az_AZ: Likewise.
22770 * localedata/locales/az_IR: Likewise.
22771 * localedata/locales/be_BY: Likewise.
22772 * localedata/locales/be_BY@latin: Likewise.
22773 * localedata/locales/bem_ZM: Likewise.
22774 * localedata/locales/ber_DZ: Likewise.
22775 * localedata/locales/ber_MA: Likewise.
22776 * localedata/locales/bg_BG: Likewise.
22777 * localedata/locales/bhb_IN: Likewise.
22778 * localedata/locales/bho_IN: Likewise.
22779 * localedata/locales/bi_VU: Likewise.
22780 * localedata/locales/bn_BD: Likewise.
22781 * localedata/locales/bn_IN: Likewise.
22782 * localedata/locales/bo_CN: Likewise.
22783 * localedata/locales/bo_IN: Likewise.
22784 * localedata/locales/br_FR: Likewise.
22785 * localedata/locales/brx_IN: Likewise.
22786 * localedata/locales/bs_BA: Likewise.
22787 * localedata/locales/byn_ER: Likewise.
22788 * localedata/locales/ca_AD: Likewise.
22789 * localedata/locales/ca_ES: Likewise.
22790 * localedata/locales/ca_FR: Likewise.
22791 * localedata/locales/ca_IT: Likewise.
22792 * localedata/locales/ce_RU: Likewise.
22793 * localedata/locales/chr_US: Likewise.
22794 * localedata/locales/cmn_TW: Likewise.
22795 * localedata/locales/crh_UA: Likewise.
22796 * localedata/locales/cs_CZ: Likewise.
22797 * localedata/locales/csb_PL: Likewise.
22798 * localedata/locales/cv_RU: Likewise.
22799 * localedata/locales/cy_GB: Likewise.
22800 * localedata/locales/da_DK: Likewise.
22801 * localedata/locales/de_AT: Likewise.
22802 * localedata/locales/de_BE: Likewise.
22803 * localedata/locales/de_CH: Likewise.
22804 * localedata/locales/de_DE: Likewise.
22805 * localedata/locales/de_IT: Likewise.
22806 * localedata/locales/de_LI: Likewise.
22807 * localedata/locales/de_LU: Likewise.
22808 * localedata/locales/doi_IN: Likewise.
22809 * localedata/locales/dv_MV: Likewise.
22810 * localedata/locales/dz_BT: Likewise.
22811 * localedata/locales/el_CY: Likewise.
22812 * localedata/locales/el_GR: Likewise.
22813 * localedata/locales/en_AG: Likewise.
22814 * localedata/locales/en_AU: Likewise.
22815 * localedata/locales/en_BW: Likewise.
22816 * localedata/locales/en_CA: Likewise.
22817 * localedata/locales/en_DK: Likewise.
22818 * localedata/locales/en_GB: Likewise.
22819 * localedata/locales/en_HK: Likewise.
22820 * localedata/locales/en_IE: Likewise.
22821 * localedata/locales/en_IL: Likewise.
22822 * localedata/locales/en_IN: Likewise.
22823 * localedata/locales/en_NG: Likewise.
22824 * localedata/locales/en_NZ: Likewise.
22825 * localedata/locales/en_PH: Likewise.
22826 * localedata/locales/en_SG: Likewise.
22827 * localedata/locales/en_US: Likewise.
22828 * localedata/locales/en_ZA: Likewise.
22829 * localedata/locales/en_ZM: Likewise.
22830 * localedata/locales/en_ZW: Likewise.
22831 * localedata/locales/eo: Likewise.
22832 * localedata/locales/es_AR: Likewise.
22833 * localedata/locales/es_BO: Likewise.
22834 * localedata/locales/es_CL: Likewise.
22835 * localedata/locales/es_CO: Likewise.
22836 * localedata/locales/es_CR: Likewise.
22837 * localedata/locales/es_CU: Likewise.
22838 * localedata/locales/es_DO: Likewise.
22839 * localedata/locales/es_EC: Likewise.
22840 * localedata/locales/es_ES: Likewise.
22841 * localedata/locales/es_GT: Likewise.
22842 * localedata/locales/es_HN: Likewise.
22843 * localedata/locales/es_MX: Likewise.
22844 * localedata/locales/es_NI: Likewise.
22845 * localedata/locales/es_PA: Likewise.
22846 * localedata/locales/es_PE: Likewise.
22847 * localedata/locales/es_PR: Likewise.
22848 * localedata/locales/es_PY: Likewise.
22849 * localedata/locales/es_SV: Likewise.
22850 * localedata/locales/es_US: Likewise.
22851 * localedata/locales/es_UY: Likewise.
22852 * localedata/locales/es_VE: Likewise.
22853 * localedata/locales/et_EE: Likewise.
22854 * localedata/locales/eu_ES: Likewise.
22855 * localedata/locales/eu_ES@euro: Likewise.
22856 * localedata/locales/fa_IR: Likewise.
22857 * localedata/locales/ff_SN: Likewise.
22858 * localedata/locales/fi_FI: Likewise.
22859 * localedata/locales/fil_PH: Likewise.
22860 * localedata/locales/fo_FO: Likewise.
22861 * localedata/locales/fr_BE: Likewise.
22862 * localedata/locales/fr_CA: Likewise.
22863 * localedata/locales/fr_CH: Likewise.
22864 * localedata/locales/fr_FR: Likewise.
22865 * localedata/locales/fr_LU: Likewise.
22866 * localedata/locales/fur_IT: Likewise.
22867 * localedata/locales/fy_DE: Likewise.
22868 * localedata/locales/fy_NL: Likewise.
22869 * localedata/locales/ga_IE: Likewise.
22870 * localedata/locales/gd_GB: Likewise.
22871 * localedata/locales/gez_ER: Likewise.
22872 * localedata/locales/gez_ET: Likewise.
22873 * localedata/locales/gl_ES: Likewise.
22874 * localedata/locales/gu_IN: Likewise.
22875 * localedata/locales/gv_GB: Likewise.
22876 * localedata/locales/ha_NG: Likewise.
22877 * localedata/locales/hak_TW: Likewise.
22878 * localedata/locales/he_IL: Likewise.
22879 * localedata/locales/hi_IN: Likewise.
22880 * localedata/locales/hif_FJ: Likewise.
22881 * localedata/locales/hne_IN: Likewise.
22882 * localedata/locales/hr_HR: Likewise.
22883 * localedata/locales/hsb_DE: Likewise.
22884 * localedata/locales/ht_HT: Likewise.
22885 * localedata/locales/hu_HU: Likewise.
22886 * localedata/locales/hy_AM: Likewise.
22887 * localedata/locales/i18n: Likewise.
22888 * localedata/locales/ia_FR: Likewise.
22889 * localedata/locales/id_ID: Likewise.
22890 * localedata/locales/ig_NG: Likewise.
22891 * localedata/locales/ik_CA: Likewise.
22892 * localedata/locales/is_IS: Likewise.
22893 * localedata/locales/it_CH: Likewise.
22894 * localedata/locales/it_IT: Likewise.
22895 * localedata/locales/iu_CA: Likewise.
22896 * localedata/locales/ja_JP: Likewise.
22897 * localedata/locales/ka_GE: Likewise.
22898 * localedata/locales/kk_KZ: Likewise.
22899 * localedata/locales/kl_GL: Likewise.
22900 * localedata/locales/kn_IN: Likewise.
22901 * localedata/locales/ko_KR: Likewise.
22902 * localedata/locales/kok_IN: Likewise.
22903 * localedata/locales/ks_IN: Likewise.
22904 * localedata/locales/ks_IN@devanagari: Likewise.
22905 * localedata/locales/ku_TR: Likewise.
22906 * localedata/locales/kw_GB: Likewise.
22907 * localedata/locales/ky_KG: Likewise.
22908 * localedata/locales/lb_LU: Likewise.
22909 * localedata/locales/lg_UG: Likewise.
22910 * localedata/locales/li_BE: Likewise.
22911 * localedata/locales/li_NL: Likewise.
22912 * localedata/locales/lij_IT: Likewise.
22913 * localedata/locales/ln_CD: Likewise.
22914 * localedata/locales/lo_LA: Likewise.
22915 * localedata/locales/lt_LT: Likewise.
22916 * localedata/locales/lv_LV: Likewise.
22917 * localedata/locales/lzh_TW: Likewise.
22918 * localedata/locales/mag_IN: Likewise.
22919 * localedata/locales/mai_IN: Likewise.
22920 * localedata/locales/mg_MG: Likewise.
22921 * localedata/locales/mhr_RU: Likewise.
22922 * localedata/locales/mi_NZ: Likewise.
22923 * localedata/locales/mk_MK: Likewise.
22924 * localedata/locales/ml_IN: Likewise.
22925 * localedata/locales/mn_MN: Likewise.
22926 * localedata/locales/mni_IN: Likewise.
22927 * localedata/locales/mr_IN: Likewise.
22928 * localedata/locales/ms_MY: Likewise.
22929 * localedata/locales/mt_MT: Likewise.
22930 * localedata/locales/my_MM: Likewise.
22931 * localedata/locales/nan_TW: Likewise.
22932 * localedata/locales/nan_TW@latin: Likewise.
22933 * localedata/locales/nb_NO: Likewise.
22934 * localedata/locales/nds_DE: Likewise.
22935 * localedata/locales/nds_NL: Likewise.
22936 * localedata/locales/ne_NP: Likewise.
22937 * localedata/locales/nhn_MX: Likewise.
22938 * localedata/locales/niu_NU: Likewise.
22939 * localedata/locales/niu_NZ: Likewise.
22940 * localedata/locales/nl_AW: Likewise.
22941 * localedata/locales/nl_BE: Likewise.
22942 * localedata/locales/nl_NL: Likewise.
22943 * localedata/locales/nn_NO: Likewise.
22944 * localedata/locales/nr_ZA: Likewise.
22945 * localedata/locales/nso_ZA: Likewise.
22946 * localedata/locales/oc_FR: Likewise.
22947 * localedata/locales/om_ET: Likewise.
22948 * localedata/locales/om_KE: Likewise.
22949 * localedata/locales/or_IN: Likewise.
22950 * localedata/locales/os_RU: Likewise.
22951 * localedata/locales/pa_IN: Likewise.
22952 * localedata/locales/pa_PK: Likewise.
22953 * localedata/locales/pap_AW: Likewise.
22954 * localedata/locales/pap_CW: Likewise.
22955 * localedata/locales/pl_PL: Likewise.
22956 * localedata/locales/ps_AF: Likewise.
22957 * localedata/locales/pt_BR: Likewise.
22958 * localedata/locales/pt_PT: Likewise.
22959 * localedata/locales/quz_PE: Likewise.
22960 * localedata/locales/raj_IN: Likewise.
22961 * localedata/locales/ro_RO: Likewise.
22962 * localedata/locales/ru_RU: Likewise.
22963 * localedata/locales/ru_UA: Likewise.
22964 * localedata/locales/rw_RW: Likewise.
22965 * localedata/locales/sa_IN: Likewise.
22966 * localedata/locales/sat_IN: Likewise.
22967 * localedata/locales/sc_IT: Likewise.
22968 * localedata/locales/sd_IN: Likewise.
22969 * localedata/locales/sd_IN@devanagari: Likewise.
22970 * localedata/locales/se_NO: Likewise.
22971 * localedata/locales/sgs_LT: Likewise.
22972 * localedata/locales/shs_CA: Likewise.
22973 * localedata/locales/si_LK: Likewise.
22974 * localedata/locales/sid_ET: Likewise.
22975 * localedata/locales/sk_SK: Likewise.
22976 * localedata/locales/sl_SI: Likewise.
22977 * localedata/locales/sm_WS: Likewise.
22978 * localedata/locales/so_DJ: Likewise.
22979 * localedata/locales/so_ET: Likewise.
22980 * localedata/locales/so_KE: Likewise.
22981 * localedata/locales/so_SO: Likewise.
22982 * localedata/locales/sq_AL: Likewise.
22983 * localedata/locales/sq_MK: Likewise.
22984 * localedata/locales/sr_ME: Likewise.
22985 * localedata/locales/sr_RS: Likewise.
22986 * localedata/locales/sr_RS@latin: Likewise.
22987 * localedata/locales/ss_ZA: Likewise.
22988 * localedata/locales/st_ZA: Likewise.
22989 * localedata/locales/sv_FI: Likewise.
22990 * localedata/locales/sv_SE: Likewise.
22991 * localedata/locales/sw_KE: Likewise.
22992 * localedata/locales/sw_TZ: Likewise.
22993 * localedata/locales/szl_PL: Likewise.
22994 * localedata/locales/ta_IN: Likewise.
22995 * localedata/locales/ta_LK: Likewise.
22996 * localedata/locales/tcy_IN: Likewise.
22997 * localedata/locales/te_IN: Likewise.
22998 * localedata/locales/tg_TJ: Likewise.
22999 * localedata/locales/th_TH: Likewise.
23000 * localedata/locales/the_NP: Likewise.
23001 * localedata/locales/ti_ER: Likewise.
23002 * localedata/locales/ti_ET: Likewise.
23003 * localedata/locales/tig_ER: Likewise.
23004 * localedata/locales/tk_TM: Likewise.
23005 * localedata/locales/tl_PH: Likewise.
23006 * localedata/locales/tn_ZA: Likewise.
23007 * localedata/locales/to_TO: Likewise.
23008 * localedata/locales/tpi_PG: Likewise.
23009 * localedata/locales/tr_CY: Likewise.
23010 * localedata/locales/tr_TR: Likewise.
23011 * localedata/locales/ts_ZA: Likewise.
23012 * localedata/locales/tt_RU: Likewise.
23013 * localedata/locales/tt_RU@iqtelif: Likewise.
23014 * localedata/locales/ug_CN: Likewise.
23015 * localedata/locales/uk_UA: Likewise.
23016 * localedata/locales/unm_US: Likewise.
23017 * localedata/locales/ur_IN: Likewise.
23018 * localedata/locales/ur_PK: Likewise.
23019 * localedata/locales/uz_UZ: Likewise.
23020 * localedata/locales/uz_UZ@cyrillic: Likewise.
23021 * localedata/locales/ve_ZA: Likewise.
23022 * localedata/locales/vi_VN: Likewise.
23023 * localedata/locales/wa_BE: Likewise.
23024 * localedata/locales/wae_CH: Likewise.
23025 * localedata/locales/wal_ET: Likewise.
23026 * localedata/locales/wo_SN: Likewise.
23027 * localedata/locales/xh_ZA: Likewise.
23028 * localedata/locales/yi_US: Likewise.
23029 * localedata/locales/yo_NG: Likewise.
23030 * localedata/locales/yue_HK: Likewise.
23031 * localedata/locales/yuw_PG: Likewise.
23032 * localedata/locales/zh_CN: Likewise.
23033 * localedata/locales/zh_HK: Likewise.
23034 * localedata/locales/zh_SG: Likewise.
23035 * localedata/locales/zh_TW: Likewise.
23036 * localedata/locales/zu_ZA: Likewise.
23037
23038 2017-11-13 Florian Weimer <fweimer@redhat.com>
23039
23040 * support/next_to_fault.h, support/next_to_fault.c: New files.
23041 * support/Makefile (libsupport-routines): Add next_to_fault.
23042 * resolv/tst-inet_pton.c (struct next_to_fault)
23043 (next_to_fault_allocate, next_to_fault_free): Remove.
23044 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
23045
23046 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
23047
23048 * elf/dl-support.c: Include <dl-procruntime.c>.
23049 * include/link.h: Include <link_map.h>.
23050 * sysdeps/generic/dl-procruntime.c: New file.
23051 * sysdeps/generic/link_map.h: Likewise.
23052 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
23053 the writable ld.so namespace.
23054
23055 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
23056
23057 timezone: pacify GCC -Wstringop-truncation
23058 Problem reported by Martin Sebor in:
23059 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
23060 * timezone/zic.c (writezone): Use memcpy, not strncpy.
23061
23062 2017-11-12 Florian Weimer <fweimer@redhat.com>
23063
23064 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
23065 tst-xreadlink.
23066 (tests): Add tst-xreadlink.
23067 * support/support.h (xstrndup): Declare.
23068 * support/xunistd.h (xunlink, xreadlink): Declare.
23069 * support/temp_file.h (support_create_temp_directory): Declare.
23070 * support/temp_file.c (support_create_temp_directory): New function.
23071 * support/support_chroot.c (support_chroot_create): Use it.
23072 * support/xreadlink.c: New file.
23073 * support/xstrndup.c: Likewise.
23074 * support/xunlink.c: Likewise.
23075 * support/tst-xreadlink.c: Likewise.
23076
23077 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
23078
23079 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
23080
23081 2017-11-11 Florian Weimer <fweimer@redhat.com>
23082
23083 [BZ #22409]
23084 [BZ #22412]
23085 * resolv/res_comp.c (printable_string, binary_hnok)
23086 (binary_leading_dash): New functions.
23087 (res_hnok): Reimplement using these functions and ns_name_pton.
23088 (res_ownok): Likewise.
23089 (res_mailok): Reimplement using printable_string, ns_name_pton and
23090 binary_hnok.
23091 (res_dnok): Reimplement using printable_string and ns_name_pton.
23092 * resolv/tst-res_hnok.c (tests): Add additional tests.
23093 (LETTERDIGITS, PRINTABLE): Define.
23094 (do_test): Adjust one_char results.
23095
23096 2017-11-11 Florian Weimer <fweimer@redhat.com>
23097
23098 [BZ #22413]
23099 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
23100 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
23101
23102 2017-11-11 Florian Weimer <fweimer@redhat.com>
23103
23104 * resolv/tst-ns_name_pton.c: New file.
23105 * resolv/Makefile (tests): Add tst-ns_name_pton.
23106 (tst-ns_name_pton): Link against libresolv.
23107
23108 2017-11-11 Florian Weimer <fweimer@redhat.com>
23109
23110 * resolv/tst-res_hnok.c: New file.
23111 * resolv/Makefile (tests): Add tst-res_hnok.
23112 (tst-res_hnok): Link against libresolv.
23113
23114 2017-11-11 Florian Weimer <fweimer@redhat.com>
23115
23116 * resolv/tst-resolv-network.c: Use test framework instead explicit
23117 main function.
23118
23119 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
23120
23121 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
23122 <jmp_buf-macros.h>.
23123 [!_ISOMAC] (STR_HELPER): New.
23124 [!_ISOMAC] (STR): Likewise.
23125 [!_ISOMAC] (TEST_SIZE): Likewise.
23126 [!_ISOMAC] (TEST_ALIGN): Likewise.
23127 [!_ISOMAC] (TEST_OFFSET): Likewise.
23128 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
23129 field offsets of jmp_buf as well as sigjmp_buf.
23130 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
23131 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
23132 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
23133 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
23134 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
23135 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
23136 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
23137 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
23138 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
23139 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
23140 Likewise.
23141 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
23142 Likewise.
23143 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
23144 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
23145 Likewise.
23146 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
23147 Likewise.
23148 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
23149 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
23150 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
23151 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
23152 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
23153 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
23154 Likewise.
23155 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
23156 Likewise.
23157 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
23158 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
23159 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
23160
23161 2017-11-07 Joseph Myers <joseph@codesourcery.com>
23162
23163 * include/float.h
23164 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23165 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
23166 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23167 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
23168 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23169 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
23170 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23171 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
23172 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23173 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
23174 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23175 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
23176 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23177 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
23178 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23179 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
23180 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23181 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
23182 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23183 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
23184 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23185 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
23186 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23187 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
23188 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23189 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
23190 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23191 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
23192 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23193 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
23194 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23195 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
23196 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23197 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
23198 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23199 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
23200 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23201 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
23202 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23203 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
23204 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23205 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
23206 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23207 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
23208 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23209 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
23210 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23211 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
23212 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23213 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
23214 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23215 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
23216 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23217 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
23218 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23219 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
23220 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23221 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
23222 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23223 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
23224 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23225 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
23226 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23227 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
23228 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23229 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
23230 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23231 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
23232 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23233 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
23234 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23235 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
23236 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23237 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
23238 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23239 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
23240 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23241 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
23242 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23243 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
23244 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23245 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
23246 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23247 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
23248 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23249 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
23250 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23251 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
23252
23253 * stdlib/tst-strtod.h (F16): New macro.
23254 (F32): Likewise.
23255 (F64): Likewise.
23256 (F32X): Likewise.
23257 (F64X): Likewise.
23258 (F128X): Likewise.
23259 (IF_FLOAT16): Likewise.
23260 (IF_FLOAT32): Likewise.
23261 (IF_FLOAT64): Likewise.
23262 (IF_FLOAT32X): Likewise.
23263 (IF_FLOAT64X): Likewise.
23264 (IF_FLOAT128X): Likewise.
23265 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
23266 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
23267 (STRTOD_TEST_FOREACH): Likewise.
23268 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
23269 (CHOOSE_f64): Likewise.
23270 (CHOOSE_f32x): Likewise.
23271 (CHOOSE_f64x): Likewise.
23272
23273 2017-11-07 Andreas Schwab <schwab@suse.de>
23274
23275 * nptl/Makefile (tests-internal): Remove tst-typesizes.
23276
23277 2017-11-07 Mike FABIAN <mfabian@redhat.com>
23278
23279 [BZ #22403]
23280 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
23281 to be escaped.
23282 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
23283 to be escaped.
23284
23285 2017-11-07 Claude Paroz <claude@2xlibre.net>
23286
23287 [BZ #22403]
23288 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
23289 to be escaped.
23290 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
23291 to be escaped.
23292 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
23293 to be escaped.
23294
23295 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23296
23297 [BZ #22298]
23298 * nptl/allocatestack.c (allocate_stack): Check if
23299 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
23300 __PTHREAD_MUTEX_HAVE_PREV is defined.
23301 * nptl/descr.h (pthread): Likewise.
23302 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
23303 Likewise.
23304 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
23305 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
23306 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
23307 * sysdeps/nptl/bits/thread-shared-types.h
23308 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23309 defines.
23310 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
23311 of __WORDSIZE for internal layout.
23312 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
23313 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
23314 instead of __WORDSIZE whether to use an union for __spins and __list
23315 fields.
23316 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
23317 case.
23318 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
23319 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23320 defines.
23321 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
23322 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23323 Likewise.
23324 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
23325 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23326 Likewise.
23327 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
23328 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23329 Likewise.
23330 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
23331 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23332 Likewise.
23333 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
23334 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23335 Likewise.
23336 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
23337 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23338 Likewise.
23339 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
23340 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23341 Likewise.
23342 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
23343 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23344 Likewise.
23345 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
23346 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23347 Likewise.
23348 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
23349 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23350 Likewise.
23351 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
23352 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23353 Likewise.
23354 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
23355 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23356 Likewise.
23357 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
23358 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23359 Likewise.
23360 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
23361 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23362 Likewise.
23363
23364 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
23365 New macros.
23366 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
23367 checks for expected input type size.
23368 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
23369 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
23370 Likewise.
23371 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
23372 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
23373 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23374 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
23375 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
23376 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
23377 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
23378 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
23379 superflous runtime assert check.
23380 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
23381 Likewise.
23382 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
23383 Likewise.
23384 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
23385 Likewise.
23386 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
23387 Likewise.
23388 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
23389 Likewise.
23390 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
23391 Likewise.
23392 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
23393 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
23394 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
23395 Likewise.
23396 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
23397 Likewise.
23398 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
23399 Likewise.
23400 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
23401 Likewise.
23402 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
23403 Likewise.
23404 * nptl/pthread_attr_setinheritsched.c
23405 (__pthread_attr_setinheritsched): Likewise.
23406 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
23407 Likewise.
23408 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
23409 Likewise.
23410 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
23411 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
23412 __old_pthread_attr_setstack): Likewise.
23413 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
23414 Likewise.
23415 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
23416 Likewise.
23417 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
23418 Likewise.
23419 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
23420 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
23421 Likewise.
23422 * nptl/tst-typesizes.c: Remove file.
23423
23424 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
23425 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
23426 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
23427 checks for internal pthread_mutex_t offsets.
23428 * sysdeps/aarch64/nptl/pthread-offsets.h
23429 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
23430 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
23431 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
23432 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
23433 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
23434 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
23435 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
23436 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
23437 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
23438 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
23439 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
23440 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
23441 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
23442 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
23443 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
23444 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
23445 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
23446 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
23447
23448 2017-11-07 Florian Weimer <fweimer@redhat.com>
23449
23450 * bits/mman-linux.h: Move ...
23451 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
23452 comment.
23453 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
23454 outdated comment.
23455
23456 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23457
23458 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
23459 Redefine STRNLEN as __strnlen_power8.
23460
23461 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23462
23463 * signal/sighold.c (sighold): Optimize implementation.
23464
23465 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
23466 __NR_rt_sigqueueinfo.
23467
23468 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23469 __sigtimedwait.
23470 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
23471 assume __NR_rt_sigtimedwait.
23472 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
23473 and add LIBC_CANCEL_HANDLED for cancellation marking.
23474 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23475
23476 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23477 (sysdeps_routines): Add memchr_noneon.
23478 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
23479 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
23480 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
23481 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
23482 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
23483 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
23484 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
23485
23486 * sysdeps/arm/arm-ifunc.h: New file.
23487 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
23488 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
23489 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
23490 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
23491 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
23492 (__memcpy_neon): Avoid create hidden alias.
23493 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
23494 (__memcpy_vfp): Likewise.
23495 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23496 (sysdep_routines): Add memcpy_arm.
23497 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
23498
23499 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
23500
23501 [BZ #22362]
23502 * Makerules (make-link-multidir): New.
23503 * config.make.in (multidir): New.
23504 * configure.ac (libc_cv_multidir): New. AC_SUBST.
23505 * configure: Regenerated.
23506 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
23507 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
23508 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
23509 New target.
23510
23511 2017-11-06 Joseph Myers <joseph@codesourcery.com>
23512
23513 [BZ #22402]
23514 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
23515 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
23516
23517 2017-11-04 Mike FABIAN <mfabian@redhat.com>
23518
23519 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
23520 to be escaped.
23521
23522 2017-11-04 Florian Weimer <fweimer@redhat.com>
23523
23524 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
23525
23526 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23527
23528 * math/math.h [__HAVE_DISTINCT_FLOAT16
23529 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23530 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23531 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23532 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
23533 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
23534 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
23535 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23536 (__MATH_TG_F32): New macro.
23537 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23538 (__MATH_TG_F64X): Likewise.
23539 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23540 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
23541
23542 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
23543
23544 * po/de.po: Update translations.
23545 * po/ru.po: Likewise.
23546
23547 2017-11-03 Florian Weimer <fweimer@redhat.com>
23548
23549 * manual/filesys.texi (Hard Links): Document linkat.
23550
23551 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23552
23553 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
23554 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23555 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23556 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23557 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23558 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23559 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
23560 the same as _Float128.
23561 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23562 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23563 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
23564
23565 * stdlib/stdlib.h
23566 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
23567 Declare.
23568 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
23569 Likewise.
23570 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
23571 Likewise.
23572 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23573 (strtof32x): Likewise.
23574 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23575 (strtof64x): Likewise.
23576 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23577 (strtof128x): Likewise.
23578 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23579 (strfromf16): Likewise.
23580 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23581 (strfromf32): Likewise.
23582 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23583 (strfromf64): Likewise.
23584 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23585 (strfromf32x): Likewise.
23586 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23587 (strfromf64x): Likewise.
23588 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23589 (strfromf128x): Likewise.
23590 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
23591 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
23592 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
23593 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
23594 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
23595 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
23596
23597 2017-11-03 Richard Henderson <rth@twiddle.net>
23598
23599 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
23600
23601 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23602
23603 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
23604
23605 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23606
23607 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
23608 DT_TLSDESC_GOT initialization.
23609 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
23610 (_dl_tlsdesc_resolve_hold): Likewise.
23611 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
23612 (_dl_tlsdesc_resolve_hold): Likewise.
23613 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
23614 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23615
23616 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23617
23618 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
23619
23620 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23621
23622 [BZ #18572]
23623 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
23624 non-lazily for R_ARM_TLS_DESC.
23625
23626 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23627
23628 [BZ #17078]
23629 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
23630 R_ARM_TLS_DESC case.
23631 (elf_machine_lazy_rel): Remove the prelink check.
23632
23633 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23634
23635 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
23636 DT_TLSDESC_GOT initialization.
23637 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
23638 (_dl_tlsdesc_resolve_rela): Likewise.
23639 (_dl_tlsdesc_resolve_hold): Likewise.
23640 (_dl_tlsdesc_undefweak): Remove ldar.
23641 (_dl_tlsdesc_dynamic): Likewise.
23642 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
23643 (_dl_tlsdesc_resolve_rela): Likewise.
23644 (_dl_tlsdesc_resolve_hold): Likewise.
23645 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
23646 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23647 (_dl_tlsdesc_resolve_rela): Likewise.
23648 (_dl_tlsdesc_resolve_hold): Likewise.
23649
23650 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23651
23652 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
23653 binding and initialization non-lazily for R_AARCH64_TLSDESC.
23654
23655 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23656
23657 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
23658 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
23659
23660 2017-11-02 Joseph Myers <joseph@codesourcery.com>
23661
23662 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
23663 Declare.
23664 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
23665 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
23666 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
23667 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
23668 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
23669 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
23670 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
23671 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
23672 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
23673 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
23674 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
23675
23676 2017-11-02 Mike FABIAN <mfabian@redhat.com>
23677
23678 [BZ #22382]
23679 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
23680 * localedata/locales/tpi_PG: Add standard header.
23681
23682 2017-11-02 Florian Weimer <fweimer@redhat.com>
23683
23684 test-errno-linux: quotactl can fail with EPERM in containers.
23685 * sysdeps/unix/sysv/linux/test-errno-linux.c
23686 (LIST, LIST_FORWARD): New macros.
23687 (check_error_in_list): New function.
23688 (test_wrp_rv): Accept list of permitted error codes.
23689 (test_wrp_rv2): Remove.
23690 (test_wrp): Call test_wrp_rv with list of error codes.
23691 (test_wrp2): Accept list of error codes.
23692 (do_test): Adjust. Allow EPERM for quotactl.
23693
23694 2017-11-02 Florian Weimer <fweimer@redhat.com>
23695
23696 * stdio-common/bug16.c (do_test): Use array_length.
23697 * stdio-common/errlist.c (_sys_nerr): Likewise.
23698 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
23699 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
23700 * stdio-common/psiginfo.c (psiginfo): Use array_length.
23701 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
23702 (do_test): Use array_length.
23703 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
23704 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
23705 * stdio-common/tst-printf-round.c (do_test): Likewise.
23706 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
23707 (CHECK): Use array_length.
23708 * stdio-common/tstdiomisc.c (t3, F): Likewise.
23709 * stdio-common/tstscanf.c (main): Likewise.
23710 * stdio-common/vfprintf.c (process_string_arg): Likewise.
23711
23712 2017-11-02 Florian Weimer <fweimer@redhat.com>
23713
23714 Add array_length and array_end macros.
23715 * include/array_length.h: New file.
23716
23717 2017-11-02 Florian Weimer <fweimer@redhat.com>
23718
23719 [BZ #22332]
23720 * posix/tst-glob-tilde.c (do_noescape): New variable.
23721 (one_test): Process it.
23722 (do_test): Set do_noescape. Add unescaping test case.
23723
23724 2017-11-01 Joseph Myers <joseph@codesourcery.com>
23725
23726 * math/complex.h
23727 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
23728 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
23729 with appropriate macros defined and undefined.
23730 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
23731 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23732 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
23733 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23734 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
23735 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23736 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
23737 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23738 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
23739 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23740
23741 * math/complex.h
23742 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
23743 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
23744 that for long double. Do not condition define and undefine of
23745 _Mdouble_complex_ on [__CFLOAT128].
23746
23747 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
23748
23749 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23750 of <sysdeps/generic/sysdep.h>.
23751 (ALIGNARG): Removed.
23752 (ASM_SIZE_DIRECTIVE): Likewise.
23753 (ENTRY): Likewise.
23754 (END): Likewise.
23755 (ENTRY_CHK): Likewise.
23756 (END_CHK): Likewise.
23757 (syscall_error): Likewise.
23758 (mcount): Likewise.
23759 (PSEUDO_END): Likewise.
23760 (L): Likewise.
23761 (atom_text_section): Likewise.
23762 * sysdeps/x86/sysdep.h: New file.
23763 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23764 of <sysdeps/generic/sysdep.h>.
23765 (ALIGNARG): Removed.
23766 (ASM_SIZE_DIRECTIVE): Likewise.
23767 (ENTRY): Likewise.
23768 (END): Likewise.
23769 (ENTRY_CHK): Likewise.
23770 (END_CHK): Likewise.
23771 (syscall_error): Likewise.
23772 (mcount): Likewise.
23773 (PSEUDO_END): Likewise.
23774 (L): Likewise.
23775 (atom_text_section): Likewise.
23776
23777 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
23778
23779 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
23780 category of LC_CTYPE set to "i18n:2012".
23781 * localedata/locales/i18n_ctype: Regenerate.
23782
23783 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
23784
23785 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
23786 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
23787 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
23788 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
23789
23790 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
23791 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
23792 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
23793 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
23794
23795 2017-10-31 Joseph Myers <joseph@codesourcery.com>
23796
23797 * math/complex.h
23798 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
23799 New macro.
23800 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
23801 Likewise.
23802 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
23803 Likewise.
23804 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23805 (CMPLXF32X): Likewise.
23806 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23807 (CMPLXF64X): Likewise.
23808 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23809 (CMPLXF128X): Likewise.
23810
23811 * math/math.h
23812 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
23813 (__MATH_EVAL_FMT2): Define to add 0.0f.
23814
23815 2017-10-31 Alan Modra <amodra@gmail.com>
23816
23817 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
23818 include sysdep.h.
23819 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
23820 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
23821 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
23822 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
23823 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
23824 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
23825 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
23826 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
23827 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
23828 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
23829 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
23830 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
23831 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
23832 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
23833 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
23834 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
23835 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
23836 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
23837 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
23838 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
23839 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
23840 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
23841 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
23842 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
23843 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23844 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
23845 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
23846 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
23847 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
23848 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
23849 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
23850 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
23851 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
23852 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
23853 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
23854 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
23855 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
23856 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
23857 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
23858 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
23859 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
23860 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
23861 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
23862 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
23863 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
23864 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
23865 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
23866 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
23867 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23868 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23869 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
23870 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
23871 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
23872 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
23873 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23874 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
23875 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
23876 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
23877 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23878 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23879 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23880 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
23881 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
23882 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
23883 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
23884 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
23885 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
23886 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
23887 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
23888
23889 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
23890 include sysdep.h and math_ldbl_opt.h.
23891
23892 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
23893 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
23894 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
23895 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
23896 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
23897 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
23898 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
23899 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
23900 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
23901 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
23902 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
23903 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
23904 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
23905 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
23906 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
23907 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
23908 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
23909 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
23910 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
23911 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
23912 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
23913 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
23914 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
23915 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
23916 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
23917 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
23918
23919 2017-10-31 Alan Modra <amodra@gmail.com>
23920
23921 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
23922 string/strncase_l.c, not string/strncase.c.
23923 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
23924 (libc_hidden_def): Redefine.
23925
23926 2017-10-31 Alan Modra <amodra@gmail.com>
23927
23928 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
23929 (__STRCMP, STRCMP, __strcasecmp_l): Define.
23930 (__strcasecmp): Don't define.
23931
23932 2017-10-31 Alan Modra <amodra@gmail.com>
23933
23934 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
23935 IS_IN (libc).
23936 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23937 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23938 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23939
23940 2017-10-31 Alan Modra <amodra@gmail.com>
23941
23942 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
23943 USE_AS_STPNCPY.
23944
23945 2017-10-31 Alan Modra <amodra@gmail.com>
23946
23947 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
23948 Redefine only when SHARED.
23949
23950 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23951
23952 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23953 Include <bits/math-finite.h> with appropriate macros defined and
23954 undefined.
23955 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23956 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23957 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23958 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23959 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23960
23961 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23962 [!_Mlong_double_] (_Mlong_double_): Likewise.
23963 [!_Mfloat16_] (_Mfloat16_): Likewise.
23964 [!_Mfloat32_] (_Mfloat32_): Likewise.
23965 [!_Mfloat64_] (_Mfloat64_): Likewise.
23966 [!_Mfloat128_] (_Mfloat128_): Likewise.
23967 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23968 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23969 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23970 (_Mdouble_): Define without indirection through those macros.
23971 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
23972 [!_Mfloat128_] (_Mfloat128_): Likewise.
23973 [_Mlong_double_] (_Mlong_double_): Likewise.
23974 (_Mdouble_): Define without indirection through those macros.
23975 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
23976 not add -D_Mlong_double_=double.
23977 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
23978 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
23979
23980 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23981
23982 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
23983
23984 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23985
23986 * sysdeps/x86/libc-start.c: Reformat.
23987
23988 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23989
23990 [BZ #22353]
23991 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
23992 (1): Renamed to ...
23993 (L(Src0)): This.
23994 (L(Src1)): New.
23995 (L(Src2)): Likewise.
23996 (L(1)): Renamed to ...
23997 (L(Src3)): This.
23998
23999 2017-10-30 Joseph Myers <joseph@codesourcery.com>
24000
24001 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
24002 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
24003 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
24004 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
24005 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
24006 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
24007 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
24008 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
24009 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
24010 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
24011 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
24012 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
24013 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
24014 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
24015 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
24016 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
24017 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
24018 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
24019 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
24020 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
24021 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
24022 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
24023 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
24024 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
24025 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
24026 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
24027 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
24028 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
24029 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
24030 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
24031 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
24032 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
24033 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
24034 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
24035 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
24036 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
24037 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
24038 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
24039 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
24040 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
24041 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
24042 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
24043 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
24044 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
24045 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
24046 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
24047 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
24048 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
24049 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
24050 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
24051 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
24052 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
24053 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
24054 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
24055 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
24056 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
24057 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
24058 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
24059 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
24060 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
24061 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
24062 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
24063 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
24064 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
24065 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
24066 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
24067
24068 2017-10-30 Florian Weimer <fweimer@redhat.com>
24069
24070 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
24071 always defined.
24072 * io/tst-mkdirat.c (do_test): Likewise.
24073 * io/tst-mkfifoat.c (do_test): Likewise.
24074 * io/tst-mknodat.c (do_test): Likewise.
24075 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
24076 * locale/programs/locale.c (select_dirs): Likewise.
24077 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
24078 * posix/bug-glob2.c (my_readdir): Likewise.
24079 * posix/tst-dir.c (main): Likewise.
24080 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
24081 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
24082
24083 2017-10-30 Florian Weimer <fweimer@redhat.com>
24084
24085 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
24086 just __USE_GNU.
24087
24088 2017-10-30 Florian Weimer <fweimer@redhat.com>
24089
24090 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
24091 Convert to support/test-driver.c.
24092 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
24093 New macro parameters.
24094 (PRINTF): Remove macro. Use test_verbose conditionals instead.
24095 * posix/tst-gnuglob.c: New file.
24096 * posix/tst-gnuglob64.c: Likewise.
24097 * posix/Makefile (tests): Add tst-gnuglob64.
24098
24099 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
24100
24101 [BZ #19485]
24102 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
24103 and use a better translation for March in “mon”.
24104 * localedata/locales/csb_PL: Use more ASCII to improve the
24105 readability of the source.
24106
24107 2017-10-30 Mike FABIAN <mfabian@redhat.com>
24108
24109 [BZ #13953]
24110 * localedata/locales/km_KH: Use ASCII as much
24111 as possible for better readability of the source and
24112 remove useless comments.
24113 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
24114 was commented out and apparently wrong anyway because it was
24115 using Lao characters. If Buddhist era should be used
24116 for km_KH, a native speaker should write the correct formaat
24117 for Khmer.
24118 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
24119 (According to CLDR, the first weekday for Cambodia is Sunday).
24120 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
24121 (These were using Lao characters which must be wrong. If we get
24122 the correct data from a native speaker, we could add it back, until
24123 then it is better not to have name_mr and name_mrs at all than
24124 having it wrong).
24125
24126 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
24127
24128 * locale/loadlocale.c: Correct size of
24129 _nl_value_type_LC_<category> arrays.
24130
24131 2017-10-27 Joseph Myers <joseph@codesourcery.com>
24132
24133 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
24134 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
24135 with appropriate macros defined and undefined.
24136 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
24137 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
24138 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
24139 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
24140 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
24141
24142 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
24143
24144 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
24145 "-O2 -march=i586".
24146
24147 2017-10-27 Mike FABIAN <mfabian@redhat.com>
24148
24149 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
24150 with lowercase letters to make it agree with CLDR.
24151
24152 2017-10-27 Mike FABIAN <mfabian@redhat.com>
24153
24154 [BZ #15260]
24155 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
24156 first letters of yesstr and nostr in yesexpr and noexpr,
24157 not for the full words.
24158 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24159 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
24160 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
24161 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
24162 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
24163 first letters of yesstr and nostr in yesexpr and noexpr,
24164 until now only English was matched in yesexpr and noexpr.
24165 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
24166 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
24167 fil but not for tl. As tl and fil are very similar, using fil
24168 is probably better than using English.
24169
24170 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
24171
24172 [BZ #21706]
24173 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
24174 in yesstr and nostr.
24175
24176 2017-10-26 Joseph Myers <joseph@codesourcery.com>
24177
24178 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24179 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
24180 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
24181 Likewise.
24182 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
24183 Likewise.
24184 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
24185 Likewise.
24186 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
24187 Likewise.
24188 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24189 (SNANF128X): Likewise.
24190
24191 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24192 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
24193 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24194 (HUGE_VAL_F32): Likewise.
24195 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24196 (HUGE_VAL_F64): Likewise.
24197 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24198 (HUGE_VAL_F32X): Likewise.
24199 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24200 (HUGE_VAL_F64X): Likewise.
24201 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24202 (HUGE_VAL_F128X): Likewise.
24203
24204 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
24205
24206 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
24207 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
24208 for the br_FR locale.
24209
24210 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
24211
24212 [BZ #21706]
24213 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
24214
24215 2017-10-25 Carlos O'Donell <carlos@redhat.com>
24216
24217 * locale/programs/record-status.h: Define globals, and function
24218 prototypes. Move function bodies...
24219 * locale/programs/record-status.c: ... to here. New file.
24220 * iconv/Makefile (iconv_prog-modules): Add record-status.
24221 * locale/Makefile (lib-modules): Likewise.
24222 * iconv/iconv_prog.c: Remove verbose.
24223 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
24224 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
24225 record a warning about ASCII compatibility.
24226 * locale/programs/ld-monetary.c (monetary_finish): If
24227 warn_int_curr_symbol is true then record a warning about the symbol
24228 not being in our ISO 4217 list.
24229 * locale/programs/locale.c: Include record-status.h. Remove verbose.
24230 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
24231 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
24232 (OPT_NO_WARN): Define.
24233 (OPT_WARN): Define.
24234 (options): Add entry for --no-warnings, and --warnings.
24235 (set_warnings): New function to enable/disable warnings.
24236 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
24237 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
24238 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
24239 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
24240 Pass flags to generate_locale.
24241 (generate_locale): Accept new flag argument and pass it to localedef
24242 invocation.
24243 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
24244 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
24245
24246 * localedata/Makefile (test-input-data): Use full file name.
24247 * localedata/da_DK.in: Rename to...
24248 * localedata/da_DK.ISO-8859-1.in: ...this.
24249 * localedata/de_DE.in: Rename to...
24250 * localedata/de_DE.ISO-8859-1.in: ...this.
24251 * localedata/en_US.in: Rename to...
24252 * localedata/en_US.ISO-8859-1.in: ...this.
24253 * localedata/fr_FR.in: Rename to...
24254 * localedata/fr_FR.UTF-8.in: ... this.
24255 * localedata/hr_HR.in: Rename to...
24256 * localedata/hr_HR.ISO-8859-2.in: ...this.
24257 * localedata/hu_HU.in: Rename to...
24258 * localedata/hu_HU.UTF-8.in: ...this.
24259 * localedata/si_LK.in: Rename to...
24260 * localedata/si_LK.UTF-8.in: ...this.
24261 * localedata/sv_SE.in: Rename to...
24262 * localedata/sv_SE.ISO-8859-1.in: ...this.
24263 * localedata/tr_TR.in: Rename to...
24264 * localedata/tr_TR.UTF-8.in: ...this.
24265 * localedata/uk_UA.in: Rename to...
24266 * localedata/uk_UA.UTF-8.in: ...this.
24267 * localedata/sort-test.sh: Test file is locale name with the
24268 suffix.
24269
24270 * localedata/unicode-gen/Makefile (check_i18n): Rename to
24271 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
24272 file.
24273 * localedata/locales/i18n_ctype: Regenerate.
24274 * localedata/locales/tr_TR: Likewise.
24275 * localedata/locales/translit_circle: Likewise.
24276 * localedata/locales/translit_cjk_compat: Likewise.
24277 * localedata/locales/translit_combining: Likewise.
24278 * localedata/locales/translit_compat: Likewise.
24279 * localedata/locales/translit_font: Likewise.
24280 * localedata/locales/translit_fraction: Likewise.
24281
24282 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24283
24284 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
24285 lxvd2x/stxvd2x with lvx/stvx.
24286 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
24287
24288 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
24289
24290 * include/alloc_buffer.h: Replace "if if " with "if " in
24291 comments.
24292 * sysdeps/mips/memcpy.S: Likkewise.
24293 * sysdeps/mips/memset.S: Likewise.
24294 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
24295 Likewise.
24296 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
24297 Likewise.
24298 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
24299 Likewise.
24300
24301 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24302
24303 [BZ #15261]
24304 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
24305 yesexpr and noexpr.
24306 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24307 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24308 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24309 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24310 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24311 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24312 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24313
24314 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24315
24316 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
24317 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24318 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24319 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24320 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24321 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
24322 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24323 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24324 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24325 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24326 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24327 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24328
24329 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24330
24331 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
24332 as possible for better readability of the source.
24333 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
24334 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
24335 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
24336 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
24337 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
24338 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
24339 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
24340 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
24341 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24342 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
24343 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
24344 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
24345 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
24346 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
24347 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
24348 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
24349 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
24350 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
24351 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
24352 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
24353 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
24354 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
24355 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
24356 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
24357 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
24358 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
24359 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
24360 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
24361 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
24362 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
24363 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
24364 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24365 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
24366 * localedata/locales/en_US (LC_MESSAGES): Likewise.
24367 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
24368 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
24369 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
24370 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
24371 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
24372 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
24373 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
24374 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
24375 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
24376 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
24377 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
24378 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
24379 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
24380 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
24381 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
24382 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
24383 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
24384 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
24385 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
24386 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24387 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24388 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
24389 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
24390 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24391 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
24392 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
24393 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
24394 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
24395 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
24396 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
24397 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
24398 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
24399 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
24400 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
24401 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
24402 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
24403 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
24404 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
24405 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
24406 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
24407 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24408 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
24409 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
24410 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
24411 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
24412 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
24413 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
24414 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
24415 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
24416 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24417 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
24418 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
24419 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
24420 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24421 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
24422 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
24423 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
24424 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
24425 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24426 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
24427 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
24428 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24429 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
24430 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24431 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
24432 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
24433 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
24434 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
24435 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
24436 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
24437 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
24438 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
24439 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
24440 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
24441 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
24442 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
24443 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
24444 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
24445 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24446 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
24447 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
24448 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
24449 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
24450 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
24451 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
24452 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
24453 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
24454 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
24455 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
24456 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
24457 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
24458 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
24459 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
24460 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
24461 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
24462 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
24463 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
24464 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
24465 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
24466 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
24467 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
24468 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
24469 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
24470 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
24471 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
24472 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
24473 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
24474 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
24475 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
24476 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
24477 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
24478 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24479 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
24480 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
24481 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
24482 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
24483 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
24484 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
24485 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
24486 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
24487 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24488 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
24489 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
24490 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
24491 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
24492 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
24493 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
24494 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
24495 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
24496 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
24497 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
24498 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24499 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
24500 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
24501 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
24502 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
24503 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24504 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24505 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24506 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
24507
24508 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24509
24510 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
24511 (Use first letters of yesstr and nostr correctly instead of using
24512 full words).
24513
24514 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24515
24516 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
24517 (Use first letters of yesstr and nostr correctly).
24518
24519 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24520
24521 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
24522 also check for the first characters of yesstr and nostr.
24523 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
24524 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
24525
24526 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24527
24528 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
24529 also check for Chinese characters.
24530
24531 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24532
24533 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
24534 match also for the contents of yesstr and nostr. As the first letter
24535 of yesstr and nostr is equal, checking only for the first letter
24536 is not enough.
24537
24538 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24539
24540 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
24541 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
24542
24543 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24544
24545 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
24546 of main contributor.
24547
24548 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24549
24550 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
24551 instead of using English.
24552
24553 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24554
24555 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
24556 by including the first letters of nostr and yesexpr in the regexp.
24557 Also make it more readable by using ASCII where possible.
24558
24559 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24560
24561 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
24562 the first letter of nostr in the regexp. It agrees with CLDR now.
24563 Also make it more readable by using ASCII where possible.
24564
24565 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24566
24567 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
24568 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
24569 these strings contain a U+17D6 (which somewhat looks like a colon)
24570 instead of a real colon to separate the full words for “yes”
24571 and “no” from the single letter responses.
24572
24573 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24574
24575 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
24576 it agree with CLDR (include the first letter of yesstr).
24577 Also make it more readable by using ASCII where possible.
24578
24579 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24580
24581 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
24582 and improve yesexpr and noexpr. The yesstr and nostr apparently
24583 came from CLDR. And CLDR has a bug there: these strings contain
24584 a U+0903 (which looks like a colon) instead of a real colon
24585 to separate the full words for “yes” and “no” from the single
24586 letter responses.
24587
24588 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24589
24590 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
24591 letters of the full yesstr and nostr in yesexpr and noexpr.
24592
24593 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24594
24595 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
24596 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
24597 * localedata/locales/an_ES: Make source more readable by using ASCII
24598 where possible.
24599
24600 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24601
24602 [BZ #20952]
24603 * localedata/locales/yuw_PG: New file.
24604 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
24605 * locale/iso-639.def: Add Yau (Uruwa).
24606
24607 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24608
24609 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
24610
24611 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24612
24613 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
24614 (__libc_realloc): Likewise.
24615 (_mid_memalign): Likewise.
24616 (__libc_calloc): Likewise.
24617
24618 2017-10-23 Mike FABIAN <mfabian@redhat.com>
24619
24620 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
24621 by adding the generic +1 and -0 as in all other locales.
24622 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
24623 day names and make it more readable by using ASCII where possible.
24624
24625 2017-10-24 Joseph Myers <joseph@codesourcery.com>
24626
24627 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
24628 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
24629
24630 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24631
24632 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
24633 WNOHANG in waitpid call.
24634
24635 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
24636
24637 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
24638 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
24639
24640 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
24641 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
24642 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
24643 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
24644 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
24645 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
24646 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
24647 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
24648 variables.
24649
24650 2017-10-23 Michael Collison <michael.collison@arm.com>
24651
24652 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
24653 with __builtin_sqrt.
24654 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
24655 with __builtin_sqrtf.
24656 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
24657 with __builtin_ceil.
24658 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
24659 with __builtin_ceilf.
24660 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
24661 with __builtin_floor.
24662 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
24663 with __builtin_floorf.
24664 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
24665 with __builtin_fma.
24666 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
24667 with __builtin_fmaf.
24668 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
24669 with __builtin_fmax.
24670 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
24671 with __builtin_fmaxf.
24672 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
24673 with __builtin_fmin.
24674 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
24675 with __builtin_fminf.
24676 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
24677 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
24678 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
24679 with builtin_rint and conversion to int.
24680 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
24681 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
24682 with builtin_llround.
24683 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
24684 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
24685 with builtin_rint and conversion to long int.
24686 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
24687 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
24688 with builtin_lround.
24689 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
24690 with builtin_lroundf.
24691 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
24692 statements with __builtin_nearbyint.
24693 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
24694 statements with __builtin_nearbyintf.
24695 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
24696 with __builtin_rint.
24697 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
24698 with __builtin_rintf.
24699 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
24700 with __builtin_round.
24701 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
24702 with __builtin_roundf.
24703 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
24704 with __builtin_trunc.
24705 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
24706 with __builtin_truncf.
24707 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
24708 and s_l[l]round[f].c too.
24709
24710 2017-10-23 Alan Modra <amodra@gmail.com>
24711
24712 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
24713 Adjust stack after restoring regs. Add missing LR cfi_restore.
24714
24715 2017-10-23 Alan Modra <amodra@gmail.com>
24716
24717 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
24718 Move LR save and frame setup/teardown and LR restore to
24719 immediately around memset call. Provide cfi.
24720
24721 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24722
24723 * sysdeps/i386/fpu/e_powf.S: Removed.
24724 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
24725 * sysdeps/i386/fpu/w_powf.c: Likewise.
24726 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
24727 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24728 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24729 Add e_powf-sse2.
24730 (CFLAGS-e_powf-sse2.c): New.
24731 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
24732 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
24733
24734 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24735
24736 * sysdeps/i386/fpu/e_log2f.S: Removed.
24737 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
24738 * sysdeps/i386/fpu/w_log2f.c: Likewise.
24739 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
24740 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24741 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24742 Add e_log2f-sse2.
24743 (CFLAGS-e_log2f-sse2.c): New.
24744 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
24745 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
24746
24747 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24748
24749 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24750 Add e_powf-fma.
24751 (CFLAGS-e_powf-fma.c): New.
24752 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
24753 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
24754
24755 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24756
24757 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24758 Add e_log2f-fma.
24759 (CFLAGS-e_log2f-fma.c): New.
24760 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
24761 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
24762
24763 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24764
24765 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24766 Add e_logf-fma.
24767 (CFLAGS-e_logf-fma.c): New.
24768 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
24769 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
24770
24771 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24772
24773 * sysdeps/i386/fpu/e_logf.S: Removed.
24774 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
24775 * sysdeps/i386/fpu/w_logf.c: Likewise.
24776 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
24777 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
24778 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24779 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24780 Add e_logf-sse2.
24781 (CFLAGS-e_logf-sse2.c): New.
24782 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
24783 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
24784
24785 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24786
24787 * sysdeps/i386/fpu/e_exp2f.S: Removed.
24788 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
24789 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
24790 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24791 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24792 Add e_exp2f-sse2.
24793 (CFLAGS-e_exp2f-sse2.c): New.
24794 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
24795 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
24796
24797 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24798
24799 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24800 Add e_exp2f-fma.
24801 (CFLAGS-e_exp2f-fma.c): New.
24802 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
24803 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
24804
24805 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24806
24807 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
24808 * sysdeps/i386/fpu/e_expf.S: Likewise.
24809 * sysdeps/i386/fpu/math_errf.c: Likewise.
24810 * sysdeps/i386/fpu/w_expf.c: Likewise.
24811 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
24812 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
24813 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
24814 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
24815 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24816 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24817 Remove e_expf-ia32.
24818 (CFLAGS-e_expf-sse2.c): New.
24819 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
24820 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
24821
24822 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24823
24824 * sysdeps/x86_64/fpu/e_expf.S: Removed.
24825 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
24826 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
24827 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
24828 e_expf.c.
24829 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
24830 New.
24831 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
24832 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
24833 Renamed to ...
24834 (__redirect_expf): This.
24835 (SYMBOL_NAME): Changed to expf.
24836 (__ieee754_expf): Renamed to ...
24837 (__expf): This.
24838 (__GI___expf): This.
24839 (__ieee754_expf): Add strong_alias.
24840 (__expf_finite): Likewise.
24841 (__expf): New.
24842 Include <sysdeps/ieee754/flt-32/e_expf.c>.
24843
24844 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
24845
24846 [BZ #22332]
24847 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
24848 unescaping.
24849
24850 2017-10-21 Florian Weimer <fweimer@redhat.com>
24851
24852 * posix/Makefile (tests): Add tst-glob-tilde.
24853 (tests-special): Add tst-glob-tilde-mem.out
24854 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
24855 (tst-glob-tilde-mem.out): Add mtrace check.
24856 * posix/tst-glob-tilde.c: New file.
24857
24858 2017-10-20 Joseph Myers <joseph@codesourcery.com>
24859
24860 * bits/floatn-common.h: New file.
24861 * math/Makefile (headers): Add bits/floatn-common.h.
24862 * bits/floatn.h: Include <bits/floatn-common.h>.
24863 * sysdeps/ia64/bits/floatn.h: Likewise.
24864 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24865 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
24866 * sysdeps/powerpc/bits/floatn.h: Likewise.
24867 * sysdeps/x86/bits/floatn.h: Likewise.
24868
24869 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24870
24871 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
24872 indicates whether compiler emits an warning for alias for
24873 functions with incompatible types.
24874
24875 [BZ #22273]
24876 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
24877 the auxiliary process is terminated by a signal before calling _exit
24878 or execve.
24879
24880 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24881
24882 [BZ #21265]
24883 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
24884 New.
24885 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
24886 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
24887 and bit_arch_XSAVEC_Usable if needed.
24888 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
24889 and bit_arch_Use_dl_runtime_resolve_opt.
24890 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
24891 Removed.
24892 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
24893 (bit_arch_Prefer_No_AVX512): Updated.
24894 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
24895 (bit_arch_XSAVEC_Usable): New.
24896 (STATE_SAVE_OFFSET): Likewise.
24897 (STATE_SAVE_MASK): Likewise.
24898 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
24899 (cpu_features): Add xsave_state_size and xsave_state_full_size.
24900 (index_arch_Use_dl_runtime_resolve_opt): Removed.
24901 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
24902 (index_arch_XSAVEC_Usable): New.
24903 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24904 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
24905 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
24906 is enabled.
24907 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
24908 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
24909 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
24910 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
24911 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
24912 _dl_runtime_resolve_xsavec.
24913 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
24914 Removed.
24915 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
24916 instead of VEC_SIZE.
24917 (REGISTER_SAVE_BND0): Removed.
24918 (REGISTER_SAVE_BND1): Likewise.
24919 (REGISTER_SAVE_BND3): Likewise.
24920 (REGISTER_SAVE_RAX): Always defined to 0.
24921 (VMOV): Removed.
24922 (_dl_runtime_resolve_avx): Likewise.
24923 (_dl_runtime_resolve_avx_slow): Likewise.
24924 (_dl_runtime_resolve_avx_opt): Likewise.
24925 (_dl_runtime_resolve_avx512): Likewise.
24926 (_dl_runtime_resolve_avx512_opt): Likewise.
24927 (_dl_runtime_resolve_sse): Likewise.
24928 (_dl_runtime_resolve_sse_vex): Likewise.
24929 (USE_FXSAVE): New.
24930 (_dl_runtime_resolve_fxsave): Likewise.
24931 (USE_XSAVE): Likewise.
24932 (_dl_runtime_resolve_xsave): Likewise.
24933 (USE_XSAVEC): Likewise.
24934 (_dl_runtime_resolve_xsavec): Likewise.
24935 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
24936 Removed.
24937 (_dl_runtime_resolve_avx512_opt): Likewise.
24938 (_dl_runtime_resolve_avx): Likewise.
24939 (_dl_runtime_resolve_avx_opt): Likewise.
24940 (_dl_runtime_resolve_sse): Likewise.
24941 (_dl_runtime_resolve_sse_vex): Likewise.
24942 (_dl_runtime_resolve_fxsave): New.
24943 (_dl_runtime_resolve_xsave): Likewise.
24944 (_dl_runtime_resolve_xsavec): Likewise.
24945
24946 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
24947
24948 [BZ #22320]
24949 CVE-2017-15670
24950 * posix/glob.c (__glob): Fix one-byte overflow.
24951
24952 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24953
24954 * malloc/malloc.c (sysdep-cancel.h): Add include.
24955
24956 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24957
24958 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24959
24960 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24961
24962 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24963 (tests): Remove $(objpfx)ga_test depdendency.
24964 * resolv/ga_test.c: Remove file.
24965
24966 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24967
24968 [BZ #18812]
24969 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24970 * localedata/locales/kab_DZ: New file.
24971
24972 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24973
24974 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
24975 _dl_relocate_static_pie instead of _dl_start to compute load
24976 address in static PIE.
24977
24978 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24979
24980 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
24981
24982 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24983
24984 [BZ #13605]
24985 * localedata/SUPPORTED: Add shn_MM/UTF-8.
24986 * localedata/locales/shn_MM: New file.
24987
24988 2017-10-20 Florian Weimer <fweimer@redhat.com>
24989
24990 [BZ #22321]
24991 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
24992 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
24993 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
24994 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
24995 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
24996 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
24997
24998 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24999
25000 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
25001
25002 2017-10-19 Joseph Myers <joseph@codesourcery.com>
25003
25004 * sysdeps/mips/ieee754/bits/floatn.h: New file.
25005
25006 [BZ #22322]
25007 * sysdeps/mips/bits/long-double.h: Move to ....
25008 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
25009
25010 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
25011
25012 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
25013
25014 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
25015 H.J. Lu <hongjiu.lu@intel.com>
25016
25017 [BZ #22299]
25018 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
25019 GLRO(dl_platform) to NULL.
25020 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
25021 (modules-names): Add tst-platformmod-1 and
25022 x86_64/tst-platformmod-2.
25023 (CFLAGS-tst-platform-1.c): New.
25024 (CFLAGS-tst-platformmod-1.c): Likewise.
25025 (CFLAGS-tst-platformmod-2.c): Likewise.
25026 (LDFLAGS-tst-platformmod-2.so): Likewise.
25027 ($(objpfx)tst-platform-1): Likewise.
25028 ($(objpfx)tst-platform-1.out): Likewise.
25029 (tst-platform-1-ENV): Likewise.
25030 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
25031 * sysdeps/x86_64/tst-platform-1.c: New file.
25032 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
25033 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
25034
25035 2017-10-19 Mike FABIAN <mfabian@redhat.com>
25036
25037 [BZ #13994]
25038 * locale/iso-639.def: Add Karbi.
25039 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
25040 * localedata/locales/mjw_IN: New file.
25041
25042 2017-10-18 Joseph Myers <joseph@codesourcery.com>
25043
25044 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
25045 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
25046 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
25047 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
25048 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
25049 (libm_alias_ldouble_other_r): Also create _Float128 alias.
25050 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
25051 <bits/floatn.h>.
25052 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
25053 (libm_alias_ldouble_other_r): Also create _Float128 alias.
25054 * manual/math.texi (Mathematics): Document additional architecture
25055 support for _Float128.
25056 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25057 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25058 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25059 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25060 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25061 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25062 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25063 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25064 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25065 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25066 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25067 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25068 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25069 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25070 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25071
25072 2017-10-18 Renlin Li <renlin.li@arm.com>
25073
25074 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
25075 _DYNAMIC symbol to calculate load address.
25076
25077 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
25078
25079 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
25080 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
25081 summary bits.
25082 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
25083 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
25084
25085 2017-10-18 Mike FABIAN <mfabian@redhat.com>
25086
25087 [BZ #16777]
25088 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
25089 and improve readability by using more ASCII.
25090 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
25091 and improve readability by using more ASCII.
25092
25093 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
25094
25095 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
25096 not all targets support atomics on bool.
25097
25098 2017-10-17 Joseph Myers <joseph@codesourcery.com>
25099
25100 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
25101 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
25102 __f128.
25103 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25104 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
25105 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25106 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
25107 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25108 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
25109
25110 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25111
25112 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
25113 defines.
25114
25115 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25116
25117 [BZ #22159]
25118 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
25119 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
25120 (do_check_remalloced_chunk): Fix build bug.
25121 (do_check_malloc_state): Add assert that checks arena->top.
25122 (malloc_consolidate): Remove initialization.
25123 (int_mallinfo): Remove call to malloc_consolidate.
25124 (__libc_mallopt): Clarify why malloc_consolidate is needed.
25125
25126 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25127
25128 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
25129 (have_fastchunks): Remove.
25130 (clear_fastchunks): Remove.
25131 (set_fastchunks): Remove.
25132 (malloc_state): Add have_fastchunks.
25133 (malloc_init_state): Use have_fastchunks.
25134 (do_check_malloc_state): Remove incorrect invariant checks.
25135 (_int_malloc): Use have_fastchunks.
25136 (_int_free): Likewise.
25137 (malloc_consolidate): Likewise.
25138
25139 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25140
25141 * malloc/malloc.c (tcache_put): Inline.
25142 (tcache_get): Inline.
25143
25144 2017-10-17 Jordi Mallach <jordi@gnu.org>
25145
25146 Aurelien Jarno <aurelien@aurel32.net>
25147 [BZ #2522]
25148 * localedata/locales/ca_ES@valencia: New file.
25149 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
25150
25151 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
25152
25153 [BZ #22296]
25154 * math/math.h: Let signbit use the builtin in C++ mode with gcc
25155 < 6.x
25156
25157 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25158
25159 * scripts/build-many-glibcs.py (Context.add_all_configs):
25160 Add arm-linux-gnueabihf multiarch extra_glibcs.
25161
25162 * sysdeps/generic/ifunc-init.h: New file.
25163 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
25164
25165 2017-10-17 Mike FABIAN <mfabian@redhat.com>
25166
25167 [BZ #22019]
25168 * localedata/locales/el_GR: Set n_cs_precedes to 0.
25169 * localedata/locales/el_CY: copy "el_GR" because it is identical.
25170 * stdlib/tst-strfmon_l.c: adapt test case.
25171
25172 2017-10-16 Joseph Myers <joseph@codesourcery.com>
25173
25174 * sysdeps/generic/float128-abi.h: New file.
25175 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
25176 non-__prefixed symbols to ....
25177 * math/Versions: ... here. Include <float128-abi.h>.
25178 * stdlib/Versions ... and here. Include <float128-abi.h>
25179
25180 2017-10-16 Florian Weimer <fweimer@redhat.com>
25181
25182 * version.h (VERSION): Switch to ".9000" as the development
25183 version suffix.
25184
25185 2017-10-16 Florian Weimer <fweimer@redhat.com>
25186
25187 [BZ #22050]
25188 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
25189 compat_symbol_reference to access non-default version.
25190
25191 2017-10-16 Florian Weimer <fweimer@redhat.com>
25192
25193 * malloc/Makefile (others-extras): Set to mcheck-init.o.
25194
25195 2017-10-16 Carlos O'Donell <carlos@redhat.com>
25196
25197 * include/shlib-compat.h (compat_symbol_reference): Update
25198 comment.
25199
25200 2017-10-16 Joseph Myers <joseph@codesourcery.com>
25201
25202 * math/Makefile (test-types): Add
25203 $(type-float128-$(float128-alias-fcts)).
25204 * math/test-float128.h (TYPE_STR): Define conditional on
25205 [FLT128_MANT_DIG == LDBL_MANT_DIG].
25206 (ULP_IDX): Likewise.
25207 (ULP_I_IDX): Likewise.
25208
25209 * stdlib/strtold.c: Include <bits/floatn.h>
25210 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
25211 and later undefine as macro. Define as weak alias if
25212 [!USE_WIDE_CHAR].
25213 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
25214 and later undefine as macro. Define as weak alias if
25215 [USE_WIDE_CHAR].
25216 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
25217 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
25218 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
25219 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25220 Define and later undefine as macro. Define as weak alias if
25221 [USE_WIDE_CHAR].
25222 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
25223 <bits/floatn.h>.
25224 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
25225 Define and later undefine as macro. Define as weak alias if
25226 [!USE_WIDE_CHAR].
25227 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25228 Define and later undefine as macro. Define as weak alias if
25229 [USE_WIDE_CHAR].
25230
25231 2017-10-15 Carlos O'Donell <carlos@redhat.com>
25232
25233 * localedata/collate-test.c (allocate_arrays): Don't use \n in
25234 record_verbose messages.
25235
25236 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
25237
25238 [BZ #22052]
25239 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
25240 to silence -O3 -Wall warning with GCC 7.
25241
25242 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
25243
25244 * Makeconfig (+link-static-before-libc): Use the first of
25245 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
25246 * gmon/Makefile (tests): Add tst-gmon-static.
25247 (tests-static): Likewise.
25248 (CFLAGS-tst-gmon-static.c): New.
25249 (CRT-tst-gmon-static): Likewise.
25250 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
25251 (tst-gmon-static-ENV): Likewise.
25252 (tests-special): Likewise.
25253 ($(objpfx)tst-gmon-static.out): Likewise.
25254 (clean-tst-gmon-static-data): Likewise.
25255 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
25256 * gmon/tst-gmon-static-gprof.sh: New file.
25257 * gmon/tst-gmon-static.c: Likewise.
25258
25259 2017-10-13 Carlos O'Donell <carlos@redhat.com>
25260
25261 [BZ #22295]
25262 * locale/programs/linereader.c (get_string): Don't warn on
25263 non-symbolic character.
25264
25265 [BZ #22294]
25266 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
25267 int_curr_symbol.
25268
25269 [BZ #22292]
25270 * locale/programs/record-status.h: New file
25271 * locale/programs/locale.c: Add comment.
25272 * locale/programs/charmap-dir.c: Don't include error.h.
25273 (charmap_opendir): Use record_error.
25274 * locale/programs/charmap.c: Don't include error.h.
25275 (charmap_read): Use record_error, and record_warning.
25276 (parse_charmap): Likewise.
25277 * locale/programs/ld-address.c: Don't include error.h.
25278 (address_finish): Use record_error, and record_warning.
25279 * locale/programs/ld-collate.c: Don't include error.h.
25280 (collate_finish): Use record_error, and record_error_at_line.
25281 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
25282 (ctype_class_new): Likewise.
25283 (ctype_map_new): Likewise.
25284 (set_one_default): Likewise.
25285 (set_class_defaults): Likewise.
25286 (translit_flatten): Likewise.
25287 (allocate_arrays): Use record_error, and record_verbose.
25288 * locale/programs/ld-identification.c: Don't include error.h.
25289 (indentation_finish): Use record_error and record_warning.
25290 * locale/programs/ld-measurement.c: Don't include error.h.
25291 (measurement_finish): Use record_error.
25292 * locale/programs/ld-messages.c
25293 (message_finish): Likewise.
25294 * locale/programs/ld-monetary.c
25295 (monetary_finish): Likewise.
25296 * locale/programs/ld-name.c (name_finish): Use record_error
25297 and record_warning.
25298 * locale/programs/ld-numeric.c
25299 (numeric_finish): Use record_error.
25300 * locale/programs/ld-paper.c: Don't include error.h.
25301 (paper_finish): Use record_error.
25302 * locale/programs/ld-telephone.c: Don't include error.h.
25303 (telephone_finish): Use record_error.
25304 * locale/programs/ld-time.c (time_finish): Likewise.
25305 * locale/programs/linereader.h (lr_error): Make inline func.
25306 * locale/programs/localedef.c: Define recorded_warning_count,
25307 and recorded_error_count.
25308 (main): Use record_error. Use recorded_error_count and
25309 recorded_warning_count to issue correct error returns.
25310 (add_to_readlist): Use record_error.
25311 (find_locale): Likewise.
25312 (load_locale): Likewise.
25313 * locale/programs/localedef.h: Remove be_quiet
25314 and WITH_CUR_LOCALE.
25315 * locale/programs/locarchive.c (compare_from_file): Use
25316 record_error.
25317 * locale/programs/locfile.c (write_locale_data): Use
25318 record_error.
25319 * locale/programs/repertoire.c: Dont include error.h.
25320 (repertoire_complain): Use record_error.
25321 * localedata/tst-fmon.sh: Expect failures from localedef.
25322 * localedata/tst-locale.sh: Likewise.
25323 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
25324
25325 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
25326 (REPORTS): Likewise.
25327 (check): Likewise.
25328 (i18n): Rename to...
25329 (i18n_ctype): ...this.
25330 (i18n-report): Rename to...
25331 (i18n_ctype-report): ...this.
25332 * localedata/locales/i18n_ctype: Regenerate.
25333 * localedata/locales/i18n: copy i18n_ctype.
25334
25335 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25336
25337 * stdlib/strfroml.c: Include <bits/floatn.h>.
25338 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
25339 Define before include of <stdlib.h> and undefine afterwards, then
25340 define as weak alias.
25341
25342 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
25343 Undefine and restore default definition. Use
25344 libm_alias_ldouble_other.
25345
25346 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
25347
25348 [BZ #22153]
25349 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
25350 in coredumps.
25351
25352 2017-10-13 James Clarke <jrtc27@jrtc27.com>
25353
25354 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
25355 Assign sym_map to be map for local symbols, as TLS relocations
25356 use sym_map to determine whether the symbol is defined and to
25357 extract the TLS information.
25358 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
25359 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
25360
25361 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
25362
25363 [BZ #22189]
25364 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
25365 (math_force_eval): Add powerpc version.
25366
25367 [BZ #22142]
25368 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
25369 -DBL_MAX.
25370 (do_test): Likewise.
25371 * stdio-common/tst-printf.sh: Likewise.
25372 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
25373 ifdef clause in order to set the carry bit right. Replace r0 by
25374 0 without changing the behavior.
25375
25376 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25377
25378 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
25379 <libm-alias-ldouble.h>.
25380 (fabsl): Define using libm_alias_ldouble.
25381 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
25382 <libm-alias-ldouble.h>.
25383 (fabsl): Define using libm_alias_ldouble.
25384
25385 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
25386 Remove conditional code.
25387
25388 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
25389 Rename to __clog10_internal_l.
25390 (__clog10_internal_l): Define aliases using
25391 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
25392 with __clog10.
25393
25394 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25395
25396 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
25397 * benchtests/sincosf-inputs: New file.
25398 * benchtests/cosf-inputs: New file.
25399 * benchtests/sinf-inputs: New file.
25400
25401 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
25402
25403 * posix/tst-spawn.c (do_test): Wait for both children.
25404
25405 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
25406
25407 [BZ #22284]
25408 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
25409 tests-pie): Add tst-gmon-pie.
25410 (CFLAGS-tst-gmon-pie.c): New.
25411 (CRT-tst-gmon-pie): Likewise.
25412 (tst-gmon-pie-ENV): Likewise.
25413 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
25414 ($(objpfx)tst-gmon-pie.out): Likewise.
25415 (clean-tst-gmon-pie-data): Likewise.
25416 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
25417 * gmon/gmon.c [PIC]: Include <link.h>.
25418 [PIC] (callback): New function.
25419 (write_hist): Add an argument for load address. Subtract load
25420 address from PCs.
25421 (write_call_graph): Likewise.
25422 (write_gmon): Call __dl_iterate_phdr to get load address, pass
25423 it to write_hist and write_call_graph.
25424 * gmon/tst-gmon-pie.c: New file.
25425
25426 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25427
25428 * math/Makefile (test-types-basic): New variable.
25429 (test-types): Likewise.
25430 (libm-test-support): Use $(test-types) instead of $(types).
25431 (libm-tests-base-normal): Likewise.
25432 (libm-tests-base-finite): Likewise.
25433 (libm-tests-base-inline): Likewise.
25434 (generated): Likewise.
25435 ($(objpfx)libm-test-support-$(t).c): Likewise.
25436 (libm-tests-for-type iterator): Likewise.
25437 (libm-test-support iterator): Likewise.
25438 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
25439 (ulp_idx): Use ULP_IDX.
25440 * math/test-ldouble.h: Include <float.h>.
25441 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
25442 (ULP_IDX): New macro.
25443 (ULP_I_IDX): Likewise.
25444 * math/test-double.h (ULP_IDX): Likewise.
25445 (ULP_I_IDX): Likewise.
25446 * math/test-float.h (ULP_IDX): Likewise.
25447 (ULP_I_IDX): Likewise.
25448 * math/test-float128.h (ULP_IDX): Likewise.
25449 (ULP_I_IDX): Likewise.
25450
25451 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25452
25453 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
25454 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
25455 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
25456 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
25457 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
25458 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
25459 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
25460 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
25461 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
25462 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
25463 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
25464 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
25465 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
25466 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25467 (SINGLE_THREAD_BY_GLOBAL): Define.
25468 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25469 Likewise.
25470 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25471 Likewise.
25472 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25473 Likewise.
25474 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25475 Likewise.
25476 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
25477 (SINGLE_THREAD_BY_GLOBAL): Likewise.
25478 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25479 Likewise.
25480
25481 2017-10-11 Andreas Schwab <schwab@suse.de>
25482
25483 * nis/Makefile (aux): Remove.
25484 * nscd/Makefile (aux): Add nscd_hash.
25485 (nscd-modules): Likewise.
25486 ($(objpfx)nscd): Don't depend on libnsl.
25487 * nscd/nscd_hash.c: New file.
25488 * nscd/nscd_hash.h: Likewise.
25489 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
25490 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
25491 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
25492 instead of <nis/rpcsvc/nis.h>.
25493 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
25494
25495 2017-10-11 Florian Weimer <fweimer@redhat.com>
25496
25497 [BZ #22078]
25498 Avoid large NSS buffers with many addresses, aliases.
25499 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
25500 using dynarrays and struct alloc_buffer.
25501 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
25502 (tst-nss-files-hosts-multi): Link with -ldl.
25503 * nss/tst-nss-files-hosts-multi.c: New file.
25504
25505 2017-10-11 Florian Weimer <fweimer@redhat.com>
25506
25507 [BZ #18023]
25508 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
25509 scratch_buffer. Eliminate gotos.
25510
25511 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25512
25513 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
25514 libm_alias_ldouble_other.
25515 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
25516 undefine and redefine.
25517 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
25518 (exp10l): Do not define here.
25519 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
25520 (weak_alias): Undefine and redefine.
25521 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
25522 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
25523 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
25524 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
25525
25526 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
25527 [!__fma] (fma): Define using libm_alias_double.
25528 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
25529 [!__fmaf] (fmaf): Define using libm_alias_float.
25530 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
25531 (fmal): Define using libm_alias_ldouble.
25532
25533 2017-10-10 Joseph Myers <joseph@codesourcery.com>
25534
25535 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
25536 New macro.
25537 (libm_alias_double_other): Likewise.
25538 (libm_alias_double_r): Use libm_alias_double_other_r.
25539 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
25540 New macro.
25541 (libm_alias_float_other): Likewise.
25542 (libm_alias_float_r): Use libm_alias_float_other_r.
25543 * sysdeps/generic/libm-alias-float128.h
25544 (libm_alias_float128_other_r): New macro.
25545 (libm_alias_float128_other): Likewise.
25546 (libm_alias_float128_r): Use libm_alias_float128_other_r.
25547 * sysdeps/generic/libm-alias-ldouble.h
25548 (libm_alias_ldouble_other_r): New macro.
25549 (libm_alias_ldouble_other): Likewise.
25550 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25551 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
25552 (libm_alias_double_other_r): New macro.
25553 (libm_alias_double_other): Likewise.
25554 (libm_alias_double_r): Use libm_alias_double_other_r.
25555 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
25556 (libm_alias_ldouble_other_r): New macro.
25557 (libm_alias_ldouble_other): Likewise.
25558 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25559 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
25560 [!USE_AS_COMPAT]: Use libm_alias_double_other.
25561 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
25562 [!USE_AS_COMPAT]: Use libm_alias_float_other.
25563 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
25564 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
25565 * math/w_exp2f.c: Use libm_alias_float_other.
25566 * math/w_expf.c: Likewise.
25567 * math/w_log2f.c: Likewise.
25568 * math/w_logf.c: Likewise.
25569 * math/w_powf.c: Likewise.
25570 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
25571 [!__exp2f]: Use libm_alias_float_other.
25572 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
25573 [!__expf]: Use libm_alias_float_other.
25574 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
25575 [!__log2f]: Use libm_alias_float_other.
25576 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
25577 [!__logf]: Use libm_alias_float_other.
25578 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
25579 [!__powf]: Use libm_alias_float_other.
25580
25581 2017-10-10 Florian Weimer <fweimer@redhat.com>
25582
25583 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
25584 function.
25585 (_nss_files_gethostbyname3_r): Call it.
25586
25587 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25588
25589 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
25590 error. Remove default definition of declare_mgen_alias.
25591 [!declare_mgen_alias_r]: Likewise.
25592 * sysdeps/generic/math-type-macros-double.h
25593 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
25594 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
25595 (declare_mgen_alias_r): Likewise.
25596 * sysdeps/generic/math-type-macros-float128.h
25597 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25598 * sysdeps/generic/math-type-macros-ldouble.h
25599 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25600 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
25601 macro.
25602 (declare_mgen_alias_r_s): Likewise.
25603 (declare_mgen_alias_r): Likewise.
25604 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
25605 (lgamma_r): Define using libm_alias_double_r.
25606 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
25607 (lgammaf_r): Define using libm_alias_float_r.
25608 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
25609 (lgammal_r): Define using libm_alias_ldouble_r.
25610 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
25611 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25612
25613 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25614
25615 * lib/glob.c (__glob_pattern_type): Remove now-spurious
25616 extern declaration.
25617
25618 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25619
25620 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
25621
25622 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
25623
25624 [BZ #21326]
25625 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
25626 [__cplusplus >= 201103] (__USE_ISOC99): Define.
25627 * math/Makefile (test-math-cxx11): New test.
25628 * math/test-math-cxx11.cc: New file.
25629
25630 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
25631
25632 * login/openpty.c (openpty): Close slave pty file descriptor on error.
25633
25634 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
25635 call to allocate the slave pty file descriptor.
25636
25637 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25638
25639 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
25640 [!__fma] (fma): Define using libm_alias_double.
25641 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
25642 [!__fma] (fma): Define using libm_alias_double.
25643
25644 * sysdeps/ieee754/float128/float128_private.h: Include
25645 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
25646 (libm_alias_ldouble_r): Undefine and redefine.
25647 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
25648 <libm-alias-ldouble.h>.
25649 (asinhl): Define using libm_alias_ldouble.
25650 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
25651 <libm-alias-ldouble.h>.
25652 (atanl): Define using libm_alias_ldouble.
25653 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
25654 <libm-alias-ldouble.h>.
25655 (cbrtl): Define using libm_alias_ldouble.
25656 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
25657 <libm-alias-ldouble.h>.
25658 (ceill): Define using libm_alias_ldouble.
25659 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
25660 <libm-alias-ldouble.h>.
25661 (copysignl): Define using libm_alias_ldouble.
25662 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
25663 <libm-alias-ldouble.h>.
25664 (cosl): Define using libm_alias_ldouble.
25665 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
25666 <libm-alias-ldouble.h>.
25667 (erfl): Define using libm_alias_ldouble.
25668 (erfcl): Likewise.
25669 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
25670 <libm-alias-ldouble.h>.
25671 (expm1l): Define using libm_alias_ldouble.
25672 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
25673 <libm-alias-ldouble.h>.
25674 (fabsl): Define using libm_alias_ldouble.
25675 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
25676 <libm-alias-ldouble.h>.
25677 (floorl): Define using libm_alias_ldouble.
25678 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
25679 <libm-alias-ldouble.h>.
25680 (fmal): Define using libm_alias_ldouble.
25681 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
25682 <libm-alias-ldouble.h>.
25683 (frexpl): Define using libm_alias_ldouble.
25684 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
25685 libm_alias_ldouble.
25686 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
25687 <libm-alias-ldouble.h>.
25688 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
25689 libm_alias_ldouble.
25690 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
25691 <libm-alias-ldouble.h>.
25692 (getpayloadl): Define using libm_alias_ldouble.
25693 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
25694 <libm-alias-ldouble.h>.
25695 (llrintl): Define using libm_alias_ldouble.
25696 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
25697 <libm-alias-ldouble.h>.
25698 (llroundl): Define using libm_alias_ldouble.
25699 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
25700 <libm-alias-ldouble.h>.
25701 (logbl): Define using libm_alias_ldouble.
25702 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
25703 <libm-alias-ldouble.h>.
25704 (lrintl): Define using libm_alias_ldouble.
25705 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
25706 <libm-alias-ldouble.h>.
25707 (lroundl): Define using libm_alias_ldouble.
25708 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
25709 <libm-alias-ldouble.h>.
25710 (modfl): Define using libm_alias_ldouble.
25711 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
25712 <libm-alias-ldouble.h>.
25713 (nearbyintl): Define using libm_alias_ldouble.
25714 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
25715 <libm-alias-ldouble.h>.
25716 (nextafterl): Define using libm_alias_ldouble.
25717 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
25718 <libm-alias-ldouble.h>.
25719 (nextupl): Define using libm_alias_ldouble.
25720 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
25721 <libm-alias-ldouble.h>.
25722 (remquol): Define using libm_alias_ldouble.
25723 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
25724 <libm-alias-ldouble.h>.
25725 (rintl): Define using libm_alias_ldouble.
25726 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
25727 <libm-alias-ldouble.h>.
25728 (roundevenl): Define using libm_alias_ldouble.
25729 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
25730 <libm-alias-ldouble.h>.
25731 (roundl): Define using libm_alias_ldouble.
25732 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
25733 using libm_alias_ldouble.
25734 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
25735 <libm-alias-ldouble.h>.
25736 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
25737 Define using libm_alias_ldouble.
25738 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
25739 <libm-alias-ldouble.h>.
25740 (sincosl): Define using libm_alias_ldouble.
25741 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
25742 <libm-alias-ldouble.h>.
25743 (sinl): Define using libm_alias_ldouble.
25744 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
25745 <libm-alias-ldouble.h>.
25746 (tanhl): Define using libm_alias_ldouble.
25747 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
25748 <libm-alias-ldouble.h>.
25749 (tanl): Define using libm_alias_ldouble.
25750 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
25751 <libm-alias-ldouble.h>.
25752 (totalorderl): Define using libm_alias_ldouble.
25753 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
25754 <libm-alias-ldouble.h>.
25755 (totalordermagl): Define using libm_alias_ldouble.
25756 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
25757 <libm-alias-ldouble.h>.
25758 (truncl): Define using libm_alias_ldouble.
25759 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
25760 libm_alias_ldouble.
25761 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
25762 libm_alias_ldouble.
25763 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
25764 <libm-alias-ldouble.h>.
25765 (weak_alias): Do not undefine and redefine.
25766 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25767 (copysignl): Define with long_double_symbol only if [IS_IN
25768 (libc)].
25769 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
25770 <libm-alias-ldouble.h>.
25771 (weak_alias): Do not undefine and redefine.
25772 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25773 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
25774 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
25775 <libm-alias-ldouble.h>.
25776 (weak_alias): Do not undefine and redefine.
25777 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25778 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
25779 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
25780 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
25781 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
25782 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
25783 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
25784 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
25785 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
25786 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
25787 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
25788 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
25789 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
25790 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
25791 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
25792 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
25793 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
25794 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
25795 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
25796 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
25797 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
25798 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
25799 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
25800 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
25801 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
25802 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
25803
25804 2017-10-06 Carlos O'Donell <carlos@redhat.com>
25805
25806 [BZ #22111]
25807 * malloc/malloc.c (tcache_shutting_down): Use bool type.
25808 (tcache_thread_freeres): Set tcache_shutting_down before
25809 freeing the tcache.
25810 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
25811 * malloc/tst-malloc-tcache-leak.c: New file.
25812
25813 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25814
25815 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
25816 back to powerpc32 file.
25817 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25818 (memrchr): Add __memrchr_power8 to ifunc list.
25819 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
25820 extra bytes for unaligned inputs.
25821
25822 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25823
25824 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
25825 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
25826 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
25827 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
25828 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
25829
25830 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25831
25832 * sysdeps/arm/libm-test-ulps: Update.
25833
25834 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
25835 <libm-alias-ldouble.h>.
25836 (asinhl): Define using libm_alias_ldouble.
25837 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
25838 <libm-alias-ldouble.h>.
25839 (cbrtl): Define using libm_alias_ldouble.
25840 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
25841 <libm-alias-ldouble.h>.
25842 (copysignl): Define using libm_alias_ldouble.
25843 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
25844 <libm-alias-ldouble.h>.
25845 (cosl): Define using libm_alias_ldouble.
25846 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
25847 <libm-alias-ldouble.h>.
25848 (erfl): Define using libm_alias_ldouble.
25849 (erfcl): Likewise.
25850 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
25851 <libm-alias-ldouble.h>.
25852 (fmal): Define using libm_alias_ldouble.
25853 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
25854 <libm-alias-ldouble.h>.
25855 (frexpl): Define using libm_alias_ldouble.
25856 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
25857 libm_alias_ldouble.
25858 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
25859 <libm-alias-ldouble.h>.
25860 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
25861 libm_alias_ldouble.
25862 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
25863 <libm-alias-ldouble.h>.
25864 (getpayloadl): Define using libm_alias_ldouble.
25865 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
25866 <libm-alias-ldouble.h>.
25867 (llrintl): Define using libm_alias_ldouble.
25868 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
25869 <libm-alias-ldouble.h>.
25870 (llroundl): Define using libm_alias_ldouble.
25871 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
25872 <libm-alias-ldouble.h>.
25873 (lrintl): Define using libm_alias_ldouble.
25874 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
25875 <libm-alias-ldouble.h>.
25876 (lroundl): Define using libm_alias_ldouble.
25877 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
25878 <libm-alias-ldouble.h>.
25879 (modfl): Define using libm_alias_ldouble.
25880 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
25881 <libm-alias-ldouble.h>.
25882 (nextupl): Define using libm_alias_ldouble.
25883 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
25884 <libm-alias-ldouble.h>.
25885 (remquol): Define using libm_alias_ldouble.
25886 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
25887 <libm-alias-ldouble.h>.
25888 (roundevenl): Define using libm_alias_ldouble.
25889 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
25890 <libm-alias-ldouble.h>.
25891 (roundl): Define using libm_alias_ldouble.
25892 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
25893 using libm_alias_ldouble.
25894 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
25895 <libm-alias-ldouble.h>.
25896 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
25897 <libm-alias-ldouble.h>.
25898 (setpayloadsigl): Define using libm_alias_ldouble.
25899 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
25900 <libm-alias-ldouble.h>.
25901 (sincosl): Define using libm_alias_ldouble.
25902 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
25903 <libm-alias-ldouble.h>.
25904 (sinl): Define using libm_alias_ldouble.
25905 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
25906 <libm-alias-ldouble.h>.
25907 (tanhl): Define using libm_alias_ldouble.
25908 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
25909 <libm-alias-ldouble.h>.
25910 (tanl): Define using libm_alias_ldouble.
25911 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
25912 <libm-alias-ldouble.h>.
25913 (totalorderl): Define using libm_alias_ldouble.
25914 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
25915 <libm-alias-ldouble.h>.
25916 (totalordermagl): Define using libm_alias_ldouble.
25917 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
25918 libm_alias_ldouble.
25919 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
25920 libm_alias_ldouble.
25921
25922 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
25923
25924 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
25925 memmove_falkor.
25926 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25927 (__libc_ifunc_impl_list): Likewise.
25928 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
25929 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
25930
25931 * benchtests/bench-memmove-walk.c: New file.
25932 * benchtests/Makefile (string-benchset): Add it.
25933
25934 * benchtests/bench-memset-walk.c: New file.
25935 * benchtests/Makefile (string-benchset): Add it.
25936
25937 * benchtests/bench-memcpy-walk.c: New file.
25938 * benchtests/Makefile (string-benchset): Add it.
25939
25940 2017-10-05 Florian Weimer <fweimer@redhat.com>
25941
25942 nscd: Eliminate compilation time dependency in the build output.
25943 * nscd/nscd_stat.c (STATDATA_VERSION)
25944 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
25945 (STATDATA_VERSION_FULL): New macro definitions.
25946 (compilation): Remove.
25947 (struct statdata): Adjust version member.
25948 (send_stats): Set version from STATDATA_VERSION_FULL.
25949 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25950
25951 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25952
25953 * configure.ac (--enable-add-ons): Remove option.
25954 (machine): Do not mention add-ons in comment.
25955 (LIBC_PRECONFIGURE): Likewise.
25956 (add_ons): Remove variable and sanity checks and logic to locate
25957 add-ons.
25958 (add_ons_automatic): Remove variable.
25959 (configured_add_ons): Likewise.
25960 (add_ons_sfx): Likewise.
25961 (add_ons_pfx): Likewise.
25962 (add_on_subdirs): Likewise.
25963 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25964 consideration of add-ons in Implies handling.
25965 (sysdeps_add_ons): Likewise.
25966 * configure: Regenerated.
25967 * libidn/configure.ac: Remove.
25968 * libidn/configure: Likewise.
25969 * sysdeps/unix/inet/configure.ac: New file.
25970 * sysdeps/unix/inet/configure: New generated file.
25971 * sysdeps/unix/inet/Subdirs: Add libidn.
25972 * Makeconfig (sysdeps-srcdirs): Remove variable.
25973 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
25974 ($(common-objpfx)config.status): Do not depend on add-on files.
25975 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
25976 comment.
25977 (all-subdirs): Do not include $(add-on-subdirs).
25978 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
25979 * config.make.in (add-ons): Remove variable.
25980 (add-on-subdirs): Likewise.
25981 (sysdeps-add-ons): Likewise.
25982 * manual/Makefile (add-chapters): Remove.
25983 ($(objpfx)texis): Do not depend on $(add-chapters).
25984 (nonexamples): Do not handle $(add-chapters).
25985 (examples): Do not handle $(add-ons).
25986 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
25987 libc-texinfo.sh.
25988 * manual/install.texi (Installation): Do not mention add-ons.
25989 (--enable-add-ons): Do not document configure option.
25990 * INSTALL: Regenerated.
25991 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
25992 * manual/maint.texi (Hierarchy Conventions): Do not mention
25993 add-ons.
25994 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
25995 --enable-add-ons.
25996 * scripts/gen-sorted.awk: Do not handle Subdirs files from
25997 add-ons.
25998 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25999 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
26000
26001 2017-10-05 Andreas Schwab <schwab@suse.de>
26002
26003 [BZ #15142]
26004 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
26005 (_IO_flush_all_lockp): Always lock list_all_lock.
26006 (_IO_flush_all_linebuffered): Likewise.
26007 (_IO_unbuffer_all): Likewise.
26008
26009 2017-10-05 Florian Weimer <fweimer@redhat.com>
26010
26011 [BZ #15436]
26012 Do not flush stdio streams on abort.
26013 * stdlib/abort.c (fflush): Remove macro definition.
26014 (abort): Remove stages related to stdio flushing.
26015
26016 2017-10-05 Florian Weimer <fweimer@redhat.com>
26017
26018 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
26019
26020 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
26021
26022 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
26023
26024 2017-10-05 Florian Weimer <fweimer@redhat.com>
26025
26026 * support/support_format_hostent.c (support_format_hostent): Add
26027 more error information for NETDB_INTERNAL.
26028
26029 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26030
26031 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
26032 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
26033 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
26034 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
26035 AC_DEFINE if multi-arch is enabled.
26036 * sysdeps/i386/configure: Regenerated.
26037
26038 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26039
26040 * Makeconfig (+link-static-before-libc): Use
26041 $(DEFAULT-LDFLAGS-$(@F)).
26042 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
26043 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
26044 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
26045
26046 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26047
26048 * elf/Makefile (tests): Add tst-main1.
26049 (modules-names): Add tst-main1mod.
26050 ($(objpfx)tst-main1): New.
26051 (CRT-tst-main1): Likewise.
26052 (LDFLAGS-tst-main1): Likewise.
26053 (LDLIBS-tst-main1): Likewise.
26054 (tst-main1mod.so-no-z-defs): Likewise.
26055 * elf/tst-main1.c: New file.
26056 * elf/tst-main1mod.c: Likewise.
26057
26058 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26059
26060 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
26061
26062 2017-10-04 Joseph Myers <joseph@codesourcery.com>
26063
26064 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
26065 (fma): Define using libm_alias_double.
26066 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
26067 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
26068 <math_ldbl_opt.h>.
26069 (fmal): Do not define as compat symbol here.
26070 * sysdeps/alpha/fpu/s_fma.c: New file.
26071
26072 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26073
26074 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
26075
26076 2017-10-04 Joseph Myers <joseph@codesourcery.com>
26077
26078 [BZ #22229]
26079 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
26080 <math_ldbl_opt.h>
26081 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
26082 and libc.
26083 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
26084 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26085 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
26086 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
26087 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
26088 Include <math_ldbl_opt.h>
26089 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
26090 and libc.
26091 (compat_symbol): Undefine and redefine.
26092 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
26093 <math_ldbl_opt.h>
26094 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26095 (compat_symbol): Undefine and redefine.
26096 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
26097 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
26098 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
26099 GLIBC_2_1 for libm.
26100 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
26101 GLIBC_2.0 copysignl symbol.
26102 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
26103 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
26104
26105 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
26106
26107 2017-10-04 Florian Weimer <fweimer@redhat.com>
26108
26109 * scripts/check-local-headers.sh: Ignore nspr4 header file
26110 directory in addition to nspr.
26111
26112 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
26113
26114 [BZ #17956]
26115 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
26116 * configure: Regenerate.
26117 * crypt/Makefile (nss-cpp-flags): New variable.
26118 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
26119 (CPPFLAGS-md5-crypt.c): Use it.
26120 * scripts/check-local-headers.sh: Ignore nspr header file
26121 directory.
26122
26123 2017-10-04 Andreas Schwab <schwab@suse.de>
26124
26125 * nis/Makefile (services): Remove compat.
26126 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
26127 ($(objpfx)libnss_compat.so): Remove rule.
26128 * nis/Versions (libnss_compat): Remove.
26129 * nss/Makefile (services): Add compat.
26130 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
26131 * nss/Versions (libnss_compat): Define.
26132 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
26133 Don't include <rpc/types.h>. Replace bool_t by bool.
26134 * nss/nss_compat/compat-initgroups.c: Likewise.
26135 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
26136 instead of <rpcsrv/ypclnt.h>.
26137 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
26138 yp_get_default_domain.
26139 * nss/nss_compat/compat-pwd.c: Likewise.
26140 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
26141 yp_get_default_domain.
26142 * nss/nss_compat/nisdomain.c: New file.
26143 * nss/nss_compat/nisdomain.h: Likewise.
26144
26145 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26146
26147 [BZ #22244]
26148 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
26149 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
26150
26151 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26152
26153 [BZ #22243]
26154 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
26155 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
26156
26157 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26158
26159 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
26160 "movl main@GOTOFF(%ebx), %eax".
26161
26162 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26163
26164 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
26165 allow undefined _DYNAMIC in PIE libc.a.
26166 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26167 Likewse.
26168
26169 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26170
26171 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
26172 check _DYNAMIC.
26173
26174 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26175
26176 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
26177 check _DYNAMIC.
26178
26179 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26180
26181 * math/test-math-iscanonical.cc (error): Replace bool with int.
26182
26183 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26184
26185 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
26186 (modf): Define using libm_alias_double, only if [!__modf].
26187 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
26188 <libm-alias-double.h>.
26189 (modf): Define using libm_alias_double, only if [!__modf].
26190 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
26191 compat symbol here.
26192 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
26193 (weak_alias): Do not undefine and redefine.
26194 (strong_alias): Likewise.
26195 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
26196 (weak_alias): Likewise.
26197 (strong_alias): Likewise.
26198
26199 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
26200 (logb): Define using libm_alias_double, only if [!__logb].
26201 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
26202 <libm-alias-double.h>.
26203 (logb): Define using libm_alias_double, only if [!__logb].
26204 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
26205 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
26206 (weak_alias): Do not undefine and redefine.
26207 (strong_alias): Likewise.
26208 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
26209 (weak_alias): Likewise.
26210 (strong_alias): Likewise.
26211
26212 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26213
26214 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
26215 Check SHARED instead PIC.
26216
26217 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26218
26219 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
26220 [!__fmaf] (fmaf): Define using libm_alias_float.
26221
26222 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
26223 (frexp): Define using libm_alias_double.
26224 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
26225 <libm-alias-double.h>.
26226 (frexp): Define using libm_alias_double.
26227 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
26228 compat symbol here.
26229
26230 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26231
26232 [BZ #22235]
26233 * math/math.h: Trivial fix for unbalanced parentheses in comment.
26234 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
26235 (CFLAGS-test-math-iscanonical.cc): New variable.
26236 * math/test-math-iscanonical.cc: New file.
26237 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
26238 Provide a C++ implementation based on function overloading,
26239 rather than using __MATH_TG, which uses C-only builtins.
26240 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
26241 Likewise.
26242 * sysdeps/powerpc/powerpc64le/Makefile
26243 (CFLAGS-test-math-iscanonical.cc): New variable.
26244
26245 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26246
26247 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
26248 (ceil): Define using libm_alias_double.
26249 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
26250 (floor): Define using libm_alias_double.
26251 * sysdeps/ieee754/dbl-64/s_llround.c: Include
26252 <libm-alias-double.h>.
26253 (llround): Define using libm_alias_double.
26254 * sysdeps/ieee754/dbl-64/s_lround.c: Include
26255 <libm-alias-double.h>.
26256 (lround): Define using libm_alias_double.
26257 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
26258 <libm-alias-double.h>.
26259 (nearbyint): Define using libm_alias_double.
26260 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
26261 <libm-alias-double.h>.
26262 (remquo): Define using libm_alias_double.
26263 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
26264 (rint): Define using libm_alias_double.
26265 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
26266 (round): Define using libm_alias_double.
26267 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
26268 (trunc): Define using libm_alias_double.
26269 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
26270 <libm-alias-double.h>.
26271 (ceil): Define using libm_alias_double.
26272 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
26273 <libm-alias-double.h>.
26274 (floor): Define using libm_alias_double.
26275 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
26276 <libm-alias-double.h>.
26277 (llround): Define using libm_alias_double.
26278 [_LP64] (lround): Likewise.
26279 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
26280 <libm-alias-double.h>.
26281 [!_LP64] (lround): Define using libm_alias_double.
26282 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
26283 <libm-alias-double.h>.
26284 (nearbyint): Define using libm_alias_double.
26285 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
26286 <libm-alias-double.h>.
26287 (remquo): Define using libm_alias_double.
26288 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
26289 <libm-alias-double.h>.
26290 (rint): Define using libm_alias_double.
26291 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
26292 <libm-alias-double.h>.
26293 (round): Define using libm_alias_double.
26294 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
26295 <libm-alias-double.h>.
26296 (trunc): Define using libm_alias_double.
26297 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
26298 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
26299 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
26300 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
26301 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
26302 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
26303 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
26304 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
26305 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
26306
26307 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26308
26309 * math/w_remainder.c: New file.
26310 * math/w_remainderf.c: New file.
26311 * math/w_remainderl.c: New file.
26312
26313 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26314
26315 * elf/rtld.c (BOOTSTRAP_MAP): New.
26316 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
26317 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26318 Likewise.
26319 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26320 Likewise.
26321 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26322 Likewise.
26323
26324 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
26325
26326 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
26327 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
26328 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
26329 rtld_hidden_data_ver): Define to empty.
26330 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
26331 __assert_perror_fail): Likewise.
26332 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26333 (__rewinddir): Likewise.
26334 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26335 (__profile_frequency): Likewise.
26336 * include/setjmp.h (__sigsetjmp): Likewise.
26337 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
26338 __libc_sigaction): Likewise.
26339 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
26340 not set hidden attribute.
26341 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
26342 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
26343 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
26344 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
26345 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
26346 __fxstatat64): Likewise.
26347 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26348 (__uname): Likewise.
26349 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26350 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
26351 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
26352 (NO_RTLD_HIDDEN): Set.
26353 * sysdeps/mach/hurd/configure: Refresh.
26354 * config.h.in: Refresh.
26355
26356 2017-10-02 Joseph Myers <joseph@codesourcery.com>
26357
26358 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
26359 (atan): Define using libm_alias_double.
26360 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
26361 (tan): Define using libm_alias_double.
26362 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
26363 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
26364
26365 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
26366 define as weak alias of __atan. Do not define any aliases if
26367 [__atan].
26368 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
26369 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
26370 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
26371 as weak alias of __tan. Do not define any aliases if [__tan].
26372 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
26373 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
26374 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
26375 __atan.
26376 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
26377 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
26378 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
26379 and define as weak alias of __atan.
26380 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
26381 __atan.
26382 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
26383 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
26384 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
26385 define as weak alias of __tan.
26386
26387 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26388
26389 * math/w_lgamma.c: New file.
26390 * math/w_lgammaf.c: New file.
26391 * math/w_lgammal.c: New file.
26392
26393 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26394
26395 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
26396 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
26397 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
26398 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
26399 * sysdeps/ieee754/flt-32/w_logf.c: New file.
26400 * sysdeps/ieee754/flt-32/w_powf.c: New file.
26401 * sysdeps/i386/fpu/w_log2f.c: New file.
26402 * sysdeps/i386/fpu/w_logf.c: New file.
26403 * sysdeps/i386/fpu/w_powf.c: New file.
26404 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
26405 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
26406 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
26407
26408 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26409 H.J. Lu <hongjiu.lu@intel.com>
26410
26411 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
26412 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
26413 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
26414 * sysdeps/ieee754/flt-32/w_expf.c: New file.
26415 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
26416 the new expf code.
26417 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
26418 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
26419 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
26420 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
26421 * sysdeps/i386/fpu/w_exp2f.c: New file.
26422 * sysdeps/i386/fpu/w_expf.c: New file.
26423 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
26424 * sysdeps/x86_64/fpu/w_expf.c: New file.
26425
26426 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26427
26428 * math/Versions (logf): New libm symbol at GLIBC_2.27.
26429 (log2f): Likewise.
26430 (powf): Likewise.
26431 * math/w_log2f.c: New file.
26432 * math/w_logf.c: New file.
26433 * math/w_powf.c: New file.
26434 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
26435 * math/w_logf_compat.c (__logf_compat): Likewise.
26436 * math/w_powf_compat.c (__powf_compat): Likewise.
26437 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
26438 * sysdeps/ia64/fpu/e_logf.S: Likewise.
26439 * sysdeps/ia64/fpu/e_powf.S: Likewise.
26440 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26441 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26442 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26443 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26444 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26445 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26446 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26447 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26448 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26449 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26450 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26451 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26452 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26453 Likewise.
26454 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26455 Likewise.
26456 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26457 Likewise.
26458 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26459 Likewise.
26460 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26461 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26462 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26463 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26464 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26465 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26466 Likewise.
26467 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26468 Likewise.
26469 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26470 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26471 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26472
26473 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26474
26475 * sysdeps/powerpc/powerpc64/multiarch/Makefile
26476 (sysdep_routines): Add memrchr_power8.
26477 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26478 (memrchr): Add __memrchr_power8 to list of memrchr functions.
26479 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
26480 New file.
26481 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26482 (memrchr): Add __memrchr_power8 to ifunc list.
26483 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
26484
26485 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26486
26487 [BZ #18822]
26488 * sysdeps/unix/sysv/linux/posix_fadvise64.c
26489 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
26490 libc_hidden_def.
26491 * sysdeps/unix/sysv/linux/posix_fallocate64.c
26492 (__posix_fallocate64_l64): Likewise.
26493
26494 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26495
26496 [BZ #18822]
26497 * sysdeps/unix/sysv/linux/sched_setaffinity.c
26498 (__sched_setaffinity_new): Add libc_hidden_proto and
26499 libc_hidden_def.
26500
26501 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26502
26503 [BZ #18822]
26504 * include/glob.h (__glob64): Add libc_hidden_proto.
26505 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
26506 libc_hidden_def.
26507
26508 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26509
26510 [BZ #18822]
26511 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
26512 attribute_hidden.
26513
26514 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26515
26516 [BZ #18822]
26517 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
26518
26519 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26520
26521 [BZ #18822]
26522 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
26523 libc_hidden_def.
26524
26525 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26526
26527 [BZ #18822]
26528 * csu/version.c (__libc_print_version): Add attribute_hidden.
26529
26530 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26531
26532 [BZ #18822]
26533 * include/libc-internal.h (__init_misc): Add attribute_hidden.
26534
26535 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26536
26537 [BZ #18822]
26538 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
26539
26540 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26541
26542 [BZ #18822]
26543 * nscd/nscd_helper.c (__nis_hash): New prototype.
26544
26545 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26546
26547 [BZ #18822]
26548 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
26549 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
26550 libc_hidden_def.
26551 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
26552 * termios/tcgetattr.c (__tcgetattr): Likewise.
26553
26554 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26555
26556 [BZ #18822]
26557 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
26558 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
26559 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
26560 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
26561 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
26562
26563 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26564
26565 [BZ #18822]
26566 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
26567
26568 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26569
26570 [BZ #18822]
26571 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
26572 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
26573
26574 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26575
26576 [BZ #18822]
26577 * intl/hash-string.h (__hash_string): Add attribute_hidden.
26578
26579 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26580
26581 [BZ #18822]
26582 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
26583 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
26584
26585 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26586
26587 [BZ #18822]
26588 * include/ifreq.h: New file.
26589 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
26590 (__ifreq): Likewise.
26591 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
26592 (__ifreq): Likewise.
26593
26594 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26595
26596 [BZ #18822]
26597 * include/idna.h: New file.
26598 * inet/getnameinfo.c: Include <idna.h> instead of
26599 <libidn/idna.h>.
26600 (__idna_to_unicode_lzlz): Removed.
26601 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
26602 <libidn/idna.h>.
26603 (__idna_to_ascii_lz): Removed.
26604 (__idna_to_unicode_lzlz): Likewise.
26605
26606 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26607
26608 [BZ #18822]
26609 * include/plural-exp.h: New file.
26610 * intl/plural-exp.c: Include <plural-exp.h> instead of
26611 "plural-exp.h".
26612
26613 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26614
26615 [BZ #18822]
26616 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
26617 "getsourcefilter.h".
26618 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
26619 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
26620 "getsourcefilter.h".
26621 (__get_sol): Removed.
26622
26623 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26624
26625 [BZ #18822]
26626 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
26627 to ...
26628 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
26629
26630 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26631
26632 [BZ #18822]
26633 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
26634 attribute_hidden.
26635
26636 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26637
26638 [BZ #18822]
26639 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
26640
26641 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26642
26643 [BZ #18822]
26644 * include/search.h (__tdestroy): Add libc_hidden_proto.
26645 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
26646
26647 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26648
26649 [BZ #18822]
26650 * include/assert.h (__assert_fail_base): Add attribute_hidden.
26651
26652 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26653
26654 [BZ #18822]
26655 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
26656 attribute_hidden.
26657
26658 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26659
26660 [BZ #18822]
26661 * include/signal.h (__kill): Add libc_hidden_proto.
26662 (__sigblock): Likewise.
26663 (__sigprocmask): Likewise.
26664 (__sigaltstack): Likewise.
26665 * signal/kill.c (__kill): Add libc_hidden_def.
26666 * signal/sigblock.c (__sigblock): Likewise.
26667 * signal/sigprocmask.c (__sigprocmask): Likewise.
26668 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
26669 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
26670 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
26671 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
26672 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
26673 Likewise.
26674 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
26675 Likewise.
26676 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
26677 (__sigprocmask): Likewise.
26678 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
26679 Likewise.
26680 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
26681 (__sigprocmask): Likewise.
26682 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
26683 Likewise.
26684
26685 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26686
26687 [BZ #18822]
26688 * include/string.h (__strsep): Add libc_hidden_proto.
26689 * string/strsep.c (__strsep): Add libc_hidden_def.
26690
26691 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26692
26693 [BZ #18822]
26694 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
26695 attribute_hidden.
26696 (__spawni): Likewise.
26697
26698 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26699
26700 [BZ #18822]
26701 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
26702 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
26703 libc_hidden_def.
26704
26705 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26706
26707 [BZ #18822]
26708 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
26709
26710 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26711
26712 [BZ #18822]
26713 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
26714 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
26715 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
26716 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
26717 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
26718 Likewise.
26719 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
26720 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
26721
26722 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26723
26724 [BZ #18822]
26725 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
26726 (__dcigettext): Likewise.
26727
26728 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26729
26730 [BZ #18822]
26731 * include/sys/sysinfo.h (__get_nprocs_conf): Add
26732 libc_hidden_proto.
26733 (__get_nprocs): Likewise.
26734 (__get_phys_pages): Likewise.
26735 (__get_avphys_pages): Likewise.
26736 (__get_child_max): Add attribute_hidden.
26737 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
26738 (__get_nprocs): Likewise.
26739 (__get_phys_pages): Likewise.
26740 (__get_avphys_pages): Likewise.
26741 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
26742 libc_hidden_def.
26743 (__get_nprocs): Likewise.
26744 (__get_phys_pages): Likewise.
26745 (__get_avphys_pages): Likewise.
26746 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
26747 libc_hidden_def.
26748 (__get_nprocs_conf): Likewise.
26749 (__get_phys_pages): Likewise.
26750 (__get_avphys_pages): Likewise.
26751
26752 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26753
26754 [BZ #18822]
26755 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
26756 attribute_hidden.
26757 (__netlink_close): Likewise.
26758 (__netlink_free_handle): Likewise.
26759 (__netlink_request): Likewise.
26760
26761 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26762
26763 [BZ #18822]
26764 * include/rpc/rpc.h (__rpc_thread_variables): Add
26765 attribute_hidden.
26766 (__rpc_thread_svc_cleanup): Likewise.
26767 (__rpc_thread_clnt_cleanup): Likewise.
26768 (__rpc_thread_key_cleanup): Likewise.
26769
26770 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26771
26772 [BZ #18822]
26773 * include/sys/uio.h (__readv): Add libc_hidden_proto.
26774 (__writev): Likewise.
26775 * misc/readv.c (__readv): Add libc_hidden_def.
26776 * misc/writev.c (__writev): Likewise.
26777 * sysdeps/posix/readv.c (__readv): Likewise.
26778 * sysdeps/posix/writev.c (__writev): Likewise.
26779 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
26780 (__readv): Likewise.
26781 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
26782 (__writev): Likewise.
26783
26784 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26785
26786 [BZ #18822]
26787 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
26788 (__regcomp): Add libc_hidden_proto.
26789 (__regexec): Likewise.
26790 (__regfree): Likewise.
26791 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
26792 (__regfree): Likewise.
26793 * posix/regexec.c (__regexec): Likewise.
26794
26795 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26796
26797 [BZ #18822]
26798 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
26799 (__getutent): Likewise.
26800 (__getutid): Likewise.
26801 (__getutline): Likewise.
26802 (__pututline): Likewise.
26803 (__getutent_r): Likewise.
26804 (__getutid_r): Likewise.
26805 (__getutline_r): Likewise.
26806 (__utmpname): Add attribute_hidden.
26807 (__setutent): Likewise.
26808 (__endutent): Likewise.
26809 * login/getutent.c (__getutent): Add libc_hidden_def.
26810 * login/getutent_r.c (__getutent_r): Likewise.
26811 (__pututline): Likewise.
26812 * login/getutid.c (__getutid): Likewise.
26813 * login/getutid_r.c (__getutid_r): Likewise.
26814 * login/getutline.c (__getutline): Likewise.
26815 * login/getutline_r.c (__getutline_r): Likewise.
26816 * login/updwtmp.c (__updwtmp): Likewise.
26817
26818 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26819
26820 [BZ #18822]
26821 * include/dirent.h (__opendir): Always add attribute_hidden.
26822 (__fdopendir): Likewise.
26823 (__closedir): Likewise.
26824 (__readdir): Likewise.
26825 (__readdir64): Add libc_hidden_proto.
26826 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
26827 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
26828 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
26829 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
26830 New alias.
26831
26832 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26833
26834 [BZ #18822]
26835 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
26836 * include/netdb.h (__gethostbyaddr_r): Likewise.
26837 (__gethostbyname_r): Likewise.
26838 (__gethostbyname2_r): Likewise.
26839 (__getnetbyaddr_r): Likewise.
26840 (__getnetbyname_r): Likewise.
26841 (__getservbyname_r): Likewise.
26842 (__getservbyport_r): Likewise.
26843 (__getprotobyname_r): Likewise.
26844 (__getprotobynumber_r): Likewise.
26845 (__getnetgrent_r): Likewise.
26846 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
26847 (__getrpcbynumber_r): Likewise.
26848 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
26849
26850 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26851
26852 [BZ #18822]
26853 * include/stdio.h (__fcloseall): Add attribute_hidden.
26854 (__getline): Likewise.
26855 (__path_search): Likewise.
26856 (__gen_tempname): Likewise.
26857 (__libc_message): Likewise.
26858 (__flockfile): Likewise.
26859 (__funlockfile): Likewise.
26860 (__fxprintf): Likewise.
26861 (__fxprintf_nocancel): Likewise.
26862
26863 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26864
26865 [BZ #18822]
26866 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
26867 (__sgetsgent_r): Likewise.
26868
26869 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26870
26871 [BZ #18822]
26872 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
26873 (__statfs64): Likewise.
26874 (__fstatfs64): Likewise.
26875 * include/sys/statvfs.h (__statvfs64): Likewise.
26876 (__fstatvfs64): Likewise.
26877 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
26878 (__statfs_filesize_max): Likewise.
26879 (__statfs_symlinks): Likewise.
26880 (__statfs_chown_restricted): Likewise.
26881
26882 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26883
26884 [BZ #18822]
26885 * include/time.h (__tzstring): Add attribute_hidden.
26886 (__tzfile_read): Likewise.
26887 (__tzfile_compute): Likewise.
26888 (__tzfile_default): Likewise.
26889 (__tzset_parse_tz): Likewise.
26890 (__offtime): Likewise.
26891 (__asctime_r): Likewise.
26892 (__tzset): Likewise.
26893 (__tz_convert): Likewise.
26894 (__getdate_r): Likewise.
26895 (__getclktck): Likewise.
26896
26897 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26898
26899 [BZ #18822]
26900 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
26901 (__nscd_unmap): Likewise.
26902 (__nscd_cache_search): Likewise.
26903 (__nscd_get_nl_timestamp): Likewise.
26904 (__nscd_getpwnam_r): Likewise.
26905 (__nscd_getpwuid_r): Likewise.
26906 (__nscd_getgrnam_r): Likewise.
26907 (__nscd_getgrgid_r): Likewise.
26908 (__nscd_gethostbyname_r): Likewise.
26909 (__nscd_gethostbyname2_r): Likewise.
26910 (__nscd_gethostbyaddr_r): Likewise.
26911 (__nscd_getai): Likewise.
26912 (__nscd_getgrouplist): Likewise.
26913 (__nscd_getservbyname_r): Likewise.
26914 (__nscd_getservbyport_r): Likewise.
26915 (__nscd_innetgr): Likewise.
26916 (__nscd_setnetgrent): Likewise.
26917
26918 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26919
26920 [BZ #18822]
26921 * include/gmp.h: Declare internal functions only if _ISOMAC is
26922 undefined.
26923 (__mpn_extract_double): Add attribute_hidden.
26924 (__mpn_extract_long_double): Likewise.
26925 (__mpn_extract_float128): Likewise.
26926 (__mpn_construct_float): Likewise.
26927 (__mpn_construct_double): Likewise.
26928 (__mpn_construct_long_double): Likewise.
26929 (__mpn_construct_float128): Likewise.
26930 (mpn_add_1): Likewise.
26931 (mpn_addmul_1): Likewise.
26932 (mpn_add_n): Likewise.
26933 (mpn_cmp): Likewise.
26934 (mpn_divrem): Likewise.
26935 (mpn_lshift): Likewise.
26936 (mpn_mul): Likewise.
26937 (mpn_mul_1): Likewise.
26938 (mpn_rshift): Likewise.
26939 (mpn_sub_1): Likewise.
26940 (mpn_submul_1): Likewise.
26941 (mpn_sub_n): Likewise.
26942
26943 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26944
26945 [BZ #18822]
26946 * include/wchar.h (__wcsnlen): Add attribute_hidden.
26947 (__wcscat): Likewise.
26948 (__btowc): Likewise.
26949 (__wcrtomb): Likewise.
26950 (__mbsrtowcs): Likewise.
26951 (__wcsrtombs): Likewise.
26952 (__mbsnrtowcs): Likewise.
26953 (__wcsnrtombs): Likewise.
26954 (__wcsncpy): Likewise.
26955 (__wcpncpy): Likewise.
26956 (__wmemcpy): Likewise.
26957 (__wmempcpy): Likewise.
26958 (__wmemmove): Likewise.
26959 (__wcschrnul): Likewise.
26960 (__vfwscanf): Likewise.
26961 (__vswprintf): Likewise.
26962 (__fwprintf): Likewise.
26963 (__vfwprintf): Likewise.
26964
26965 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26966
26967 [BZ #18822]
26968 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26969 (__getgrgid_r): Likewise.
26970 (__getgrnam_r): Likewise.
26971 * include/pwd.h (__getpwuid_r): Likewise.
26972 (__getpwnam_r): Likewise.
26973 (__fgetpwent_r): Likewise.
26974 * include/shadow.h (__getspnam_r): Likewise.
26975 (__sgetspent_r): Likewise.
26976 (__fgetspent_r): Likewise.
26977
26978 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26979
26980 [BZ #18822]
26981 * include/unistd.h (__access): Add attribute_hidden.
26982 (__lseek64): Likewise.
26983 (__libc_pread64): Likewise.
26984 (__pipe2): Likewise.
26985 (__sleep): Likewise.
26986 (__chdir): Likewise.
26987 (__fchdir): Likewise.
26988 (__getcwd): Likewise.
26989 (__rmdir): Likewise.
26990 (__execvpe): Likewise.
26991 (__execve): Likewise.
26992 (__setsid): Likewise.
26993 (__getuid): Likewise.
26994 (__geteuid): Likewise.
26995 (__getgid): Likewise.
26996 (__getegid): Likewise.
26997 (__getgroups): Likewise.
26998 (__group_member): Likewise.
26999 (__ttyname_r): Likewise.
27000 (__isatty): Likewise.
27001 (__readlink): Likewise.
27002 (__unlink): Likewise.
27003 (__gethostname): Likewise.
27004 (__profil): Likewise.
27005 (__getdtablesize): Likewise.
27006 (__brk): Likewise.
27007 (__ftruncate): Likewise.
27008 (__ftruncate64): Likewise.
27009
27010 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27011
27012 [BZ #18822]
27013 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
27014 * argp/argp-fs-xinl.c: Likewise.
27015 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
27016 * argp/argp-parse.c: Include <argp.h>.
27017 * argp/argp-xinl.c: Likewise.
27018 * include/argp-fmtstream.h: New file.
27019 * include/argp.h (__argp_error): Add attribute_hidden.
27020 (__argp_failure): Likewise.
27021 (__argp_input): Likewise.
27022 (__argp_state_help): Likewise.
27023
27024 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27025
27026 [BZ #18822]
27027 * include/wchar.h (____wcstof_l_internal): New prototype.
27028 (____wcstod_l_internal): Likewise.
27029 (____wcstold_l_internal): Likewise.
27030 (____wcstol_l_internal): Likewise.
27031 (____wcstoul_l_internal): Likewise.
27032 (____wcstoll_l_internal): Likewise.
27033 (____wcstoull_l_internal): Likewise.
27034 (____wcstof128_l_internal): Likewise.
27035 * sysdeps/ieee754/float128/wcstof128.c
27036 (____wcstof128_l_internal): Removed.
27037 * sysdeps/ieee754/float128/wcstof128_l.c
27038 (____wcstof128_l_internal): Likewise.
27039 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
27040 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
27041 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
27042 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
27043 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
27044 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
27045 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
27046 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
27047 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
27048 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
27049
27050 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27051
27052 [BZ #18822]
27053 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
27054 instead of <sys/statvfs.h>.
27055 (__internal_statvfs): Removed.
27056 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
27057 instead of <sys/statvfs.h>.
27058 (__internal_statvfs64): Removed.
27059 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
27060 "internal_statvfs.h" instead of <sys/statvfs.h>.
27061 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
27062 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
27063 instead of <sys/statvfs.h>.
27064 (__internal_statvfs): Removed.
27065 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
27066 instead of <sys/statvfs.h>.
27067 (__internal_statvfs64): Removed.
27068
27069 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27070
27071 [BZ #18822]
27072 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
27073 (__gconv_close): Likewise.
27074 (__gconv): Likewise.
27075 (__gconv_find_transform): Likewise.
27076 (__gconv_lookup_cache): Likewise.
27077 (__gconv_compare_alias_cache): Likewise.
27078 (__gconv_load_cache): Likewise.
27079 (__gconv_get_path): Likewise.
27080 (__gconv_close_transform): Likewise.
27081 (__gconv_release_cache): Likewise.
27082 (__gconv_find_shlib): Likewise.
27083 (__gconv_release_shlib): Likewise.
27084 (__gconv_get_builtin_trans): Likewise.
27085 (__gconv_compare_alias): Likewise.
27086 * include/dlfcn.h (_dlerror_run): Likewise.
27087 * include/stdio.h (__fortify_fail_abort): Likewise.
27088 * include/time.h (__tz_compute): Likewise.
27089 (__strptime_internal): Likewise.
27090 * intl/gettextP.h (_nl_find_domain): Likewise.
27091 (_nl_load_domain): Likewise.
27092 (_nl_find_msg): Likewise.
27093 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
27094 (EXTRACT_PLURAL_EXPRESSION): Likewise.
27095 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
27096 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
27097 (__gai_find_request): Likewise.
27098 (__gai_remove_request): Likewise.
27099 (__gai_notify): Likewise.
27100 (__gai_notify_only): Likewise.
27101 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
27102 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
27103 (_dl_non_dynamic_init): Likewise.
27104 (_dl_aux_init): Likewise.
27105 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
27106 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
27107 Likewise.
27108 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
27109 (__wcsmbs_clone_conv): Likewise.
27110 (__wcsmbs_named_conv): Likewise.
27111
27112 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27113
27114 [BZ #18822]
27115 * include/stdlib.h (__random): Add attribute_hidden.
27116 (__random_r): Likewise.
27117 (__srandom_r): Likewise.
27118 (__initstate_r): Likewise.
27119 (__setstate_r): Likewise.
27120 (__erand48_r): Likewise.
27121 (__nrand48_r): Likewise.
27122 (__jrand48_r): Likewise.
27123 (__srand48_r): Likewise.
27124 (__seed48_r): Likewise.
27125 (__lcong48_r): Likewise.
27126 (__drand48_iterate): Likewise.
27127 (__setenv): Likewise.
27128 (__unsetenv): Likewise.
27129 (__clearenv): Likewise.
27130 (__ptsname_r): Likewise.
27131 (__posix_openpt): Likewise.
27132 (__add_to_environ): Likewise.
27133 (__realpath): Add libc_hidden_proto.
27134 (__ecvt_r): Likewise.
27135 (__fcvt_r): Likewise.
27136 (__qecvt_r): Likewise.
27137 (__qfcvt_r): Likewise.
27138 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
27139 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
27140
27141 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27142
27143 [BZ #18822]
27144 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
27145 * include/time.h (__mktime_internal): Likewise.
27146 * libio/iolibio.h (__fopen_internal): Likewise.
27147
27148 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
27149
27150 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
27151 pointer in frame.
27152 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
27153 Correct offset used to restore PIC register.
27154
27155 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
27156
27157 [BZ libc/22165]
27158 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
27159 code to load address of __getcontext_ret when generating PIC code.
27160
27161 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
27162
27163 * elf/Makefile (tests-static-internal): Add
27164 tst-tls1-static-non-pie.
27165 (LDFLAGS-tst-tls1-static-non-pie): New.
27166 * elf/tst-tls1-static-non-pie.c: New file.
27167
27168 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27169
27170 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
27171 (asinh): Define using libm_alias_double.
27172 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
27173 (cbrt): Define using libm_alias_double.
27174 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
27175 <libm-alias-double.h>.
27176 (copysign): Define using libm_alias_double.
27177 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
27178 (erf): Define using libm_alias_double.
27179 (erfc): Likewise.
27180 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
27181 (expm1): Define using libm_alias_double.
27182 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
27183 (fabs): Define using libm_alias_double.
27184 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
27185 libm_alias_double.
27186 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
27187 <libm-alias-double.h>.
27188 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
27189 libm_alias_double.
27190 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
27191 <libm-alias-double.h>.
27192 (getpayload): Define using libm_alias_double.
27193 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
27194 <libm-alias-double.h>.
27195 (llrint): Define using libm_alias_double.
27196 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
27197 (lrint): Define using libm_alias_double.
27198 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
27199 <libm-alias-double.h>.
27200 (nextup): Define using libm_alias_double.
27201 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
27202 <libm-alias-double.h>.
27203 (roundeven): Define using libm_alias_double.
27204 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
27205 libm_alias_double.
27206 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
27207 <libm-alias-double.h>.
27208 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
27209 using libm_alias_double.
27210 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
27211 (cos): Define using libm_alias_double.
27212 (sin): Likewise.
27213 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
27214 <libm-alias-double.h>.
27215 (sincos): Define using libm_alias_double.
27216 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
27217 (tanh): Define using libm_alias_double.
27218 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
27219 <libm-alias-double.h>.
27220 (totalorder): Define using libm_alias_double.
27221 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
27222 <libm-alias-double.h>.
27223 (totalordermag): Define using libm_alias_double.
27224 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
27225 libm_alias_double.
27226 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
27227 libm_alias_double.
27228 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
27229 <libm-alias-double.h>.
27230 (getpayload): Define using libm_alias_double.
27231 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
27232 <libm-alias-double.h>.
27233 (roundeven): Define using libm_alias_double.
27234 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
27235 <libm-alias-double.h>.
27236 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
27237 <libm-alias-double.h>.
27238 (totalorder): Define using libm_alias_double.
27239 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
27240 <libm-alias-double.h>.
27241 (totalordermag): Define using libm_alias_double.
27242 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
27243 libc compat symbol here.
27244 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
27245 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
27246 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
27247 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
27248 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
27249 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
27250 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
27251 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
27252 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
27253 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
27254
27255 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27256
27257 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
27258 _dl_relocate_static_pie instead of _dl_start to compute load
27259 address in static PIE. Return 0 if _DYNAMIC is undefined for
27260 static executable.
27261
27262 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27263
27264 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
27265 _DYNAMIC is undefined for static executable.
27266
27267 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27268
27269 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
27270
27271 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27272
27273 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27274
27275 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27276
27277 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
27278 (__ieee754_lgamma_r): Use fabs rather than __fabs.
27279 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
27280 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
27281 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
27282 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
27283 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
27284 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
27285 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
27286 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27287 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
27288 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
27289 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27290 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27291 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
27292 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
27293 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
27294
27295 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27296
27297 * math/bits/cmathcalls.h (cimag): Remove inline.
27298 (creal): Remove inline.
27299 (conj): Remove inline.
27300
27301 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27302
27303 * math/Makefile (type-float-routines): Add e_powf_log2_data.
27304 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
27305 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
27306 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
27307 (issignalingf_inline): Likewise.
27308 (POWF_LOG2_TABLE_BITS): Likewise.
27309 (POWF_LOG2_POLY_ORDER): Likewise.
27310 (POWF_SCALE_BITS): Likewise.
27311 (POWF_SCALE): Likewise.
27312 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
27313 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
27314 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
27315
27316 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27317
27318 * math/Makefile (type-float-routines): Add e_log2f_data.
27319 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
27320 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
27321 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
27322 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
27323 * sysdeps/i386/fpu/e_log2f_data.c: New file.
27324 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
27325 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
27326
27327 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27328
27329 * math/Makefile (type-float-routines): Add e_logf_data.
27330 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
27331 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
27332 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
27333 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
27334 * sysdeps/i386/fpu/e_logf_data.c: New file.
27335 * sysdeps/ia64/fpu/e_logf_data.c: New file.
27336 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
27337
27338 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
27339
27340 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
27341 undefined _DYNAMIC in PIE libc.a.
27342 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27343 Likewse.
27344
27345 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27346
27347 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
27348 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
27349 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
27350 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
27351 (__signbit): Remove.
27352 (__signbitl): Remove.
27353 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
27354 (__signbit): Remove.
27355 (__signbitl): Remove.
27356 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
27357 (__signbit): Remove.
27358 (__signbitl): Remove.
27359 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
27360 (__signbit): Remove.
27361 (__signbitl): Remove.
27362 * sysdeps/tile/bits/mathinline.h: Delete file.
27363 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
27364 (__signbit): Remove.
27365 (__signbitl): Remove.
27366
27367 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27368
27369 * math/math.h: Improve handling of C99 isgreater macros.
27370 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
27371 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
27372 * sysdeps/powerpc/bits/mathinline.h: Likewise.
27373 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
27374 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
27375
27376 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
27377
27378 * sysdeps/aarch64/libm-test-ulps: Update.
27379
27380 2017-09-28 Joseph Myers <joseph@codesourcery.com>
27381
27382 [BZ #22225]
27383 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
27384 math_opt_barrier on argument when doing arithmetic on it.
27385 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
27386 Likewise. Use math_force_eval not math_opt_barrier after
27387 arithmetic.
27388 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
27389 math_opt_barrier on argument when doing arithmetic on it.
27390 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
27391 Likewise.
27392
27393 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
27394
27395 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
27396 libc_hidden_def.
27397 (__freeifaddrs): Likewise.
27398
27399 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
27400
27401 * include/dirent.h (__dirfd): New declaration.
27402 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
27403 alias.
27404 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
27405 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
27406 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
27407 * include/unistd.h (__revoke): New declaration.
27408 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
27409 alias.
27410 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
27411 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
27412 revoke.
27413 * include/dirent.h (__seekdir): New declaration.
27414 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
27415 redefine as weak alias.
27416 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
27417 of seekdir.
27418 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
27419 and use libc_hidden_def on them.
27420 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
27421 them.
27422 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
27423 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
27424 instead of getifaddrs and freeifaddrs.
27425
27426 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27427
27428 [BZ #18822]
27429 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
27430 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
27431 (__dso_handle): Remove declaration.
27432 * dlfcn/tstatexit.c (__dso_handle): Removed.
27433 (main): Don't check __dso_handle.
27434 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
27435 (main): Don't check __dso_handle.
27436 * include/dso_handle.h: New file.
27437 * malloc/mtrace.c: Include <dso_handle.h>.
27438 (mtrace): Pass __dso_handle directly.
27439 * nptl/pthread_atfork.c: Include <dso_handle.h>.
27440 (__dso_handle): Remove declaration.
27441 (__pthread_atfork): Pass __dso_handle directly.
27442 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
27443 (__dso_handle): Removed.
27444 * posix/wordexp-test.c: Include <dso_handle.h>.
27445 (__dso_handle): Remove declaration.
27446 (__app_register_atfork): Pass __dso_handle directly.
27447 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
27448 (__dso_handle): Remove declaration.
27449 (at_quick_exit): Pass __dso_handle directly.
27450 * stdlib/atexit.c: Include <dso_handle.h>.
27451 (__dso_handle): Remove declaration.
27452 (atexit): Pass __dso_handle directly.
27453 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
27454 (__dso_handle): Removed.
27455
27456 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27457
27458 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
27459 using VDSO.
27460
27461 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
27462
27463 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
27464 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
27465 values to correct default value for given type.
27466
27467 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27468
27469 [BZ #22101]
27470 * elf/Makefile (tests): Add tst-debug1.
27471 ($(objpfx)tst-debug1): New.
27472 ($(objpfx)tst-debug1.out): Likewise.
27473 ($(objpfx)tst-debug1mod1.so): Likewise.
27474 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
27475 with p_filesz == 0.
27476 * elf/tst-debug1.c: New file.
27477
27478 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27479
27480 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
27481 Define using __ifunc.
27482
27483 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27484
27485 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
27486 exp2f() values.
27487
27488 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27489
27490 [BZ #22156]
27491 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
27492
27493 2017-09-26 Florian Weimer <fweimer@redhat.com>
27494
27495 * resolv/Makefile (tests-internal): Fix typo in comment.
27496
27497 2017-09-26 Florian Weimer <fweimer@redhat.com>
27498
27499 * resolv/nss_dns/dns-host.c: Fix typo in comment.
27500
27501 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27502
27503 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
27504 Use an union instead of a max_align_t array for __space,
27505 so that __space is the same size on all platforms.
27506 * malloc/scratch_buffer_grow_preserve.c
27507 (__libc_scratch_buffer_grow_preserve): Likewise.
27508
27509 [BZ #22183]
27510 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
27511 version to 2.
27512 * posix/Makefile (routines): Add glob-lstat-compat and
27513 glob64-lstat-compat.
27514 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
27515 * posix/glob-lstat-compat.c: New file.
27516 * posix/glob64-lstat-compat.c: Likewise.
27517 * posix/tst-glob_lstat_compat.c: Likewise.
27518 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
27519 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
27520 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
27521 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
27522 Likewise.
27523 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
27524 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27525 * posix/glob.c (glob_lstat): New function.
27526 (glob): Rename to __glob and add versioned symbol to 2.27.
27527 (glob_in_dir): Use glob_lstat.
27528 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
27529 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
27530 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
27531 2.27.
27532 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
27533 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
27534 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
27535 gl_lstat on glob call.
27536 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
27537 and glob64 symbols.
27538 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27539 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
27540 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27541 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27542 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
27543 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
27544 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
27545 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
27546 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
27547 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27548 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27549 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
27550 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
27551 Likewise.
27552 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
27553 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
27554 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27555 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27556 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
27557 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27558 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27559 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
27560 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
27561 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
27562 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27563 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27564
27565 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
27566
27567 * configure.ac (AS): Require binutils 2.25 or later.
27568 * configure: Regenerated.
27569
27570 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
27571
27572 [BZ #22207]
27573 * stdlib/test-atexit-race-common.c (do_test): Minimize required
27574 VM size.
27575
27576 2017-09-25 DJ Delorie <dj@redhat.com>
27577
27578 [BZ #22161]
27579 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
27580 resetting timeout.
27581
27582 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
27583
27584 * sysdeps/ieee754/dbl-64/sincos32.h
27585 [SINCCOS32_H]: Remove define.
27586 [SINCOS32_H]: Define.
27587
27588 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27589
27590 * math/Versions (expf): New libm symbol at GLIBC_2.27.
27591 (exp2f): Likewise.
27592 * math/w_exp2f.c: New file.
27593 * math/w_expf.c: New file.
27594 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
27595 * math/w_expf_compat.c (__expf_compat): Likewise.
27596 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
27597 * sysdeps/ia64/fpu/e_expf.S: Likewise.
27598 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27599 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27600 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27601 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27602 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27603 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27604 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27605 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27606 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27607 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27608 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27609 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27610 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27611 Likewise.
27612 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27613 Likewise.
27614 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27615 Likewise.
27616 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27617 Likewise.
27618 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27619 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27620 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27621 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27622 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27623 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27624 Likewise.
27625 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27626 Likewise.
27627 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27628 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27629 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27630
27631 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27632
27633 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
27634 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
27635 (roundtoint, converttoint): Likewise.
27636 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
27637 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
27638 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
27639 * sysdeps/ieee754/flt-32/math_config.h: New file.
27640 * sysdeps/ieee754/flt-32/math_errf.c: New file.
27641 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
27642 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
27643 * sysdeps/i386/fpu/math_errf.c: New file.
27644 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
27645 * sysdeps/ia64/fpu/math_errf.c: New file.
27646 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
27647 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
27648
27649 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27650
27651 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
27652 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
27653 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
27654 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
27655 to make sure that these symbols are defined.
27656 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
27657 of <limits.h>
27658 (__need_NULL): Do not define.
27659 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
27660 alignment.
27661 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
27662 CMGROUP_MAX, cmsgcred): Do not define.
27663 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
27664 NULL.
27665 * bits/socket.h: Likewise.
27666 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
27667 __gettimeofday instead of gettimeofday.
27668 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
27669 instead of settimeofday.
27670
27671 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27672
27673 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
27674 (asinhf): Define using libm_alias_float.
27675 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
27676 (atanf): Define using libm_alias_float.
27677 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
27678 (cbrtf): Define using libm_alias_float.
27679 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
27680 (ceilf): Define using libm_alias_float.
27681 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
27682 <libm-alias-float.h>.
27683 (copysignf): Define using libm_alias_float.
27684 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
27685 (cosf): Define using libm_alias_float.
27686 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
27687 (erff): Define using libm_alias_float.
27688 (erfcf): Likewise.
27689 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
27690 (expm1f): Define using libm_alias_float.
27691 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
27692 (fabsf): Define using libm_alias_float.
27693 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
27694 (floorf): Define using libm_alias_float.
27695 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
27696 (frexpf): Define using libm_alias_float.
27697 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
27698 libm_alias_float.
27699 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
27700 <libm-alias-float.h>.
27701 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
27702 libm_alias_float.
27703 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
27704 <libm-alias-float.h>.
27705 (getpayloadf): Define using libm_alias_float.
27706 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
27707 <libm-alias-float.h>.
27708 (llrintf): Define using libm_alias_float.
27709 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
27710 <libm-alias-float.h>.
27711 (llroundf): Define using libm_alias_float.
27712 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
27713 (logbf): Define using libm_alias_float.
27714 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
27715 (lrintf): Define using libm_alias_float.
27716 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
27717 (lroundf): Define using libm_alias_float.
27718 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
27719 (modff): Define using libm_alias_float.
27720 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
27721 <libm-alias-float.h>.
27722 (nearbyintf): Define using libm_alias_float.
27723 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
27724 <libm-alias-float.h>.
27725 (nextafterf): Define using libm_alias_float.
27726 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
27727 <libm-alias-float.h>.
27728 (nextupf): Define using libm_alias_float.
27729 * sysdeps/ieee754/flt-32/s_remquof.c: Include
27730 <libm-alias-float.h>.
27731 (remquof): Define using libm_alias_float.
27732 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
27733 (rintf): Define using libm_alias_float.
27734 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
27735 <libm-alias-float.h>.
27736 (roundevenf): Define using libm_alias_float.
27737 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
27738 (roundf): Define using libm_alias_float.
27739 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
27740 using libm_alias_float.
27741 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
27742 <libm-alias-float.h>.
27743 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
27744 Define using libm_alias_float.
27745 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
27746 <libm-alias-float.h>.
27747 (sincosf): Define using libm_alias_float.
27748 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
27749 (sinf): Define using libm_alias_float.
27750 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
27751 (tanf): Define using libm_alias_float.
27752 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
27753 (tanhf): Define using libm_alias_float.
27754 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
27755 <libm-alias-float.h>.
27756 (totalorderf): Define using libm_alias_float.
27757 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
27758 <libm-alias-float.h>.
27759 (totalordermagf): Define using libm_alias_float.
27760 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
27761 (truncf): Define using libm_alias_float.
27762 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
27763 libm_alias_float.
27764 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
27765 libm_alias_float.
27766
27767 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27768
27769 [BZ #22146]
27770 math/math.h: Let fpclassify use the builtin in C++ mode, even
27771 when optimazing for size.
27772
27773 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27774
27775 * csu/Makefile (generated): Do not add version-info.h.
27776 (before-compile): Likewise.
27777 (all-Banner-files): Remove variable.
27778 ($(objpfx)version-info.h): Remove rule.
27779 * csu/version.c (banner): Do not include "version-info.h".
27780 * libidn/Banner: Remove.
27781 * manual/contrib.texi (Simon Josefsson): New entry.
27782
27783 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27784
27785 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
27786 Remove conditionals on LDBL_MANT_DIG.
27787 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27788 (__ieee754_lgammal_r): Likewise.
27789
27790 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27791
27792 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
27793 _Float128 and L().
27794 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
27795 _Float128 and L(). Replace _Float128 with long double and L(x)
27796 with xL, throughout the file.
27797 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27798 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27799 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27800 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27801
27802 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27803
27804 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
27805 sysdeps/ieee754/ldbl-128ibm.
27806 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
27807 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
27808 of including it. Keep _Float128 and L() intact. These will be
27809 reviewed by a separate patch.
27810 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27811 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27812 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27813 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27814
27815 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27816
27817 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
27818 (__finitef128): Define to __redirect___finitef128.
27819 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
27820 (__isinff128): Define to __redirect___isinff128.
27821 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
27822 (__isnanf128): Define to __redirect___isnanf128.
27823
27824 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27825
27826 * sysdeps/powerpc/powerpc64le/Makefile
27827 (CFLAGS-tst-strtod-nan-locale.c): New variable.
27828 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
27829
27830 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
27831 Carlos O'Donell <carlos@redhat.com>
27832
27833 [BZ #22180]
27834 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
27835 * stdlib/test-dlclose-exit-race.c: New file.
27836 * stdlib/test-dlclose-exit-race-helper.c: New file.
27837 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
27838
27839 2017-09-21 Joseph Myers <joseph@codesourcery.com>
27840
27841 * crypt/Banner: Remove file.
27842 * nptl/Banner: Likewise.
27843 * resolv/Banner: Likewise.
27844 * soft-fp/Banner: Likewise.
27845 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
27846 ($(objpfx)version.d): Remove dependency on banner.h.
27847 ($(objpfx)version.os): Likewise.
27848 * nptl/version.c (banner): Do not include banner.h.
27849 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
27850 Jelinek and BIND code.
27851
27852 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27853 Carlos O'Donell <carlos@redhat.com>
27854
27855 * support/xdlfcn.h: New file.
27856 * support/xdlfcn.c: New file.
27857 * support/Makefile (libsupport-routines): Add xdlfcn.
27858 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
27859
27860 2017-09-20 Joseph Myers <joseph@codesourcery.com>
27861
27862 [BZ #20142]
27863 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27864 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
27865 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
27866 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
27867 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
27868 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
27869 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
27870 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
27871
27872 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27873 Ricky Zhou <rickyz@google.com>
27874 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
27875
27876 [BZ #14333]
27877 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
27878 Remove atomics.
27879 (__new_exitfn): Fail registration when we finished at_exit processing.
27880 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
27881 * stdlib/on_exit.c (__on_exit): Likewise.
27882 * stdlib/exit.c (__exit_funcs_done): New variable.
27883 (__run_exit_handlers): Use __exit_funcs_lock.
27884 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
27885 declarations.
27886 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
27887 (test-cxa_atexit-race, test-on_exit-race): New tests.
27888 * stdlib/test-atexit-race-common.c: New file.
27889 * stdlib/test-atexit-race.c: New file.
27890 * stdlib/test-at_quick_exit-race.c: New file.
27891 * stdlib/test-cxa_atexit-race.c: New file.
27892 * stdlib/test-on_exit-race.c: New file.
27893
27894 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
27895
27896 * benchtests/Makefile: Add exp2f and log2f benchmarks.
27897 * benchtests/exp2f-inputs: Copy of expf-inputs.
27898 * benchtests/log2f-inputs: Copy of logf-inputs.
27899
27900 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27901
27902 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
27903 Explicitly take address of first element of array arguments in
27904 call to INLINE_SYSCALL.
27905
27906 2017-09-19 Andreas Schwab <schwab@suse.de>
27907
27908 [BZ #22134]
27909 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
27910 execveat first.
27911 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
27912 unimplemented.
27913 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
27914 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
27915 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
27916 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
27917 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27918 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27919 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
27920 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27921 * posix/Makefile (tests): Add tst-fexecve.
27922 * posix/tst-fexecve.c: New file.
27923
27924 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27925
27926 * benchtests/Makefile: Add logf benchmark.
27927 * benchtests/logf-inputs: Add reduced trace from wrf_r.
27928
27929 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27930
27931 * benchtests/Makefile: Add expf benchmark.
27932 * benchtests/expf-inputs: Add reduced trace from wrf_r.
27933
27934 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27935
27936 * csu/Makefile: Add -funwind-tables to libc-start.c.
27937 * debug/Makefile: Add -funwind-tables to backtrace.c.
27938 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
27939 * sysdeps/arm/Makefile: Likewise.
27940 * sysdeps/i386/Makefile: Likewise.
27941 * sysdeps/m68k/Makefile: Likewise.
27942 * sysdeps/mips/Makefile: Likewise.
27943 * sysdeps/nios2/Makefile: Likewise.
27944 * sysdeps/sh/Makefile: Likewise.
27945 * sysdeps/sparc/Makefile: Likewise.
27946
27947 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27948
27949 * benchtests/Makefile (bench-math): Add trunc and truncf.
27950 (CFLAGS-bench-trunc.c): New variable.
27951 (CFLAGS-bench-truncf.c): Likewise.
27952 * benchtests/trunc-inputs: New file.
27953 * benchtests/truncf-inputs: Likewise.
27954
27955 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27956
27957 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27958
27959 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27960
27961 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27962 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27963 redefine.
27964 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27965 (exp10l): Define as weak alias.
27966 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27967 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27968 and redefine.
27969 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27970 (remainderl): Define as weak alias.
27971
27972 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
27973 (fmal): Define using libm_alias_ldouble.
27974 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
27975 (acoshl): Define using libm_alias_ldouble.
27976 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
27977 (acosl): Define using libm_alias_ldouble.
27978 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
27979 (asinl): Define using libm_alias_ldouble.
27980 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
27981 (atan2l): Define using libm_alias_ldouble.
27982 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
27983 (atanhl): Define using libm_alias_ldouble.
27984 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
27985 (coshl): Define using libm_alias_ldouble.
27986 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
27987 (exp10l): Define using libm_alias_ldouble.
27988 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
27989 (exp2l): Define using libm_alias_ldouble.
27990 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
27991 (expl): Define using libm_alias_ldouble.
27992 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
27993 (fmodl): Define using libm_alias_ldouble.
27994 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
27995 (hypotl): Define using libm_alias_ldouble.
27996 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
27997 (j0l): Define using libm_alias_ldouble.
27998 (y0l): Likewise.
27999 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
28000 (j1l): Define using libm_alias_ldouble.
28001 (y1l): Likewise.
28002 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
28003 (jnl): Define using libm_alias_ldouble.
28004 (ynl): Likewise.
28005 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
28006 (log10l): Define using libm_alias_ldouble.
28007 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
28008 (log2l): Define using libm_alias_ldouble.
28009 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
28010 (logl): Define using libm_alias_ldouble.
28011 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
28012 (powl): Define using libm_alias_ldouble.
28013 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
28014 (remainderl): Define using libm_alias_ldouble.
28015 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
28016 (sinhl): Define using libm_alias_ldouble.
28017 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
28018 (sqrtl): Define using libm_alias_ldouble.
28019 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
28020 (tgammal): Define using libm_alias_ldouble.
28021 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
28022 (exp10l): Do not use long_double_symbol here.
28023 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
28024 [LIBM_SVID_COMPAT] (remainderl): Likewise.
28025 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
28026 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28027 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28028 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28029 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28030 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28031 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28032 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28033 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28034 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28035 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28036 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28037 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28038 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28039 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28040 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28041 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28042 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28043 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28044 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28045
28046 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
28047
28048 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
28049 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
28050
28051 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
28052
28053 * io/read.c (read): Add libc_hidden_weak.
28054 * sysdeps/mach/hurd/read.c (read): Likewise.
28055 * io/write.c (write): Likewise.
28056 * sysdeps/mach/hurd/write.c (write): Likewise.
28057 * io/pread64.c (__pread64): Likewise.
28058 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
28059 * posix/pread64.c (__pread64): Add libc_hidden_def.
28060
28061 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
28062
28063 * benchtests/scripts/compare_strings.py: New option -g.
28064 (draw_graph): Print a message that a graph is being generated.
28065 (process_results): Generate graph only if -g is passed.
28066 (main): Process option -g.
28067
28068 * benchtests/scripts/compare_strings.py (process_results):
28069 Better spacing for output.
28070
28071 * benchtests/scripts/compare_strings.py: Use argparse.
28072 * benchtests/README: Document existence of compare_strings.py.
28073
28074 2017-09-15 Joseph Myers <joseph@codesourcery.com>
28075
28076 * math/s_fma.c: Include <libm-alias-double.h>.
28077 (fma): Define using libm_alias_double.
28078 * math/s_nextafter.c: Include <libm-alias-double.h>.
28079 (nextafter): Define using libm_alias_double.
28080 * math/w_acos_compat.c: Include <libm-alias-double.h>.
28081 (acos): Define using libm_alias_double.
28082 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
28083 (aocsh): Define using libm_alias_double.
28084 * math/w_asin_compat.c: Include <libm-alias-double.h>.
28085 (asin): Define using libm_alias_double.
28086 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
28087 (atan2): Define using libm_alias_double.
28088 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
28089 (atanh): Define using libm_alias_double.
28090 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
28091 (cosh): Define using libm_alias_double.
28092 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
28093 (exp10): Define using libm_alias_double.
28094 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
28095 (exp2): Define using libm_alias_double.
28096 * math/w_exp_compat.c: Include <libm-alias-double.h>.
28097 (exp): Define using libm_alias_double.
28098 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
28099 (fmod): Define using libm_alias_double.
28100 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
28101 (hypot): Define using libm_alias_double.
28102 * math/w_j0_compat.c: Include <libm-alias-double.h>.
28103 (j0): Define using libm_alias_double.
28104 (y0): Likewise.
28105 * math/w_j1_compat.c: Include <libm-alias-double.h>.
28106 (j1): Define using libm_alias_double.
28107 (y1): Likewise.
28108 * math/w_jn_compat.c: Include <libm-alias-double.h>.
28109 (jn): Define using libm_alias_double.
28110 (yn): Likewise.
28111 * math/w_log10_compat.c: Include <libm-alias-double.h>.
28112 (log10): Define using libm_alias_double.
28113 * math/w_log2_compat.c: Include <libm-alias-double.h>.
28114 (log2): Define using libm_alias_double.
28115 * math/w_log_compat.c: Include <libm-alias-double.h>.
28116 (log): Define using libm_alias_double.
28117 * math/w_pow_compat.c: Include <libm-alias-double.h>.
28118 (pow): Define using libm_alias_double.
28119 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
28120 (remainder): Define using libm_alias_double.
28121 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
28122 (sinh): Define using libm_alias_double.
28123 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
28124 (sqrt): Define using libm_alias_double.
28125 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
28126 (tgamma): Define using libm_alias_double.
28127 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
28128 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
28129 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
28130 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
28131 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
28132 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
28133 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
28134 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
28135 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
28136 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
28137 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
28138 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
28139 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
28140 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
28141 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
28142 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
28143 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
28144 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
28145 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
28146 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
28147 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
28148 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
28149 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
28150 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
28151 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
28152
28153 * math/e_acoshl.c: Remove.
28154 * math/e_acosl.c: Likewise.
28155 * math/e_asinl.c: Likewise.
28156 * math/e_atan2l.c: Likewise.
28157 * math/e_atanhl.c: Likewise.
28158 * math/e_coshl.c: Likewise.
28159 * math/e_expl.c: Likewise.
28160 * math/e_fmodl.c: Likewise.
28161 * math/e_gammal_r.c: Likewise.
28162 * math/e_hypotl.c: Likewise.
28163 * math/e_j0l.c: Likewise.
28164 * math/e_j1l.c: Likewise.
28165 * math/e_jnl.c: Likewise.
28166 * math/e_lgammal_r.c: Likewise.
28167 * math/e_log10l.c: Likewise.
28168 * math/e_log2l.c: Likewise.
28169 * math/e_logl.c: Likewise.
28170 * math/e_powl.c: Likewise.
28171 * math/e_rem_pio2l.c: Likewise.
28172 * math/e_sinhl.c: Likewise.
28173 * math/e_sqrtf128.c: Likewise.
28174 * math/e_sqrtl.c: Likewise.
28175 * math/k_cosl.c: Likewise.
28176 * math/k_sinl.c: Likewise.
28177 * math/k_tanl.c: Likewise.
28178 * math/s_asinhl.c: Likewise.
28179 * math/s_atanl.c: Likewise.
28180 * math/s_cbrtl.c: Likewise.
28181 * math/s_erfl.c: Likewise.
28182 * math/s_expm1l.c: Likewise.
28183 * math/s_log1pl.c: Likewise.
28184 * math/s_tanhl.c: Likewise.
28185
28186 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
28187
28188 [BZ #21745]
28189 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
28190 [$(subdir) = math] (sysdep_calls): New variable. Has the
28191 previous contents of sysdep_routines, but re-sorted..
28192 [$(subdir) = math] (sysdep_routines): Re-use the contents from
28193 sysdep_calls.
28194 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
28195 defined in sysdep_calls and replace by the respective m_* names.
28196 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
28197 (compat_symbol): Undefine to avoid duplicated compat symbols in
28198 libc.
28199
28200 2017-09-15 Joseph Myers <joseph@codesourcery.com>
28201
28202 * math/s_fmaf.c: Include <libm-alias-float.h>.
28203 (fmaf): Define using libm_alias_float.
28204 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
28205 (acosf): Define using libm_alias_float.
28206 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
28207 (acoshf): Define using libm_alias_float.
28208 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
28209 (asinf): Define using libm_alias_float.
28210 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
28211 (atan2f): Define using libm_alias_float.
28212 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
28213 (atanhf): Define using libm_alias_float.
28214 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
28215 (coshf): Define using libm_alias_float.
28216 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
28217 (exp10f): Define using libm_alias_float.
28218 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
28219 (fmodf): Define using libm_alias_float.
28220 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
28221 (hypotf): Define using libm_alias_float.
28222 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
28223 (j0f): Define using libm_alias_float.
28224 (y0f): Likewise.
28225 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
28226 (j1f): Define using libm_alias_float.
28227 (y1f): Likewise.
28228 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
28229 (jnf): Define using libm_alias_float.
28230 (ynf): Likewise.
28231 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
28232 (log10f): Define using libm_alias_float.
28233 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
28234 (log2f): Define using libm_alias_float.
28235 * math/w_logf_compat.c: Include <libm-alias-float.h>.
28236 (logf): Define using libm_alias_float.
28237 * math/w_powf_compat.c: Include <libm-alias-float.h>.
28238 (powf): Define using libm_alias_float.
28239 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
28240 (remainderf): Define using libm_alias_float.
28241 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
28242 (sinhf): Define using libm_alias_float.
28243 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
28244 (sqrtf): Define using libm_alias_float.
28245 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
28246 (tgammaf): Define using libm_alias_float.
28247
28248 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28249
28250 * include/math.h (roundeven): Change hidden_proto call to
28251 __roundeven.
28252 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
28253 alias.
28254 [NO_LONG_DOUBLE] (__j0l): New strong alias.
28255 (y0): Rename to __y0 and define as weak alias.
28256 [NO_LONG_DOUBLE] (__y0l): New strong alias.
28257 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
28258 alias.
28259 (y0f): Rename to __y0f and define as weak alias.
28260 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
28261 alias.
28262 [NO_LONG_DOUBLE] (__j1l): New strong alias.
28263 (y1): Rename to __y1 and define as weak alias.
28264 [NO_LONG_DOUBLE] (__y1l): New strong alias.
28265 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
28266 alias.
28267 (y1f): Rename to __y1f and define as weak alias.
28268 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
28269 alias.
28270 [NO_LONG_DOUBLE] (__jnl): New strong alias.
28271 (yn): Rename to __yn and define as weak alias.
28272 [NO_LONG_DOUBLE] (__ynl): New strong alias.
28273 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
28274 alias.
28275 (ynf): Rename to __ynf and define as weak alias.
28276 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
28277 (fromfp): Define as weak alias.
28278 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
28279 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
28280 (fromfpx): Define as weak alias.
28281 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
28282 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
28283 __getpayload and define as weak alias.
28284 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28285 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
28286 __roundeven and define as weak alias.
28287 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28288 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
28289 __setpayload.
28290 (setpayload): Define as weak alias.
28291 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
28292 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
28293 __setpayloadsig.
28294 (setpayloadsig): Define as weak alias.
28295 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
28296 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
28297 __totalorder and define as weak alias.
28298 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28299 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
28300 to __totalordermag and define as weak alias.
28301 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28302 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
28303 (ufromfp): Define as weak alias.
28304 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
28305 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
28306 __ufromfpx.
28307 (ufromfpx): Define as weak alias.
28308 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
28309 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
28310 Rename to __getpayload and define as weak alias.
28311 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28312 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
28313 Rename to __roundeven and define as weak alias.
28314 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28315 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
28316 Rename to __totalorder and define as weak alias.
28317 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28318 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
28319 (totalordermag): Rename to __totalordermag and define as weak
28320 alias.
28321 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28322 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
28323 macro.
28324 (__roundevenl): Likewise.
28325 (__totalorderl): Likewise.
28326 (__totalordermagl): Likewise
28327 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
28328 __fromfpf128.
28329 (fromfpf128): Define as weak alias.
28330 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
28331 __fromfpxf128.
28332 (fromfpxf128): Define as weak alias.
28333 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
28334 __setpayloadf128.
28335 (setpayloadf128): Define as weak alias.
28336 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
28337 __setpayloadsigf128.
28338 (setpayloadsigf128): Define as weak alias.
28339 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
28340 __ufromfpf128.
28341 (ufromfpf128): Define as weak alias.
28342 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
28343 __ufromfpxf128.
28344 (ufromfpxf128): Define as weak alias.
28345 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
28346 (fromfpf): Define as weak alias.
28347 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
28348 __fromfpxf.
28349 (fromfpxf): Define as weak alias.
28350 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
28351 __getpayloadf and define as weak alias.
28352 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
28353 __roundevenf and define as weak alias.
28354 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
28355 __setpayloadf.
28356 (setpayloadf): Define as weak alias.
28357 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
28358 __setpayloadsigf.
28359 (setpayloadsigf): Define as weak alias.
28360 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
28361 __totalorderf and define as weak alias.
28362 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
28363 Rename to __totalordermagf and define as weak alias.
28364 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
28365 __ufromfpf.
28366 (ufromfpf): Define as weak alias.
28367 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
28368 __ufromfpxf.
28369 (ufromfpxf): Define as weak alias.
28370 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
28371 __fromfpl.
28372 (fromfpl): Define as weak alias.
28373 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
28374 __fromfpxl.
28375 (fromfpxl): Define as weak alias.
28376 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
28377 to __getpayloadl and define as weak alias.
28378 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
28379 __roundevenl and define as weak alias.
28380 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
28381 __setpayloadl.
28382 (setpayloadl): Define as weak alias.
28383 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
28384 __setpayloadsigl.
28385 (setpayloadsigl): Define as weak alias.
28386 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
28387 to __totalorderl and define as weak alias.
28388 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
28389 Rename to __totalordermagl and define as weak alias.
28390 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
28391 __ufromfpl.
28392 (ufromfpl): Define as weak alias.
28393 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
28394 __ufromfpxl.
28395 (ufromfpxl): Define as weak alias.
28396 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
28397 __fromfpl.
28398 (fromfpl): Define as weak alias.
28399 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
28400 __fromfpxl.
28401 (fromfpxl): Define as weak alias.
28402 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
28403 Rename to __getpayloadl and define as weak alias.
28404 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
28405 to __roundevenl and define as weak alias. Call __roundeven
28406 instead of roundeven.
28407 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
28408 __setpayloadl.
28409 (setpayloadl): Define as weak alias.
28410 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
28411 __setpayloadsigl.
28412 (setpayloadsigl): Define as weak alias.
28413 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
28414 Rename to __totalorderl and define as weak alias.
28415 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
28416 Rename to __totalordermagl and define as weak alias.
28417 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
28418 __ufromfpl.
28419 (ufromfpl): Define as weak alias.
28420 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
28421 __ufromfpxl.
28422 (ufromfpxl): Define as weak alias.
28423 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
28424 __fromfpl.
28425 (fromfpl): Define as weak alias.
28426 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
28427 __fromfpxl.
28428 (fromfpxl): Define as weak alias.
28429 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
28430 __getpayloadl and define as weak alias.
28431 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
28432 __roundevenl and define as weak alias.
28433 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
28434 __setpayloadl.
28435 (setpayloadl): Define as weak alias.
28436 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
28437 __setpayloadsigl.
28438 (setpayloadsigl): Define as weak alias.
28439 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
28440 __totalorderl and define as weak alias.
28441 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
28442 Rename to __totalordermagl and define as weak alias.
28443 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
28444 __ufromfpl.
28445 (ufromfpl): Define as weak alias.
28446 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
28447 __ufromfpxl.
28448 (ufromfpxl): Define as weak alias.
28449
28450 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
28451
28452 * benchtests/bench-string.h (realloc_bufs): New function.
28453 (test_init): Call it.
28454 * benchtests/bench-memset-large.c (do_test): Likewise.
28455 * benchtests/bench-memset.c (do_test): Likewise.
28456
28457 * benchtests/bench-memset-large.c: Print output in JSON
28458 format.
28459 * benchtests/bench-memset.c: Likewise.
28460
28461 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28462
28463 [BZ #21084]
28464 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
28465 * iconvdata/Makefile: Add IBM858.
28466 * iconvdata/gconv-modules: Likewise.
28467 * iconvdata/tst-tables.sh: Likewise.
28468 * iconvdata/ibm858.c: New file.
28469 * localedata/charmaps/IBM858: Likewise.
28470
28471 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
28472
28473 [BZ #22023]
28474 * locales/niu_NZ (LC_TIME): copy "niu_NU".
28475 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
28476
28477 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28478
28479 [BZ #22112]
28480 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
28481 and add tel_int_fmt.
28482
28483 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28484
28485 * sysdeps/generic/libm-alias-float128.h: New file.
28486 * sysdeps/generic/math-type-macros-float128.h: Include
28487 <libm-alias-float128.h>.
28488 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28489
28490 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28491
28492 * sysdeps/generic/libm-alias-ldouble.h: New file.
28493 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
28494 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
28495 * sysdeps/generic/math-type-macros-ldouble.h: Include
28496 <libm-alias-ldouble.h>.
28497 [!declare_mgen_alias] (declare_mgen_alias): Define to use
28498 libm_alias_ldouble.
28499
28500 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
28501
28502 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
28503 * math/w_exp_compat.c: ... here.
28504 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
28505 * math/w_expf_compat.c: ... here.
28506 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
28507 * math/w_expl_compat.c: ... here.
28508 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
28509 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
28510 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
28511 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28512
28513 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28514
28515 * math/w_scalbln_template.c (strong_alias): Do not undefine and
28516 redefine.
28517 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
28518 macro.
28519 (ldexpl): Only define as compat symbol for libc, not libm.
28520 (scalbnl): Define as compat symbol for libc here.
28521 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
28522 define for [IS_IN (libc)].
28523 (__ldexpl_2): Remove alias.
28524 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
28525 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
28526 name in long_double_symbol call.
28527 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
28528 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
28529 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
28530 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
28531 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
28532 Remove macro.
28533 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
28534 Define as compat symbol.
28535
28536 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28537
28538 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
28539 * sysdeps/unix/sysv/linux/alpha/Makefile
28540 [$(subdir) = csu] (sysdep_routines): Remove rule.
28541
28542 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28543
28544 * sysdeps/generic/libm-alias-double.h: New file.
28545 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
28546 * sysdeps/generic/math-type-macros-double.h: Include
28547 <libm-alias-double.h>.
28548 [declare_mgen_alias] (declare_mgen_alias): Define to use
28549 libm_alias_double.
28550 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
28551 (M_LIBM_NEED_COMPAT): Remove macro.
28552 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
28553 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
28554 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
28555 code.
28556 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28557 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28558 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28559 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28560 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28561 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28562 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28563 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28564 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28565 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28566 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28567 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28568 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28569 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28570 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28571 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28572 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28573 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28574 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28575 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28576 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28577 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28578 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28579 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28580 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28581 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28582 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28583 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
28584 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
28585 macro.
28586 (declare_mgen_alias): New macro.
28587 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
28588 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
28589 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
28590 (M_LIBM_NEED_COMPAT): Remove macro.
28591 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
28592 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
28593 <first-versions.h>.
28594 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
28595 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
28596
28597 2017-09-12 Joseph Myers <joseph@codesourcery.com>
28598
28599 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
28600 (declare_mgen_alias_2): Remove.
28601 * sysdeps/generic/math-type-macros-double.h
28602 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
28603 Likewise.
28604 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
28605 alias.
28606 (ldexp): Define with declare_mgen_alias.
28607 (scalbn): Likewise.
28608
28609 2017-09-12 Steve Ellcey <sellcey@cavium.com>
28610
28611 * grp/initgroups.c: Include config.h.
28612 (DEFAULT_CONFIG): New macro.
28613 (internal_getgrouplist): Use DEFAULT_CONFIG.
28614 * nscd/initgrcache.c (addinitgroupsX): Likewise.
28615 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
28616 (DEFAULT_DEFCONFIG): New macro.
28617 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
28618 * nss/grp-lookup.c: Include config.h
28619 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
28620 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
28621 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
28622 * manual/nss.texi: Update default values section.
28623
28624 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
28625
28626 [BZ #21967]
28627 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
28628 New.
28629 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
28630 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
28631 Handle MathVec_Prefer_No_AVX512.
28632 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
28633 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
28634 is set.
28635
28636 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
28637
28638 * posix/sched_primax.c (__sched_get_priority_max): Add
28639 libc_hidden_def.
28640 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
28641 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28642 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28643 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
28644 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
28645 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
28646 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
28647 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
28648 Add aliases.
28649
28650 2017-09-11 Joseph Myers <joseph@codesourcery.com>
28651
28652 * sysdeps/generic/libm-alias-float.h: New file.
28653 * sysdeps/generic/math-type-macros-float.h: Include
28654 <libm-alias-float.h>.
28655 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28656
28657 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
28658
28659 [BZ #22093]
28660 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
28661 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
28662 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
28663 (HWCAP_IMPORTANT): Likewise.
28664 (HWCAP_X86_64): New enum.
28665 (HWCAP_X86_AVX512_1): Updated.
28666 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
28667 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
28668 (modules-names): Add x86_64/tst-x86_64mod-1.
28669 (LDFLAGS-tst-x86_64mod-1.so): New.
28670 ($(objpfx)tst-x86_64-1): Likewise.
28671 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
28672 (tst-x86_64-1-clean): Likewise.
28673 * sysdeps/x86_64/tst-x86_64-1.c: New file.
28674 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
28675
28676 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
28677
28678 * po/sv.po: Update translations.
28679 * po/fr.po: Likewise.
28680
28681 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
28682
28683 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
28684 seconds.
28685 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
28686 seconds.
28687 * elf/rtld-Rules: Fix $(error) use.
28688
28689 2017-09-09 Mike FABIAN <mfabian@redhat.com>
28690
28691 [BZ #14925]
28692 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
28693 * locale/iso-639.def: Change “Bengali” to “Bangla”.
28694 * localedata/locales/bn_BD: “Bengali” was still used in some
28695 comments. Change it to “Bangla”.
28696
28697 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
28698
28699 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
28700
28701 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28702
28703 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
28704 thunderx2t99p1 to list of cpu names.
28705 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
28706 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
28707
28708 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28709
28710 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
28711 Use strcmp instead of tunable_is_name.
28712
28713 2017-09-08 Joseph Myers <joseph@codesourcery.com>
28714
28715 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28716 (F_GET_RW_HINT): New macro.
28717 [__USE_GNU] (F_SET_RW_HINT): Likewise.
28718 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
28719 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
28720 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
28721 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
28722 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
28723 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
28724 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
28725 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
28726
28727 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28728 (F_ADD_SEALS): New macro.
28729 [__USE_GNU] (F_GET_SEALS): Likewise.
28730 [__USE_GNU] (F_SEAL_SEAL): Likewise.
28731 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
28732 [__USE_GNU] (F_SEAL_GROW): Likewise.
28733 [__USE_GNU] (F_SEAL_WRITE): Likewise.
28734
28735 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28736
28737 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
28738 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
28739 * posix/glob_internal.h (__glob_pattern_type):
28740 * posix/glob.c (glob):
28741 * posix/glob_pattern_p.c (__glob_pattern_p):
28742 Use them.
28743
28744 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
28745 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
28746 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
28747 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
28748 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28749 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
28750 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
28751 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
28752 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28753 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
28754 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28755 * sysdeps/wordsize-64/glob.c: Likewise.
28756 * sysdeps/wordsize-64/glob64.c: Likewise.
28757 * sysdeps/wordsize-64/globfree.c: Likewise.
28758 * sysdeps/wordsize-64/globfree64.c: Likewise.
28759 * sysdeps/unix/sysv/linux/glob.c: New file.
28760 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
28761 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
28762 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
28763 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28764 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
28765 adds !GLOB_NO_OLD_VERSION as an extra condition.
28766 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
28767 using relative path instead of absolute one.
28768 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
28769 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
28770 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
28771 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
28772 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
28773 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
28774
28775 [BZ #1062]
28776 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
28777 (glob): Use the same scratch buffer for both getlogin_r and
28778 getpwnam_r. Don’t require preallocation of the login name. This
28779 simplifies storage allocation, and corrects the handling of
28780 long login names.
28781
28782 [BZ #1062]
28783 * posix/glob.c (glob): Port recent patches to platforms
28784 lacking getpwnam_r.
28785 (glob): Fix longstanding misuse of errno after getpwnam_r, which
28786 returns an error number rather than setting errno.
28787
28788 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
28789 instead of GCC extension.
28790 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
28791 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
28792 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
28793
28794 [BZ #866]
28795 [BZ #1062]
28796 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
28797 * posix/bug-glob1.c: Remove file.
28798 * posix/tst-glob_symlinks.c: New file.
28799 * posix/glob.c (__lstat64): New macro.
28800 (is_dir): New function.
28801 (glob, glob_in_dir): Match symlinks even if they are dangling.
28802 (link_stat, link_exists_p): Remove. All uses removed.
28803
28804 [BZ #1062]
28805 [BZ #19971]
28806 * posix/glob.c (struct readdir_result): Remove skip_entry member.
28807 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
28808 All uses removed.
28809
28810 [BZ #1062]
28811 CVE-2017-15671
28812 * posix/Makefile (routines): Add globfree, globfree64, and
28813 glob_pattern_p.
28814 * posix/flexmember.h: New file.
28815 * posix/glob_internal.h: Likewise.
28816 * posix/glob_pattern_p.c: Likewise.
28817 * posix/globfree.c: Likewise.
28818 * posix/globfree64.c: Likewise.
28819 * sysdeps/gnu/globfree64.c: Likewise.
28820 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
28821 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28822 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
28823 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28824 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28825 * sysdeps/wordsize-64/globfree.c: Likewise.
28826 * sysdeps/wordsize-64/globfree64.c: Likewise.
28827 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
28828 [NDEBUG): Remove comments.
28829 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
28830 (dirent_type): New type. Use uint_fast8_t not
28831 uint8_t, as C99 does not require uint8_t.
28832 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
28833 (struct readdir_result): Use dirent_type. Do not define skip_entry
28834 unless it is needed; this saves a byte on platforms lacking d_ino.
28835 (readdir_result_type, readdir_result_skip_entry):
28836 New functions, replacing ...
28837 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
28838 these functions, which were removed. This makes the callers
28839 easier to read. All callers changed.
28840 (D_INO_TO_RESULT): Now empty if there is no d_ino.
28841 (size_add_wrapv, glob_use_alloca): New static functions.
28842 (glob, glob_in_dir): Check for size_t overflow in several places,
28843 and fix some size_t checks that were not quite right.
28844 Remove old code using SHELL since Bash no longer
28845 uses this.
28846 (glob, prefix_array): Separate MS code better.
28847 (glob_in_dir): Remove old Amiga and VMS code.
28848 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
28849 separate files.
28850 (glob_in_dir): Do not rely on undefined behavior in accessing
28851 struct members beyond their bounds. Use a flexible array member
28852 instead
28853 (link_stat): Rename from link_exists2_p and return -1/0 instead of
28854 0/1. Caller changed.
28855 (glob): Fix memory leaks.
28856 * posix/glob64 (globfree64): Move to separate file.
28857 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
28858 (globfree64): Remove hidden alias.
28859 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
28860 oldglob.
28861 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
28862 separate file.
28863 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
28864 define.
28865 Move compat code to separate file.
28866 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
28867 separate file.
28868
28869 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
28870
28871 * resolv/tst-resolv-qtypes.c (domain): Changed to
28872 "const char domain[] =".
28873
28874 2017-09-07 Joseph Myers <joseph@codesourcery.com>
28875
28876 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
28877 version to 3.1.6.
28878
28879 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
28880 (TCP_MD5SIG_EXT): Likewise.
28881 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
28882 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
28883 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
28884
28885 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
28886
28887 2017-09-07 Mike FABIAN <mfabian@redhat.com>
28888
28889 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
28890
28891 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
28892
28893 [BZ #22100]
28894 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
28895
28896 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
28897
28898 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
28899 before assuming that the file is empty. Avoid testing buffer content
28900 when nread == 0.
28901
28902 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28903
28904 [BZ #18858]
28905 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28906 Remove define.
28907 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
28908 Likewise.
28909 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
28910 Likewise.
28911 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
28912 Likewise.
28913 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28914 Likewise.
28915 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
28916 Likewise.
28917 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
28918 Likewise.
28919
28920 2017-09-06 Florian Weimer <fweimer@redhat.com>
28921
28922 * malloc/dynarray_emplace_enlarge.c
28923 (__libc_dynarray_emplace_enlarge): Add missing else.
28924
28925 2017-09-06 Florian Weimer <fweimer@redhat.com>
28926
28927 [BZ #22096]
28928 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
28929 case of failure to obtain the global conf object.
28930
28931 2017-09-06 Florian Weimer <fweimer@redhat.com>
28932
28933 [BZ #22095]
28934 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
28935 dynarray allocation failure.
28936
28937 2017-09-06 Florian Weimer <fweimer@redhat.com>
28938
28939 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
28940 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
28941 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
28942 New functions.
28943 (response): Call them. Add 'p', '6' flag processing.
28944 (test_reverse): New function.
28945 (test_get2_any): Call it.
28946 (test_no_inet6): Add 'p' test.
28947 (test_inet6): Likewise.
28948
28949 2017-09-06 Florian Weimer <fweimer@redhat.com>
28950
28951 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28952 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28953 the QNAME.
28954 (test_gai): Adjust query names. Add additional tests.
28955 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28956 test_get2. Adjust query names. Add additional tests.
28957 (test_no_inet6): New function, extracted from threadfunc.
28958 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28959 Add additional tests.
28960
28961 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28962
28963 [BZ #22070]
28964 * localedata/unicode-gen/utf8_gen.py: Set the width for
28965 characters with Prepended_Concatenation_Mark property to 1
28966 * localedata/charmaps/UTF-8: Updated using the improved script.
28967
28968 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28969
28970 [BZ #21750]
28971 * localedata/unicode-gen/utf8_gen.py: Improve the script to
28972 use the range notation for all ranges of neighbouring characters
28973 with the same width.
28974
28975 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28976
28977 * sysdeps/generic/math-type-macros-double.h: Include
28978 <math-svid-compat.h>.
28979 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28980 * sysdeps/generic/math-type-macros-float.h: Include
28981 <math-svid-compat.h>.
28982 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28983 * sysdeps/generic/math-type-macros-ldouble.h: Include
28984 <math-svid-compat.h>.
28985 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28986 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
28987 condition.
28988 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
28989 * math/w_acosf_compat.c: Likewise.
28990 * math/w_acosh_compat.c: Likewise.
28991 * math/w_acoshf_compat.c: Likewise.
28992 * math/w_acoshl_compat.c: Likewise.
28993 * math/w_acosl_compat.c: Likewise.
28994 * math/w_asin_compat.c: Likewise.
28995 * math/w_asinf_compat.c: Likewise.
28996 * math/w_asinl_compat.c: Likewise.
28997 * math/w_atan2_compat.c: Likewise.
28998 * math/w_atan2f_compat.c: Likewise.
28999 * math/w_atan2l_compat.c: Likewise.
29000 * math/w_atanh_compat.c: Likewise.
29001 * math/w_atanhf_compat.c: Likewise.
29002 * math/w_atanhl_compat.c: Likewise.
29003 * math/w_cosh_compat.c: Likewise.
29004 * math/w_coshf_compat.c: Likewise.
29005 * math/w_coshl_compat.c: Likewise.
29006 * math/w_exp10_compat.c: Likewise.
29007 * math/w_exp10f_compat.c: Likewise.
29008 * math/w_exp10l_compat.c: Likewise.
29009 * math/w_exp2_compat.c: Likewise.
29010 * math/w_exp2f_compat.c: Likewise.
29011 * math/w_exp2l_compat.c: Likewise.
29012 * math/w_fmod_compat.c: Likewise.
29013 * math/w_fmodf_compat.c: Likewise.
29014 * math/w_fmodl_compat.c: Likewise.
29015 * math/w_hypot_compat.c: Likewise.
29016 * math/w_hypotf_compat.c: Likewise.
29017 * math/w_hypotl_compat.c: Likewise.
29018 * math/w_j0_compat.c: Likewise.
29019 * math/w_j0f_compat.c: Likewise.
29020 * math/w_j0l_compat.c: Likewise.
29021 * math/w_j1_compat.c: Likewise.
29022 * math/w_j1f_compat.c: Likewise.
29023 * math/w_j1l_compat.c: Likewise.
29024 * math/w_jn_compat.c: Likewise.
29025 * math/w_jnf_compat.c: Likewise.
29026 * math/w_jnl_compat.c: Likewise.
29027 * math/w_lgamma_r_compat.c: Likewise.
29028 * math/w_lgammaf_r_compat.c: Likewise.
29029 * math/w_lgammal_r_compat.c: Likewise.
29030 * math/w_log10_compat.c: Likewise.
29031 * math/w_log10f_compat.c: Likewise.
29032 * math/w_log10l_compat.c: Likewise.
29033 * math/w_log2_compat.c: Likewise.
29034 * math/w_log2f_compat.c: Likewise.
29035 * math/w_log2l_compat.c: Likewise.
29036 * math/w_log_compat.c: Likewise.
29037 * math/w_logf_compat.c: Likewise.
29038 * math/w_logl_compat.c: Likewise.
29039 * math/w_pow_compat.c: Likewise.
29040 * math/w_powf_compat.c: Likewise.
29041 * math/w_powl_compat.c: Likewise.
29042 * math/w_remainder_compat.c: Likewise.
29043 * math/w_remainderf_compat.c: Likewise.
29044 * math/w_remainderl_compat.c: Likewise.
29045 * math/w_sinh_compat.c: Likewise.
29046 * math/w_sinhf_compat.c: Likewise.
29047 * math/w_sinhl_compat.c: Likewise.
29048 * math/w_sqrt_compat.c: Likewise.
29049 * math/w_sqrtf_compat.c: Likewise.
29050 * math/w_sqrtl_compat.c: Likewise.
29051 * math/w_tgamma_compat.c: Likewise.
29052 * math/w_tgammaf_compat.c: Likewise.
29053 * math/w_tgammal_compat.c: Likewise.
29054 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
29055 [LIBM_SVID_COMPAT].
29056 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
29057 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
29058 [LIBM_SVID_COMPAT].
29059 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
29060 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
29061 [LIBM_SVID_COMPAT].
29062 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
29063 * sysdeps/i386/fpu/w_sqrt.c: New file.
29064 * sysdeps/ia64/fpu/w_acos.c: Likewise.
29065 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
29066 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
29067 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
29068 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
29069 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
29070 * sysdeps/ia64/fpu/w_asin.c: Likewise.
29071 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
29072 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
29073 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
29074 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
29075 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
29076 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
29077 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
29078 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
29079 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
29080 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
29081 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
29082 * sysdeps/ia64/fpu/w_exp.c: Likewise.
29083 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
29084 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
29085 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
29086 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
29087 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
29088 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
29089 * sysdeps/ia64/fpu/w_expf.c: Likewise.
29090 * sysdeps/ia64/fpu/w_expl.c: Likewise.
29091 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
29092 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
29093 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
29094 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
29095 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
29096 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
29097 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
29098 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
29099 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
29100 * sysdeps/ia64/fpu/w_log.c: Likewise.
29101 * sysdeps/ia64/fpu/w_log10.c: Likewise.
29102 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
29103 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
29104 * sysdeps/ia64/fpu/w_log2.c: Likewise.
29105 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
29106 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
29107 * sysdeps/ia64/fpu/w_logf.c: Likewise.
29108 * sysdeps/ia64/fpu/w_logl.c: Likewise.
29109 * sysdeps/ia64/fpu/w_pow.c: Likewise.
29110 * sysdeps/ia64/fpu/w_powf.c: Likewise.
29111 * sysdeps/ia64/fpu/w_powl.c: Likewise.
29112 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
29113 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
29114 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
29115 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
29116 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
29117 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
29118 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
29119 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
29120 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
29121 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
29122 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
29123 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
29124 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
29125 [LIBM_SVID_COMPAT].
29126 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
29127 * sysdeps/ieee754/k_standard.c: Likewise.
29128 * sysdeps/ieee754/k_standardf.c: Likewise.
29129 * sysdeps/ieee754/k_standardl.c: Likewise.
29130 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
29131 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
29132 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
29133 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
29134 long_double_symbol call on [LIBM_SVID_COMPAT].
29135 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
29136 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
29137 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
29138 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
29139 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
29140 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
29141 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
29142 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
29143 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
29144 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
29145 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
29146 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
29147 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
29148 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
29149 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
29150 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
29151 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
29152 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29153 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29154 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29155 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
29156 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
29157
29158 2017-09-05 Steve Ellcey <sellcey@cavium.com>
29159
29160 * include/shlib-compat.h (TEST_COMPAT): New Macro.
29161 * malloc/tst-mallocstate.c: Convert from test-skeleton
29162 to test-driver. Ifdef code using TEST_COMPAT macro.
29163 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
29164 * math/test-matherr.c: Likewise.
29165
29166 2017-09-05 Joseph Myers <joseph@codesourcery.com>
29167
29168 [BZ #22086]
29169 * debug/pcprofiledump.c (main): Use byte-swapped mask when
29170 comparing word with byte-swapped constant.
29171
29172 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
29173
29174 [BZ #20498]
29175 * locale/iso-639.def: add Miskito.
29176 * localedata/SUPPORTED: Add miq_NI/UTF-8.
29177 * localedata/locales/miq_NI: New file.
29178
29179 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
29180
29181 [BZ #18822]
29182 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
29183 (__mkdir): Likewise.
29184 * io/chmod.c (__chmod): Add libc_hidden_def.
29185 * io/mkdir.c (__mkdir): Likewise.
29186 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
29187 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
29188 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
29189 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
29190
29191 2017-09-04 Joseph Myers <joseph@codesourcery.com>
29192
29193 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
29194 version to 4.13.
29195
29196 [BZ #22082]
29197 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
29198 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
29199
29200 2017-09-04 Florian Weimer <fweimer@redhat.com>
29201
29202 * math/math.h: Issue warning if log is defined.
29203
29204 2017-09-04 Joseph Myers <joseph@codesourcery.com>
29205
29206 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
29207 kernel version to 4.13.
29208
29209 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
29210
29211 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
29212 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
29213 parameter.
29214 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
29215 just <bits/types.h>.
29216 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
29217 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
29218 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
29219 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
29220 * misc/preadv2.c: Include <errno.h>.
29221 * misc/preadv64v2.c: Include <errno.h>.
29222 * misc/pwritev2.c: Include <errno.h>.
29223 * misc/pwritev64v2.c: Include <errno.h>.
29224 * sysdeps/posix/preadv2.c: Include <errno.h>.
29225 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
29226 Fix <unistd.h> inclusion.
29227 * sysdeps/posix/pwritev2.c: Include <errno.h>.
29228 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
29229 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
29230 __strtoul_internal): New functions.
29231 * sysdeps/posix/pause.c: Include <sigsetops.h>.
29232 * sysdeps/posix/system.c: Include <sigsetops.h>.
29233 * sysdeps/mach/hurd/i386/Makefile
29234 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
29235 [$(subdir) = csu] (sysdep-only-routines): Likewise.
29236 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
29237 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
29238 __feraiseexcept_renamed to feraiseexcept instead of
29239 __GI_feraiseexcept.
29240 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
29241 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
29242 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
29243 RWF_NOWAIT): Define to 0 if undefined already.
29244 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
29245 boils down to 0.
29246 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
29247 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
29248
29249 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29250
29251 * manual/math.texi (pow10): Do not document.
29252 (pow10f): Likewise.
29253 (pow10l): Likewise.
29254 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
29255 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
29256 * math/libm-test-exp10.inc (pow10_test): Remove.
29257 (do_test): Do not call pow10.
29258 * math/w_exp10_compat.c (pow10): Make into compat symbol.
29259 [NO_LONG_DOUBLE] (pow10l): Likewise.
29260 * math/w_exp10f_compat.c (pow10f): Likewise.
29261 * math/w_exp10l_compat.c (pow10l): Likewise.
29262 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
29263 (pow10): Make into compat symbol.
29264 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
29265 (pow10f): Make into compat symbol.
29266 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
29267 (pow10l): Make into compat symbol.
29268 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
29269 pow10.
29270 (CFLAGS-nldbl-pow10.c): Remove variable..
29271 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
29272 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
29273 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
29274 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
29275 Undefine and redefine.
29276 (pow10l): Make into compat symbol.
29277 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
29278 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
29279 * sysdeps/arm/libm-test-ulps: Likewise.
29280 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
29281 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
29282 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29283 * sysdeps/microblaze/libm-test-ulps: Likewise.
29284 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
29285 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29286 * sysdeps/nios2/libm-test-ulps: Likewise.
29287 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29288 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
29289 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
29290 * sysdeps/sh/libm-test-ulps: Likewise.
29291 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
29292 * sysdeps/tile/libm-test-ulps: Likewise.
29293 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29294
29295 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29296
29297 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
29298
29299 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29300
29301 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
29302 "../ChangeLog.old/ChangeLog.8".
29303 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
29304 "../ChangeLog.old/ChangeLog.14".
29305
29306 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29307
29308 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
29309 Threads Library.
29310
29311 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29312
29313 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
29314
29315 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29316
29317 * csu/version.c (banner): Remove "by Roland McGrath et al.".
29318 * nptl/Banner: Remove "by Ulrich Drepper et al.".
29319
29320 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29321
29322 * stdlib/tst-atexit-common.c (do_test): Test support for at least
29323 32 atexit handlers.
29324
29325 2017-09-01 Zack Weinberg <zackw@panix.com>
29326
29327 * math/math.h (HUGE_VAL): Improve commentary.
29328
29329 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29330 Andreas Schwab <schwab@suse.de>
29331
29332 [BZ #21530]
29333 * include/stdio.h (__gen_tempfd): New function.
29334 * stdio-common/Makefile (routines): Add gentempfd.
29335 * stdio-common/gentempfd.c: New file.
29336 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
29337 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
29338 unnamed file first.
29339
29340 2017-09-01 Florian Weimer <fweimer@redhat.com>
29341
29342 [BZ #21915]
29343 [BZ #21922]
29344 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
29345 result to determine success or failure, not the errno value.
29346 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
29347 (tst-nss-files-hosts-erange): Link with -ldl.
29348 * nss/tst-nss-files-hosts-erange.c: New file.
29349 * nss/tst-resolv-basic.c (response): Handle nodata.example.
29350 (do_test): Add NO_DATA tests.
29351 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
29352 (do_test): Call it.
29353
29354 2017-09-01 Florian Weimer <fweimer@redhat.com>
29355
29356 [BZ #21922]
29357 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
29358 coming from gethostbyname2_r.
29359
29360 2017-09-01 Florian Weimer <fweimer@redhat.com>
29361
29362 * support/namespace.h (struct support_chroot_configuration): Add
29363 hosts, host_conf.
29364 (struct support_chroot): Add path_hosts, path_host_conf.
29365 * support/support_chroot.c (write_file): New function.
29366 (support_chroot_create): Call it to process /etc/resolv.conf,
29367 /etc/hosts, /etc/host.conf.
29368 (support_chroot_free): Update.
29369
29370 2017-09-01 Florian Weimer <fweimer@redhat.com>
29371
29372 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
29373 status indicates it is set.
29374
29375 2017-09-01 Florian Weimer <fweimer@redhat.com>
29376
29377 [BZ #20532]
29378 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
29379 function lookup failures more reliable.
29380
29381 2017-09-01 Florian Weimer <fweimer@redhat.com>
29382
29383 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
29384 (getcanonname): Likewise.
29385 (gaih_inet): Likewise.
29386
29387 2017-09-01 Florian Weimer <fweimer@redhat.com>
29388
29389 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
29390 (getcanonname): Likewise.
29391 (gaih_inet): Likewise.
29392
29393 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29394 Richard Henderson <rth@twiddle.net>
29395
29396 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
29397 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
29398 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
29399 (IREG_SIZE, OREG_SIZE): New macros.
29400 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
29401 (IREG_SIZE, OREG_SIZE): New macros.
29402 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
29403 (IREG_SIZE): New macro.
29404 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
29405 (IREG_SIZE): New macro.
29406 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
29407 New includes.
29408 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
29409 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29410 (__CONCATX): Handle exceptions correctly on large values that may
29411 set FE_INVALID.
29412 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
29413 Initialize if not already set.
29414 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29415
29416 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29417
29418 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
29419 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
29420 Likewise.
29421 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
29422 Likewise.
29423 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
29424 Likewise.
29425 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
29426 Likewise.
29427 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
29428 Likewise.
29429 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
29430 Likewise.
29431 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
29432 Likewise.
29433 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
29434 (NO_CANCELLATION): Likewise.
29435 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
29436 Likewise.
29437 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
29438 Likewise.
29439 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
29440 Likewise.
29441 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
29442 (NO_CANCELLATION): Likewise.
29443 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
29444 (NO_CANCELLATION): Likewise.
29445 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
29446 Likewise
29447 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
29448 Likewise.
29449 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
29450 Likewise.
29451 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
29452 Likewise.
29453 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
29454 hidden prototype.
29455 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
29456 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
29457
29458 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29459
29460 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
29461 in resolver call.
29462
29463 2017-08-31 Florian Weimer <fweimer@redhat.com>
29464
29465 * include/libc-symbols.h (internal_function): Remove.
29466
29467 2017-08-31 Florian Weimer <fweimer@redhat.com>
29468
29469 * stdlib/fmtmsg.c (internal_addseverity): Remove
29470 internal_function.
29471
29472 2017-08-31 Florian Weimer <fweimer@redhat.com>
29473
29474 * stdio-common/printf_fp.c (group_number): Remove
29475 internal_function.
29476 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
29477
29478 2017-08-31 Florian Weimer <fweimer@redhat.com>
29479
29480 * posix/fnmatch.c (internal_function): Remove definition.
29481 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
29482 * posix/regcomp.c (peek_token, init_word_char)
29483 (duplicate_node_closure, fetch_token, peek_token)
29484 (peek_token_bracket, build_range_exp, build_collating_symbol):
29485 Likewise.
29486 * posix/regex_internal.c (re_string_construct_common)
29487 (create_ci_newstate, create_cd_newstate, re_string_allocate)
29488 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
29489 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
29490 (re_string_translate_buffer, re_string_reconstruct)
29491 (re_string_peek_byte_case, re_string_fetch_byte_case)
29492 (re_string_destruct, re_string_context_at, re_node_set_alloc)
29493 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
29494 (re_node_set_add_intersect, re_node_set_init_union)
29495 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
29496 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
29497 (re_dfa_add_node, calc_state_hash, re_acquire_state)
29498 (re_acquire_state_context): Likewise.
29499 * posix/regex_internal.h (internal_function): Remove definition.
29500 (re_string_realloc_buffers, build_wcs_buffer)
29501 (build_wcs_upper_buffer, build_upper_buffer)
29502 (re_string_translate_buffer, re_string_context_at)
29503 (re_string_char_size_at, re_string_wchar_at)
29504 (re_string_elem_size_at): Likewise.
29505 * posix/regexec.c (match_ctx_init, match_ctx_clean)
29506 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
29507 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
29508 (re_search_internal, re_search_2_stub, re_search_stub)
29509 (re_copy_regs, prune_impossible_nodes, check_matching)
29510 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
29511 (free_fail_stack_return, sift_states_iter_mb)
29512 (sift_states_backward, build_sifted_states)
29513 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
29514 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
29515 (check_subexp_limits, sift_states_bkref, merge_state_array)
29516 (find_recover_state, transit_state, merge_state_with_log)
29517 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
29518 (transit_state_mb, transit_state_bkref, get_subexp)
29519 (get_subexp_sub, find_subexp_node, check_arrival)
29520 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
29521 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
29522 (check_node_accept_bytes, find_collation_sequence_value)
29523 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
29524 (acquire_init_state_context, check_halt_node_context)
29525 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
29526 (sub_epsilon_src_nodes): Likewise.
29527 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
29528 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
29529 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
29530 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
29531 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
29532 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
29533 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
29534 * sysdeps/posix/ttyname.c (getttyname): Likewise.
29535 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
29536 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
29537 (PREADV): Likewise.
29538 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
29539 (PREADV): Likewise.
29540 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
29541 (PWRITEV): Likewise.
29542 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
29543 (PWRITEV): Likewise.
29544 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
29545 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
29546
29547 2017-08-31 Florian Weimer <fweimer@redhat.com>
29548
29549 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
29550 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
29551 Remove internal_function.
29552 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
29553 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
29554 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
29555 (__deallocate_stack, __libc_pthread_init)
29556 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
29557 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
29558 (__libc_disable_asynccancel, __librt_disable_asynccancel):
29559 Likewise.
29560 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
29561 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
29562 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
29563 Likewise.
29564 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
29565 (__pthread_mutex_unlock_usercnt): Likewise.
29566
29567 2017-08-31 Florian Weimer <fweimer@redhat.com>
29568
29569 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
29570 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
29571 (fts_safe_changedir): Remove internal_function.
29572 * io/ftw.c (internal_function): Remove definition.
29573 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
29574
29575 2017-08-31 Florian Weimer <fweimer@redhat.com>
29576
29577 * inet/deadline.c (__deadline_current_time)
29578 (__deadline_from_timeval, __deadline_to_ms): Remove
29579 internal_function.
29580 * inet/getnameinfo.c (nrl_domainname): Likewise.
29581 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
29582 * inet/inet6_option.c (add_pad): Likewise.
29583 * inet/net-internal.h (__deadline_current_time)
29584 (__deadline_from_timeval, __deadline_to_ms): Likewise.
29585 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
29586 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
29587 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
29588
29589 2017-08-31 Joseph Myers <joseph@codesourcery.com>
29590
29591 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
29592 include <bits/nan.h>.
29593 * math/Makefile (headers): Remove bits/nan.h.
29594 * bits/nan.h: Remove.
29595 * sysdeps/ieee754/bits/nan.h: Likewise.
29596 * sysdeps/mips/bits/nan.h: Likewise.
29597
29598 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
29599 not include <bits/inf.h>.
29600 * math/Makefile (headers): Remove bits/inf.h.
29601 * bits/inf.h: Remove.
29602 * sysdeps/ieee754/bits/inf.h: Likewise.
29603
29604 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
29605 bits/huge_vall.h or bits/huge_val_flt128.h.
29606 (HUGE_VAL): Define directly here.
29607 [__USE_ISOC99] (HUGE_VALF): Likewise.
29608 [__USE_ISOC99] (HUGE_VALL): Likewise.
29609 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29610 (HUGE_VAL_F128): Likewise.
29611 * math/Makefile (headers): Remove bits/huge_val.h,
29612 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
29613 * bits/huge_val.h: Remove.
29614 * bits/huge_val_flt128.h: Likewise.
29615 * bits/huge_valf.h: Likewise.
29616 * bits/huge_vall.h: Likewise.
29617 * sysdeps/ia64/bits/huge_vall.h: Likewise.
29618 * sysdeps/ieee754/bits/huge_val.h: Likewise.
29619 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
29620 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
29621 * sysdeps/sh/bits/huge_val.h: Likewise.
29622 * sysdeps/sparc/bits/huge_vall.h: Likewise.
29623 * sysdeps/x86/bits/huge_vall.h: Likewise.
29624
29625 2017-08-31 Florian Weimer <fweimer@redhat.com>
29626
29627 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
29628 internal_function.
29629 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
29630 Likewise.
29631 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
29632 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
29633 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
29634 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
29635 * elf/dl-fini.c (_dl_sort_fini): Likewise.
29636 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
29637 * elf/dl-libc.c (dlerror_run): Likewise.
29638 * elf/dl-load.c (add_name_to_object, decompose_rpath)
29639 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
29640 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
29641 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
29642 Likewise.
29643 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
29644 (_dl_higher_prime_number, _dl_strtoul): Likewise.
29645 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
29646 * elf/dl-profile.c (_dl_start_profile): Likewise.
29647 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
29648 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
29649 Likewise.
29650 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
29651 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
29652 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
29653 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
29654 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
29655 (_dl_allocate_tls_storage): Likewise.
29656 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
29657 (_dl_check_all_versions): Likewise.
29658 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
29659 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
29660 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
29661 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29662 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
29663 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
29664 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
29665 internal_function from __dl_start.
29666 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
29667 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
29668 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
29669 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
29670 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
29671 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
29672 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
29673 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
29674 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
29675 (_dl_next_ld_env_entry, _dl_important_hwcaps)
29676 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
29677 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
29678 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
29679 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
29680 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
29681 Likewise.
29682 (struct rtld_global_ro): Remove internal_function from the
29683 _dl_lookup_symbol_x member.
29684 (_dl_symbol_value): Remove. No longer defined anywhere.
29685 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
29686 internal_function.
29687 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29688 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
29689 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
29690 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
29691 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
29692 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
29693 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
29694 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
29695 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
29696 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
29697 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29698 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
29699
29700 2017-08-31 Florian Weimer <fweimer@redhat.com>
29701
29702 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
29703 Remove internal_function.
29704 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29705 Likewise.
29706 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29707 Likewise.
29708
29709 2017-08-31 Florian Weimer <fweimer@redhat.com>
29710
29711 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
29712 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
29713 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
29714
29715 2017-08-31 Florian Weimer <fweimer@redhat.com>
29716
29717 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
29718 (__gai_enqueue_request): Remove internal_function.
29719 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
29720 (__gai_remove_request, __gai_notify, __gai_notify_only)
29721 (__gai_sigqueue): Likewise.
29722 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
29723 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
29724 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
29725 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
29726 Likewise.
29727
29728 2017-08-31 Florian Weimer <fweimer@redhat.com>
29729
29730 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
29731 * include/dirent.h (__opendirat, __getdents, __getdents64)
29732 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
29733 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
29734 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
29735 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29736 Likewise.
29737 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
29738
29739 2017-08-31 Florian Weimer <fweimer@redhat.com>
29740
29741 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
29742 internal_function.
29743 (GETCWD_RETURN_TYPE): Likewise.
29744
29745 2017-08-31 Florian Weimer <fweimer@redhat.com>
29746
29747 * include/time.h (__tz_compute, __strptime_internal): Remove
29748 internal_function.
29749 * time/strptime_l.c (__strptime_internal): Likewise.
29750 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
29751
29752 2017-08-31 Florian Weimer <fweimer@redhat.com>
29753
29754 * iconv/gconv.c (__gconv): Remove internal_function.
29755 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
29756 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
29757 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
29758 (__gconv_release_cache): Likewise.
29759 * iconv/gconv_close.c (__gconv_close): Likewise.
29760 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
29761 (read_conf_file, __gconv_get_path): Likewise.
29762 * iconv/gconv_db.c (derivation_lookup, add_derivation)
29763 (__gconv_release_step, gen_steps, increment_counter)
29764 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
29765 (__gconv_close_transform, free_modules_db): Likewise.
29766 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
29767 Likewise.
29768 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
29769 (__gconv_find_transform, __gconv_lookup_cache)
29770 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
29771 (__gconv_close_transform, __gconv_release_cache)
29772 (__gconv_loaded_object, __gconv_release_shlib)
29773 (__gconv_compare_alias): Likewise.
29774 * iconv/gconv_open.c (__gconv_open): Likewise.
29775 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
29776 * iconv/iconvconfig.c (add_module): Likewise.
29777 * intl/dcigettext.c (plural_lookup, guess_category_value)
29778 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
29779 * intl/eval-plural.h (plural_eval): Likewise.
29780 * intl/finddomain.c (_nl_find_domain): Likewise.
29781 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
29782 (_nl_load_domain, _nl_find_msg): Likewise.
29783 (internal_function): Remove definition.
29784 * intl/loadinfo.h (internal_function): Likewise.
29785 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
29786 internal_function.
29787 * intl/localealias.c (internal_function): Remove definition.
29788 (read_alias_file): Remove internal_function.
29789 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
29790 * intl/plural-exp.h (internal_function): Remove definition.
29791 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
29792 internal_function.
29793 * intl/plural.c: Regenerate.
29794 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
29795 * locale/coll-lookup.c (__collidx_table_lookup)
29796 (__collseq_table_lookup): Likewise.
29797 * locale/coll-lookup.h (__collidx_table_lookup)
29798 (__collseq_table_lookup): Likewise.
29799 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
29800 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
29801 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
29802 (_nl_unload_locale): Likewise.
29803 * locale/localeinfo.h (struct __locale_data): Remove
29804 internal_function from cleanup member.
29805 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
29806 (_nl_remove_locale, _nl_load_locale_from_archive)
29807 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
29808 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
29809 (_nl_cleanup_time): Remove internal_function.
29810 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
29811 (_nl_parse_alt_digit): Likewise.
29812 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
29813 (_nl_select_era_entry): Likewise.
29814 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
29815 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29816 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29817 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29818 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29819
29820 2017-08-31 Florian Weimer <fweimer@redhat.com>
29821
29822 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
29823 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29824 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
29825 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
29826 Likewise.
29827 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
29828 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
29829 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
29830 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
29831 Likewise.
29832 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
29833
29834 2017-08-31 Florian Weimer <fweimer@redhat.com>
29835
29836 * misc/getttyent.c (skip, value): Remove internal_function.
29837 * misc/syslog.c (openlog_internal): Likewise.
29838 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
29839
29840 2017-08-31 Florian Weimer <fweimer@redhat.com>
29841
29842 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
29843 (__nss_rewrite_field): Remove internal_function.
29844 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
29845 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
29846 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
29847 * nss/nsswitch.c (nss_parse_file, nss_getline)
29848 (nss_parse_service_list, nss_new_service): Likewise.
29849 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
29850 * nss/valid_field.c (__nss_valid_field): Likewise.
29851 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
29852
29853 2017-08-31 Florian Weimer <fweimer@redhat.com>
29854
29855 * malloc/arena.c (__malloc_fork_lock_parent)
29856 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
29857 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
29858 internal_function from defintions.
29859 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
29860 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
29861 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
29862 internal_function from declarations.
29863 * malloc/malloc.c (internal_function): Do not define.
29864 (mem2mem_check): Remove internal_function from declaration.
29865 (munmap_chunk, mremap_chunk): Remove internal_function.
29866 * malloc/mtrace.c (tr_where): Likewise.
29867
29868 2017-08-31 Florian Weimer <fweimer@redhat.com>
29869
29870 * include/rpc/pmap_clnt.h (__get_socket): Remove
29871 internal_function.
29872 * sunrpc/auth_des.c (synchronize): Likewise.
29873 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
29874 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
29875 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
29876 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
29877 (key_call): Likewise.
29878 * sunrpc/pm_getport.c (__get_socket): Likewise.
29879 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
29880 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
29881 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
29882 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
29883 (invalidate): Likewise.
29884 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
29885 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
29886 (set_input_fragment, get_input_bytes): Likewise.
29887
29888 2017-08-31 Florian Weimer <fweimer@redhat.com>
29889
29890 * malloc/malloc.c (_int_free): Remove locked variable and related
29891 asserts.
29892
29893 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
29894
29895 [BZ #22051]
29896 * Makerules (build-module-helper-objlist): Filter out
29897 $(elf-objpfx)sofini.os.
29898 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
29899 needed.
29900
29901 2017-08-31 Florian Weimer <fweimer@redhat.com>
29902
29903 * libio/fcloseall.c: Assume weak_alias is defined.
29904 * libio/feof.c: Likewise.
29905 * libio/fileno.c: Likewise.
29906 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
29907 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29908 definitions.
29909 (_IO_file_open): Call __open directly.
29910 (_IO_new_file_sync): Assume ESPIPE is defined.
29911 (_IO_file_seekoff_maybe_mmap): Call __read directly.
29912 (_IO_new_file_write): Call __write directly.
29913 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
29914 * libio/ftello64.c (__ftello64): Assume EIO is defined.
29915 * libio/genops.c: Assume _LIBC is defined.
29916 (save_for_backup): Remove internal_function.
29917 * libio/getc.c: Assume weak_alias is defined.
29918 * libio/getwc.c: Likewise.
29919 * libio/iofclose.c: Assume _LIBC is defined.
29920 * libio/iofdopen.c: Likewise.
29921 (_IO_fcntl): Remove macro definition.
29922 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
29923 Call __fcntl directly.
29924 * libio/iofflush.c: Assume weak_alias is defined.
29925 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
29926 defined.
29927 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
29928 * libio/iofgets.c: Likewise.
29929 * libio/iofopen.c: Assume _LIBC is defined.
29930 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
29931 * libio/iofputs.c: Assume weak_alias is defined.
29932 * libio/iofread.c: Likewise.
29933 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
29934 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
29935 * libio/ioftell.c: Assume weak_alias is defined.
29936 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
29937 * libio/iofwide.c: Assume _LIBC is defined.
29938 (_IO_fwide): Drop SHARED conditional because it is implied by
29939 SHLIB_COMPAT.
29940 * libio/iofwrite.c: Assume weak_alias is defined.
29941 * libio/iogetdelim.c: Likewise.
29942 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
29943 * libio/iogetwline.c (wmemcpy): Remove macro definition.
29944 (_IO_getwline): Call __wmemcpy directly.
29945 * libio/iopopen.c: Assume _LIBC is defined.
29946 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29947 (_IO_close): Remove macro definitions.
29948 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
29949 _exit directly.
29950 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29951 directly.
29952 * libio/ioputs.c: Assume weak_alias is defined.
29953 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29954 * libio/iosetbuffer.c: Assume weak_alias is defined.
29955 * libio/iosetvbuf.c: Likewise.
29956 * libio/ioungetc.c: Likewise.
29957 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29958 libc_hidden_def, libc_hidden_weak, NULL are defined.
29959 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29960 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29961 defined.
29962 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29963 definitions.
29964 (_IO_old_file_init_internal): Drop SHARED conditional because it
29965 is implied by SHLIB_COMPAT.
29966 (_IO_old_file_fopen): Call __open directly.
29967 (_IO_old_file_sync): Assume ESPIPE is defined.
29968 (_IO_old_file_write): Call __write directly.
29969 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29970 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
29971 Call __fcntl directly.
29972 * libio/oldiofgetpos.c: Assume weak_alias is defined.
29973 (_IO_old_fgetpos): Assume EIO is defined.
29974 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
29975 (_IO_old_fgetpos64): Assume EIO is defined.
29976 * libio/oldiofsetpos.c: Assume weak_alias is defined.
29977 (_IO_old_fsetpos): Assume EIO is defined.
29978 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
29979 (_IO_old_fsetpos64): Assume EIO is defined.
29980 * libio/oldiopopen.c: Assume _LIBC is defined.
29981 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29982 (_IO_close): Remove macro definitions.
29983 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
29984 directly.
29985 (_IO_old_proc_close): Call __close, __waitpid directly.
29986 * libio/put.c: Assume weak_alias is defined.
29987 * libio/stdfiles.c: Assume _LIBC is defined.
29988 * libio/stdio.c: Likewise.
29989 * libio/wfileops.c: Likewise.
29990 (_IO_wfile_sync): Assume ESPIPE is defined.
29991 * libio/wgenops.c: Assume _LIBC is defined.
29992 (save_for_wbackup): Remove internal_function.
29993
29994 2017-08-31 Florian Weimer <fweimer@redhat.com>
29995
29996 * malloc/malloc.c (top_check): Change return type to void. Remove
29997 internal_function.
29998 * malloc/hooks.c (top_check): Likewise.
29999 (malloc_check, realloc_check, memalign_check): Adjust.
30000
30001 2017-08-30 Joseph Myers <joseph@codesourcery.com>
30002
30003 [BZ #21457]
30004 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
30005 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
30006 sigcontext and namespace requirements.
30007 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
30008 * sysdeps/m68k/sys/ucontext.h: Likewise.
30009 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
30010 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
30011 <bits/sigcontext.h>.
30012 (__ctx): Define earlier.
30013 (mcontext_t): Define structure contents rather than using struct
30014 sigcontext.
30015 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
30016 __glibc_reserved1 instead of __reserved.
30017 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
30018 <bits/sigcontext.h>.
30019 (__ctx): Define earlier.
30020 (mcontext_t): Define structure contents rather than using struct
30021 sigcontext.
30022 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
30023 mcontext_t instead of struct sigcontext.
30024 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
30025 <bits/sigcontext.h>.
30026 (__ctx): Define earlier.
30027 (mcontext_t): Define structure contents rather than using struct
30028 sigcontext.
30029 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
30030 <bits/sigcontext.h>.
30031 (__ctx): Define earlier.
30032 (mcontext_t): Define structure contents rather than using struct
30033 sigcontext.
30034 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
30035 mcontext_t instead of struct sigcontext.
30036 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
30037 mcontext_t instead of struct sigcontext.
30038 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
30039 <bits/sigcontext.h>.
30040 (__ctx): New macro.
30041 (struct __ia64_fpreg_mcontext): New type.
30042 (mcontext_t): Define structure contents rather than using struct
30043 sigcontext.
30044 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
30045 (uc_sigmask): Define using __ctx.
30046 (uc_stack): Likewise.
30047 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
30048 <bits/sigcontext.h>.
30049 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
30050 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
30051 <bits/sigcontext.h>.
30052 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
30053 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
30054 <bits/sigcontext.h>.
30055 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
30056 <bits/sigcontext.h>.
30057 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
30058 <bits/sigcontext.h>.
30059 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
30060 <bits/sigcontext.h>.
30061 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
30062 <bits/sigcontext.h>.
30063 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
30064 <bits/sigcontext.h>.
30065 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
30066 <bits/sigcontext.h>.
30067 (__ctx): Define earlier.
30068 (mcontext_t): Define structure contents rather than using struct
30069 sigcontext.
30070 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
30071 <bits/sigcontext.h>. Include <bits/types.h>.
30072 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
30073 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
30074 (test-xfail-XPG42/ucontext.h/conform): Likewise.
30075 (test-xfail-UNIX98/signal.h/conform): Likewise.
30076 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
30077 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
30078 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
30079 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
30080 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
30081 (test-xfail-POSIX2008/signal.h/conform): Likewise.
30082 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
30083 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
30084 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
30085
30086 2017-08-30 Florian Weimer <fweimer@redhat.com>
30087
30088 * malloc/dynarray_emplace_enlarge.c
30089 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
30090 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
30091 * malloc/tst-dynarray.c (test_long_overflow): New function.
30092 (do_test): Call it.
30093
30094 2017-08-30 Florian Weimer <fweimer@redhat.com>
30095
30096 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
30097 (set_arena_corrupt): Remove definitions.
30098 (mtrim): Do not check for corrupt arena.
30099 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
30100 Likewise.
30101
30102 2017-08-30 Florian Weimer <fweimer@redhat.com>
30103
30104 [BZ #21754]
30105 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
30106 check_action.
30107 (ptmalloc_init): Do not set or use check_action.
30108 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
30109 call to malloc_printerr. Remove return statement.
30110 (free_check): Likewise. Remove arena unlock.
30111 (top_check): Update comment. Adjust call to malloc_printerr.
30112 Remove heap repair code.
30113 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
30114 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
30115 (sysmalloc): Adjust call to malloc_printerr.
30116 (munmap_chunk, __libc_realloc): Likewise. Remove return
30117 statement.
30118 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
30119 Remove errout label and corresponding gotos.
30120 (_int_free): Likewise. Remove arena unlock.
30121 (do_set_mallopt_check): Do not set check_action.
30122 (malloc_printerr): Adjust parameter list. Do not mark arena as
30123 corrupt.
30124 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
30125 comment.
30126 * manual/probes.texi (Memory Allocation Probes): Remove
30127 memory_mallopt_check_action.
30128
30129 2017-08-30 Steve Ellcey <sellcey@cavium.com>
30130
30131 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
30132 Use pointer to uint64_t instead of long int for sp.
30133
30134 2017-08-30 Florian Weimer <fweimer@redhat.com>
30135
30136 [BZ #21754]
30137 * malloc/malloc.c (malloc_printerr): Always terminate the process,
30138 without printing a backtrace. Do not leak any information in the
30139 error message.
30140 * manual/memory.texi (Heap Consistency Checking): Update.
30141 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
30142
30143 2017-08-30 Florian Weimer <fweimer@redhat.com>
30144
30145 Do not scale NPTL tests with available number of CPUs.
30146 * nptl/tst-cond16.c (count): Set to constant value of 8.
30147 * nptl/tst-cond18.c (count): Likewise.
30148
30149 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30150
30151 [BZ #22035]
30152 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
30153 Define to take a second argument that is a macro that
30154 concatentates a suffix, not the suffix itself.
30155 (__CONCAT_d): New macro.
30156 (__CONCAT_f): Likewise.
30157 (__CONCAT_l): Likewise.
30158
30159 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
30160
30161 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
30162 by child.
30163
30164 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30165 Aurelien Jarno <aurelien@aurel32.net>
30166 Maciej W. Rozycki <macro@imgtec.com>
30167
30168 [BZ #21956]
30169 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
30170 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
30171 `mips16-syscall6' and `mips16-syscall7'.
30172 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
30173 (CFLAGS-mips16-syscall7.c): Remove.
30174 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
30175 Remove `__mips16_syscall5', `__mips16_syscall6' and
30176 `__mips16_syscall7'.
30177 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
30178 (__mips16_syscall0): Rename `__mips16_syscall_return' to
30179 `__mips_syscall_return'.
30180 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
30181 (__mips16_syscall1): Likewise.
30182 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
30183 (__mips16_syscall2): Likewise.
30184 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
30185 (__mips16_syscall3): Likewise.
30186 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
30187 (__mips16_syscall4): Likewise.
30188 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
30189 Remove.
30190 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
30191 Remove.
30192 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
30193 Remove.
30194 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
30195 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
30196 `__mips16_syscall5'. Remove prototype.
30197 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
30198 `__mips16_syscall6'. Remove prototype.
30199 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
30200 `__mips16_syscall7'. Remove prototype.
30201 (__nomips16, __mips16_syscall_return): Move to...
30202 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
30203 (__nomips16, __mips_syscall_return): ... here.
30204 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
30205 `__mips16_syscall_return' to `__mips_syscall_return'.
30206 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
30207 `internal_syscall##nr'.
30208 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
30209 `internal_syscall##nr'.
30210 (FORCE_FRAME_POINTER): Remove.
30211 (__mips_syscall5): New prototype.
30212 (internal_syscall5): Rewrite to call `__mips_syscall5'.
30213 (__mips_syscall6): New prototype.
30214 (internal_syscall6): Rewrite to call `__mips_syscall6'.
30215 (__mips_syscall7): New prototype.
30216 (internal_syscall7): Rewrite to call `__mips_syscall7'.
30217 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
30218 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
30219 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
30220 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
30221 (sysdep_routines): Add libc-do-syscall.
30222 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
30223 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
30224
30225 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30226
30227 [BZ #21672]
30228 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
30229 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
30230 (advise_stack_range): New function.
30231 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
30232 stack non required to advise_stack_range at allocatestack.c
30233
30234 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
30235
30236 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
30237
30238 2017-08-29 Florian Weimer <fweimer@redhat.com>
30239
30240 [BZ #22026]
30241 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
30242 __end_fct. Mangle __end_fct after setting it to NULL.
30243 * iconv/Makefile (tests): Add tst-gconv-init-failure.
30244 (modules-names, modules-names-tests): Add
30245 tst-gconv-init-failure-mod.
30246 (gconv-modules): New target.
30247 (tst-gconv-init-failure-mod.so): Link against libsupport.
30248 (tst-gconv-init-failure): Depend on gconv-modules,
30249 tst-gconv-init-failure-mod.so.
30250 * iconv/tst-gconv-init-failure-mod.c: New file.
30251 * iconv/tst-gconv-init-failure.c: Likewise.
30252 * iconv/test-gconv-modules: Likewise.
30253
30254 2017-08-29 Florian Weimer <fweimer@redhat.com>
30255
30256 [BZ #22025]
30257 * iconv/gconv_db.c (free_derivation): Remove redundant
30258 parentheses.
30259 (gen_steps): Unconditionally mangle __btowc_fct after
30260 initialization.
30261 (increment_counter): Likewise. Do not call init_fct for internal
30262 modules.
30263
30264 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30265
30266 [BZ #22028]
30267 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30268 (_MSUF_): Remove macro.
30269 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
30270 Likewise.
30271 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30272 (__REDIRFROM_X): New macro.
30273 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
30274 Likewise.
30275 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
30276 (__REDIRTO_X): Likewise.
30277 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
30278 arguments.
30279 (__MATH_REDIRCALL_2): Likewise.
30280 (__MATH_REDIRCALL_INTERNAL): Likewise.
30281 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30282 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
30283 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
30284 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30285 * math/test-finite-macros.c: New file.
30286 * math/Makefile (tests): Add test-finite-macros.
30287 (CFLAGS-test-finite-macros.c): New variable.
30288
30289 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
30290 Jeff Law <law@redhat.com>
30291
30292 [BZ #22025]
30293 Mangle NULL pointers in iconv/gconv.
30294 * iconv/gconv_cache.c (find_module): Demangle init_fct before
30295 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
30296 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
30297 is non-NULL before demangling the end_fct. Check for NULL
30298 end_fct after demangling.
30299 (__gconv_release_step): Demangle the end_fct before checking
30300 it for NULL. Remove assert on __shlibc_handle != NULL.
30301 (gen_steps): Don't check btowc_fct for NULL before mangling.
30302 Demangle init_fct before checking for NULL.
30303 (increment_counter): Likewise.
30304 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
30305 end_fct for NULL before mangling.
30306 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
30307 for NULL.
30308
30309 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
30310
30311 [BZ #21971]
30312 * locale/iso-639.def: add Morisyen.
30313
30314 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30315
30316 [BZ #21930]
30317 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
30318 (iszero): New C++ implementation that does not use
30319 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
30320 signaling nans are enabled, since __builtin_types_compatible_p
30321 is a C-only feature.
30322 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
30323 defined, include ieee754_float128.h for access to the union and
30324 member ieee854_float128.ieee.
30325 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
30326 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
30327 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30328 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
30329 options of test-math-zero on powerpc64le.
30330
30331 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
30332
30333 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30334 Change double to float.
30335
30336 2017-08-28 Joseph Myers <joseph@codesourcery.com>
30337
30338 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
30339 unconditional.
30340 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
30341 conditional code; define contents only for [LIBM_SVID_COMPAT].
30342
30343 2017-08-28 Florian Weimer <fweimer@redhat.com>
30344
30345 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
30346 (abi-lp64_be-options): Remove.
30347 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
30348 (abi-hard-options): Likewise.
30349 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
30350 (abi-o32_hard-options, abi-o32_soft_2008-options)
30351 (abi-o32_hard_2008-options, abi-n32_soft-options)
30352 (abi-n32_hard-options, abi-n32_soft_2008-options)
30353 (abi-n32_hard_2008-options, abi-n64_soft-options)
30354 (abi-n64_hard-options, abi-n64_soft_2008-options)
30355 (abi-n64_hard_2008-options): Likewise.
30356 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
30357 (abi-64-v1-options, abi-64-v2-options): Likewise.
30358 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
30359 (abi-64-options): Likewise.
30360 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
30361 (abi-64-options): Likewise.
30362 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
30363 (abi-64-options): Likewise.
30364 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
30365 (abi-64-options, abi-x32-options): Likewise.
30366
30367 2017-08-28 Florian Weimer <fweimer@redhat.com>
30368
30369 Store supported list of SYS_* system calls in the source tree.
30370 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
30371 (bits/syscall.h): Generate from list file.
30372 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
30373 [$(subdir) = misc] (tests): Add tst-syscall-list.
30374 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
30375 [$(subdir) = misc] (tst-syscall-list-macros.list)
30376 [$(subdir) = misc] (tst-syscall-list-nr.list)
30377 (tst-syscall-list-sys.list): Helper targets for new
30378 tst-syscall-list test.
30379 [$(subdir) = misc] (tst-syscall-list.out): Run test script
30380 tst-syscall-list.sh.
30381 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
30382 target. Do not include bits/syscall.d.
30383 [$(subdir) = misc] (generated): Do not update.
30384 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
30385 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
30386 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
30387 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
30388
30389 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
30390
30391 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
30392 (tst-cxa_atexit, tst-on_exit): Likewise.
30393 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
30394 tst-cxa_atexit, and tst-on_exit.
30395 * stdlib/tst-atexit-common.c: New file.
30396 * stdlib/tst-atexit.c: New file.
30397 * stdlib/tst-at_quick_exit.c: New file.
30398 * stdlib/tst-cxa_atexit.c: New file.
30399 * stdlib/tst-on_exit.c: New file.
30400
30401 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
30402
30403 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
30404 * mach/stack_chk_fail_local.c: New file.
30405 * hurd/stack_chk_fail_local.c: New file.
30406 * mach/Machrules ($(interface-library)-routines): Add
30407 stack_chk_fail_local.
30408 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
30409 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
30410 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
30411 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
30412 * hurd/Makefile (CFLAGS-hurdstartup.o,
30413 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
30414
30415 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
30416
30417 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
30418 (index_cpu_*, index_arch_*): Removed.
30419
30420 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
30421
30422 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
30423 Use uint64_t instead of unsigned long.
30424
30425 2017-08-25 Joseph Myers <joseph@codesourcery.com>
30426
30427 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
30428 [__HAVE_DISTINCT_FLOAT128].
30429
30430 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
30431 of <bits/math-finite.h>.
30432 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
30433 inclusion of <bits/math-finite.h>.
30434 * math/bits/math-finite.h (__REDIRTO_X): Do not define
30435 conditionally on [__MATH_DECLARING_LDOUBLE && defined
30436 __NO_LONG_DOUBLE_MATH].
30437 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
30438 (__MATH_REDIRCALL_2): Likewise.
30439 (__MATH_REDIRCALL_INTERNAL): Likewise.
30440 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30441 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
30442 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30443
30444 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
30445 Remove file.
30446 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
30447 Likewise.
30448 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
30449 Likewise.
30450 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
30451 Likewise.
30452 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
30453 Likewise.
30454 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
30455 Likewise.
30456 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30457 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30458 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30459 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30460 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
30461 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
30462 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
30463 w_sqrtf_compat-ppc32.
30464
30465 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30466
30467 * math/math.h [defined __cplusplus] (issignaling): In the long
30468 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
30469 is not defined. Call __issignaling, otherwise.
30470
30471 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30472
30473 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
30474 syscall definitions and replace __builtin_expect with __glibc_likely.
30475 * sysdeps/unix/syscall-template.S: Update comment about cancellable
30476 syscall.
30477 (SYSCALL_CANCELLABLE): Removedefinition
30478 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
30479 definition.
30480 (PSEUDO_END): Likewise.
30481 [IS_IN (libpthread)] (CENABLE): Likewise.
30482 [IS_IN (libpthread)] (CDISABLE): Likewise.
30483 [IS_IN (libc)] (CENABLE): Likewise.
30484 [IS_IN (libc)] (CENABLE): Likewise.
30485 [IS_IN (librt)] (CDISABLE): Likewise.
30486 [IS_IN (librt)] (CDISABLE): Likewise.
30487 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30488 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
30489 definition.
30490 (PSEUDO_END): Likewise.
30491 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
30492 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
30493 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30494 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30495 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30496 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30497 (CENABLE): Likewise.
30498 (CDISABLE): Likewise.
30499 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30500 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
30501 defintion.
30502 (PSEUDO_END): Likewise.
30503 [IS_IN (libpthread)] (CENABLE): Likewise.
30504 [IS_IN (libpthread)] (CDISABLE): Likewise.
30505 [IS_IN (libc)] (CENABLE): Likewise.
30506 [IS_IN (libc)] (CENABLE): Likewise.
30507 [IS_IN (librt)] (CDISABLE): Likewise.
30508 [IS_IN (librt)] (CDISABLE): Likewise.
30509 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30510 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
30511 definition.
30512 (PSEUDO_END): Likewise.
30513 [IS_IN (libpthread)] (CENABLE): Likewise.
30514 [IS_IN (libpthread)] (CDISABLE): Likewise.
30515 [IS_IN (libc)] (CENABLE): Likewise.
30516 [IS_IN (libc)] (CENABLE): Likewise.
30517 [IS_IN (librt)] (CDISABLE): Likewise.
30518 [IS_IN (librt)] (CDISABLE): Likewise.
30519 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30520 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
30521 definition.
30522 (PSEUDO_END): Likewise.
30523 [IS_IN (libpthread)] (CENABLE): Likewise.
30524 [IS_IN (libpthread)] (CDISABLE): Likewise.
30525 [IS_IN (libc)] (CENABLE): Likewise.
30526 [IS_IN (libc)] (CENABLE): Likewise.
30527 [IS_IN (librt)] (CDISABLE): Likewise.
30528 [IS_IN (librt)] (CDISABLE): Likewise.
30529 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30530 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
30531 definition.
30532 (PSEUDO_END): Likewise.
30533 [IS_IN (libpthread)] (CENABLE): Likewise.
30534 [IS_IN (libpthread)] (CDISABLE): Likewise.
30535 [IS_IN (libc)] (CENABLE): Likewise.
30536 [IS_IN (libc)] (CENABLE): Likewise.
30537 [IS_IN (librt)] (CDISABLE): Likewise.
30538 [IS_IN (librt)] (CDISABLE): Likewise.
30539 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30540 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
30541 definition.
30542 (PSEUDO_END): Likewise.
30543 [IS_IN (libpthread)] (CENABLE): Likewise.
30544 [IS_IN (libpthread)] (CDISABLE): Likewise.
30545 [IS_IN (libc)] (CENABLE): Likewise.
30546 [IS_IN (libc)] (CENABLE): Likewise.
30547 [IS_IN (librt)] (CDISABLE): Likewise.
30548 [IS_IN (librt)] (CDISABLE): Likewise.
30549 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30550 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
30551 definition.
30552 (PSEUDO_END): Likewise.
30553 [IS_IN (libpthread)] (CENABLE): Likewise.
30554 [IS_IN (libpthread)] (CDISABLE): Likewise.
30555 [IS_IN (libc)] (CENABLE): Likewise.
30556 [IS_IN (libc)] (CENABLE): Likewise.
30557 [IS_IN (librt)] (CDISABLE): Likewise.
30558 [IS_IN (librt)] (CDISABLE): Likewise.
30559 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30560 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
30561 Remove definition.
30562 (PSEUDO_END): Likewise.
30563 [IS_IN (libpthread)] (CENABLE): Likewise.
30564 [IS_IN (libpthread)] (CDISABLE): Likewise.
30565 [IS_IN (libc)] (CENABLE): Likewise.
30566 [IS_IN (libc)] (CENABLE): Likewise.
30567 [IS_IN (librt)] (CDISABLE): Likewise.
30568 [IS_IN (librt)] (CDISABLE): Likewise.
30569 (SINGLE_THREAD_P): Likewise.
30570 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
30571 definition.
30572 (PSEUDO_END): Likewise.
30573 [IS_IN (libpthread)] (CENABLE): Likewise.
30574 [IS_IN (libpthread)] (CDISABLE): Likewise.
30575 [IS_IN (libc)] (CENABLE): Likewise.
30576 [IS_IN (libc)] (CENABLE): Likewise.
30577 [IS_IN (librt)] (CDISABLE): Likewise.
30578 [IS_IN (librt)] (CDISABLE): Likewise.
30579 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30580 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
30581 definition.
30582 (PSEUDO_END): Likewise.
30583 [IS_IN (libpthread)] (CENABLE): Likewise.
30584 [IS_IN (libpthread)] (CDISABLE): Likewise.
30585 [IS_IN (libc)] (CENABLE): Likewise.
30586 [IS_IN (libc)] (CENABLE): Likewise.
30587 [IS_IN (librt)] (CDISABLE): Likewise.
30588 [IS_IN (librt)] (CDISABLE): Likewise.
30589 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30590 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
30591 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30592 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
30593 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
30594 definition.
30595 (PSEUDO_END): Likewise.
30596 [IS_IN (libpthread)] (CENABLE): Likewise.
30597 [IS_IN (libpthread)] (CDISABLE): Likewise.
30598 [IS_IN (libc)] (CENABLE): Likewise.
30599 [IS_IN (libc)] (CENABLE): Likewise.
30600 [IS_IN (librt)] (CDISABLE): Likewise.
30601 [IS_IN (librt)] (CDISABLE): Likewise.
30602 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30603 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
30604 definition.
30605 (PSEUDO_END): Likewise.
30606 [IS_IN (libpthread)] (CENABLE): Likewise.
30607 [IS_IN (libpthread)] (CDISABLE): Likewise.
30608 [IS_IN (libc)] (CENABLE): Likewise.
30609 [IS_IN (libc)] (CENABLE): Likewise.
30610 [IS_IN (librt)] (CDISABLE): Likewise.
30611 [IS_IN (librt)] (CDISABLE): Likewise.
30612 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30613 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
30614 definition.
30615 (PSEUDO_END): Likewise.
30616 [IS_IN (libpthread)] (CENABLE): Likewise.
30617 [IS_IN (libpthread)] (CDISABLE): Likewise.
30618 [IS_IN (libc)] (CENABLE): Likewise.
30619 [IS_IN (libc)] (CENABLE): Likewise.
30620 [IS_IN (librt)] (CDISABLE): Likewise.
30621 [IS_IN (librt)] (CDISABLE): Likewise.
30622 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30623 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
30624 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30625 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
30626 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
30627 definition.
30628 (PSEUDO_END): Likewise.
30629 [IS_IN (libpthread)] (CENABLE): Likewise.
30630 [IS_IN (libpthread)] (CDISABLE): Likewise.
30631 [IS_IN (libc)] (CENABLE): Likewise.
30632 [IS_IN (libc)] (CENABLE): Likewise.
30633 [IS_IN (librt)] (CDISABLE): Likewise.
30634 [IS_IN (librt)] (CDISABLE): Likewise.
30635 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30636 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
30637 definition.
30638 (PSEUDO_END): Likewise.
30639 [IS_IN (libpthread)] (CENABLE): Likewise.
30640 [IS_IN (libpthread)] (CDISABLE): Likewise.
30641 [IS_IN (libc)] (CENABLE): Likewise.
30642 [IS_IN (libc)] (CENABLE): Likewise.
30643 [IS_IN (librt)] (CDISABLE): Likewise.
30644 [IS_IN (librt)] (CDISABLE): Likewise.
30645 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30646
30647 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
30648
30649 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
30650
30651 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30652
30653 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30654
30655 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30656
30657 [BZ #21982]
30658 * string/stratcliff.c (do_test): Declare size, nchars, inner,
30659 middle and outer with size_t instead of int. Repleace %d and
30660 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
30661 "MAX (outer, nchars - 64)" to support unsigned outer and
30662 nchars. Also exit loop when outer == 0.
30663
30664 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30665
30666 * include/fcntl.h (__fcntl_nocancel): Remove definition.
30667 * include/signal.h (__sigsuspend_nocancel): Likewise.
30668 * include/time.h (__nanosleep_nocancel): Likewise.
30669 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
30670 * login/utmp_file.c: Include non cancellable syscall header.
30671 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
30672 prototype.
30673
30674 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30675
30676 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
30677 .byte sequences with AVX512F instructions.
30678 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
30679 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
30680 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
30681 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
30682 Likewise.
30683 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
30684 Likewise.
30685
30686 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
30687 Steve Ellcey <sellcey@cavium.com>
30688
30689 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
30690 Use PTR_REG macro in cmp instruction.
30691
30692 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30693
30694 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
30695 Change the return type of the ifunc resolver to match the return
30696 type of the target function.
30697
30698 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30699
30700 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
30701 (preadv64): Likewise.
30702 (pwrite64(: Likewise.
30703 (pwritev64): Likewise.
30704
30705 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
30706 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
30707 (LOAD_ARGS_0): Likewise.
30708 (LOAD_ARGS_1): Likewise.
30709 (LOAD_ARGS_2): Likewise.
30710 (LOAD_ARGS_3): Likewise.
30711 (LOAD_ARGS_4): Likewise.
30712 (LOAD_ARGS_5): Likewise.
30713 (LOAD_ARGS_6): Likewise.
30714 (LOAD_REGS_0): Likewise.
30715 (LOAD_REGS_1): Likewise.
30716 (LOAD_REGS_2): Likewise.
30717 (LOAD_REGS_3): Likewise.
30718 (LOAD_REGS_4): Likewise.
30719 (LOAD_REGS_5): Likewise.
30720 (LOAD_REGS_6): Likewise.
30721 (ASM_ARGS_0): Likewise.
30722 (ASM_ARGS_1): Likewise.
30723 (ASM_ARGS_2): Likewise.
30724 (ASM_ARGS_3): Likewise.
30725 (ASM_ARGS_4): Likewise.
30726 (ASM_ARGS_5): Likewise.
30727 (ASM_ARGS_6): Likewise.
30728 (LOAD_ARGS_TYPES_1): Likewise.
30729 (LOAD_ARGS_TYPES_2): Likewise.
30730 (LOAD_ARGS_TYPES_3): Likewise.
30731 (LOAD_ARGS_TYPES_4): Likewise.
30732 (LOAD_ARGS_TYPES_5): Likewise.
30733 (LOAD_ARGS_TYPES_6): Likewise.
30734 (LOAD_REGS_TYPES_1): Likewise.
30735 (LOAD_REGS_TYPES_2): Likewise.
30736 (LOAD_REGS_TYPES_3): Likewise.
30737 (LOAD_REGS_TYPES_4): Likewise.
30738 (LOAD_REGS_TYPES_5): Likewise.
30739 (LOAD_REGS_TYPES_6): Likewise.
30740 (TYPEFY): New define.
30741 (ARGIFY): Likewise.
30742 (internal_syscall0): Likewise.
30743 (internal_syscall1): Likewise.
30744 (internal_syscall2): Likewise.
30745 (internal_syscall3): Likewise.
30746 (internal_syscall4): Likewise.
30747 (internal_syscall5): Likewise.
30748 (internal_syscall6): Likewise.
30749 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
30750 (INTERNAL_SYSCALL_NCS): Remove define.
30751 (internal_syscall1): Add define.
30752
30753 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30754
30755 * math/w_remainder_compat.c: Remove duplicate inclusion of
30756 math-svid-compat.h.
30757 * math/w_remainderf_compat.c: Likewise.
30758 * math/w_remainderl_compat.c: Likewise.
30759
30760 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30761
30762 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30763
30764 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30765
30766 [BZ #21684]
30767 * math/tgmath.h (__floating_type): Simplify definitions.
30768 (__real_integer_type): New macro.
30769 (__complex_integer_type): Likewise.
30770 (__expr_is_real): Likewise.
30771 (__tgmath_real_type_sub): Update comment to describe handling of
30772 complex types.
30773 (__tgmath_complex_type_sub): New macro.
30774 (__tgmath_complex_type): Likewise.
30775 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30776 (__TGMATH_CF128): Use __expr_is_real.
30777 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
30778 __expr_is_real.
30779 (__TGMATH_BINARY_REAL_IMAG): Likewise.
30780 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
30781 * math/gen-tgmath-tests.py (Type.create_type): Create complex
30782 integer types.
30783
30784 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30785
30786 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
30787 macro.
30788 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
30789 alias.
30790 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
30791 Likewise.
30792
30793 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
30794 nanosleep_not_cancel with __nanosleep_nocancel.
30795 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
30796 (__nanosleep_nocancel): New macro.
30797 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
30798 function.
30799 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
30800 macro.
30801 (__nanosleep_nocancel): New prototype.
30802
30803 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
30804 pause_not_cancel with __pause_nocancel.
30805 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
30806 (__pause_nocancel): New macro.
30807 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
30808 macro.
30809 (__pause_nocancel): New prototype.
30810 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
30811
30812 2017-08-22 Martin Sebor <msebor@redhat.com>
30813
30814 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
30815 to return a pointer to the same type as the target function.
30816
30817 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30818
30819 [BZ #18822]
30820 [BZ #21986]
30821 * include/printf.h (__printf_fphex): Add attribute_hidden.
30822 (__guess_grouping): New prototype.
30823 * stdio-common/printf_fp.c (__guess_grouping): Removed.
30824 * stdio-common/reg-printf.c (__register_printf_specifier): Add
30825 libc_hidden_proto and libc_hidden_def.
30826 * stdlib/strfmon_l.c (__guess_grouping): Removed.
30827 (__vstrfmon_l): Remove the third argument passed to
30828 __guess_grouping.
30829
30830 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30831
30832 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
30833 definition for issignaling that does not rely on __MATH_TG,
30834 since __MATH_TG uses __builtin_types_compatible_p, which is only
30835 available in C mode.
30836 (CFLAGS-test-math-issignaling.cc): New variable.
30837 * math/Makefile [CXX] (tests): Add test-math-issignaling.
30838 * math/test-math-issignaling.cc: New test for C++ implementation
30839 of type-generic issignaling.
30840 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30841 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
30842 options of test-math-issignaling on powerpc64le.
30843
30844 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30845
30846 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30847 building libc.a.
30848 (hidden_proto): Likewise.
30849 (hidden_tls_proto): Likewise.
30850 (__hidden_proto): Likewise.
30851
30852 2017-08-22 Florian Weimer <fweimer@redhat.com>
30853
30854 math: Statically link tests of internal functionality.
30855 * math/Makefile (tests): Remove atest-exp, atest-sincos,
30856 atest-exp2.
30857 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
30858 (gmp-objs): Remove assignment.
30859 (atest-exp, atest-sincos, atest-exp2): Remove targets.
30860
30861 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30862
30863 [BZ #21987]
30864 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
30865 and copy to ...
30866 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
30867 ... here.
30868 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
30869 ... and here.
30870
30871 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
30872 variable definitions above inclusion of ../Rules.
30873
30874 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30875
30876 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
30877 case calling __builtin_unreachable.
30878
30879 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30880
30881 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
30882 __waitpid_nocancel.
30883 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
30884 (__waitpid_nocancel): New macro.
30885 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
30886 macro.
30887 (__waitpid_nocancel): Replace macro with a function.
30888 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
30889 function.
30890
30891 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
30892 __fcntl_nocancel.
30893 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
30894 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
30895
30896 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
30897 __writev_nocancel_nostatus.
30898 (write_call_graph): Likewise.
30899 (write_bb_counts): Likewise.
30900 * resolv/herror.c (herror): Likewise.
30901 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
30902 macro.
30903 (__writev_nocancel_nostatus): New macro.
30904 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
30905 Remove macro.
30906 (__writev_nocancel_nostatus): New function.
30907
30908 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30909
30910 Revert:
30911 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30912
30913 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30914 building libc.a.
30915 (hidden_proto): Likewise.
30916 (hidden_tls_proto): Likewise.
30917 (__hidden_proto): Likewise.
30918
30919 [BZ #21973]
30920 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
30921 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30922 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30923 Likewise.
30924 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
30925 Likewise.
30926 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30927 Likewise.
30928 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
30929 Likewise.
30930 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
30931 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30932 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30933 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30934 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30935 GLIBC_2.0 sqrtl symbol.
30936
30937 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
30938 [__USE_MISC] (_LIB_VERSION): Likewise.
30939 [__USE_MISC] (struct exception): Likewise.
30940 [__USE_MISC] (matherr): Likewise.
30941 [__USE_MISC] (DOMAIN): Likewise.
30942 [__USE_MISC] (SING): Likewise.
30943 [__USE_MISC] (OVERFLOW): Likewise.
30944 [__USE_MISC] (UNDERFLOW): Likewise.
30945 [__USE_MISC] (TLOSS): Likewise.
30946 [__USE_MISC] (PLOSS): Likewise.
30947 [__USE_MISC] (HUGE): Likewise.
30948 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
30949 * math/math-svid-compat.h: New file.
30950 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30951 and matherrl.
30952 * include/math.h [!_ISOMAC] (__matherr): Remove.
30953 * manual/arith.texi (FP Exceptions): Do not document matherr.
30954 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30955 (tests-internal): New variable.
30956 (install-lib): Do not add libieee.a.
30957 (non-lib.a): Likewise.
30958 (extra-objs): Do not add libieee.a and ieee-math.o.
30959 (CPPFLAGS-s_lib_version.c): Remove variable.
30960 ($(objpfx)libieee.a): Remove rule.
30961 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30962 * math/ieee-math.c: Remove.
30963 * math/libm-test-support.c (matherr): Remove.
30964 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30965 and license notices. Include <math-svid-compat.h> and
30966 <shlib-compat.h>.
30967 (matherr): Undefine as macro. Use compat_symbol_reference.
30968 (_LIB_VERSION): Likewise.
30969 * math/test-matherr-2.c: New file.
30970 * math/test-matherr-3.c: Likewise.
30971 * sysdeps/generic/math_private.h (__kernel_standard): Remove
30972 declaration.
30973 (__kernel_standard_f): Likewise.
30974 (__kernel_standard_l): Likewise.
30975 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
30976 <math_private.h>. Include <math-svid-compat.h>.
30977 (_LIB_VERSION): Undefine as macro.
30978 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
30979 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
30980 [LIBM_SVID_COMPAT], use compat_symbol.
30981 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
30982 <math_private.h>. Include <math-svid-compat.h>.
30983 (matherr): Undefine as macro.
30984 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
30985 compat_symbol.
30986 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
30987 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
30988 compat_symbol_reference.
30989 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
30990 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
30991 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
30992 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
30993 (MATHERR_D): Remove declaration.
30994 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
30995 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
30996 [LIBM_BUILD] (pmatherrf): Likewise.
30997 [LIBM_BUILD] (pmatherr): Likewise.
30998 [LIBM_BUILD] (pmatherrl): Likewise.
30999 (DOMAIN): Likewise.
31000 (SING): Likewise.
31001 (OVERFLOW): Likewise.
31002 (UNDERFLOW): Likewise.
31003 (TLOSS): Likewise.
31004 (PLOSS): Likewise.
31005 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
31006 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
31007 compat_symbol.
31008 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
31009 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
31010 compat_symbol.
31011 * math/lgamma-compat.h: Include <math-svid-compat.h>.
31012 * math/w_acos_compat.c: Likewise.
31013 * math/w_acosf_compat.c: Likewise.
31014 * math/w_acosh_compat.c: Likewise.
31015 * math/w_acoshf_compat.c: Likewise.
31016 * math/w_acoshl_compat.c: Likewise.
31017 * math/w_acosl_compat.c: Likewise.
31018 * math/w_asin_compat.c: Likewise.
31019 * math/w_asinf_compat.c: Likewise.
31020 * math/w_asinl_compat.c: Likewise.
31021 * math/w_atan2_compat.c: Likewise.
31022 * math/w_atan2f_compat.c: Likewise.
31023 * math/w_atan2l_compat.c: Likewise.
31024 * math/w_atanh_compat.c: Likewise.
31025 * math/w_atanhf_compat.c: Likewise.
31026 * math/w_atanhl_compat.c: Likewise.
31027 * math/w_cosh_compat.c: Likewise.
31028 * math/w_coshf_compat.c: Likewise.
31029 * math/w_coshl_compat.c: Likewise.
31030 * math/w_exp10_compat.c: Likewise.
31031 * math/w_exp10f_compat.c: Likewise.
31032 * math/w_exp10l_compat.c: Likewise.
31033 * math/w_exp2_compat.c: Likewise.
31034 * math/w_exp2f_compat.c: Likewise.
31035 * math/w_exp2l_compat.c: Likewise.
31036 * math/w_fmod_compat.c: Likewise.
31037 * math/w_fmodf_compat.c: Likewise.
31038 * math/w_fmodl_compat.c: Likewise.
31039 * math/w_hypot_compat.c: Likewise.
31040 * math/w_hypotf_compat.c: Likewise.
31041 * math/w_hypotl_compat.c: Likewise.
31042 * math/w_j0_compat.c: Likewise.
31043 * math/w_j0f_compat.c: Likewise.
31044 * math/w_j0l_compat.c: Likewise.
31045 * math/w_j1_compat.c: Likewise.
31046 * math/w_j1f_compat.c: Likewise.
31047 * math/w_j1l_compat.c: Likewise.
31048 * math/w_jn_compat.c: Likewise.
31049 * math/w_jnf_compat.c: Likewise.
31050 * math/w_jnl_compat.c: Likewise.
31051 * math/w_lgamma_main.c: Likewise.
31052 * math/w_lgamma_r_compat.c: Likewise.
31053 * math/w_lgammaf_main.c: Likewise.
31054 * math/w_lgammaf_r_compat.c: Likewise.
31055 * math/w_lgammal_main.c: Likewise.
31056 * math/w_lgammal_r_compat.c: Likewise.
31057 * math/w_log10_compat.c: Likewise.
31058 * math/w_log10f_compat.c: Likewise.
31059 * math/w_log10l_compat.c: Likewise.
31060 * math/w_log2_compat.c: Likewise.
31061 * math/w_log2f_compat.c: Likewise.
31062 * math/w_log2l_compat.c: Likewise.
31063 * math/w_log_compat.c: Likewise.
31064 * math/w_logf_compat.c: Likewise.
31065 * math/w_logl_compat.c: Likewise.
31066 * math/w_pow_compat.c: Likewise.
31067 * math/w_powf_compat.c: Likewise.
31068 * math/w_powl_compat.c: Likewise.
31069 * math/w_remainder_compat.c: Likewise.
31070 * math/w_remainderf_compat.c: Likewise.
31071 * math/w_remainderl_compat.c: Likewise.
31072 * math/w_scalb_compat.c: Likewise.
31073 * math/w_scalbf_compat.c: Likewise.
31074 * math/w_scalbl_compat.c: Likewise.
31075 * math/w_sinh_compat.c: Likewise.
31076 * math/w_sinhf_compat.c: Likewise.
31077 * math/w_sinhl_compat.c: Likewise.
31078 * math/w_sqrt_compat.c: Likewise.
31079 * math/w_sqrtf_compat.c: Likewise.
31080 * math/w_sqrtl_compat.c: Likewise.
31081 * math/w_tgamma_compat.c: Likewise.
31082 * math/w_tgammaf_compat.c: Likewise.
31083 * math/w_tgammal_compat.c: Likewise.
31084 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
31085 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
31086 * sysdeps/ieee754/k_standard.c: Likewise.
31087 * sysdeps/ieee754/k_standardf.c: Likewise.
31088 * sysdeps/ieee754/k_standardl.c: Likewise.
31089 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
31090 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
31091 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
31092 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
31093 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
31094 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
31095 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
31096 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
31097 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
31098 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
31099 Likewise.
31100 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
31101 Likewise.
31102 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
31103 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
31104 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
31105 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
31106
31107 2017-08-21 Florian Weimer <fweimer@redhat.com>
31108
31109 [BZ #21864]
31110 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
31111 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
31112 Move before inclusion of ../Rules.
31113
31114 2017-08-21 Florian Weimer <fweimer@redhat.com>
31115
31116 [BZ #21972]
31117 * assert/assert.h (assert): Use static_cast (bool) for C++.
31118 Use the ternary operator in the warning branch for GNU C.
31119 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
31120 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
31121 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
31122 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
31123 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
31124
31125 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31126
31127 [BZ #18822]
31128 * sysdeps/unix/sysv/linux/x86_64/init-first.c
31129 (__syscall_clock_gettime): Add attribute_hidden.
31130 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
31131 (__start_context): Likewise.
31132
31133 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31134
31135 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31136 building libc.a.
31137 (hidden_proto): Likewise.
31138 (hidden_tls_proto): Likewise.
31139 (__hidden_proto): Likewise.
31140
31141 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31142
31143 * include/libc-symbols.h (attribute_hidden): Enable hidden
31144 visibility in libc.a compiled with PIE.
31145
31146 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31147
31148 [BZ #18822]
31149 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
31150 Add attribute_hidden.
31151
31152 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31153
31154 [BZ #21864]
31155 * Makerules (all-nonlib): Add $(others-extras).
31156 * catgets/Makefile (others-extras): New.
31157 * elf/Makefile (others-extras): Likewise.
31158 * nss/Makefile (others-extras): Likewise.
31159
31160 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31161
31162 [BZ #18822]
31163 * csu/libc-start.c (__libc_multiple_libcs): Removed.
31164 * elf/dl-open.c: Include <libc-internal.h>.
31165 (__libc_multiple_libcs): Removed.
31166 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
31167 <hp-timing.h>.
31168 * include/libc-internal.h (__libc_multiple_libcs): New.
31169 * misc/sbrk.c: Include <libc-internal.h>.
31170 (__libc_multiple_libcs): Removed.
31171
31172 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31173
31174 [BZ #18822]
31175 * grp/initgroups.c (__nss_group_database): Removed.
31176 (__nss_initgroups_database): Likewise.
31177 * nscd/gai.c (__nss_hosts_database): Likewise.
31178 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
31179 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
31180 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
31181 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
31182 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
31183 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
31184 attribute_hidden.
31185 * nss/nsswitch.c (__nss_database_custom): Define only if
31186 USE_NSCD is defined.
31187 (__nss_configure_lookup): Use __nss_database_custom only if
31188 USE_NSCD is defined.
31189 * nss/nsswitch.h (__nss_database_custom): Declare only if
31190 USE_NSCD is defined. Add attribute_hidden.
31191 (__nss_setent): Add attribute_hidden.
31192 (__nss_endent): Likewise.
31193 (__nss_getent_r): Likewise.
31194 (__nss_getent): Likewise.
31195 (DEFINE_DATABASE): Declare __nss_##arg##_database.
31196
31197 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31198
31199 [BZ #18822]
31200 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
31201 libc_hidden_proto and libc_hidden_def.
31202
31203 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31204
31205 [BZ #18822]
31206 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
31207 Add libc_hidden_proto.
31208 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
31209 Add libc_hidden_def.
31210
31211 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31212
31213 [BZ #21974]
31214 * gmon/Makefile (routines): Remove bb_init_func and
31215 bb_exit_func.
31216 (elide-routines.os): Removed.
31217 * gmon/bb_exit_func.c: Likewise.
31218 * gmon/bb_init_func.c: Likewise.
31219 * include/sys/gmon.h (__bb): Likewise.
31220 (__bb_init_func): Likewise.
31221 (__bb_exit_func): Likewise.
31222 * sysdeps/alpha/bb_init_func.S: Likewise.
31223
31224 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31225
31226 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
31227 * include/setjmp.h (____longjmp_chk): Here. Add
31228 attribute_hidden.
31229
31230 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
31231
31232 [BZ #18822]
31233 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
31234 attribute_hidden.
31235 (__strspn_sse2): Likewise.
31236
31237 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31238
31239 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
31240 (close_not_cancel_no_status): Likewise.
31241 (__close_nocancel): New macro.
31242 (__close_nocancel_nostatus): Likewise.
31243 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
31244 macro.
31245 (close_not_cancel): Likewise.
31246 (close_not_cancel_no_status): Likewise.
31247 (__close_nocancel): New prototype.
31248 (__close_nocancel_nostatus): New function.
31249 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
31250 * catgets/open_catalog.c (__open_catalog): Replace
31251 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
31252 * gmon/gmon.c (write_gmon): Likewise.
31253 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
31254 * intl/loadmsgcat.c (close): Likewise.
31255 * io/ftw.c (open_dir_stream): Likewise.
31256 (ftw_startup): Likewise.
31257 * libio/fileops.c (_IO_file_open): Likewise.
31258 (_IO_file_close_mmap): Likewise.
31259 (_IO_file_close): Likewise.
31260 * libio/iopopen.c (_IO_dup2): Likewise.
31261 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31262 * locale/loadlocale.c (_nl_load_locale): Likewise.
31263 * login/utmp_file.c (pututline_file): Likewise.
31264 (endutent_file): Likewise.
31265 * misc/daemon.c (daemon): Likewise.
31266 * nscd/nscd_getai.c (__nscd_getai): Likewise.
31267 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31268 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31269 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31270 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
31271 * nscd/nscd_helper.c (open_socket): Likewise.
31272 (__nscd_open_socket): Likewise.
31273 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
31274 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
31275 (__nscd_innetgr): Likewise.
31276 * nss/nss_db/db-open.c (internal_setent): Likewise.
31277 * resolv/res-close.c (__res_iclose): Likewise.
31278 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
31279 * sysdeps/posix/closedir.c (__closedir): Likewise.
31280 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
31281 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31282 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31283 (opendir_tail): Likewise.
31284 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31285 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
31286 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
31287 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
31288 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31289 (gethostid): Likewise.
31290 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31291 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31292 Likewise.
31293 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31294 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
31295 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31296 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31297 Likewise.
31298 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
31299 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
31300 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31301 Likewise.
31302 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
31303 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31304 Likewise.
31305 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31306 Likewise.
31307 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31308 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31309 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31310 __close_nocancel.
31311
31312 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
31313 (openat_not_cancel_3): Likewise.
31314 (openat64_not_cancel_3): Likewise).
31315 (openat_not_cancel_3): Likewise).
31316 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
31317 macro.
31318 (openat_not_cancel_3): Likewise.
31319 (openat64_not_cancel): Likewise.
31320 (openat64_not_cancel_3): Likewise.
31321 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
31322 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
31323 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
31324 __open{64}_nocancel.
31325 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31326 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31327 * sysdeps/posix/opendir.c (__opendirat): Likewise.
31328
31329 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31330
31331 [BZ #18822]
31332 * include/argz.h (__argz_create_sep): New function prototype.
31333 (__argz_append): Likewise.
31334 (__argz_add): Likewise.
31335 (__argz_add_sep): Likewise.
31336 (__argz_delete): Likewise.
31337 (__argz_insert): Likewise.
31338 (__argz_replace): Likewise.
31339 * string/argz.h (__argz_create_sep): Removed.
31340 (__argz_append): Likewise.
31341 (__argz_add): Likewise.
31342 (__argz_add_sep): Likewise.
31343 (__argz_delete): Likewise.
31344 (__argz_insert): Likewise.
31345 (__argz_replace): Likewise.
31346
31347 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31348
31349 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
31350 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
31351 (GNU_PROPERTY_STACK_SIZE): Likewie.
31352 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
31353 (GNU_PROPERTY_LOPROC): Likewise.
31354 (GNU_PROPERTY_HIPROC): Likewise.
31355 (GNU_PROPERTY_LOUSER): Likewise.
31356 (GNU_PROPERTY_HIUSER): Likewise.
31357 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
31358 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
31359 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
31360 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
31361 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
31362 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
31363 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
31364 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
31365 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
31366 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
31367 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
31368 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
31369 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
31370 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
31371 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
31372 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
31373 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
31374 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
31375 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
31376 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
31377 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
31378 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
31379 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
31380
31381 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31382
31383 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
31384 in C++ mode.
31385
31386 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31387
31388 [BZ #21930]
31389 * math/math.h (isinf): Check if in C or C++ mode before using
31390 __builtin_types_compatible_p, since this is a C mode feature.
31391
31392 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31393
31394 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
31395 (__write_nocancel): New macro.
31396 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
31397 Rewrite as a function prototype.
31398 (write_not_cancel): Remove macro.
31399 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
31400 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
31401 (write_gmon): Likewise.
31402 * libio/fileops.c (_IO_new_file_write): Likewise.
31403 * login/utmp_file.c (pututline_file): Likewise.
31404 (updwtmp_file): Likewise.
31405 * stdio-common/psiginfo.c (psiginfo): Likewise.
31406 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31407 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31408 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31409 Likewise.
31410 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31411 Likewise.
31412
31413 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
31414 (__read_nocancel): New macro.
31415 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31416 __read_nocancel.
31417 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
31418 macro.
31419 (__read_nocancel): New prototype.
31420 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
31421 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
31422 with __read_nocancel.
31423 * intl/loadmsgcat.c (read): Likewise.
31424 * libio/fileops.c (_IO_file_read): Likewise.
31425 * locale/loadlocale.c (_nl_load_locale): Likewise.
31426 * login/utmp_file.c (getutent_r_file): Likewise.
31427 (internal_getut_r): Likewise.
31428 (getutline_r_file): Likewise.
31429 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31430 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
31431 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31432 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31433 Likewise.
31434 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
31435 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31436 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31437 Likewise.
31438 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31439 Likewise.
31440 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31441 Likewise.
31442 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31443 Likewise.
31444 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31445
31446 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31447
31448 [BZ #21966]
31449 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
31450 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
31451 usable.
31452
31453 2017-08-17 DJ Delorie <dj@redhat.com>
31454
31455 * bug17079.c: Update to new test harness.
31456 * test-digits-dots.c: Likewise.
31457 * test-netdb.c: Likewise.
31458 * tst-field.c: Likewise.
31459 * tst-nss-getpwent.c: Likewise.
31460 * tst-nss-static.c: Likewise.
31461 * tst-nss-test1.c: Likewise.
31462 * tst-nss-test2.c: Likewise.
31463 * tst-nss-test3.c: Likewise.
31464 * tst-nss-test4.c: Likewise.
31465 * tst-nss-test5.c: Likewise.
31466
31467 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31468
31469 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
31470 (open_not_cancel_2): Likewise.
31471 (open_nocancel): New macro.
31472 (open64_nocancel): Likewise.
31473 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
31474 (open_not_cancel_2): Likewise.
31475 (__open_nocancel): New prototype.
31476 (__open64_nocancel): Likewise.
31477 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31478 __open_nocancel.
31479 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
31480 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
31481 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
31482 with __open_nocancel.
31483 * csu/check_fds.c (check_one_fd): Likewise.
31484 * gmon/gmon.c (write_gmon): Likewise.
31485 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
31486 * intl/loadmsgcat.c (open): Likewise.
31487 * libio/fileops.c (_IO_file_open): Likewise.
31488 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31489 * locale/loadlocale.c (_nl_load_locale): Likewise.
31490 * login/utmp_file.c (setutent_file): Likewise.
31491 * misc/daemon.c (daemon): Likewise.
31492 * nss/nss_db/db-open.c (internal_setent): Likewise.
31493 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31494 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
31495 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31496 (__opendir): Likewise.
31497 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31498 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31499 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31500 (gethostid): Likewise.
31501 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31502 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31503 Likewise.
31504 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31505 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
31506 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31507 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31508 Likewise.
31509 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31510 Likewise.
31511 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31512 Likewise.
31513 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
31514 Likewise.
31515 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31516 Likewise.
31517 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31518 Likewise.
31519 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31520 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31521
31522 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
31523
31524 * benchtests/bench-skeleton.c (main): Add support for
31525 latency benchmarking.
31526 * benchtests/scripts/bench.py: Add support for latency benchmarking.
31527
31528 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
31529
31530 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
31531 the startup object.
31532
31533 2017-08-17 Florian Weimer <fweimer@redhat.com>
31534
31535 * include/sys/socket.h (__opensock): Remove internal_function.
31536 * socket/opensock.c (__opensock): Likewise.
31537 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
31538
31539 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31540
31541 [BZ #21944]
31542 * signal/bits/types/__sigval_t.h: New file.
31543 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
31544 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
31545 and define sigval_t using __sigval_t.
31546 * include/bits/types/__sigval_t.h: New file.
31547 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
31548 instead of <bits/types/__sigval_t.h>.
31549 (struct sigevent): Use __sigval_t instead of sigval_t.
31550 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
31551 instead of <bits/types/__sigval_t.h>.
31552 (siginfo_t): Use __sigval_t instead of sigval_t.
31553 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
31554 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31555 (struct sigevent): Use __sigval_t instead of sigval_t.
31556 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
31557 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31558 (siginfo_t): Use __sigval_t instead of sigval_t.
31559 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
31560
31561 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31562
31563 * NEWS: Remove "[Add new features here]" for 2.27.
31564
31565 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31566
31567 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
31568 libc.so.
31569
31570 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31571
31572 * NEWS: Mention x86-64 FMA optimization.
31573
31574 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31575
31576 [BZ #21912]
31577 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31578 Add e_expf-fma.
31579 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
31580 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
31581 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
31582
31583 2017-08-16 Andreas Schwab <schwab@suse.de>
31584
31585 [BZ #16750]
31586 CVE-2009-5064
31587 * elf/ldd.bash.in: Never run file directly.
31588
31589 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
31590
31591 [BZ #21955]
31592 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
31593 (L(SP_INF_0)): Likewise.
31594
31595 2017-08-15 Florian Weimer <fweimer@redhat.com>
31596
31597 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
31598 run-built-tests.
31599
31600 2017-08-15 Florian Weimer <fweimer@redhat.com>
31601
31602 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
31603 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
31604 BROKEN_THREAD_SIGNALS code.
31605 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
31606 request_list): Remove caller_pid member used for
31607 BROKEN_THREAD_SIGNALS.
31608 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
31609 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31610 Remove BROKEN_THREAD_SIGNALS support.
31611 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
31612 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
31613
31614 2017-08-15 Florian Weimer <fweimer@redhat.com>
31615
31616 * gmon/Makefile (tests): Add tst-gmon.
31617 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
31618 Set.
31619 (tests-special): Add tst-gmon-prof.out.
31620 (tst-gmon.out): Depend on clean-tst-gmon-data.
31621 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
31622 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
31623 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
31624 startup object.
31625 * aclocal.m4 (GPROF): Set and substitute.
31626 * config.amke.in (GPROF): Set.
31627 * configure: Regenerate.
31628
31629 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
31630
31631 * elf/elf.h A (NT_PPC_TAR): New macro.
31632 (NT_PPC_PPR): Likewise.
31633 (NT_PPC_DSCR): Likewise.
31634 (NT_PPC_EBB): Likewise.
31635 (NT_PPC_PMU): Likewise.
31636 (NT_PPC_TM_CGPR): Likewise.
31637 (NT_PPC_TM_CFPR): Likewise.
31638 (NT_PPC_TM_CVMX): Likewise.
31639 (NT_PPC_TM_CVSX): Likewise.
31640 (NT_PPC_TM_SPR): Likewise.
31641 (NT_PPC_TM_CTAR): Likewise.
31642 (NT_PPC_TM_CPPR): Likewise.
31643 (NT_PPC_TM_CDSCR): Likewise.
31644
31645 2017-08-15 Florian Weimer <fweimer@redhat.com>
31646
31647 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
31648 regparm (2) instead of internal_function.
31649 (_MCOUNT_DECL): Adjust.
31650
31651 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
31652
31653 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
31654 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
31655
31656 2017-08-14 Joseph Myers <joseph@codesourcery.com>
31657
31658 * conform/data/sys/wait.h-data (si_value): Do not expect for
31659 XPG42.
31660
31661 2017-08-14 Florian Weimer <fweimer@redhat.com>
31662
31663 [BZ #21962]
31664 NSS: Create stubs for accidentally exported lookup functions.
31665 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
31666 Remove declaration.
31667 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
31668 (ether_hostton): Call __nss_ethers_lookup2 instead.
31669 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
31670 (ether_ntohost): Call __nss_ethers_lookup2 instead.
31671 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
31672 (setup): Call __nss_netgroup_lookup2 instead.
31673 * nss/Makefile (routines): Add compat-lookup.
31674 * nss/Versions (GLIBC_2.27): Add symbol version.
31675 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
31676 (DB_COMPAT_FCT): Remove.
31677 * nss/compat-lookup.c: New file.
31678 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
31679 from databases.def.
31680 * nss/service-lookup.c (NO_COMPAT): Remove definition.
31681 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
31682 (netname2user): Call __nss_publickey_lookup2 instead.
31683 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
31684 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
31685 instead.
31686
31687 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31688 Sergei Trofimovich <slyfox@inbox.ru>
31689
31690 [BZ #21908]
31691 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
31692 Rename to MMAP2_PAGE_UNIT.
31693 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
31694 __OFF_T_MATCHES_OFF64_T is not defined.
31695 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
31696 uint64_t.
31697 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
31698 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
31699
31700 2017-08-14 Florian Weimer <fweimer@redhat.com>
31701
31702 i386: Do not set internal_function.
31703 * config.h.in (USE_REGPARMS, internal_function): Remove.
31704 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
31705 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
31706
31707 2017-08-14 Florian Weimer <fweimer@redhat.com>
31708
31709 * elf/dl-init.c (_dl_init): Remove internal_function.
31710 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
31711 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
31712
31713 2017-08-14 Florian Weimer <fweimer@redhat.com>
31714
31715 * elf/rtld.c (_dl_start): Remove internal_function.
31716 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
31717 _dl_start.
31718
31719 2017-08-14 Florian Weimer <fweimer@redhat.com>
31720
31721 * elf/dl-fini.c (_dl_fini): Remove internal_function
31722 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
31723
31724 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
31725
31726 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
31727 (bit_cpu_SHSTK): Likewise.
31728 (index_cpu_IBT): Likewise.
31729 (index_cpu_SHSTK): Likewise.
31730 (reg_IBT): Likewise.
31731 (reg_SHSTK): Likewise.
31732 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31733 Handle index_cpu_IBT and index_cpu_SHSTK.
31734
31735 2017-08-14 Mike FABIAN <mfabian@redhat.com>
31736
31737 [BZ #19982]
31738 * po/fr.po: Fix spelling mistake.
31739
31740 2017-08-13 Florian Weimer <fweimer@redhat.com>
31741
31742 * elf/dl-addr.c (_dl_addr): Remove internal_function.
31743 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
31744 (_dl_catch_error, _dl_receive_error): Likewise.
31745 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
31746 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
31747 (_dl_deallocate_tls): Likewise.
31748 * include/dlfcn.h (_dl_addr): Likewise.
31749 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
31750 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
31751 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
31752 Likewise.
31753
31754 2017-08-13 Florian Weimer <fweimer@redhat.com>
31755
31756 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
31757 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
31758 internal_function.
31759 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
31760
31761 2017-08-13 Florian Weimer <fweimer@redhat.com>
31762
31763 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
31764 internal_function.
31765 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
31766 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
31767 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
31768 internal_function from _dl_make_stack_executable_hook member.
31769 (_dl_make_stack_executable): Remove internal_function.
31770 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
31771 Likewise.
31772 * sysdeps/unix/sysv/linux/dl-execstack.c
31773 (_dl_make_stack_executable): Likewise.
31774
31775 2017-08-13 Florian Weimer <fweimer@redhat.com>
31776
31777 * sysdeps/unix/sysv/linux/netlinkaccess.h
31778 (__netlink_assert_response): Remove internal_function.
31779 * sysdeps/unix/sysv/linux/netlink_assert_response.c
31780 (__netlink_assert_response): Likewise.
31781
31782 2017-08-13 Florian Weimer <fweimer@redhat.com>
31783
31784 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
31785 internal_function.
31786 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
31787
31788 2017-08-13 Florian Weimer <fweimer@redhat.com>
31789
31790 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
31791 internal_function.
31792 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
31793 * inet/netgroup.h (__internal_setnetgrent)
31794 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31795 * inet/getnetgrent_r.c (__internal_setnetgrent)
31796 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31797 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
31798 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
31799 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
31800 * nss/nsswitch.h (db_lookup_function): Likewise.
31801
31802 2017-08-13 Florian Weimer <fweimer@redhat.com>
31803
31804 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
31805 Remove internal_function.
31806 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
31807 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
31808 message argument on the stack.
31809 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
31810 Likeweise.
31811
31812 2017-08-12 Mike FABIAN <mfabian@redhat.com>
31813
31814 Adapt test case data to the changes in the thousands
31815 separators.
31816
31817 [BZ #20756]
31818 * localedata/tst-langinfo.sh: Adapt test case data.
31819 * stdlib/tst-strfmon_l.c: Likewise.
31820 * stdlib/tst-strtod4.c: Likewise.
31821 * stdlib/tst-strtod5i.c: Likewise.
31822
31823 2017-08-11 Florian Weimer <fweimer@redhat.com>
31824
31825 [BZ #21242]
31826 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
31827 Suppress pedantic warning resulting from statement expression.
31828 (__ASSERT_FUNCTION): Add missing __extension__.
31829
31830 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
31831
31832 * benchtests/bench-memmove-large.c: Print output in JSON
31833 format.
31834 * benchtests/bench-memmove.c: Likewise.
31835
31836 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
31837 * benchtests/bench-memchr.c (do_one_test): Likewise.
31838 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
31839 * benchtests/bench-memcpy.c (do_one_test): Likewise.
31840 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
31841 * benchtests/bench-memmove.c (do_one_test): Likewise.
31842 * benchtests/bench-memset-large.c (do_one_test): Likewise.
31843 * benchtests/bench-memset.c (do_one_test): Likewise.
31844 * benchtests/bench-string.h (test_init): Remove memsets.
31845
31846 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31847
31848 * manual/lang.texi
31849 (Computing the Width of an Integer Data Type): Rename section to
31850 "Width of an Integer Type". Remove inaccurate statement regarding
31851 lack of C language facilities for determining width of integer
31852 types, and reorder content to improve flow and context of
31853 discussion.
31854
31855 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31856
31857 * lang.texi (va_copy): Change standard from ISO to C99.
31858 (__va_copy): Add standard and header annotation.
31859 Update description for clarity of origins and current use.
31860
31861 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31862
31863 [BZ #21941]
31864 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
31865 xssqrtqp requires operands to be in Vector Registers
31866 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
31867 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
31868 (__ieee754_sqrtf128): Likewise.
31869
31870 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
31871
31872 * sysdeps/aarch64/memcmp.S (memcmp):
31873 Rewrite of optimized memcmp.
31874
31875 2017-08-10 Florian Weimer <fweimer@redhat.com>
31876
31877 Introduce ld.so exceptions.
31878 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
31879 (_dl_exception_create, _dl_exception_create_format)
31880 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
31881 (_dl_catch_exception): Declare.
31882 (_dl_catch_error): Update comment.
31883 * elf/dl-error-skeleton.c (struct catch): Replace objname,
31884 errstring, malloced members with exception member.
31885 (_dl_out_of_memory): Remove.
31886 (fatal_error): New function, extracted from _dl_signal_error.
31887 (_dl_signal_exception, _dl_signal_cexception): New functions.
31888 (_dl_signal_error): Call _dl_exception_create to allocate an
31889 exception object.
31890 (_dl_catch_exception): New function, based on _dl_catch_error.
31891 (_dl_catch_error): Implement using _dl_catch_exception.
31892 * elf/dl-exception.c: New file.
31893 * elf/Makefile (dl-routines): Add dl-exception.
31894 (elide-routines.os): Likewise.
31895 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
31896 _dl_exception_create_format, _dl_exception_free.
31897 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
31898 _dl_signal_exception.
31899 * elf/dl-lookup.c (make_string): Remove.
31900 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
31901 _dl_signal_cexception, _dl_exception_free.
31902 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
31903 _dl_signal_exception.
31904 * elf/dl-sym.c (do_sym): Likewise.
31905 * elf/dl-version.c (make_string): Remove.
31906 (match_symbol): Use _dl_exception_create_format,
31907 _dl_signal_cexception, _dl_exception_free.
31908 (_dl_check_map_versions): Likewise.
31909 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
31910 _dl_catch_exception.
31911 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
31912 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
31913 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
31914 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
31915 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
31916 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
31917 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
31918 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
31919 Likewise.
31920 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
31921 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
31922 (ld.so): Likewise.
31923 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
31924 (ld.so): Likewise.
31925 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
31926 Likewise.
31927 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
31928 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
31929 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
31930 Likewise.
31931 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
31932 Likewise.
31933 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
31934
31935 2017-08-10 Florian Weimer <fweimer@redhat.com>
31936
31937 * inet/net-internal.h (__inet6_scopeid_pton): Remove
31938 attribute_hidden, internal_function.
31939 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
31940 internal_function.
31941
31942 2017-08-10 Florian Weimer <fweimer@redhat.com>
31943
31944 * malloc/malloc.c (get_max_fast): Reimplement as an inline
31945 function which calls __builtin_unreachable.
31946
31947 2017-08-10 Mike FABIAN <mfabian@redhat.com>
31948
31949 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31950 Indian monetary formatting
31951 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31952 test cases.
31953
31954 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31955
31956 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31957 Fix typo in comment.
31958
31959 [BZ #21928]
31960 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31961 PTRACE_SEIZE_DEVEL): Remove.
31962 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31963 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31964 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31965 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31966 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31967
31968 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31969
31970 * posix/bits/types.h (__qaddr_t): Remove.
31971
31972 [BZ #21457]
31973 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
31974 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31975 __glibc_reserved1.
31976 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
31977 (ucontext_t): Use __ctx with uc_flags.
31978 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
31979 (__ctxt): Likewise.
31980 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31981 __glibc_reserved1.
31982 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
31983 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31984 __glibc_reserved1.
31985 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
31986 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31987 __glibc_reserved1.
31988 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
31989 macro.
31990 (ucontext_t): Use __ctx with uc_flags.
31991 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
31992 (ucontext_t): Use __ctx with uc_flags.
31993 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
31994 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
31995 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
31996 (ucontext_t): Use __ctx with uc_flags.
31997 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
31998 undefine further down.
31999 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32000 __glibc_reserved1.
32001 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
32002 undefine further down.
32003 (ucontext_t): Use __ctx with uc_flags.
32004 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
32005 undefine further down.
32006 (ucontext_t): Use __ctx with uc_flags.
32007 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
32008 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
32009 Rename uc_pad to __glibc_reserved1.
32010 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
32011 undefine further down.
32012 (ucontext_t): Use __ctx with uc_flags.
32013 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
32014 further down.
32015 (ucontext_t): Use __ctx with uc_flags.
32016 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
32017 __ctx with uc_flags.
32018 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
32019 (ucontext_t): Use __ctx with uc_flags.
32020 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
32021 __ctx with uc_flags.
32022
32023 2017-08-09 Florian Weimer <fweimer@redhat.com>
32024
32025 [BZ #21932]
32026 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
32027 before early return.
32028
32029 2017-08-09 Andreas Schwab <schwab@suse.de>
32030
32031 [BZ #21041]
32032 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
32033 renamed alias.
32034
32035 [BZ #21041]
32036 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
32037 tst-compat-forwarder.
32038 (modules-names): Add tst-compat-forwarder-mod.
32039 ($(objpfx)tst-compat-forwarder): Depend on
32040 $(objpfx)tst-compat-forwarder-mod.so.
32041 * nptl/tst-compat-forwarder.c: New file.
32042 * nptl/tst-compat-forwarder-mod.c: New file.
32043
32044 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
32045
32046 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
32047 comments.
32048
32049 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
32050 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
32051 memcpy_falkor.
32052 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
32053 Bump.
32054 (__libc_ifunc_impl_list): Add __memcpy_falkor.
32055 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
32056 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
32057 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
32058 Add falkor.
32059 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
32060 New macro.
32061
32062 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32063
32064 [BZ #759]
32065 * manual/setjmp.texi (getcontex): Document uc_stack value
32066 compatibility differences.
32067
32068 2017-08-08 Joseph Myers <joseph@codesourcery.com>
32069
32070 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
32071 (old_malloc_hook): Likewise.
32072 (old_memalign_hook): Likewise.
32073 (old_realloc_hook): Likewise.
32074 (struct hdr): Likewise.
32075 (flood): Likewise.
32076 (freehook): Likewise.
32077 (mallochook): Likewise.
32078 (memalignhook): Likewise.
32079 (reallochook): Likewise.
32080 (mprobe): Likewise.
32081 * malloc/mtrace.c (mallwatch): Likewise.
32082 (tr_old_free_hook): Likewise.
32083 (tr_old_malloc_hook): Likewise.
32084 (tr_old_realloc_hook): Likewise.
32085 (tr_old_memalign_hook): Likewise.
32086 (tr_where): Likewise.
32087 (lock_and_info): Likewise.
32088 (tr_freehook): Likewise.
32089 (tr_mallochook): Likewise.
32090 (tr_reallochook): Likewise.
32091 (tr_memalignhook): Likewise.
32092 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
32093 * misc/mmap.c (__mmap): Likewise.
32094 * misc/mmap64.c (__mmap64): Likewise.
32095 * misc/mprotect.c (__mprotect): Likewise.
32096 * misc/msync.c (msync): Likewise.
32097 * misc/munmap.c (__munmap): Likewise.
32098 * posix/posix_madvise.c (posix_madvise): Likewise.
32099 * socket/send.c (__send): Likewise.
32100 * socket/sendto.c (__sendto): Likewise.
32101 * socket/setsockopt.c (__setsockopt): Likewise.
32102 * string/memcmp.c (__ptr_t): Remove macro.
32103 (MEMCMP): Use void * instead of ptr_t.
32104 * string/memrchr.c (__ptr_t): Remove macro.
32105 (__memrchr): Use void * instead of ptr_t.
32106 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
32107 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
32108 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
32109 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
32110 * sysdeps/mach/msync.c (msync): Likewise.
32111 * sysdeps/mach/munmap.c (__munmap): Likewise.
32112 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
32113 Likewise.
32114 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32115 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
32116 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
32117 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
32118 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
32119 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
32120 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
32121 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
32122 Likewise.
32123 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
32124 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
32125 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
32126 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
32127 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
32128 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
32129 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
32130 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
32131 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
32132 Likewise.
32133 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
32134 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
32135 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
32136 (MEMCMP): Use void * instead of ptr_t.
32137 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
32138 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
32139
32140 2017-08-08 Florian Weimer <fweimer@redhat.com>
32141
32142 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
32143 return statement.
32144
32145 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
32146
32147 [BZ #21913]
32148 * csu/libc-tls.c: Include <startup.h> first.
32149 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
32150 * elf/dl-tunables.c: Include <startup.h> first.
32151 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
32152 * sysdeps/generic/startup.h: New file.
32153 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
32154 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
32155 (I386_USE_SYSENTER): New. Defined to 0.
32156
32157 2017-08-08 Andreas Schwab <schwab@suse.de>
32158
32159 [BZ #21041]
32160 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
32161 * nptl/pt-system.c (system): Likewise.
32162
32163 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32164
32165 [BZ #21780]
32166 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
32167 EOPNOTSUPP.
32168 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
32169 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
32170 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
32171 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
32172 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
32173 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
32174 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
32175
32176 2017-08-07 Joseph Myers <joseph@codesourcery.com>
32177
32178 [BZ #21899]
32179 * bits/sigaction.h (struct sigaction): Define sa_handler and
32180 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
32181 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32182 [__USE_XOPEN_EXTENDED].
32183 (SA_RESTART): Likewise.
32184 (SA_NODEFER): Likewise.
32185 (SA_RESETHAND): Likewise.
32186 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
32187 (struct sigaction): Define sa_handler and sa_sigaction using union
32188 also for [__USE_XOPEN_EXTENDED].
32189 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32190 [__USE_XOPEN_EXTENDED].
32191 (SA_RESTART): Likewise.
32192 (SA_NODEFER): Likewise.
32193 (SA_RESETHAND): Likewise.
32194 * sysdeps/unix/sysv/linux/bits/sigaction.h
32195 (struct sigaction): Define sa_handler and sa_sigaction using union
32196 also for [__USE_XOPEN_EXTENDED].
32197 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32198 [__USE_XOPEN_EXTENDED].
32199 (SA_RESTART): Likewise.
32200 (SA_NODEFER): Likewise.
32201 (SA_RESETHAND): Likewise.
32202 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
32203 (struct sigaction): Define sa_handler and sa_sigaction using union
32204 also for [__USE_XOPEN_EXTENDED].
32205 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32206 [__USE_XOPEN_EXTENDED].
32207 (SA_RESTART): Likewise.
32208 (SA_NODEFER): Likewise.
32209 (SA_RESETHAND): Likewise.
32210 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
32211 (struct sigaction): Define sa_handler and sa_sigaction using union
32212 also for [__USE_XOPEN_EXTENDED].
32213 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32214 [__USE_XOPEN_EXTENDED].
32215 (SA_RESTART): Likewise.
32216 (SA_NODEFER): Likewise.
32217 (SA_RESETHAND): Likewise.
32218 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
32219 (struct sigaction): Define sa_handler and sa_sigaction using union
32220 also for [__USE_XOPEN_EXTENDED].
32221 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32222 [__USE_XOPEN_EXTENDED].
32223 (SA_RESTART): Likewise.
32224 (SA_NODEFER): Likewise.
32225 (SA_RESETHAND): Likewise.
32226 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
32227 (struct sigaction): Define sa_handler and sa_sigaction using union
32228 also for [__USE_XOPEN_EXTENDED].
32229 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32230 [__USE_XOPEN_EXTENDED].
32231 (SA_RESTART): Likewise.
32232 (SA_NODEFER): Likewise.
32233 (SA_RESETHAND): Likewise.
32234 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
32235 (struct sigaction): Define sa_handler and sa_sigaction using union
32236 also for [__USE_XOPEN_EXTENDED].
32237 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32238 [__USE_XOPEN_EXTENDED].
32239 (SA_RESTART): Likewise.
32240 (SA_NODEFER): Likewise. Define directly rather than as alias.
32241 (SA_RESETHAND): Likewise.
32242 (SA_INTERRUPT): Define only for [__USE_MISC].
32243 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
32244 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
32245 [__USE_MISC].
32246 (SA_STACK): Define only for [__USE_MISC].
32247 * sysdeps/unix/sysv/linux/tile/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 (SA_NOPTRACE): Define only for [__USE_MISC].
32256
32257 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
32258 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
32259 (struct catalog_info): Likewise.
32260 * inet/htontest.c (lo): Likewise.
32261 (foo): Likewise.
32262 * inet/inet_lnaof.c (inet_lnaof): Likewise.
32263 * inet/inet_net.c (inet_network): Likewise.
32264 * inet/inet_netof.c (inet_netof): Likewise.
32265 * inet/rcmd.c (__ivaliduser): Likewise.
32266 (iruserok): Likewise.
32267 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
32268 * locale/programs/locale-spec.c (locale_special): Likewise.
32269 * nis/nis_findserv.c (struct findserv_req): Likewise.
32270 (__nis_findfastest_with_timeout): Likewise.
32271 * nss/test-netdb.c (test_network): Likewise.
32272 * resolv/inet_neta.c (inet_neta): Likewise.
32273 * resolv/ns_date.c (ns_datetosecs): Likewise.
32274 (SECS_PER_DAY): Likewise.
32275 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
32276 Likewise.
32277 * resolv/res_comp.c (__putlong): Likewise.
32278 (__putshort): Likewise.
32279 (_getlong): Likewise.
32280 (_getshort): Likewise.
32281 * resolv/res_debug.c (p_time): Likewise.
32282 (precsize_ntoa): Likewise.
32283 (precsize_aton): Likewise.
32284 (latlon2ul): Likewise.
32285 (loc_aton): Likewise.
32286 (loc_ntoa): Likewise.
32287 * resolv/res_hconf.c (struct netaddr): Likewise.
32288 (_res_hconf_reorder_addrs): Likewise.
32289 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
32290 (clnttcp_control): Likewise.
32291 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
32292 (clntudp_control): Likewise.
32293 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
32294 (clntunix_control): Likewise.
32295 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
32296 * sunrpc/rpc/auth.h (union des_block): Likewise.
32297 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
32298 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
32299 (xdrrec_create): Likewise.
32300 (xdrrec_endofrecord): Likewise.
32301 (flush_out): Likewise.
32302 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
32303 (xdrstdio_putlong): Likewise.
32304 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
32305 Likewise.
32306
32307 * misc/sys/cdefs.h (__long_double_t): Remove.
32308 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
32309 instead of __long_double_t,
32310 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
32311
32312 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
32313
32314 * benchtests/scripts/compare_strings.py: Avoid display error when
32315 running on a text terminal.
32316
32317 * benchtests/scripts/compare_strings.py (main): Add an
32318 optional -base option.
32319 (process_results): New argument base_func.
32320
32321 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
32322 hardcoding memcpy.
32323 * benchtests/bench-memcpy-large.c (test_name): Likewise.
32324 * benchtests/bench-memcpy-random.c (test_name): Likewise.
32325
32326 2017-08-07 Andreas Schwab <schwab@suse.de>
32327
32328 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
32329 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
32330 * intl/Makefile ($(objpfx)tst-gettext.out)
32331 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
32332 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
32333 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
32334 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
32335 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
32336 * posix/Makefile ($(objpfx)globtest.out)
32337 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
32338 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
32339 ($(objpfx)tst-printf.out): Likewise.
32340 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
32341 ($(objpfx)tst-setcontext3.out): Likewise.
32342
32343 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
32344
32345 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32346 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
32347 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
32348 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
32349 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
32350 and mptan-fma.
32351 (CFLAGS-doasin-fma.c): New.
32352 (CFLAGS-dosincos-fma.c): Likewise.
32353 (CFLAGS-e_asin-fma.c): Likewise.
32354 (CFLAGS-e_atan2-fma.c): Likewise.
32355 (CFLAGS-e_exp-fma.c): Likewise.
32356 (CFLAGS-e_log-fma.c): Likewise.
32357 (CFLAGS-e_pow-fma.c): Likewise.
32358 (CFLAGS-halfulp-fma.c): Likewise.
32359 (CFLAGS-mpa-fma.c): Likewise.
32360 (CFLAGS-mpatan-fma.c): Likewise.
32361 (CFLAGS-mpatan2-fma.c): Likewise.
32362 (CFLAGS-mpexp-fma.c): Likewise.
32363 (CFLAGS-mplog-fma.c): Likewise.
32364 (CFLAGS-mpsqrt-fma.c): Likewise.
32365 (CFLAGS-mptan-fma.c): Likewise.
32366 (CFLAGS-s_atan-fma.c): Likewise.
32367 (CFLAGS-sincos32-fma.c): Likewise.
32368 (CFLAGS-slowexp-fma.c): Likewise.
32369 (CFLAGS-slowpow-fma.c): Likewise.
32370 (CFLAGS-s_sin-fma.c): Likewise.
32371 (CFLAGS-s_tan-fma.c): Likewise.
32372 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
32373 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
32374 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
32375 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
32376 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
32377 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
32378 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
32379 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
32380 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
32381 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
32382 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
32383 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
32384 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
32385 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
32386 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
32387 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
32388 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
32389 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
32390 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
32391 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
32392 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
32393 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
32394 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
32395 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
32396 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32397 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32398 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32399 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
32400 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32401 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32402 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32403
32404 2017-08-04 Joseph Myers <joseph@codesourcery.com>
32405
32406 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
32407 (min_of_type_f): New macro.
32408 (min_of_type_): Likewise.
32409 (min_of_type_l): Likewise.
32410 (min_of_type_f128): Likewise.
32411 (min_of_type): Define using __MATH_TG and taking an expression
32412 argument.
32413 (math_check_force_underflow): Pass expression instead of type to
32414 min_of_type.
32415 (math_check_force_underflow_nonneg): Likewise.
32416
32417 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32418
32419 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32420 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
32421 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
32422
32423 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32424
32425 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32426 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
32427 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
32428 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
32429 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
32430 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
32431 memcpy_chk-nonshared, mempcpy_chk-nonshared,
32432 memmove_chk-nonshared and memset_chk-nonshared
32433 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
32434 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
32435 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
32436 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
32437 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
32438 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
32439 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
32440 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
32441 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
32442 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
32443 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
32444 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
32445 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
32446 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
32447 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
32448 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
32449 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
32450 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
32451 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
32452 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
32453 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
32454 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
32455 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
32456 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
32457 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
32458 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
32459 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
32460 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
32461 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
32462 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
32463 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
32464 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
32465 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
32466 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32467 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32468 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
32469 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
32470 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
32471 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
32472 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
32473 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
32474 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
32475 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
32476 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
32477 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
32478 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
32479 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
32480 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
32481 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
32482 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
32483 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
32484 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
32485 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
32486 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
32487 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
32488 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
32489 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
32490 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
32491 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
32492 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
32493 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
32494 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
32495 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
32496 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
32497 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
32498 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
32499 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
32500 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
32501 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
32502 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
32503 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
32504 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
32505 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
32506 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
32507 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
32508 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
32509 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
32510 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
32511 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
32512 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
32513 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
32514 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
32515 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
32516 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
32517 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
32518 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
32519 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
32520 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
32521 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
32522 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32523 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
32524 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
32525 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
32526 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32527 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
32528 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
32529 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
32530 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
32531 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
32532 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
32533 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
32534 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
32535 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
32536 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
32537 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
32538 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
32539 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
32540 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
32541
32542 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32543
32544 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
32545 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
32546 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
32547 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
32548 svml_d_log2_core-sse2, svml_d_log4_core-sse,
32549 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
32550 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
32551 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
32552 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
32553 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
32554 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
32555 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
32556 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
32557 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
32558 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
32559 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
32560 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
32561 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
32562 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
32563 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
32564 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
32565 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
32566 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
32567 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
32568 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
32569 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
32570 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
32571 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
32572 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
32573 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
32574 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
32575 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
32576 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
32577 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
32578 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
32579 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
32580 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
32581 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
32582 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
32583 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
32584 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
32585 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
32586 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
32587 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
32588 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
32589 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
32590 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
32591 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
32592 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
32593 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
32594 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
32595 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
32596 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
32597 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
32598 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
32599 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
32600 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
32601 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
32602 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
32603 ...
32604 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
32605 Don't include <sysdep.h> nor <init-arch.h>.
32606 (_ZGVbN2v_cos): Removed.
32607 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
32608 ...
32609 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
32610 Don't include <sysdep.h> nor <init-arch.h>.
32611 (_ZGVdN4v_cos): Removed.
32612 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
32613 ...
32614 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
32615 Don't include <sysdep.h> nor <init-arch.h>.
32616 (_ZGVeN8v_cos): Removed.
32617 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
32618 ...
32619 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
32620 Don't include <sysdep.h> nor <init-arch.h>.
32621 (_ZGVbN2v_exp): Removed.
32622 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
32623 ...
32624 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
32625 Don't include <sysdep.h> nor <init-arch.h>.
32626 (_ZGVdN4v_exp): Removed.
32627 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
32628 ...
32629 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
32630 Don't include <sysdep.h> nor <init-arch.h>.
32631 (_ZGVeN8v_exp): Removed.
32632 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
32633 ...
32634 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
32635 Don't include <sysdep.h> nor <init-arch.h>.
32636 (_ZGVbN2v_log): Removed.
32637 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
32638 ...
32639 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
32640 Don't include <sysdep.h> nor <init-arch.h>.
32641 (_ZGVdN4v_log): Removed.
32642 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
32643 ...
32644 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
32645 Don't include <sysdep.h> nor <init-arch.h>.
32646 (_ZGVeN8v_log): Removed.
32647 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
32648 ...
32649 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
32650 Don't include <sysdep.h> nor <init-arch.h>.
32651 (_ZGVbN2vv_pow): Removed.
32652 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
32653 ...
32654 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
32655 Don't include <sysdep.h> nor <init-arch.h>.
32656 (_ZGVdN4vv_pow): Removed.
32657 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
32658 ...
32659 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
32660 Don't include <sysdep.h> nor <init-arch.h>.
32661 (_ZGVeN8vv_pow): Removed.
32662 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
32663 ...
32664 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
32665 Don't include <sysdep.h> nor <init-arch.h>.
32666 (_ZGVbN2v_sin): Removed.
32667 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
32668 ...
32669 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
32670 Don't include <sysdep.h> nor <init-arch.h>.
32671 (_ZGVbN4v_sin): Removed.
32672 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
32673 ...
32674 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
32675 Don't include <sysdep.h> nor <init-arch.h>.
32676 (_ZGVbN8v_sin): Removed.
32677 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
32678 ...
32679 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
32680 Don't include <sysdep.h> nor <init-arch.h>.
32681 (_ZGVbN2vvv_sincos): Removed.
32682 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
32683 ...
32684 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
32685 Don't include <sysdep.h> nor <init-arch.h>.
32686 (_ZGVdN4vvv_sincos): Removed.
32687 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
32688 ...
32689 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
32690 Don't include <sysdep.h> nor <init-arch.h>.
32691 (_ZGVeN8vvv_sincos): Removed.
32692 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
32693 ...
32694 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
32695 Don't include <sysdep.h> nor <init-arch.h>.
32696 (_ZGVeN16v_cosf): Removed.
32697 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
32698 ...
32699 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
32700 Don't include <sysdep.h> nor <init-arch.h>.
32701 (_ZGVbN4v_cosf): Removed.
32702 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
32703 ...
32704 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
32705 Don't include <sysdep.h> nor <init-arch.h>.
32706 (_ZGVdN8v_cosf): Removed.
32707 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
32708 ...
32709 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
32710 Don't include <sysdep.h> nor <init-arch.h>.
32711 (_ZGVeN16v_expf): Removed.
32712 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
32713 ...
32714 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
32715 Don't include <sysdep.h> nor <init-arch.h>.
32716 (_ZGVbN4v_expf): Removed.
32717 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
32718 ...
32719 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
32720 Don't include <sysdep.h> nor <init-arch.h>.
32721 (_ZGVdN8v_expf): Removed.
32722 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
32723 ...
32724 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
32725 Don't include <sysdep.h> nor <init-arch.h>.
32726 (_ZGVeN16v_logf): Removed.
32727 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
32728 ...
32729 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
32730 Don't include <sysdep.h> nor <init-arch.h>.
32731 (_ZGVbN4v_logf): Removed.
32732 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
32733 ...
32734 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
32735 Don't include <sysdep.h> nor <init-arch.h>.
32736 (_ZGVdN8v_logf): Removed.
32737 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
32738 ...
32739 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
32740 Don't include <sysdep.h> nor <init-arch.h>.
32741 (_ZGVeN16vv_powf): Removed.
32742 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
32743 ...
32744 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
32745 Don't include <sysdep.h> nor <init-arch.h>.
32746 (_ZGVbN4vv_powf): Removed.
32747 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
32748 ...
32749 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
32750 Don't include <sysdep.h> nor <init-arch.h>.
32751 (_ZGVdN8vv_powf): Removed.
32752 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
32753 ...
32754 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
32755 Don't include <sysdep.h> nor <init-arch.h>.
32756 (_ZGVeN16vvv_sincosf): Removed.
32757 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
32758 ...
32759 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
32760 Don't include <sysdep.h> nor <init-arch.h>.
32761 (_ZGVbN4vvv_sincosf): Removed.
32762 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
32763 ...
32764 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
32765 Don't include <sysdep.h> nor <init-arch.h>.
32766 (_ZGVdN8vvv_sincosf): Removed.
32767 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
32768 ...
32769 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
32770 Don't include <sysdep.h> nor <init-arch.h>.
32771 (_ZGVeN16v_sinf): Removed.
32772 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
32773 ...
32774 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
32775 Don't include <sysdep.h> nor <init-arch.h>.
32776 (_ZGVbN4v_sinf): Removed.
32777 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
32778 ...
32779 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
32780 Don't include <sysdep.h> nor <init-arch.h>.
32781 (_ZGVdN8v_sinf): Removed.
32782
32783 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32784
32785 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32786 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
32787 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
32788 s_rint-sse4_1 and s_rintf-sse4_1.
32789 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
32790 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
32791 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
32792 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
32793 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
32794 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
32795 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
32796 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
32797 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
32798 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
32799 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
32800 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32801 (__ceil): Removed.
32802 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
32803 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
32804 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32805 (__ceilf): Removed.
32806 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
32807 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
32808 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32809 (__floor): Removed.
32810 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
32811 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
32812 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32813 (__floorf): Removed.
32814 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
32815 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
32816 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32817 (__nearbyint): Removed.
32818 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
32819 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
32820 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32821 (__nearbyintf): Removed.
32822 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
32823 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
32824 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32825 (__rint): Removed.
32826 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
32827 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
32828 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32829 (__rintf): Removed.
32830
32831 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32832
32833 * sysdeps/i386/start.S (_start): Check Check PIC instead of
32834 SHARED. Avoid dynamic relocation against main in static PIE.
32835
32836 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32837
32838 [BZ #21815]
32839 * elf/Makefile (CFLAGS-tst-prelink.c): New.
32840 (LDFLAGS-tst-prelink): Likewise.
32841
32842 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32843
32844 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
32845 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
32846 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
32847 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
32848 (INTERNAL_SYSCALL_NCS): Likewise.
32849 (LOADARGS_1): Likewise.
32850 (LOADARGS_5): Likewise.
32851 (RESTOREARGS_1): Likewise.
32852 (RESTOREARGS_5): Likewise.
32853
32854 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32855
32856 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
32857 (MEMPCPY_SYMBOL): Likewise.
32858 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
32859 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
32860 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
32861 in libc.a.
32862 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32863 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
32864 Likewise.
32865 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
32866 (__hidden_ver1): Don't use in libc.a.
32867 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
32868 (__mempcpy): Don't create a weak alias in libc.a.
32869 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
32870 libc.a.
32871 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
32872 (__hidden_ver1): Don't use in libc.a.
32873
32874 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32875
32876 * config.make.in (have-insert): New.
32877 * configure.ac (libc_cv_insert): New. Set to yes if linker
32878 supports INSERT in linker script.
32879 (AC_SUBST(libc_cv_insert): New.
32880 * configure: Regenerated.
32881 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
32882 if $(have-insert) == yes.
32883
32884 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32885
32886 * elf/Makefile (tests): Add vismain only if
32887 $(have-protected-data) == yes.
32888 (tests-pie): Likewise.
32889
32890 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32891
32892 [BZ #21871]
32893 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
32894 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
32895
32896 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32897
32898 [BZ #21790]
32899 * sysdeps/i386/i586/memset.S
32900 (__memset_zero_constant_len_parameter): Removed.
32901 * sysdeps/i386/i686/memset.S
32902 (__memset_zero_constant_len_parameter): Likewise.
32903 * sysdeps/i386/i686/multiarch/memset_chk.S
32904 (__memset_zero_constant_len_parameter): Likewise.
32905 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
32906 Likewise.
32907
32908 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32909
32910 * stdlib/getentropy.c (getentropy): Change return type to int.
32911
32912 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32913
32914 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
32915
32916 2017-08-03 Joseph Myers <joseph@codesourcery.com>
32917
32918 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
32919 u_intN_t.
32920 * math/s_nexttowardf.c (__nexttowardf): Likewise.
32921 * sysdeps/generic/math_private.h (ieee_double_shape_type):
32922 Likewise.
32923 (ieee_float_shape_type): Likewise.
32924 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
32925 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
32926 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
32927 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32928 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
32929 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
32930 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
32931 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
32932 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
32933 Likewise.
32934 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
32935 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
32936 (__ieee754_yn): Likewise.
32937 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32938 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32939 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
32940 Likewise.
32941 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
32942 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
32943 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
32944 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
32945 (__erfc): Likewise.
32946 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
32947 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
32948 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
32949 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32950 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32951 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32952 Likewise.
32953 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32954 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32955 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32956 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32957 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32958 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32959 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32960 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32961 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32962 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32963 (__issignaling): Likewise.
32964 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32965 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32966 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32967 Likewise.
32968 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32969 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32970 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
32971 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
32972 Likewise.
32973 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
32974 Likewise.
32975 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
32976 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
32977 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
32978 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
32979 (__erfcf): Likewise.
32980 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
32981 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
32982 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
32983 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
32984 Likewise.
32985 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
32986 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
32987 Likewise.
32988 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
32989 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
32990 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
32991 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
32992 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
32993 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
32994 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
32995 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
32996 Likewise.
32997 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
32998 Likewise.
32999 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
33000 Likewise.
33001 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
33002 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
33003 Likewise.
33004 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
33005 Likewise.
33006 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
33007 (__ieee754_ynl): Likewise.
33008 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
33009 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
33010 Likewise.
33011 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
33012 Likewise.
33013 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
33014 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
33015 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
33016 Likewise.
33017 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
33018 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
33019 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
33020 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
33021 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
33022 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
33023 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
33024 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
33025 Likewise.
33026 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
33027 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
33028 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
33029 Likewise.
33030 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
33031 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
33032 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
33033 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
33034 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
33035 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
33036 Likewise.
33037 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
33038 Likewise.
33039 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
33040 Likewise.
33041 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
33042 Likewise.
33043 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
33044 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
33045 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
33046 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
33047 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
33048 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
33049 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
33050 Likewise.
33051 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
33052 Likewise.
33053 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
33054 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
33055 Likewise.
33056 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
33057 (__ieee754_remainderl): Likewise.
33058 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
33059 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
33060 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
33061 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
33062 Likewise.
33063 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
33064 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
33065 Likewise.
33066 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
33067 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
33068 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
33069 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
33070 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
33071 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
33072 Likewise.
33073 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
33074 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
33075 (__ieee754_y0l): Likewise.
33076 (pzero): Likewise.
33077 (qzero): Likewise.
33078 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
33079 (__ieee754_y1l): Likewise.
33080 (pone): Likewise.
33081 (qone): Likewise.
33082 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
33083 (__ieee754_ynl): Likewise.
33084 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
33085 (__ieee754_lgammal_r): Likewise.
33086 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
33087 Likewise.
33088 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
33089 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
33090 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
33091 (__erfcl): Likewise.
33092 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
33093 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
33094 Likewise.
33095 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
33096 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
33097 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
33098 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
33099 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
33100 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
33101 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
33102 Likewise.
33103 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
33104 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
33105 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
33106 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
33107 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
33108 Likewise.
33109 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
33110 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
33111 Likewise.
33112 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
33113 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
33114 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
33115 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
33116 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
33117
33118 2017-08-03 Florian Weimer <fweimer@redhat.com>
33119
33120 [BZ #21885]
33121 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
33122 on memory allocation failure.
33123
33124 2017-08-03 Alan Modra <amodra@gmail.com>
33125
33126 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
33127 tst-tlsopt-powerpc.c with function name change and no test harness.
33128 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
33129 Call tls_get_addr_opt_test.
33130 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
33131 (modules-names): Add mod-tlsopt-powerpc.
33132 (mod-tlsopt-powerpc.so-no-z-defs): Define.
33133 (tst-tlsopt-powerpc): Depend on .so.
33134 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
33135 define. Expand use in TLS_GD and TLS_LD.
33136
33137 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
33138
33139 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
33140 function.
33141 * sysdeps/posix/shm_open.c: Include <pthread.h>.
33142
33143 2017-08-02 Joseph Myers <joseph@codesourcery.com>
33144
33145 [BZ #21686]
33146 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
33147 comparing size with that of double.
33148 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33149 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33150 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33151 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33152 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33153 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
33154 unsigned __int128 types.
33155
33156 2017-08-02 Steve Ellcey <sellcey@cavium.com>
33157
33158 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
33159 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
33160 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
33161 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
33162 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
33163
33164 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33165
33166 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
33167
33168 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33169
33170 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
33171 of SHARED.
33172 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
33173 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
33174 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
33175 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
33176 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
33177 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
33178 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
33179
33180 2017-08-02 Joseph Myers <joseph@codesourcery.com>
33181
33182 [BZ #21685]
33183 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
33184 bit-field expressions passed to sizeof or typeof.
33185 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33186 (__TGMATH_F128): Likewise.
33187 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33188 (__TGMATH_CF128): Likewise.
33189 (__TGMATH_UNARY_REAL_ONLY): Likewise.
33190 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
33191 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
33192 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
33193 (__TGMATH_BINARY_REAL_ONLY): Likewise.
33194 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33195 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33196 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33197 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33198 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
33199 (__TGMATH_UNARY_REAL_IMAG): Likewise.
33200 (__TGMATH_UNARY_IMAG): Likewise.
33201 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
33202 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33203 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
33204 type.
33205 (define_vars_for_type): Handle bit_field type specially.
33206 (Tests.__init__): Declare structure with bit-field element.
33207
33208 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33209
33210 [BZ #21791]
33211 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
33212 (MEMCPY_CHK): Define only if SHARED is defined.
33213 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
33214 Likewise.
33215 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
33216 Likewise.
33217
33218 See ChangeLog.18 for earlier changes.