]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
scripts/check-obsolete-constructs.py: Process all headers as UTF-8.
[thirdparty/glibc.git] / ChangeLog
1 2019-03-14 Zack Weinberg <zackw@panix.com>
2
3 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
4 Specify encoding="utf-8" when opening headers to check.
5
6 2019-03-13 Joseph Myers <joseph@codesourcery.com>
7
8 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
9 version to 5.0.
10 (Context.checkout_tar): Handle variable major version for Linux
11 kernel.
12
13 2019-03-13 Florian Weimer <fweimer@redhat.com>
14
15 [BZ #24047]
16 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
17
18 2019-03-13 Zack Weinberg <zackw@panix.com>
19
20 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
21 Move to stdlib.
22 * include/inttypes.h: Adjust to match.
23 * include/stdint.h: New wrapper.
24
25 2019-03-13 Zack Weinberg <zackw@panix.com>
26
27 * scripts/check-obsolete-constructs.py: New test script.
28 * scripts/check-installed-headers.sh: Remove tests for
29 obsolete typedefs, superseded by check-obsolete-constructs.py.
30 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
31 as a special test. Update commentary.
32 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
33 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
34 Update commentary.
35 * posix/sys/types.h (__u_intN_t): Remove.
36 (u_int8_t): Typedef using __uint8_t.
37 (u_int16_t): Typedef using __uint16_t.
38 (u_int32_t): Typedef using __uint32_t.
39 (u_int64_t): Typedef using __uint64_t.
40
41 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
42
43 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
44 call _dl_procinfo.
45 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
46 Ignore types other than AT_HWCAP.
47 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
48 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
49 Likewise.
50 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
51 in the case of falling back to generic output mechanism.
52 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
53 Likewise.
54
55 2019-03-12 Florian Weimer <fweimer@redhat.com>
56
57 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
58
59 2019-03-12 Florian Weimer <fweimer@redhat.com>
60
61 [BZ #24047]
62 resolv: Enable full ICMP errors for UDP DNS sockets
63 * resolv/res_enable_icmp.c: New file.
64 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
65 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
66 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
67 socket.
68
69 2019-03-11 Mao Han <han_mao@c-sky.com>
70
71 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
72 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
73
74 2019-03-11 Mao Han <han_mao@c-sky.com>
75
76 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
77 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
78 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
79
80 2019-03-11 Mao Han <han_mao@c-sky.com>
81
82 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
83 directly.
84 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
85 definition.
86
87 2019-03-11 Mao Han <han_mao@c-sky.com>
88
89 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
90 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
91 in mcontext_t
92
93 2019-03-08 Mike FABIAN <mfabian@redhat.com>
94
95 [BZ #24307]
96 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
97 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
98 Unicode 12.0.0.
99 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
100 * localedata/unicode-gen/PropList.txt: Likewise.
101 * localedata/unicode-gen/UnicodeData.txt: Likewise.
102 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
103 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
104 * localedata/charmaps/UTF-8: Regenerate.
105 * localedata/locales/i18n_ctype: Likewise.
106 * localedata/locales/tr_TR: Likewise.
107 * localedata/locales/translit_circle: Likewise.
108 * localedata/locales/translit_cjk_compat: Likewise.
109 * localedata/locales/translit_combining: Likewise.
110 * localedata/locales/translit_compat: Likewise.
111 * localedata/locales/translit_font: Likewise.
112 * localedata/locales/translit_fraction: Likewise.
113
114 2019-03-07 Joseph Myers <joseph@codesourcery.com>
115
116 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
117 than after operators.
118 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
119 (setitimer_locked): Likewise.
120 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
121 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
122 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
123 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
124 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
125 (PPC_CPU_SUPPORTED): Likewise.
126 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
127 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
128 (stat_overflow): Likewise.
129 (statfs_overflow): Likewise.
130 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
131 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
132 (eq_ttyname_r): Likewise.
133 (run_chroot_tests): Likewise.
134
135 2019-03-07 Florian Weimer <fweimer@redhat.com>
136
137 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
138 header check.
139
140 2019-03-07 Martin Liska <mliska@suse.cz>
141
142 * math/Makefile: Change location where math-vector-fortran.h is
143 installed.
144 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
145 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
146 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
147 * scripts/check-installed-headers.sh: Skip Fortran header files.
148 * scripts/check-wrapper-headers.py: Likewise.
149
150 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
151
152 * nptl/nptl-init.c (__have_futex_clock_realtime,
153 __have_futex_clock_realtime): Remove definition.
154 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
155 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
156 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
157 __ASSUME_FUTEX_CLOCK_REALTIME support.
158 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
159 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
160 * sysdeps/unix/sysv/linux/kernel-features.h
161 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
162 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
163 Adjust comment.
164
165 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
166
167 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
168 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
169 __GI___wcscpy and wcscpy.
170
171 2019-03-04 Florian Weimer <fweimer@redhat.com>
172
173 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
174 declaration.
175 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
176 defined.
177
178 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
179
180 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
181 * sysdeps/s390/s390-32/sysdep.h: Likewise.
182
183 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
184
185 [BZ #24162]
186 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
187 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
188
189 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
190
191 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
192 tests.
193 (do_test): Likewise.
194 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
195 (do_test_call_varg): Likewise.
196 (do_test_call_rarg): Likewise.
197 * sysdeps/ieee754/ldbl-opt/Makefile
198 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
199 tst-nldbl-error.
200 ($(objpfx)tst-nldbl-warn.c): New rule.
201 ($(objpfx)tst-nldbl-error.c): Likewise.
202 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
203 New variables.
204
205 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
206
207 [BZ #23984]
208 * include/bits/error-ldbl.h: New file.
209 * include/error.h: Include stdarg.h. Declare internal functions
210 __error_internal and __error_at_line_internal.
211 * misc/Makefile (headers): Add bits/error-ldbl.h.
212 * misc/bits/error-ldbl.h: New file.
213 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
214 avoid the inclusion of bits/error.h.
215 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
216 and __nldbl_error_at_line.
217 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
218 (__nldbl_error, __ndlbl_error_at_line): New functions.
219 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
220 Redirect error and error_at_line.
221 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
222 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
223 Likewise.
224 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
225 Likewise.
226 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
227 Likewise.
228 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
229 Likewise.
230 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
231 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
232 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
233
234 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
235
236 [BZ #23984]
237 * include/bits/err-ldbl.h: New file.
238 * include/err.h: Add prototypes for the internal functions:
239 __vwarnx_internal and __vwarn_internal.
240 * misc/Makefile (headers): Add bits/err-ldbl.h.
241 * misc/bits/err-ldbl.h: New file.
242 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
243 defined, i.e.: when -mlong-double-64 is in use.
244 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
245 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
246 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
247 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
248 (VA_CALL): New macro.
249 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
250 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
251 functions.
252 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
253 declare prototypes for the new functions.
254 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
255 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
256 Likewise.
257 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
258 Likewise.
259 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
260 Likewise.
261 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
262 Likewise.
263 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
264 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
265 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
266
267 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
268
269 * sysdeps/ieee754/ldbl-opt/Makefile
270 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
271 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
272 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
273
274 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
275
276 [BZ #23983]
277 * argp/Makefile (headers): Add bits/argp-ldbl.h.
278 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
279 * argp/bits/argp-ldbl.h: New file.
280 * include/argp.h: Include stdarg.h. Add prototypes for internal
281 functions: __argp_error_internal and __argp_failure_internal.
282 * include/bits/argp-ldbl.h: New file.
283 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
284 __nldbl_argp_error and __nldbl_argp_failure.
285 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
286 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
287 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
288 Redirect argp_error and argp_failure calls.
289 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
290 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
291 Likewise.
292 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
293 Likewise.
294 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
295 Likewise.
296 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
297 Likewise.
298 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
299 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
300 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
301
302 2019-03-01 Florian Weimer <fweimer@redhat.com>
303
304 [BZ #20419]
305 * elf/tst-big-note-lib.S: Create a syntactically valid note.
306 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
307 code, to avoid creating an ABI tag note.
308 (modules-names-nobuild): Add tst-big-note-lib.
309
310 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
311
312 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
313 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
314
315 2019-03-01 Florian Weimer <fweimer@redhat.com>
316
317 [BZ #20271]
318 * sysdeps/unix/sysv/linux/netlink_assert_response.c
319 (__netlink_assert_response): Add additional missing newlines.
320
321 2019-02-28 Joseph Myers <joseph@codesourcery.com>
322
323 * sysdeps/powerpc/powerpc32/dl-machine.c
324 (__elf_machine_fixup_plt): Use space before '('.
325 (__process_machine_rela): Likewise.
326 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
327 Likewise.
328 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
329 Likewise.
330 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
331 Likewise.
332 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
333 (pattern): Likewise.
334 (delta): Likewise.
335 (check_result): Likewise.
336 (check_excepts): Likewise.
337 (check_op): Likewise.
338 (fail_xr): Likewise.
339 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
340 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
341 (SCNHSZ): Likewise.
342 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
343 Likewise.
344 (ARGS): Likewise.
345 (__makecontext): Likewise.
346 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
347 Likewise.
348
349 2019-02-28 Florian Weimer <fweimer@redhat.com>
350
351 [BZ #23937]
352 elf: Add test with a local IFUNC resolver.
353 * elf/ifuncmain9.c: New file.
354 * elf/ifuncmain9pic.c: Likewise.
355 * elf/ifuncmain9picstatic.c: Likewise.
356 * elf/ifuncmain9pie.c: Likewise.
357 * elf/ifuncmain9static.c: Likewise.
358 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
359 ifuncmain9static, ifuncmain9picstatic.
360 * elf/Makefile [multi-arch && build-shared] (tests-internal):
361 Add ifuncmain9, ifuncmain9pic.
362 * elf/Makefile [multi-arch && build-shared && have-fpie]
363 (ifunc-pie-tests): Add ifuncmain9pie.
364 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
365 (CFLAGS-ifuncmain9picstatic.c): Likewise.
366 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
367
368 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
369
370 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
371 * configure: Regenerated.
372 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
373
374 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
375
376 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
377 symbol as __wcspcy instead of wcscpy.
378
379 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
380
381 * include/stdio.h (__renameat2): New hidden prototype.
382 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
383 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
384 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
385 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
386
387 2019-02-27 Joseph Myers <joseph@codesourcery.com>
388
389 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
390 if statement.
391
392 * benchtests/bench-strcpy.c (do_test): Use space before '('.
393 * benchtests/bench-string.h (cmdline_process_function): Likewise.
394 * benchtests/bench-strlen.c (do_test): Likewise.
395 (test_main): Likewise.
396 * catgets/gencat.c (read_old): Likewise.
397 * elf/cache.c (load_aux_cache): Likewise.
398 * iconvdata/bug-iconv8.c (do_test): Likewise.
399 * math/test-tgmath-ret.c (do_test): Likewise.
400 * nis/nis_call.c (rec_dirsearch): Likewise.
401 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
402 * nptl/tst-audit-threads.c (do_test): Likewise.
403 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
404 * nss/nss_test1.c (init): Likewise.
405 * nss/test-netdb.c (test_hosts): Likewise.
406 * posix/execvpe.c (maybe_script_execute): Likewise.
407 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
408 * stdio-common/tst-printf.c (do_test): Likewise.
409 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
410 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
411 * stdlib/qsort.c (STACK_SIZE): Likewise.
412 * stdlib/test-canon.c (do_test): Likewise.
413 * stdlib/tst-swapcontext1.c (do_test): Likewise.
414 * string/memcmp.c (OPSIZ): Likewise.
415 * string/test-strcpy.c (do_test): Likewise.
416 (do_random_tests): Likewise.
417 * string/test-strlen.c (do_test): Likewise.
418 (test_main): Likewise.
419 * string/test-strrchr.c (do_test): Likewise.
420 (do_random_tests): Likewise.
421 * string/tester.c (test_memrchr): Likewise.
422 (test_memchr): Likewise.
423 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
424 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
425 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
426 (read_encoded_value_with_base): Likewise.
427 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
428 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
429 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
430 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
431 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
432 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
433 Likewise.
434 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
435 Likewise.
436 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
437 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
438 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
439 Likewise.
440 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
441 Likewise.
442 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
443 Likewise.
444 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
445 Likewise.
446 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
447 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
448 (FP_XSTATE_MAGIC2_SIZE): Likewise.
449 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
450 * time/test_time.c (main): Likewise.
451
452 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
453
454 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
455
456 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
457 wmemcpy.
458
459 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
460 wmemcpy.
461
462 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
463
464 * include/wchar.h (__wcscpy): New prototype.
465 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
466 (__wcscpy): Route internal symbol to generic implementation.
467 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
468 Add internal __wcscpy alias.
469 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
470 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
471 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
472 * wcsmbs/wcscpy.c (wcscpy): Add
473 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
474 use generic implementation.
475 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
476
477 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
478 wmemset.
479
480 * sysdeps/m68k/wcpcpy.c: Remove file.
481 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
482
483 2019-02-26 Joseph Myers <joseph@codesourcery.com>
484
485 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
486 than after operators.
487 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
488 * sysdeps/mach/hurd/getcwd.c
489 (__hurd_canonicalize_directory_name_internal): Likewise.
490 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
491 (pthread_mutex_consistent): Likewise.
492 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
493 Likewise.
494 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
495 (__pthread_mutex_transfer_np): Likewise.
496 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
497 (__pthread_mutex_unlock): Likewise.
498 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
499 (mtx_owned_p): Likewise.
500 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
501 (pthread_mutexattr_getrobust): Likewise.
502 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
503 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
504 Likewise.
505 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
506 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
507 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
508 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
509 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
510 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
511 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
512 Likewise.
513 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
514 Likewise.
515 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
516 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
517 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
518 (____longjmp_chk): Likewise.
519 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
520 Likewise.
521 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
522 (INTERNAL_SYSCALL): Likewise.
523 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
524 (INTERNAL_SYSCALL): Likewise.
525 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
526 (__get_clockfreq_via_cpuinfo): Likewise.
527
528 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
529 comments.
530 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
531 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
532 (WORD_COPY_BWD): Likewise.
533 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
534 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
535 Likewise.
536 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
537 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
538 comment.
539 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
540
541 2019-02-25 Joseph Myers <joseph@codesourcery.com>
542
543 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
544 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
545 rather than after operators.
546 * elf/cache.c (print_cache): Likewise.
547 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
548 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
549 * hurd/hurdinit.c (_hurd_setproc): Likewise.
550 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
551 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
552 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
553 (reauth_proc): Likewise.
554 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
555 (__file_name_split_at): Likewise.
556 (__directory_name_split_at): Likewise.
557 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
558 * hurd/port2fd.c (_hurd_port2fd): Likewise.
559 * iconv/gconv_dl.c (do_print): Likewise.
560 * inet/netinet/in.h (struct sockaddr_in): Likewise.
561 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
562 * locale/setlocale.c (new_composite_name): Likewise.
563 * malloc/memusagestat.c (main): Likewise.
564 * misc/fstab.c (fstab_convert): Likewise.
565 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
566 Likewise.
567 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
568 (getgrent_next_file): Likewise.
569 (internal_getgrnam_r): Likewise.
570 (internal_getgrgid_r): Likewise.
571 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
572 Likewise.
573 (internal_getgrent_r): Likewise.
574 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
575 (getpwent_next_nss): Likewise.
576 (getpwent_next_file): Likewise.
577 (internal_getpwnam_r): Likewise.
578 (internal_getpwuid_r): Likewise.
579 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
580 Likewise.
581 (getspent_next_nss): Likewise.
582 (internal_getspnam_r): Likewise.
583 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
584 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
585 * string/strchr.c (STRCHR): Likewise.
586 * string/strchrnul.c (STRCHRNUL): Likewise.
587 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
588 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
589 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
590 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
591 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
592 Likewise.
593 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
594 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
595 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
596 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
597 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
598 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
599 (open_file): Likewise.
600 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
601 (pthread_mutexattr_setprotocol): Likewise.
602 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
603 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
604 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
605 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
606 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
607 Likewise.
608 (elf_machine_rela): Likewise.
609 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
610 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
611 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
612 * sysdeps/posix/rename.c (rename): Likewise.
613 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
614 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
615 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
616 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
617 * sysdeps/unix/grantpt.c (grantpt): Likewise.
618 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
619 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
620 Likewise.
621 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
622 Likewise.
623 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
624 * time/tzfile.c (__tzfile_compute): Likewise.
625
626 2019-02-22 Joseph Myers <joseph@codesourcery.com>
627
628 * benchtests/bench-memmem.c (simple_memmem): Break lines before
629 rather than after operators.
630 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
631 * crypt/md5.c (md5_finish_ctx): Likewise.
632 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
633 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
634 * elf/cache.c (load_aux_cache): Likewise.
635 * elf/dl-load.c (open_verify): Likewise.
636 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
637 * elf/readelflib.c (process_elf_file): Likewise.
638 * elf/rtld.c (dl_main): Likewise.
639 * elf/sprof.c (generate_call_graph): Likewise.
640 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
641 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
642 * hurd/dtable.c (reauth_dtable): Likewise.
643 * hurd/getdport.c (__getdport): Likewise.
644 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
645 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
646 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
647 Likewise.
648 * hurd/hurdioctl.c (fioctl): Likewise.
649 * hurd/hurdselect.c (_hurd_select): Likewise.
650 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
651 (STOPSIGS): Likewise.
652 * hurd/hurdstartup.c (_hurd_startup): Likewise.
653 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
654 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
655 * hurd/msgportdemux.c (msgport_server): Likewise.
656 * hurd/setauth.c (_hurd_setauth): Likewise.
657 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
658 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
659 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
660 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
661 * login/tst-utmp.c (do_check): Likewise.
662 (simulate_login): Likewise.
663 * mach/lowlevellock.h (lll_lock): Likewise.
664 (lll_trylock): Likewise.
665 * math/test-fenv.c (ALL_EXC): Likewise.
666 * math/test-fenvinline.c (ALL_EXC): Likewise.
667 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
668 * nis/nis_call.c (__do_niscall3): Likewise.
669 * nis/nis_callback.c (cb_prog_1): Likewise.
670 * nis/nis_defaults.c (searchaccess): Likewise.
671 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
672 * nis/nis_ismember.c (internal_ismember): Likewise.
673 * nis/nis_local_names.c (nis_local_principal): Likewise.
674 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
675 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
676 Likewise.
677 * nis/ypclnt.c (yp_match): Likewise.
678 (yp_first): Likewise.
679 (yp_next): Likewise.
680 (yp_master): Likewise.
681 (yp_order): Likewise.
682 * nscd/hstcache.c (cache_addhst): Likewise.
683 * nscd/initgrcache.c (addinitgroupsX): Likewise.
684 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
685 (internal_getpwuid_r): Likewise.
686 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
687 * posix/glob.h (__GLOB_FLAGS): Likewise.
688 * posix/regcomp.c (peek_token): Likewise.
689 (peek_token_bracket): Likewise.
690 (parse_expression): Likewise.
691 * posix/regexec.c (sift_states_iter_mb): Likewise.
692 (check_node_accept_bytes): Likewise.
693 * posix/tst-spawn3.c (do_test): Likewise.
694 * posix/wordexp-test.c (testit): Likewise.
695 * posix/wordexp.c (parse_tilde): Likewise.
696 (exec_comm): Likewise.
697 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
698 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
699 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
700 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
701 * stdio-common/tst-fileno.c (do_test): Likewise.
702 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
703 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
704 * stdlib/strtod_l.c (round_and_return): Likewise.
705 (____STRTOF_INTERNAL): Likewise.
706 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
707 * string/strcspn.c (STRCSPN): Likewise.
708 * string/test-memmem.c (simple_memmem): Likewise.
709 * termios/tcsetattr.c (tcsetattr): Likewise.
710 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
711 * time/asctime.c (asctime_internal): Likewise.
712 * time/strptime_l.c (__strptime_internal): Likewise.
713 * time/sys/time.h (timercmp): Likewise.
714 * time/tzfile.c (__tzfile_compute): Likewise.
715
716 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
717
718 [BZ #21915]
719 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
720
721 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
722
723 * argp/argp-help.c (__argp_error_internal): New function,
724 renamed from __argp_error, but that takes a 'mode_flags'
725 parameter to control the format of long double parameters.
726 (__argp_error): Converted into a call __argp_error_internal.
727 (__argp_failure_internal): New function, renamed from
728 __argp_failure, but that takes a 'mode_flags' parameter.
729 (__argp_failure): Converted into a call __argp_failure_internal.
730 * misc/err.c (__vwarnx_internal): New function, renamed from
731 vwarnx, but that takes a 'mode_flags' parameter.
732 (vwarnx): Converted into a call to __vwarnx_internal.
733 (__vwarn_internal): New function, renamed from vwarn, but that
734 takes a 'mode_flags' parameter.
735 (vwarn): Converted into a call to __vwarn_internal.
736 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
737 call to __vfxprintf with 'mode_flags'.
738 (__error_internal): New function, renamed from error, but that
739 takes a 'mode_flags' parameter.
740 (error): Converted into a call to __error_internal.
741 (__error_at_line_internal): New function, renamed from
742 error_at_line, but that takes a 'mode_flags' parameter.
743 (error_at_line): Converted into a call to
744 __error_at_line_internal.
745 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
746 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
747 Likewise.
748
749 2019-02-20 Martin Liska <mliska@suse.cz>
750
751 * math/Makefile: Install math-vector-fortran.h.
752 * bits/math-vector-fortran.h: New file.
753 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
754
755 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
756
757 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
758 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
759
760 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
761
762 * nptl/pthread_mutex_trylock.c: Fix comment.
763
764 2019-02-19 Carlos O'Donell <carlos@redhat.com>
765
766 * nptl/pthread_tryjoin.c: Fix comment.
767
768 2019-02-18 Joseph Myers <joseph@codesourcery.com>
769
770 [BZ #24231]
771 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
772 after R_SPARC_H34 case.
773
774 2019-02-18 Florian Weimer <fweimer@redhat.com>
775
776 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
777 (getanswer): Do not call Dprintf.
778 (res_gethostbyname2_context): Likewise.
779 (res_gethostbyaddr_context): Likewise.
780
781 2019-02-18 Florian Weimer <fweimer@redhat.com>
782
783 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
784 declaration.
785 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
786 Remove definitions.
787 * libio/stdfiles.c: Update comment.
788 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
789 set _IO_stdin, _IO_stdout, _IO_stderr.
790 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
791 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
792 inline function.
793 (_IO_deallocate_file): New inline function.
794 * libio/iolibio.h (_IO_vprintf): Remove definition.
795 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
796 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
797 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
798 _IO_legacy_file.
799 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
800 __builtin_expect. Use _IO_legacy_file.
801
802 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
803
804 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
805 Initialize ctid with a known value and remove update of ctid
806 after clone.
807 (wait_tid): Adjust arguments and call futex_wait with ctid_val
808 as assumed current value of ctid_ptr.
809
810 2019-02-15 Florian Weimer <fweimer@redhat.com>
811
812 Check that non-sysdeps headers have wrapper headers.
813 * scripts/check-wrapper-headers.py: New file.
814 * Makefile (tests-special): Add check-wrapper-headers.out.
815 (check-wrapper-headers.out): New target.
816 * Rules (tests-special): Add check-wrapper-headers.out.
817 (check-wrapper-headers.out): New target.
818
819 2019-02-15 Florian Weimer <fweimer@redhat.com>
820
821 Add missing header wrappers under include/.
822 * include/ar.h: New file.
823 * include/bits/mqueue2.h: Likewise.
824 * include/bits/stdio.h: Likewise.
825 * include/bits/stdio2.h: Likewise.
826 * include/fstab.h: Likewise.
827 * include/fts.h: Likewise.
828 * include/lastlog.h: Likewise.
829 * include/netinet/icmp6.h: Likewise.
830 * include/netinet/igmp.h: Likewise.
831 * include/netinet/ip6.h: Likewise.
832 * include/re_comp.h: Likewise.
833 * include/regexp.h: Likewise.
834 * include/rpcsvc/bootparam.h: Likewise.
835 * include/rpcsvc/yp_prot.h: Likewise.
836 * include/sys/random.h: Likewise.
837 * include/sys/stropts.h: Likewise.
838 * include/sys/ttychars.h: Likewise.
839 * include/sys/vfs.h: Likewise.
840 * include/wait.h: Likewise.
841
842 2019-02-15 Florian Weimer <fweimer@redhat.com>
843
844 * nptl_db/proc_service.h: Move to ...
845 * sysdeps/nptl/proc_service.h: ... here.
846 * nptl_db/thread_db.h: Move to ...
847 * sysdeps/nptl/thread_db.h: ... here.
848 * nptl/descr.h: Include <thread_db.h>.
849
850 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
851
852 * io/Makefile (tests): Add tst-lockf.
853 * io/lockf.c (lockf): Use __fcntl and only define for
854 !__OFF_T_MATCHES_OFF64_T.
855 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
856 __OFF_T_MATCHES_OFF64_T case.
857 * io/tst-lockf.c: New file.
858 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
859 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
860 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
861 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
862 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
863 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
864 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
865 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
866 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
867
868 2019-02-15 Florian Weimer <fweimer@redhat.com>
869
870 [BZ #24211]
871 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
872 pd->result after the thread descriptor has been freed.
873
874 2019-02-15 Joseph Myers <joseph@codesourcery.com>
875
876 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
877 from function return type.
878
879 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
880
881 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
882
883 * scripts/test_printers_common.py: Set TERM to a known harmless
884 value.
885
886 2019-02-14 Joseph Myers <joseph@codesourcery.com>
887
888 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
889 (xdr_u_int): Likewise.
890 (xdr_enum): Likewise.
891 (xdr_bytes): Reword fall-through comment.
892 (xdr_string): Likewise.
893
894 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
895
896 [BZ #2421]
897 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
898 (tests): Add tst-join8 tst-join9.
899 * nptl/lll_timedwait_tid.c: Remove file.
900 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
901 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
902 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
903 * nptl/pthread_join_common.c (timedwait_tid): New function.
904 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
905 is set.
906 * nptl/tst-join5.c (thread_join): New function.
907 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
908 check.
909 * nptl/tst-join8.c: New file.
910 * nptl/tst-join9.c: Likewise.
911 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
912 lll_futex_timed_wait_cancel): Add generic macros.
913 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
914 Remove definitions.
915 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
916 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
917 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
918 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
919 Remove function.
920 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
921 Likewise.
922 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
923 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
924 (lll_futex_timed_wait_cancel): New macro.
925
926 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
927
928 * benchtests/Makefile: Add malloc-simple benchmark.
929 * benchtests/bench-malloc-simple.c: New benchmark.
930
931 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
932
933 * benchtests/bench-memmove.c (do_one_test): Remove unused
934 ORIG_SRC.
935 (do_test): Adjust.
936 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
937 ORIG_SRC.
938 (do_test): Adjust.
939
940 2019-01-13 Jim Wilson <jimw@sifive.com>
941
942 [BZ #24040]
943 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
944 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
945 (func): New.
946 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
947 call func directly.
948 * nptl/Makefile (tests): Add tst-unwind-thread.
949 (CFLAGS-tst-unwind-thread.c): Define.
950 * nptl/tst-unwind-thread.c: New file.
951 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
952 as undefined.
953
954 2019-02-13 Joseph Myers <joseph@codesourcery.com>
955
956 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
957 comment wording.
958 * nis/nis_call.c (__do_niscall3): Likewise.
959
960 * catgets/gencat.c (normalize_line): Use braces around empty
961 'else' body.
962 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
963 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
964 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
965 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
966 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
967 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
968 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
969 definition.
970
971 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
972 execlp returns.
973
974 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
975
976 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
977 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
978 * benchtests/bench-strchr.c (stupid_strchr): Remove.
979 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
980 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
981 * benchtests/bench-strlen.c (builtin_strlen): Remove.
982 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
983 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
984 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
985 * benchtests/bench-strspn.c (stupid_strspn): Remove.
986 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
987 * benchtests/bench-bcopy.c: Delete file.
988 * benchtests/bench-bzero.c: Likewise.
989 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
990 (simple_memccpy): Remove.
991 (generic_memccpy): Add function.
992 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
993 * benchtests/bench-memmove.c (simple_bcopy): Remove.
994 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
995 (generic_mempcpy): Add new function.
996 * benchtests/bench-memset.c (simple_bzero): Remove.
997 (builtin_bzero): Remove.
998 (builtin_memset): Remove.
999 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
1000 (generic_rawmemchr): Add new function.
1001
1002 2019-02-12 Florian Weimer <fweimer@redhat.com>
1003
1004 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
1005
1006 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1007
1008 [BZ #24122]
1009 * elf/Makefile (tests): Add tst-audit13.
1010 (modules-names): Add tst-audit13mod1.
1011 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1012 rule.
1013 * elf/tst-audit13.c: New file.
1014 * elf/tst-audit13mod1.c: Likewise.
1015
1016 2019-02-12 Florian Weimer <fweimer@redhat.com>
1017
1018 [BZ #24122]
1019 * elf/rtld.c (unload_audit_module): New function.
1020 (report_audit_module_load_error): Likewise.
1021 (load_audit_module): Likewise. Extracted from dl_main. Call
1022 _dl_close if the laversion symbol cannot be found. Use early
1023 returns for error handling. Add malloc error check. Check for a
1024 zero return value from la_version. Remove spurious comment about
1025 static TLS initialization. Remove useless casts.
1026 (notify_audit_modules_of_loaded_object): New function. Extracted
1027 from dl_main.
1028 (load_audit_module): Likewise.
1029 (dl_main): Call load_audit_modules.
1030
1031 2019-02-12 Joseph Myers <joseph@codesourcery.com>
1032
1033 * elf/dl-exception.c (_dl_exception_create_format): Add
1034 fall-through comments.
1035 * elf/ldconfig.c (parse_conf_include): Likewise.
1036 * elf/rtld.c (print_statistics): Likewise.
1037 * locale/programs/charmap.c (parse_charmap): Likewise.
1038 * misc/mntent_r.c (__getmntent_r): Likewise.
1039 * posix/wordexp.c (parse_arith): Likewise.
1040 (parse_backtick): Likewise.
1041 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
1042 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
1043 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1044
1045 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
1046
1047 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
1048 Use float instead of double.
1049
1050 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1051
1052 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
1053
1054 2019-02-08 Joseph Myers <joseph@codesourcery.com>
1055
1056 * sysdeps/powerpc/bits/mathinline.h: Remove.
1057
1058 2019-02-08 Florian Weimer <fweimer@redhat.com>
1059
1060 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
1061 * math/bits/math-finite.h: Move to ...
1062 * bits/math-finite.h: ... here.
1063
1064 2019-02-08 Florian Weimer <fweimer@redhat.com>
1065
1066 * sysdeps/generic/bits/unistd_ext.h: Move to ...
1067 * bits/unistd_ext.h: here.
1068
1069 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
1070
1071 [BZ #21915]
1072 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
1073 * nss/tst-nss-files-hosts-long.c: New file.
1074 * nss/tst-nss-files-hosts-long.root: New directory.
1075 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
1076 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
1077
1078 2019-02-08 Florian Weimer <fweimer@redhat.com>
1079
1080 * include/bits/unistd_ext.h: Remove file.
1081 * posix/bits/unistd_ext.h: Move to ...
1082 * sysdeps/generic/bits/unistd_ext.h: ... here.
1083
1084 2019-02-08 Florian Weimer <fweimer@redhat.com>
1085
1086 * include/bits/unistd_ext.h: New file.
1087
1088 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
1089
1090 * time/tst-strftime2.c: Use array_length macros instead of magic
1091 numbers.
1092
1093 2019-02-08 Florian Weimer <fweimer@redhat.com>
1094
1095 [BZ #24161]
1096 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
1097 argument.
1098 * nptl/register-atfork.c (__run_fork_handlers): Only perform
1099 locking if the new do_locking argument is true.
1100 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
1101 __run_fork_handlers.
1102
1103 2019-02-08 Florian Weimer <fweimer@redhat.com>
1104
1105 [BZ #6399]
1106 Linux: Add gettid system call wrapper.
1107 * posix/Makefile (headers): Add bits/unistd_ext.h.
1108 * posix/bits/unistd_ext.h: New file.
1109 * posix/unistd.h: Include it.
1110 * manual/process.texi (Process Identification): Document gettid.
1111 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
1112 tst-gettid, tst-gettid-kill.
1113 (tst-gettid): Link with $(shared-thread-library).
1114 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
1115 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
1116 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
1117 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
1118 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
1119 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
1120 Add gettid.
1121 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1122 Likewise.
1123 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1124 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
1125 Likewise.
1126 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
1127 Likewise.
1128 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
1129 Likewise.
1130 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
1131 Likewise.
1132 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1133 Likewise.
1134 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1135 Likewise.
1136 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1137 Likewise.
1138 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1139 (GLIBC_2.30): Likewise.
1140 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1141 (GLIBC_2.30): Likewise.
1142 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1143 (GLIBC_2.30): Likewise.
1144 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1145 (GLIBC_2.30): Likewise.
1146 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1147 Likewise.
1148 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1149 (GLIBC_2.30): Likewise.
1150 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1151 (GLIBC_2.30): Likewise.
1152 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1153 (GLIBC_2.30): Likewise.
1154 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1155 (GLIBC_2.30): Likewise.
1156 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1157 Likewise.
1158 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1159 Likewise.
1160 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1161 Likewise.
1162 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1163 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1164 Likewise.
1165 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1166 Likewise.
1167 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1168 Likewise.
1169 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1170 Likewise.
1171 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
1172
1173 2019-02-07 Florian Weimer <fweimer@redhat.com>
1174
1175 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
1176 compatibility symbols.
1177
1178 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
1179
1180 [BZ #24180]
1181 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
1182 Add compiler barriers and comments.
1183
1184 2019-02-07 Florian Weimer <fweimer@redhat.com>
1185
1186 * include/array_length.h (array_length): Do not use a statement
1187 expression and _Static_assert, so that array_length can be used at
1188 file scope and as a constant expression.
1189
1190 2019-02-07 Florian Weimer <fweimer@redhat.com>
1191
1192 * support/xdlfcn.h (xdlmopen): Declare.
1193 * support/xdlmopen.c: New file.
1194 * support/Makefile (libsupport-routines): Add xdlmopen.
1195
1196 2019-02-06 Joseph Myers <joseph@codesourcery.com>
1197
1198 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
1199 before return type, without separate inline.
1200 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
1201 * elf/dl-tunables.h (tunable_is_name): Likewise.
1202 * malloc/malloc.c (do_set_trim_threshold): Likewise.
1203 (do_set_top_pad): Likewise.
1204 (do_set_mmap_threshold): Likewise.
1205 (do_set_mmaps_max): Likewise.
1206 (do_set_mallopt_check): Likewise.
1207 (do_set_perturb_byte): Likewise.
1208 (do_set_arena_test): Likewise.
1209 (do_set_arena_max): Likewise.
1210 (do_set_tcache_max): Likewise.
1211 (do_set_tcache_count): Likewise.
1212 (do_set_tcache_unsorted_limit): Likewise.
1213 * nis/nis_subr.c (count_dots): Likewise.
1214 * nptl/allocatestack.c (advise_stack_range): Likewise.
1215 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
1216 (do_sin): Likewise.
1217 (reduce_sincos): Likewise.
1218 (do_sincos): Likewise.
1219 * sysdeps/unix/sysv/linux/x86/elision-conf.c
1220 (do_set_elision_enable): Likewise.
1221 (TUNABLE_CALLBACK_FNDECL): Likewise.
1222
1223 2019-02-06 Florian Weimer <fweimer@redhat.com>
1224
1225 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
1226 (xdlsym): Use dlerror to detect a NULL symbol.
1227
1228 2019-02-06 Florian Weimer <fweimer@redhat.com>
1229
1230 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
1231 <stap-probe.h>.
1232 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1233
1234 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1235
1236 * libio/tst-bz24153.c (wide): Use wide char format specifier.
1237
1238 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1239
1240 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
1241 __wmemcmp and weak alias to wmemcmp.
1242
1243 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1244
1245 [BZ #23403]
1246 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
1247 TLS_TCB_AT_TP tls variant.
1248 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
1249 Add alignment checks.
1250 * support/Makefile (libsupport-routines): Add xposix_memalign and
1251 xpthread_setstack.
1252 * support/support.h: Add xposix_memalign.
1253 * support/xthread.h: Add xpthread_attr_setstack.
1254 * support/xposix_memalign.c: New File.
1255 * support/xpthread_attr_setstack.c: Likewise.
1256
1257 2019-02-05 Florian Weimer <fweimer@redhat.com>
1258
1259 [BZ #24164]
1260 arm: Use "nr" constraint for Systemtap probes, to avoid the
1261 compiler using memory operands for constants, due to the "o"
1262 alternative in the default "nor" constraint.
1263 * include/stap-probe.h [USE_STAP_PROBE]: Include
1264 <stap-probe-machine.h>
1265 * sysdeps/generic/stap-probe-machine.h: New file.
1266 * sysdeps/arm/stap-probe-machine.h: Likewise.
1267
1268 2019-02-04 Joseph Myers <joseph@codesourcery.com>
1269
1270 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
1271 with 0, not tcache->entries[tc_idx].
1272
1273 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
1274 once.
1275
1276 2019-02-04 Andreas Schwab <schwab@suse.de>
1277
1278 [BZ #16976]
1279 [BZ #17396]
1280 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
1281 looking up collating elements match against (wide) character
1282 sequence instead of name. Correct alignment adjustment.
1283 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
1284 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
1285 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
1286 (LOCALES): Add cs_CZ.ISO-8859-2.
1287 * posix/tst-fnmatch4.c: New file.
1288 * posix/tst-fnmatch5.c: New file.
1289 * include/wchar.h (__wmemcmp): Declare.
1290 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
1291 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
1292 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
1293 * sysdeps/s390/wmemcmp.c: Likewise.
1294
1295 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
1296
1297 [BZ #24155]
1298 CVE-2019-7309
1299 * NEWS: Updated for CVE-2019-7309.
1300 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
1301 upper 32 bits of RDX register for x32. Use unsigned Jcc
1302 instructions, instead of signed.
1303 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
1304 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
1305
1306 2019-02-04 Florian Weimer <fweimer@redhat.com>
1307
1308 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
1309 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
1310 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
1311 Likewise.
1312 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
1313 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
1314 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
1315 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
1316 Likewise.
1317 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
1318 Likewise.
1319 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
1320 Likewise.
1321 (posix_spawn_file_actions_addopen): Likewise.
1322 (posix_spawn_file_actions_addclose): Likewise.
1323 (posix_spawn_file_actions_adddup2): Likewise.
1324 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
1325 qualifiers.
1326 (posix_spawn_file_actions_addfchdir_np): Likewise.
1327
1328 2019-02-04 David Newall <glibc@davidnewall.com>
1329
1330 elf: Implement --preload option for the dynamic linker.
1331 * elf/rtld.c (preloadarg): New variable.
1332 (handle_preload_list): Pass through “where” argument to
1333 do_preload.
1334 (dl_main): Handle "--preload" and add second call to
1335 handle_preload_list.
1336 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
1337 (tst-rtld-preload-OBJS): Set variable.
1338 (tst-rtld-preload.out): New target.
1339 * elf/tst-rtld-preload.sh: New file.
1340
1341 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
1342
1343 * Makefile (testrun.sh): Exit in case of incorrect argument.
1344
1345 2019-02-04 Florian Weimer <fweimer@redhat.com>
1346
1347 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
1348 alignment gaps.
1349
1350 2019-02-03 Florian Weimer <fweimer@redhat.com>
1351
1352 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
1353 implicit overflow checks.
1354
1355 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
1356
1357 * stdlib/isomac.c: Include <unistd.h>.
1358
1359 2019-02-03 Florian Weimer <fweimer@redhat.com>
1360
1361 * include/time.h (__tzfile_default): Use int, not long int, for
1362 the GMT offsets.
1363 * time/tzfile.c (struct ttinfo): Change type of the offset member
1364 to int.
1365 (__tzfile_read): Remove useless cast.
1366 (__tzfile_default): Adjust prototype.
1367 * time/tzset.c (tz_rule): Change type of the offset member to int.
1368 (parse_offset): Change the type of the sign variable to int.
1369
1370 2019-02-03 Florian Weimer <fweimer@redhat.com>
1371
1372 [BZ #24153]
1373 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
1374 * libio/getchar.c (getchar): Likewise.
1375 * libio/getchar_u.c (getchar_unlocked): Likewise.
1376 * libio/getwchar.c (getwchar): Likewise.
1377 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
1378 * libio/iogets.c (_IO_gets): Likewise.
1379 * libio/vscanf.c (_IO_vscanf): Likewise.
1380 * libio/vwscanf.c (__vwscanf): Likewise.
1381 * libio/tst-bz24153.c: New file.
1382 * libio/Makefile (tests): Add it.
1383
1384 2019-02-02 Florian Weimer <fweimer@redhat.com>
1385
1386 [BZ #14829]
1387 * manual/resource.texi (Basic Scheduling Functions): Add
1388 portability note. Change process to task throughout the section.
1389 Remove incorrect comment about sched_yield as it affects
1390 tasks/threads, not entire processes.
1391 * sysdeps/unix/sysv/linux/bits/posix_opt.h
1392 (_POSIX_PRIORITY_SCHEDULING): Update comment.
1393
1394 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1395
1396 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
1397 * configure: Regenerated.
1398 * manual/install.texi (Tools for Compilation): Update minimum GCC
1399 version.
1400 * INSTALL: Regenerated.
1401
1402 2019-02-01 Florian Weimer <fweimer@redhat.com>
1403
1404 * support/support_test_compare_string.c
1405 (support_test_compare_string): Use "string" in error message.
1406 * support/tst-test_compare_string.c (do_test): Adjust.
1407
1408 2019-02-01 Florian Weimer <fweimer@redhat.com>
1409
1410 * support/support_format_address_family.c
1411 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
1412
1413 2019-02-01 Florian Weimer <fweimer@redhat.com>
1414
1415 * manual/socket.texi (Internet Address Formats): Clarify the byte
1416 order of struct sockaddr_in, struct sockaddr_in6. Document
1417 sin6_flowinfo and sin6_scope_id.
1418
1419 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
1420
1421 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
1422 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
1423 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
1424 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
1425 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
1426 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
1427
1428 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1429
1430 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
1431 [!MEMCHR](MEMCHR): Set to __memchr.
1432 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1433 Add memchr_generic and memchr_nosimd.
1434 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1435 (__libc_ifunc_impl_list): Add memchr ifuncs.
1436 * sysdeps/aarch64/multiarch/memchr.c: New file.
1437 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
1438 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
1439
1440 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1441
1442 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1443 Add memset_emag.
1444 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1445 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
1446 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
1447 Add IS_EMAG check for ifunc dispatch.
1448 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
1449 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
1450
1451 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1452
1453 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
1454 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1455 Add emag.
1456 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
1457 New macro.
1458
1459 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
1460
1461 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
1462
1463 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
1464
1465 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
1466 syscall-template file.
1467
1468 2019-01-31 Carlos O'Donell <carlos@redhat.com>
1469 Torvald Riegel <triegel@redhat.com>
1470 Rik Prohaska <prohaska7@gmail.com>
1471
1472 [BZ# 23844]
1473 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
1474 tst-rwlock-trywrlock-stall.
1475 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
1476 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
1477 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
1478 Set __wrphase_fute to 1 only if we started the write phase.
1479 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
1480 * nptl/tst-rwlock-trywrlock-stall.c: New file.
1481 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
1482 * support/xpthread_rwlock_destroy.c: New file.
1483 * support/xthread.h: Declare xpthread_rwlock_destroy.
1484
1485 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1486
1487 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
1488 version to 4.0.2.
1489
1490 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1491
1492 [BZ #24051]
1493 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
1494 * libio/fileops.c (_IO_new_file_underflow): Likewise
1495 * libio/wfileops.c (_IO_wfile_underflow): Likewise
1496 * libio/putchar.c (putchar): Likewise.
1497 * libio/putchar_u.c (putchar_unlocked): Likewise.
1498 * libio/putwchar.c (putchar): Likewise.
1499 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
1500 * libio/tst-bz24051.c: New test.
1501 * libio/Makefile (tests): Add tst-bz24051
1502
1503 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
1504
1505 regex: fix read overrun [BZ #24114]
1506 Problem found by AddressSanitizer, reported by Hongxu Chen in:
1507 https://debbugs.gnu.org/34140
1508 * posix/regexec.c (proceed_next_node):
1509 Do not read past end of input buffer.
1510
1511 2019-01-31 Florian Weimer <fweimer@redhat.com>
1512
1513 [BZ #24059]
1514 * nss/nss_files/files-alias.c (get_next_alias): Handle
1515 continuation line without newline at the end.
1516 * nss/tst-nss-files-alias-truncated.c: New file.
1517 * nss/Makefile [$(build-shared)] (tests): Add
1518 tst-nss-files-alias-truncated.
1519 (tst-nss-files-alias-truncated): Link with libnss_files.so.
1520 * support/namespace.h (struct support_chroot_configuration): Add
1521 aliases member.
1522 (struct support_chroot): Add path_aliases member.
1523 * support/support_chroot.c (support_chroot_create): Handle
1524 aliases.
1525 (support_chroot_free): Free path_aliases.
1526
1527 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
1528
1529 * version.h (RELEASE): Set to "development".
1530 (VERSION): Set to "2.29.9000".
1531 * NEWS: Add section for 2.30.
1532
1533 * version.h (RELEASE): Set to "stable".
1534 (VERSION): Set to "2.29".
1535 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
1536
1537 * NEWS: Add the list of bugs fixed in 2.29.
1538 * manual/contrib.texi: Update contributors list with some more
1539 names.
1540 * manual/install.texi: Update latest versions of packages
1541 tested.
1542 * INSTALL: Regenerated.
1543
1544 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
1545
1546 * po/be.po: Update translations.
1547 * po/bg.po: Likewise.
1548 * po/ca.po: Likewise.
1549 * po/cs.po: Likewise.
1550 * po/da.po: Likewise.
1551 * po/de.po: Likewise.
1552 * po/el.po: Likewise.
1553 * po/eo.po: Likewise.
1554 * po/es.po: Likewise.
1555 * po/fi.po: Likewise.
1556 * po/fr.po: Likewise.
1557 * po/gl.po: Likewise.
1558 * po/hr.po: Likewise.
1559 * po/hu.po: Likewise.
1560 * po/ia.po: Likewise.
1561 * po/id.po: Likewise.
1562 * po/it.po: Likewise.
1563 * po/ja.po: Likewise.
1564 * po/ko.po: Likewise.
1565 * po/lt.po: Likewise.
1566 * po/nb.po: Likewise.
1567 * po/nl.po: Likewise.
1568 * po/pl.po: Likewise.
1569 * po/pt_BR.po: Likewise.
1570 * po/ru.po: Likewise.
1571 * po/rw.po: Likewise.
1572 * po/sk.po: Likewise.
1573 * po/sl.po: Likewise.
1574 * po/sv.po: Likewise.
1575 * po/tr.po: Likewise.
1576 * po/uk.po: Likewise.
1577 * po/vi.po: Likewise.
1578 * po/zh_CN.po: Likewise.
1579 * po/zh_TW.po: Likewise.
1580
1581 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
1582
1583 [BZ #24130]
1584 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
1585 of $f3 register on $y_is_neg path.
1586
1587 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1588
1589 [BZ #24110]
1590 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
1591 sigaltstack.ss_flags.
1592
1593 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
1594
1595 [BZ #23758]
1596 * manual/time.texi (strftime): Document "%Ey".
1597 * time/strftime_l.c (__strftime_internal): Set the default width
1598 padding with zero of "%Ey" to 2.
1599
1600 [BZ #24096]
1601 * manual/time.texi (strftime): Document "%EC" and "%EY".
1602 * time/Makefile (tests): Add tst-strftime2.
1603 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
1604 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
1605 override padding for "%Ey".
1606 If an optional flag ('_' or '-') is specified to "%EY", interpret the
1607 "%Ey" in the subformat as if decorated with that flag.
1608 * time/tst-strftime2.c: New file.
1609
1610 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1611
1612 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
1613 are not defined.
1614
1615 [BZ #24122]
1616 * elf/Makefile (tests): Add tst-audit13.
1617 (modules-names): Add tst-audit13mod1.
1618 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1619 rule.
1620 * elf/rtld.c (dl_main): Handle invalid audit module version.
1621 * elf/tst-audit13.c: New file.
1622 * elf/tst-audit13mod1.c: Likewise.
1623
1624 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
1625
1626 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
1627 returned by __hurd_at_flags.
1628 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
1629 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
1630 directly instead of __hurd_file_name_lookup.
1631
1632 2019-01-21 Joseph Myers <joseph@codesourcery.com>
1633
1634 * scripts/build-many-glibcs.py (Context.checkout): Default
1635 binutils version to 2.32 branch.
1636
1637 2019-01-21 Florian Weimer <fweimer@redhat.com>
1638
1639 [BZ #20018]
1640 CVE-2016-10739
1641 resolv: Reject trailing characters in host names
1642 * include/arpa/inet.h (__inet_aton_exact): Declare.
1643 (inet_aton): Remove hidden prototype. No longer used internally.
1644 * nscd/gai.c (__inet_aton): Do not define.
1645 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
1646 * nss/digits_dots.c (__inet_aton): Likewise.
1647 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
1648 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
1649 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
1650 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
1651 (tst-resolv-trailing): Likewise.
1652 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
1653 libc.
1654 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
1655 Make static. Add endp parameter.
1656 (__inet_aton_exact): New function.
1657 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
1658 (__inet_addr): Call inet_aton_end.
1659 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
1660 not just IPv6. Call __inet_aton_exact.
1661 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
1662 (tests): Make const. Add additional test cases with trailing
1663 characters.
1664 (do_test): Use array_length.
1665 * resolv/tst-inet_aton_exact.c: New file.
1666 * resolv/tst-resolv-trailing.c: Likewise.
1667 * resolv/tst-resolv-nondecimal.c: Likewise.
1668 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
1669
1670 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1671
1672 [BZ# 24097]
1673 CVE-2019-6488
1674 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
1675 Clear the upper 32 bits of RSI register.
1676 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
1677 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
1678 and tst-size_t-wcsnlen.
1679 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
1680 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
1681
1682 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1683
1684 [BZ# 24097]
1685 CVE-2019-6488
1686 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
1687 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1688 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
1689 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
1690 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
1691
1692 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1693
1694 [BZ# 24097]
1695 CVE-2019-6488
1696 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
1697 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
1698 * sysdeps/x86_64/strcmp.S: Likewise.
1699 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
1700 tst-size_t-strncmp and tst-size_t-wcsncmp.
1701 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
1702 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
1703 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
1704
1705 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1706
1707 [BZ# 24097]
1708 CVE-2019-6488
1709 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
1710 RDX_LP for length. Clear the upper 32 bits of RDX register.
1711 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
1712 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
1713 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
1714 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
1715
1716 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1717
1718 [BZ# 24097]
1719 CVE-2019-6488
1720 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
1721 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
1722 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
1723 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
1724
1725 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1726
1727 [BZ# 24097]
1728 CVE-2019-6488
1729 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
1730 length. Clear the upper 32 bits of RDX register.
1731 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
1732 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
1733 Likewise.
1734 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
1735 Likewise.
1736 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
1737 tst-size_t-wmemchr.
1738 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
1739
1740 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1741
1742 [BZ# 24097]
1743 CVE-2019-6488
1744 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
1745 length. Clear the upper 32 bits of RDX register.
1746 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
1747 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
1748 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
1749 tst-size_t-wmemcmp.
1750 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
1751 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
1752
1753 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1754
1755 [BZ# 24097]
1756 CVE-2019-6488
1757 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
1758 upper 32 bits of RDX register.
1759 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
1760 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
1761 tst-size_t-wmemchr.
1762 * sysdeps/x86_64/x32/test-size_t.h: New file.
1763 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
1764 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
1765
1766 2019-01-18 Florian Weimer <fweimer@redhat.com>
1767
1768 [BZ #24112]
1769 resolv: Do not send queries for non-host-names in nss_dns.
1770 * resolv/nss_dns/dns-host.c (check_name): New function.
1771 (_nss_dns_gethostbyname2_r): Use it.
1772 (_nss_dns_gethostbyname_r): Likewise.
1773 (_nss_dns_gethostbyname4_r): Likewise.
1774
1775 2019-01-21 Florian Weimer <fweimer@redhat.com>
1776
1777 * resolv/inet_addr.c: Reformat to GNU style.
1778 (__inet_addr, __inet_aton): Update comment.
1779
1780 2019-01-18 Florian Weimer <fweimer@redhat.com>
1781
1782 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
1783 ("malloc: Use current (C11-style) atomics for fastbin access").
1784 This commit introduces a substantial performance regression on
1785 POWER and Aarch64.
1786 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
1787 (REMOVE_FB): Define.
1788 (_int_malloc): Use it and reindent.
1789 (_int_free): Use CAS loop with
1790 catomic_compare_and_exchange_val_rel.
1791 (malloc_consolidate): Use atomic_exchange_acq.
1792
1793
1794 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
1795
1796 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
1797 -Wl,-z,now.
1798 (LDFLAGS-tst-minsigstksz-2): Likewise.
1799 (LDFLAGS-tst-minsigstksz-3): Likewise.
1800 (LDFLAGS-tst-minsigstksz-3a): Likewise.
1801 (LDFLAGS-tst-minsigstksz-4): Likewise.
1802
1803 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
1804
1805 * manual/time.texi (strftime): Fix the wording to "alternative" rather
1806 than "alternate".
1807
1808 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
1809
1810 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
1811
1812 2019-01-16 Zack Weinberg <zackw@panix.com>
1813
1814 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
1815 (xget_sigstack_location): New test support functions.
1816 * support/xsigstack.c: New file, implementing them.
1817 * support/tst-xsigstack.c: New test for them.
1818 * support/Makefile: Update.
1819
1820 * signal/tst-minsigstksz-1.c
1821 * signal/tst-minsigstksz-2.c
1822 * signal/tst-minsigstksz-3.c
1823 * signal/tst-minsigstksz-3a.c
1824 * signal/tst-minsigstksz-4.c: New tests.
1825 * signal/Makefile: Run them.
1826
1827 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
1828
1829 * po/libc.pot: Regenerate.
1830
1831 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1832
1833 * math/libm-test-fma.inc (fma_test_data): Set
1834 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
1835
1836 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1837
1838 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
1839 (do_test): Changed __vector __int128_t to __vector unsigned int.
1840
1841 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
1842
1843 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1844 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
1845 stpcpy-avx2 and stpncpy-avx2.
1846 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
1847 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
1848 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
1849 and __stpncpy_avx2.
1850 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
1851 ifunc-strcpy.h}: rename header for a more generic name.
1852 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
1853 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
1854 AVX unaligned load is fast and vzeroupper is preferred.
1855 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
1856 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
1857 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
1858 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
1859 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
1860 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
1861
1862 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
1863
1864 * argp/argp-help.c: Fix typo in comment.
1865 * misc/sys/cdefs.h: Likewise.
1866 * posix/regexec.c (sift_states_iter_mb): Likewise.
1867 * socket/sockatmark.c: Likewise.
1868 * socket/sys/socket.h: Likewise.
1869 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1870 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1871 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1872 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1873 * sysdeps/unix/sockatmark.c: Likewise.
1874 * time/strptime_l.c: Likewise.
1875
1876 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1877
1878 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1879 missing space after the cast of "_NL_CURRENT".
1880
1881 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1882
1883 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1884 ifdef to fix read of VSCR.
1885 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1886 tst-ucontext-ppc64-vscr.c to test list.
1887 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1888
1889 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1890
1891 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1892 fall-through.
1893
1894 2019-01-09 Jim Wilson <jimw@sifive.com>
1895
1896 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1897
1898 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
1899
1900 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
1901 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
1902 __memcpy_falkor for ares.
1903 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
1904 Add new define.
1905 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1906 Add ares cpu.
1907
1908 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
1909
1910 [BZ #24066]
1911 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
1912 4_FP_W_TYPEs are used for IEEE quad precision.
1913 * soft-fp/extendhftf2.c: Likewise.
1914 * soft-fp/extendsftf2.c: Likewise.
1915 * soft-fp/extendxftf2.c: Likewise.
1916 * soft-fp/trunctfdf2.c: Likewise.
1917 * soft-fp/trunctfhf2.c: Likewise.
1918 * soft-fp/trunctfsf2.c: Likewise.
1919 * soft-fp/trunctfxf2.c: Likewise.
1920 * sysdeps/alpha/ots_cvttx.c: Likewise.
1921 * sysdeps/alpha/ots_cvtxt.c: Likewise.
1922 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1923 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
1924 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1925 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
1926 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1927 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
1928 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
1929 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
1930 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
1931 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
1932 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
1933 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
1934 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
1935 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
1936 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
1937 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
1938
1939 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1940
1941 [BZ #24024]
1942 * Makeconfig: Build libm with -fno-math-errno but build the remaining
1943 code with -fmath-errno.
1944 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
1945 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
1946 * string/test-strerror-errno.c: New file.
1947
1948 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1949
1950 [BZ #24046]
1951 * localedata/locales/en_US (date_fmt): Add, set to
1952 "%a %d %b %Y %r %Z".
1953
1954 2019-01-07 Florian Weimer <fweimer@redhat.com>
1955
1956 [BZ #24063]
1957 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1958 instead of @var{errno}.
1959 (Parsing of Integers): Likewise.
1960 (Parsing of Floats): Likewise.
1961 * manual/filesys.texi (Working with Directory Trees): Likewise.
1962 (Temporary Files): Likewise.
1963 * manual/job.texi (Terminal Access Functions): Likewise.
1964 * manual/llio.texi (Synchronizing I/O): Likewise.
1965 * manual/math.texi (SVID Random): Likewise.
1966 * manual/message.texi (The catgets Functions): Likewise.
1967 (Translation with gettext): Likewise.
1968 (Locating gettext catalog): Likewise.
1969 (Charset conversion in gettext): Likewise.
1970 * manual/nss.texi (NSS Module Function Internals): Likewise.
1971 * manual/search.texi (Hash Search Function): Likewise.
1972 * manual/setjmp.texi (System V contexts): Likewise.
1973 * manual/time.texi (Sleeping): Likewise.
1974 * manual/users.texi (Lookup User): Likewise.
1975 (Lookup Group): Likewise.
1976
1977 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1978
1979 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1980 fix typo.
1981
1982 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1983
1984 [BZ #19444]
1985 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1986 __builtin_unreachable for default case in switch.
1987 (__ieee754_yn): Likewise.
1988 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1989 (__ieee754_ynl): Likewise.
1990 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1991 (__ieee754_ynl): Likewise.
1992 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1993 (__ieee754_ynl): Likewise.
1994
1995 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1996
1997 * manual/maint.texi: Use @{ and @}.
1998
1999 2019-01-04 Florian Weimer <fweimer@redhat.com>
2000
2001 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
2002 function.
2003 (do_in_chroot_1): Call it.
2004 (run_chroot_tests):
2005 Improve error reporting in case it is not possible to create a
2006 collision for the PTY name required by the test.
2007
2008 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2009
2010 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
2011 lll_wait_tid with timeout.
2012 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
2013 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
2014 futex_reltimed_wait_cancelable for cancelabla mode.
2015 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
2016 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
2017 macros.
2018 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
2019 * sysdeps/posix/waitid.c (__sigwait): Likewise.
2020 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
2021 SYSCALL_CANCEL_NCS): New macro.
2022 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
2023 (lll_timedwait_tid): Remove macro.
2024 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
2025 Likewise.
2026 (lll_timedwait_tid): Likewise.
2027 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
2028 Likewise.
2029 (lll_timedwait_tid): Likewise.
2030 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
2031 Likewise.
2032 (lll_timedwait_tid): Likewise.
2033 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
2034 Use INTERNAL_SYSCALL_CANCEL.
2035 * sysdeps/unix/sysv/linux/futex-internal.h
2036 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
2037 instead of __pthread_{enable,disable}_asynccancel.
2038 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
2039 (lll_futex_wait_cancel): New macro.
2040
2041 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2042 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2043
2044 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2045 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2046
2047 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
2048 in backtrace analysis.
2049 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
2050 side-effects.
2051 (tf_send): Likewise.
2052
2053 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
2054 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
2055 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
2056 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
2057 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2058 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2059 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
2060 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
2061 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
2062 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
2063 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
2064 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
2065 Likewise.
2066 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
2067 tst-cancel-wrappers.sh.
2068 (generated): Remove tst-cancel-wrappers.out.
2069 (tst-cancel-wrappers.out): Remove rule.
2070 * nptl/tst-cancel-wrappers.sh: Remove file.
2071
2072 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
2073
2074 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
2075 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
2076 Update.
2077
2078 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2079
2080 [BZ #23640]
2081 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
2082 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
2083 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
2084 close-on-exec reset for adddup2 file action.
2085 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
2086
2087 2019-01-03 Zack Weinberg <zackw@panix.com>
2088
2089 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
2090 parameter. Only use deprecated scanf when __USE_GNU is defined
2091 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
2092 than 201103L, whichever is relevant for the language being compiled.
2093
2094 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
2095 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
2096 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
2097 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
2098 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
2099
2100 * libio/iovsscanf.c
2101 * libio/fwscanf.c
2102 * libio/iovswscanf.c
2103 * libio/swscanf.c
2104 * libio/vscanf.c
2105 * libio/vwscanf.c
2106 * libio/wscanf.c
2107 * stdio-common/fscanf.c
2108 * stdio-common/scanf.c
2109 * stdio-common/vfscanf.c
2110 * stdio-common/vfwscanf.c
2111 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
2112 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
2113 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
2114 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
2115 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
2116 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
2117 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
2118 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
2119 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
2120 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
2121 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
2122 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
2123 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
2124 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
2125 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
2126
2127 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
2128 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
2129 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
2130 not sscanf.
2131 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
2132 with a preprocessor macro.
2133
2134 * stdio-common/bug21.c, stdio-common/scanf14.c:
2135 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
2136 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2137 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
2138 to xscanf, xfscanf, xsscanf.
2139
2140 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
2141 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2142 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
2143 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
2144 xfscanf, xsscanf.
2145 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
2146 override feature selection macros or provide definitions of u_char etc.
2147 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
2148 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
2149 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
2150 with -std=gnu89.
2151
2152 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2153
2154 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2155 bits/termios-misc.h.
2156 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
2157 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2158 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2159 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2160 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
2161 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
2162
2163 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
2164 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2165 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
2166 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
2167 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
2168 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
2169 termios-misc.h.
2170 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
2171 (sysdep_headers): Add termios-misc.h.
2172
2173 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
2174 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2175 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2176
2177 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2178 termios-tcflow.h.
2179 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
2180 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
2181 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
2182 TCSAFLUSH): Move to termios-tcflow.h.
2183 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2184 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2185 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2186 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2187
2188 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2189 termios-c_lflag.h.
2190 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
2191 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
2192 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
2193 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
2194 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
2195 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
2196 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
2197 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
2198 Likewise.
2199 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2200 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2201 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2202 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2203
2204 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2205 termios-c_cflag.h.
2206 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
2207 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
2208 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
2209 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
2210 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
2211 termios-c_cflag.h.
2212 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2213 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2214 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2215 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2216
2217 [BZ #23783]
2218 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2219 termios-baud.h.
2220 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
2221 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
2222 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
2223 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
2224 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
2225 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
2226 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
2227 __MAX_BAUD): Move to termios-baud.h.
2228 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
2229 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
2230 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2231 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2232 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2233
2234 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
2235 termios-c_oflag.h.
2236 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
2237 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
2238 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
2239 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
2240 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
2241 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
2242 termios-c_oflag.h.
2243 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
2244 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
2245 FFR1): Likewise.
2246 [USE_MISC] (XTABS): Likewise.
2247 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2248 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2249 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2250 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
2251
2252 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2253 termios-c_iflag.h.
2254 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
2255 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
2256 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
2257 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
2258 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
2259 IUTF8): Move to termios-c_iflag.h.
2260 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2261 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2262 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2263 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2264
2265 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2266 termios-cc.h.
2267 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
2268 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
2269 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
2270 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
2271 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
2272 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
2273 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
2274 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
2275 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2276 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2277 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2278 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2279
2280 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
2281 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
2282 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
2283 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
2284 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2285 termios-struct.h.
2286 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
2287 termios-struct.h.
2288 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
2289 Likewise.
2290 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
2291 Likewise.
2292 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
2293 Likewise.
2294 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
2295 Likewise.
2296 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
2297 _HAVE_C_OSPEED): Define.
2298 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
2299 _HAVE_C_OSPEED): Likewise.
2300 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
2301 _HAVE_C_OSPEED): Likewise.
2302 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
2303 (cfsetospeed): Check for define value instead of existence.
2304 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
2305 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2306 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
2307 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2308 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
2309
2310 [BZ #17783]
2311 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
2312 Define.
2313 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2314 (TIOCSER_TEMT): Likewise.
2315 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
2316 (TEOCSER_TEMT): Likewise.
2317
2318 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
2319
2320 [BZ #24011]
2321 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
2322
2323 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2324
2325 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
2326
2327 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
2328
2329 * sysdeps/htl/pt-barrierattr-setpshared.c
2330 (pthread_barrierattr_setpshared): Add stub warning.
2331 * sysdeps/htl/pt-condattr-setpshared.c
2332 (pthread_condattr_setpshared): Likewise.
2333 * sysdeps/htl/pt-mutexattr-setpshared.c
2334 (pthread_mutexattr_setpshared): Likewise.
2335 * sysdeps/htl/pt-rwlockattr-setpshared.c
2336 (pthread_rwlockattr_setpshared): Likewise.
2337 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
2338 (pthread_mutexattr_setpshared): Likewise.
2339
2340 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2341
2342 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
2343 constants to match with Linux 4.20.
2344
2345 * sysdeps/mips/mips32/libm-test-ulps: Update.
2346 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
2347
2348 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
2349
2350 [BZ #24034]
2351 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
2352 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
2353 than __typeof (...) for the a_ptr variable.
2354
2355 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2356
2357 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
2358 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
2359 * libio/Makefile (tests): Add tst-sprintf-ub and
2360 tst-sprintf-chk-ub.
2361 (CFLAGS-tst-sprintf-ub.c): New variable.
2362 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
2363 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
2364 destination buffer and check for overflows in fortified mode.
2365 * libio/libioP.h (PRINTF_CHK): New macro.
2366 * libio/tst-sprintf-chk-ub.c: New file.
2367 * libio/tst-sprintf-ub.c: Likewise.
2368
2369 2019-01-02 Florian Weimer <fweimer@redhat.com>
2370
2371 [BZ #24018]
2372 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
2373 failure.
2374
2375 2019-01-02 Florian Weimer <fweimer@redhat.com>
2376
2377 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
2378
2379 2019-01-01 Joseph Myers <joseph@codesourcery.com>
2380
2381 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
2382 macro.
2383
2384 * sysdeps/unix/sysv/linux/netpacket/packet.h
2385 (PACKET_IGNORE_OUTGOING): New macro.
2386
2387 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
2388 macro.
2389
2390 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2391 version to 4.20.
2392 (riscv_flush_icache): New syscall.
2393
2394 * manual/texinfo.tex: Update to version 2018-12-28.17 with
2395 trailing whitespace removed.
2396 * scripts/config.guess: Update to version 2019-01-01.
2397 * scripts/config.sub: Update to version 2019-01-01.
2398 * scripts/move-if-change: Update from gnulib.
2399
2400 * NEWS: Update copyright dates.
2401 * catgets/gencat.c (print_version): Likewise.
2402 * csu/version.c (banner): Likewise.
2403 * debug/catchsegv.sh: Likewise.
2404 * debug/pcprofiledump.c (print_version): Likewise.
2405 * debug/xtrace.sh (do_version): Likewise.
2406 * elf/ldconfig.c (print_version): Likewise.
2407 * elf/ldd.bash.in: Likewise.
2408 * elf/pldd.c (print_version): Likewise.
2409 * elf/sotruss.sh: Likewise.
2410 * elf/sprof.c (print_version): Likewise.
2411 * iconv/iconv_prog.c (print_version): Likewise.
2412 * iconv/iconvconfig.c (print_version): Likewise.
2413 * locale/programs/locale.c (print_version): Likewise.
2414 * locale/programs/localedef.c (print_version): Likewise.
2415 * login/programs/pt_chown.c (print_version): Likewise.
2416 * malloc/memusage.sh (do_version): Likewise.
2417 * malloc/memusagestat.c (print_version): Likewise.
2418 * malloc/mtrace.pl: Likewise.
2419 * manual/libc.texinfo: Likewise.
2420 * nptl/version.c (banner): Likewise.
2421 * nscd/nscd.c (print_version): Likewise.
2422 * nss/getent.c (print_version): Likewise.
2423 * nss/makedb.c (print_version): Likewise.
2424 * posix/getconf.c (main): Likewise.
2425 * scripts/test-installation.pl: Likewise.
2426 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2427
2428 * All files with FSF copyright notices: Update copyright dates
2429 using scripts/update-copyrights.
2430 * locale/programs/charmap-kw.h: Regenerated.
2431 * locale/programs/locfile-kw.h: Likewise.
2432
2433 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2434
2435 * timezone/zdump.c: Update from tzcode 2018i.
2436 * timezone/zic.c: Likewise.
2437
2438 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
2439
2440 regex: improve Gnulib port to AIX
2441 From the glibc point of view, this removes duplicate macro
2442 definitions and is obviously safe.
2443 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
2444 * posix/regex_internal.h:
2445 (__attribute__, __attribute_warn_unused_result__):
2446 Remove; already defined elsewhere.
2447
2448 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
2449
2450 [BZ #24027]
2451 * malloc/malloc.c (_int_realloc): Always call memcpy for the
2452 copying operation. (ncopies had the wrong type, resulting in an
2453 integer wraparound and too few elements being copied.)
2454
2455 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
2456
2457 [BZ #24022]
2458 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
2459 <asm/syscalls.h> exists with __has_include__ before including it.
2460
2461 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2462
2463 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2464 version to 4.20.
2465
2466 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
2467
2468 * hurd/lookup-retry: Include <unistd.h>.
2469 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
2470 Release it on return. Handle "pid" magical lookup retry.
2471
2472 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2473
2474 [BZ #10496]
2475 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
2476 (t_fmt_ampm): Likewise.
2477 * localedata/locales/aa_ER (t_fmt): Likewise.
2478 (t_fmt_ampm): Likewise.
2479 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
2480 (t_fmt_ampm): Likewise.
2481 * localedata/locales/aa_ET (t_fmt): Likewise.
2482 (t_fmt_ampm): Likewise.
2483 * localedata/locales/am_ET (t_fmt): Likewise.
2484 (t_fmt_ampm): Likewise.
2485 * localedata/locales/byn_ER (t_fmt): Likewise.
2486 (t_fmt_ampm): Likewise.
2487 * localedata/locales/om_ET (t_fmt): Likewise.
2488 (t_fmt_ampm): Likewise.
2489 * localedata/locales/sid_ET (t_fmt): Likewise.
2490 (t_fmt_ampm): Likewise.
2491 * localedata/locales/so_DJ (t_fmt): Likewise.
2492 (t_fmt_ampm): Likewise.
2493 * localedata/locales/so_ET (t_fmt): Likewise.
2494 (t_fmt_ampm): Likewise.
2495 * localedata/locales/so_SO (t_fmt): Likewise.
2496 (t_fmt_ampm): Likewise.
2497 * localedata/locales/ti_ER (t_fmt): Likewise.
2498 (t_fmt_ampm): Likewise.
2499 * localedata/locales/ti_ET (t_fmt): Likewise.
2500 (t_fmt_ampm): Likewise.
2501 * localedata/locales/tig_ER (t_fmt): Likewise.
2502 (t_fmt_ampm): Likewise.
2503 * localedata/locales/wal_ET (t_fmt): Likewise.
2504 (t_fmt_ampm): Likewise.
2505
2506 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
2507 * localedata/locales/ar_IN (t_fmt): Likewise.
2508 * localedata/locales/bhb_IN (t_fmt): Likewise.
2509 * localedata/locales/bho_IN (t_fmt): Likewise.
2510 * localedata/locales/bi_VU (t_fmt): Likewise.
2511 * localedata/locales/bn_BD (t_fmt): Likewise.
2512 * localedata/locales/bn_IN (t_fmt): Likewise.
2513 * localedata/locales/brx_IN (t_fmt): Likewise.
2514 * localedata/locales/doi_IN (t_fmt): Likewise.
2515 * localedata/locales/en_HK (t_fmt): Likewise.
2516 (t_fmt_ampm): Likewise.
2517 * localedata/locales/en_IN (t_fmt): Likewise.
2518 * localedata/locales/en_PH (t_fmt): Likewise.
2519 * localedata/locales/gu_IN (t_fmt): Likewise.
2520 * localedata/locales/hi_IN (t_fmt): Likewise.
2521 * localedata/locales/hif_FJ (t_fmt): Likewise.
2522 * localedata/locales/hne_IN (t_fmt): Likewise.
2523 * localedata/locales/kn_IN (t_fmt): Likewise.
2524 * localedata/locales/kok_IN (t_fmt): Likewise.
2525 * localedata/locales/ks_IN (t_fmt): Likewise.
2526 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
2527 * localedata/locales/mag_IN (t_fmt): Likewise.
2528 * localedata/locales/mai_IN (t_fmt): Likewise.
2529 * localedata/locales/mjw_IN (t_fmt): Likewise.
2530 * localedata/locales/ml_IN (t_fmt): Likewise.
2531 * localedata/locales/mni_IN (t_fmt): Likewise.
2532 * localedata/locales/mr_IN (t_fmt): Likewise.
2533 * localedata/locales/ms_MY (t_fmt): Likewise.
2534 * localedata/locales/pa_IN (t_fmt): Likewise.
2535 * localedata/locales/raj_IN (t_fmt): Likewise.
2536 * localedata/locales/sa_IN (t_fmt): Likewise.
2537 * localedata/locales/sat_IN (t_fmt): Likewise.
2538 * localedata/locales/sd_IN (t_fmt): Likewise.
2539 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
2540 * localedata/locales/tcy_IN (t_fmt): Likewise.
2541 * localedata/locales/the_NP (t_fmt): Likewise.
2542 * localedata/locales/to_TO (t_fmt): Likewise.
2543 * localedata/locales/ur_IN (t_fmt): Likewise.
2544
2545 * localedata/locales/hif_FJ (d_t_fmt): Set to
2546 "%A %d %b %Y %I:%M:%S %p".
2547 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
2548
2549 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
2550 * localedata/locales/ar_BH (t_fmt): Likewise.
2551 * localedata/locales/ar_DZ (t_fmt): Likewise.
2552 * localedata/locales/ar_EG (t_fmt): Likewise.
2553 * localedata/locales/ar_IQ (t_fmt): Likewise.
2554 * localedata/locales/ar_JO (t_fmt): Likewise.
2555 * localedata/locales/ar_KW (t_fmt): Likewise.
2556 * localedata/locales/ar_LB (t_fmt): Likewise.
2557 * localedata/locales/ar_LY (t_fmt): Likewise.
2558 * localedata/locales/ar_OM (t_fmt): Likewise.
2559 * localedata/locales/ar_QA (t_fmt): Likewise.
2560 * localedata/locales/ar_SD (t_fmt): Likewise.
2561 * localedata/locales/ar_SS (t_fmt): Likewise.
2562 * localedata/locales/ar_SY (t_fmt): Likewise.
2563 * localedata/locales/ar_TN (t_fmt): Likewise.
2564 * localedata/locales/ar_YE (t_fmt): Likewise.
2565
2566 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
2567 (t_fmt_ampm): Likewise.
2568 * localedata/locales/gez_ET (t_fmt): Likewise.
2569 (t_fmt_ampm): Likewise.
2570
2571 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
2572 (t_fmt_ampm): Likewise.
2573 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
2574
2575 * localedata/locales/zh_HK (t_fmt):
2576 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
2577
2578 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
2579 because this locale does not use the 12-hour clock.
2580 (t_fmt): Set to "%Z %H:%M:%S".
2581 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
2582
2583 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
2584 because this locale does not use the 12-hour clock.
2585 (t_fmt): Set to "%H:%M:%S %Z".
2586 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
2587
2588 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
2589 because this locale does not use the 12-hour clock.
2590 (t_fmt): Set to "%T".
2591 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
2592 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
2593
2594 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
2595 because this locale does not use the 12-hour clock.
2596 (t_fmt): Set to "%H:%M:%S %Z".
2597 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
2598
2599 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
2600 because this locale does not use the 12-hour clock.
2601 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
2602 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
2603
2604 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2605
2606 [BZ #10496]
2607 [BZ #23724]
2608 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
2609 (t_fmt_ampm): Likewise.
2610 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
2611 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
2612 (d_fmt): Set to "%-d.%-m.%y".
2613
2614 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2615
2616 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
2617 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
2618 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
2619 Likewise.
2620 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
2621 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
2622 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
2623 function.
2624 * support/blob_repeat.c (check_mul_overflow_size_t,
2625 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
2626
2627 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
2628
2629 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
2630
2631 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
2632
2633 regex: simplify Gnulib port
2634 This simplifies the code, by removing stuff intended for porting
2635 to Gnulib but no longer needed there.
2636 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
2637 uses of libc_hidden_def, weak_alias.
2638 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
2639 _Restrict_ except for public-facing headers.
2640 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
2641 Remove; already defined elsewhere.
2642 * posix/regex.c, posix/regex_internal.h:
2643 Use __GNUC_PREREQ instead of rolling our own.
2644 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
2645
2646 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
2647
2648 * benchtests/bench-strlen.c (generic_strlen): New function.
2649 (memchr_strlen): New function.
2650
2651 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2652
2653 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
2654 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
2655 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
2656
2657 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2658
2659 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
2660
2661 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2662
2663 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
2664 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
2665 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
2666 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
2667 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
2668 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
2669 <sysdeps/ieee754/flt-32/s_sincosf.c>.
2670
2671 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2672
2673 [BZ #24023]
2674 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
2675 PLT reference in libc.so.
2676 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
2677 _Q_lltoq and _Q_qtod PLT references in libc.so.
2678
2679 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
2680
2681 * benchtests/bench-memchr.c: Cleanup defines.
2682 * benchtests/bench-memcmp.c: Likewise.
2683 * benchtests/bench-memset.c: Likewise.
2684 * benchtests/bench-memset-large.c: Likewise.
2685 * benchtests/bench-memset-walk.c: Likewise.
2686 * benchtests/bench-stpcpy.c: Likewise.
2687 * benchtests/bench-stpncpy.c: Likewise.
2688 * benchtests/bench-strcat.c: Likewise.
2689 * benchtests/bench-strchr.c: Likewise.
2690 * benchtests/bench-strcmp.c: Likewise.
2691 * benchtests/bench-strcpy.c: Likewise.
2692 * benchtests/bench-strcspn.c: Likewise.
2693 * benchtests/bench-string.h: Likewise.
2694 * benchtests/bench-strlen.c: Likewise.
2695 * benchtests/bench-strncat.c: Likewise.
2696 * benchtests/bench-strncmp.c: Likewise.
2697 * benchtests/bench-strncpy.c: Likewise.
2698 * benchtests/bench-strnlen.c: Likewise.
2699 * benchtests/bench-strpbrk.c: Likewise.
2700 * benchtests/bench-strrchr.c: Likewise.
2701 * benchtests/bench-strspn.c: Likewise.
2702
2703 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2704
2705 * stdlib/longlong.h: Update from GCC.
2706
2707 [BZ #23993]
2708 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
2709 * configure: Regenerated.
2710 * manual/install.texi (Tools for Compilation): Update minimum GCC
2711 version.
2712 * INSTALL: Regenerated.
2713
2714 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
2715
2716 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
2717
2718 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
2719
2720 * malloc/malloc.c (mremap_chunk): Additional checks.
2721
2722 2018-12-21 Mao Han <han_mao@c-sky.com>
2723
2724 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
2725 * scripts/build-many-glibcs.py: Add C-SKY targets.
2726 * sysdeps/csky/Implies: New file.
2727 * sysdeps/csky/Makefile: Likewise.
2728 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
2729 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
2730 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
2731 * sysdeps/csky/abiv2/memcmp.S: Likewise.
2732 * sysdeps/csky/abiv2/memcpy.S: Likewise.
2733 * sysdeps/csky/abiv2/memmove.S: Likewise.
2734 * sysdeps/csky/abiv2/memset.S: Likewise.
2735 * sysdeps/csky/abiv2/setjmp.S: Likewise.
2736 * sysdeps/csky/abiv2/start.S: Likewise.
2737 * sysdeps/csky/abiv2/strcmp.S: Likewise.
2738 * sysdeps/csky/abiv2/strcpy.S: Likewise.
2739 * sysdeps/csky/abiv2/strlen.S: Likewise.
2740 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
2741 * sysdeps/csky/abort-instr.h: Likewise.
2742 * sysdeps/csky/atomic-machine.h: Likewise.
2743 * sysdeps/csky/bits/endian.h: Likewise.
2744 * sysdeps/csky/bits/fenv.h: Likewise.
2745 * sysdeps/csky/bits/link.h: Likewise.
2746 * sysdeps/csky/bits/setjmp.h: Likewise.
2747 * sysdeps/csky/bsd-_setjmp.S: Likewise.
2748 * sysdeps/csky/bsd-setjmp.S: Likewise.
2749 * sysdeps/csky/configure: Likewise.
2750 * sysdeps/csky/configure.ac: Likewise.
2751 * sysdeps/csky/dl-machine.h: Likewise.
2752 * sysdeps/csky/dl-procinfo.c: Likewise.
2753 * sysdeps/csky/dl-procinfo.h: Likewise.
2754 * sysdeps/csky/dl-sysdep.h: Likewise.
2755 * sysdeps/csky/dl-tls.h: Likewise.
2756 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
2757 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
2758 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
2759 * sysdeps/csky/fpu/fegetenv.c: Likewise.
2760 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
2761 * sysdeps/csky/fpu/fegetmode.c: Likewise.
2762 * sysdeps/csky/fpu/fegetround.c: Likewise.
2763 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
2764 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
2765 * sysdeps/csky/fpu/fenv_private.h: Likewise.
2766 * sysdeps/csky/fpu/fesetenv.c: Likewise.
2767 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
2768 * sysdeps/csky/fpu/fesetmode.c: Likewise.
2769 * sysdeps/csky/fpu/fesetround.c: Likewise.
2770 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
2771 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
2772 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
2773 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
2774 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
2775 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
2776 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
2777 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
2778 * sysdeps/csky/fpu_control.h: Likewise.
2779 * sysdeps/csky/gccframe.h: Likewise.
2780 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
2781 * sysdeps/csky/ldsodefs.h: Likewise.
2782 * sysdeps/csky/libc-tls.c: Likewise.
2783 * sysdeps/csky/linkmap.h: Likewise.
2784 * sysdeps/csky/machine-gmon.h: Likewise.
2785 * sysdeps/csky/memusage.h: Likewise.
2786 * sysdeps/csky/nofpu/Implies: Likewise.
2787 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
2788 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
2789 * sysdeps/csky/nptl/Makefile: Likewise.
2790 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
2791 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
2792 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
2793 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
2794 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
2795 * sysdeps/csky/nptl/tls.h: Likewise.
2796 * sysdeps/csky/preconfigure: Likewise.
2797 * sysdeps/csky/sfp-machine.h: Likewise.
2798 * sysdeps/csky/sotruss-lib.c: Likewise.
2799 * sysdeps/csky/stackinfo.h: Likewise.
2800 * sysdeps/csky/sysdep.h: Likewise.
2801 * sysdeps/csky/tininess.h: Likewise.
2802 * sysdeps/csky/tst-audit.h: Likewise.
2803 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
2804 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
2805 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
2806 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
2807 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2808 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
2809 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2810 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
2811 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
2812 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
2813 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
2814 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
2815 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
2816 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
2817 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
2818 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
2819 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
2820 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
2821 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
2822 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
2823 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
2824 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
2825 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
2826 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
2827 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
2828 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
2829 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
2830 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
2831 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
2832 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
2833 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
2834 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
2835 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
2836 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
2837 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
2838 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2839 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
2840 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
2841 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
2842 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
2843 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
2844 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
2845 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
2846 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
2847
2848 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2849
2850 * include/time.h (__difftime64): Add.
2851 * time/difftime.c (subtract): convert to 64-bit time.
2852 * time/difftime.c (__difftime64): Add.
2853 * time/difftime.c (__difftime): Wrap around __difftime64.
2854
2855 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2856
2857 * manual/examples/add.c: Remove redundant "if not".
2858 * manual/examples/argp-ex1.c: Likewise.
2859 * manual/examples/argp-ex2.c: Likewise.
2860 * manual/examples/argp-ex3.c: Likewise.
2861 * manual/examples/argp-ex4.c: Likewise.
2862 * manual/examples/atexit.c: Likewise.
2863 * manual/examples/db.c: Likewise.
2864 * manual/examples/dir.c: Likewise.
2865 * manual/examples/dir2.c: Likewise.
2866 * manual/examples/execinfo.c: Likewise.
2867 * manual/examples/filecli.c: Likewise.
2868 * manual/examples/filesrv.c: Likewise.
2869 * manual/examples/fmtmsgexpl.c: Likewise.
2870 * manual/examples/genpass.c: Likewise.
2871 * manual/examples/inetcli.c: Likewise.
2872 * manual/examples/inetsrv.c: Likewise.
2873 * manual/examples/isockad.c: Likewise.
2874 * manual/examples/longopt.c: Likewise.
2875 * manual/examples/memopen.c: Likewise.
2876 * manual/examples/memstrm.c: Likewise.
2877 * manual/examples/mkdirent.c: Likewise.
2878 * manual/examples/mkfsock.c: Likewise.
2879 * manual/examples/mkisock.c: Likewise.
2880 * manual/examples/mygetpass.c: Likewise.
2881 * manual/examples/pipe.c: Likewise.
2882 * manual/examples/popen.c: Likewise.
2883 * manual/examples/rprintf.c: Likewise.
2884 * manual/examples/search.c: Likewise.
2885 * manual/examples/select.c: Likewise.
2886 * manual/examples/setjmp.c: Likewise.
2887 * manual/examples/sigh1.c: Likewise.
2888 * manual/examples/sigusr.c: Likewise.
2889 * manual/examples/stpcpy.c: Likewise.
2890 * manual/examples/strdupa.c: Likewise.
2891 * manual/examples/strftim.c: Likewise.
2892 * manual/examples/subopt.c: Likewise.
2893 * manual/examples/swapcontext.c: Likewise.
2894 * manual/examples/termios.c: Likewise.
2895 * manual/examples/testopt.c: Likewise.
2896 * manual/examples/testpass.c: Likewise.
2897 * manual/examples/timeval_subtract.c: Likewise.
2898
2899 2018-12-19 Joseph Myers <joseph@codesourcery.com>
2900
2901 * sysdeps/x86/fpu/math_private.h: New file.
2902 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
2903
2904 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
2905 definition.
2906 (cosh): Likewise.
2907 (tanh): Likewise.
2908
2909 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2910
2911 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
2912 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
2913 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
2914 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
2915 fields.
2916 (_dl_show_auxv): Give a special treatment to
2917 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
2918 and AT_L3_CACHEGEOMETRY.
2919 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
2920 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
2921 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
2922 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
2923
2924 2018-12-19 Andreas Schwab <schwab@suse.de>
2925
2926 * nscd/connections.c (check_use): Don't abort on invalid len.
2927
2928 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2929
2930 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
2931 values in the 64bit value cases.
2932
2933 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2934
2935 * include/time.h
2936 (__ctime64_r): Add.
2937 * time/ctime_r.c
2938 (__ctime64_r): Add.
2939 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
2940
2941 * include/time.h
2942 (__ctime64): Add.
2943 * time/gmtime.c
2944 (__ctime64): Add.
2945 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
2946
2947 * include/time.h
2948 (__gmtime64_r): Add.
2949 * time/gmtime.c
2950 (__gmtime64_r): Add.
2951 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2952
2953 * include/time.h
2954 (__gmtime64): Add.
2955 * time/gmtime.c
2956 (__gmtime64): Add.
2957 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2958
2959 * include/time.h
2960 (__localtime64_r): Add.
2961 * time/localtime.c
2962 (__localtime64_r): Add.
2963 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2964
2965 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2966
2967 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2968 kernel_sigction definition.
2969
2970 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2971
2972 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2973
2974 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2975 __syscall_rt_sigaction.
2976 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2977 (kernel_sigaction): Use Linux generic defintion.
2978 (STUB): Define.
2979 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2980 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2981 (__syscall_rt_sigaction): Remove implementation.
2982 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2983 hidden.
2984 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2985 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2986 INTERNAL_SYSCALL): Remove definitions.
2987 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2988 action and signal set size.
2989 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2990 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2991
2992 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2993 James Clarke <jrtc27@jrtc27.com>
2994
2995 [BZ #23967]
2996 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2997 Define if SA_RESTORER is defined.
2998 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2999 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
3000 already defined.
3001 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
3002 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
3003 definitions.
3004 (HAS_SA_RESTORER): Define.
3005 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
3006 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
3007 (HAS_SA_RESTORER): Define.
3008 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
3009 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
3010 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
3011 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
3012 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
3013
3014 2018-12-18 Joseph Myers <joseph@codesourcery.com>
3015
3016 * sysdeps/unix/sysv/linux/kernel-features.h
3017 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
3018 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3019 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
3020 * sysdeps/unix/sysv/linux/sh/kernel-features.h
3021 (__ASSUME_ST_INO_64_BIT): Likewise.
3022 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
3023 <kernel-features.h>.
3024 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3025 Remove conditional code.
3026 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
3027 <kernel-features.h>.
3028 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3029 Remove conditional code.
3030 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
3031 <kernel-features.h>.
3032 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3033 Remove conditional code.
3034 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
3035 <kernel-features.h>.
3036 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
3037 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
3038
3039 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3040
3041 * sysdeps/s390/multiarch/ifunc-resolve.h
3042 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
3043 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
3044 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
3045 Delete macro definition.
3046 (s390_libc_ifunc_init): Rename to
3047 s390_libc_ifunc_expr_stfle_init.
3048 * sysdeps/s390/bzero: Use
3049 s390_libc_ifunc_expr_stfle_init instead of
3050 s390_libc_ifunc_init.
3051 * sysdeps/s390/memcmp.c: Likewise.
3052 * sysdeps/s390/memcpy.c: Likewise.
3053 * sysdeps/s390/mempcpy.c: Likewise.
3054 * sysdeps/s390/memset.c: Likewise.
3055
3056 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3057
3058 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
3059 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
3060
3061 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3062
3063 * sysdeps/s390/multiarch/Makefile
3064 (sysdep_routines): Remove wmemcmp variants.
3065 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
3066 * sysdeps/s390/multiarch/ifunc-impl-list.c
3067 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
3068 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
3069 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
3070 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
3071 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
3072 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
3073 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
3074 * sysdeps/s390/ifunc-wmemcmp.h: New file.
3075
3076 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3077
3078 * sysdeps/s390/multiarch/Makefile
3079 (sysdep_routines): Remove wmemset variants.
3080 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
3081 * sysdeps/s390/multiarch/ifunc-impl-list.c
3082 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
3083 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
3084 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
3085 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
3086 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
3087 * sysdeps/s390/multiarch/wmemset.c: Move to ...
3088 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
3089 * sysdeps/s390/ifunc-wmemset.h: New file.
3090
3091 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3092
3093 * sysdeps/s390/multiarch/Makefile
3094 (sysdep_routines): Remove wmemchr variants.
3095 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
3096 * sysdeps/s390/multiarch/ifunc-impl-list.c
3097 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
3098 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
3099 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
3100 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
3101 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
3102 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
3103 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
3104 * sysdeps/s390/ifunc-wmemchr.h: New file.
3105
3106 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3107
3108 * sysdeps/s390/multiarch/Makefile
3109 (sysdep_routines): Remove wcscspn variants.
3110 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
3111 * sysdeps/s390/multiarch/ifunc-impl-list.c
3112 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
3113 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
3114 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
3115 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
3116 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
3117 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
3118 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
3119 * sysdeps/s390/ifunc-wcscspn.h: New file.
3120
3121 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3122
3123 * sysdeps/s390/multiarch/Makefile
3124 (sysdep_routines): Remove wcspbrk variants.
3125 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
3126 * sysdeps/s390/multiarch/ifunc-impl-list.c
3127 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
3128 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
3129 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
3130 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
3131 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
3132 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
3133 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
3134 * sysdeps/s390/ifunc-wcspbrk.h: New file.
3135
3136 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3137
3138 * sysdeps/s390/multiarch/Makefile
3139 (sysdep_routines): Remove wcsspn variants.
3140 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
3141 * sysdeps/s390/multiarch/ifunc-impl-list.c
3142 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
3143 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
3144 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
3145 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
3146 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
3147 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
3148 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
3149 * sysdeps/s390/ifunc-wcsspn.h: New file.
3150
3151 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3152
3153 * sysdeps/s390/multiarch/Makefile
3154 (sysdep_routines): Remove wcsrchr variants.
3155 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
3156 * sysdeps/s390/multiarch/ifunc-impl-list.c
3157 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
3158 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
3159 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
3160 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
3161 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
3162 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
3163 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
3164 * sysdeps/s390/ifunc-wcsrchr.h: New file.
3165
3166 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3167
3168 * sysdeps/s390/multiarch/Makefile
3169 (sysdep_routines): Remove wcschrnul variants.
3170 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
3171 * sysdeps/s390/multiarch/ifunc-impl-list.c
3172 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
3173 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
3174 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
3175 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
3176 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
3177 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
3178 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
3179 * sysdeps/s390/ifunc-wcschrnul.h: New file.
3180
3181 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3182
3183 * sysdeps/s390/multiarch/Makefile
3184 (sysdep_routines): Remove wcschr variants.
3185 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
3186 * sysdeps/s390/multiarch/ifunc-impl-list.c
3187 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
3188 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
3189 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
3190 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
3191 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
3192 * sysdeps/s390/multiarch/wcschr.c: Move to ...
3193 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
3194 * sysdeps/s390/ifunc-wcschr.h: New file.
3195
3196 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3197
3198 * sysdeps/s390/multiarch/Makefile
3199 (sysdep_routines): Remove wcsncmp variants.
3200 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
3201 * sysdeps/s390/multiarch/ifunc-impl-list.c
3202 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
3203 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
3204 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
3205 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
3206 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
3207 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
3208 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
3209 * sysdeps/s390/ifunc-wcsncmp.h: New file.
3210
3211 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3212
3213 * sysdeps/s390/multiarch/Makefile
3214 (sysdep_routines): Remove wcscmp variants.
3215 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
3216 * sysdeps/s390/multiarch/ifunc-impl-list.c
3217 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
3218 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
3219 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
3220 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
3221 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
3222 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
3223 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
3224 * sysdeps/s390/ifunc-wcscmp.h: New file.
3225
3226 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3227
3228 * sysdeps/s390/multiarch/Makefile
3229 (sysdep_routines): Remove wcsncat variants.
3230 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
3231 * sysdeps/s390/multiarch/ifunc-impl-list.c
3232 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
3233 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
3234 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
3235 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
3236 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
3237 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
3238 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
3239 * sysdeps/s390/ifunc-wcsncat.h: New file.
3240
3241 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3242
3243 * sysdeps/s390/multiarch/Makefile
3244 (sysdep_routines): Remove wcscat variants.
3245 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
3246 * sysdeps/s390/multiarch/ifunc-impl-list.c
3247 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
3248 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
3249 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
3250 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
3251 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
3252 * sysdeps/s390/multiarch/wcscat.c: Move to ...
3253 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
3254 * sysdeps/s390/ifunc-wcscat.h: New file.
3255
3256 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3257
3258 * sysdeps/s390/multiarch/Makefile
3259 (sysdep_routines): Remove wcpncpy variants.
3260 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
3261 * sysdeps/s390/multiarch/ifunc-impl-list.c
3262 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
3263 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
3264 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
3265 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
3266 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
3267 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
3268 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
3269 * sysdeps/s390/ifunc-wcpncpy.h: New file.
3270
3271 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3272
3273 * sysdeps/s390/multiarch/Makefile
3274 (sysdep_routines): Remove wcsncpy variants.
3275 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
3276 * sysdeps/s390/multiarch/ifunc-impl-list.c
3277 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
3278 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
3279 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
3280 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
3281 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
3282 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
3283 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
3284 * sysdeps/s390/ifunc-wcsncpy.h: New file.
3285
3286 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3287
3288 * sysdeps/s390/multiarch/Makefile
3289 (sysdep_routines): Remove wcpcpy variants.
3290 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
3291 * sysdeps/s390/multiarch/ifunc-impl-list.c
3292 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
3293 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
3294 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
3295 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
3296 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
3297 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
3298 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
3299 * sysdeps/s390/ifunc-wcpcpy.h: New file.
3300
3301 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3302
3303 * sysdeps/s390/multiarch/Makefile
3304 (sysdep_routines): Remove wcscpy variants.
3305 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
3306 * sysdeps/s390/multiarch/ifunc-impl-list.c
3307 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
3308 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
3309 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
3310 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
3311 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
3312 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
3313 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
3314 * sysdeps/s390/ifunc-wcscpy.h: New file.
3315
3316 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3317
3318 * sysdeps/s390/multiarch/Makefile
3319 (sysdep_routines): Remove wcsnlen variants.
3320 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
3321 * sysdeps/s390/multiarch/ifunc-impl-list.c
3322 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
3323 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
3324 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
3325 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
3326 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
3327 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
3328 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
3329 * sysdeps/s390/ifunc-wcsnlen.h: New file.
3330
3331 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3332
3333 * sysdeps/s390/multiarch/Makefile
3334 (sysdep_routines): Remove wcslen variants.
3335 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
3336 * sysdeps/s390/multiarch/ifunc-impl-list.c
3337 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
3338 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
3339 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
3340 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
3341 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
3342 * sysdeps/s390/multiarch/wcslen.c: Move to ...
3343 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
3344 * sysdeps/s390/ifunc-wcslen.h: New file.
3345
3346 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3347
3348 * sysdeps/s390/multiarch/Makefile
3349 (sysdep_routines): Remove memrchr variants.
3350 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
3351 * sysdeps/s390/multiarch/ifunc-impl-list.c
3352 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
3353 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
3354 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
3355 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
3356 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
3357 * sysdeps/s390/multiarch/memrchr.c: Move to ...
3358 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
3359 * sysdeps/s390/ifunc-memrchr.h: New file.
3360
3361 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3362
3363 * sysdeps/s390/multiarch/Makefile
3364 (sysdep_routines): Remove memccpy variants.
3365 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
3366 * sysdeps/s390/multiarch/ifunc-impl-list.c
3367 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
3368 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
3369 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
3370 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
3371 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
3372 * sysdeps/s390/multiarch/memccpy.c: Move to ...
3373 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
3374 * sysdeps/s390/ifunc-memccpy.h: New file.
3375
3376 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3377
3378 * sysdeps/s390/multiarch/Makefile
3379 (sysdep_routines): Remove rawmemchr variants.
3380 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
3381 * sysdeps/s390/multiarch/ifunc-impl-list.c
3382 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
3383 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
3384 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
3385 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
3386 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
3387 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
3388 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
3389 * sysdeps/s390/ifunc-rawmemchr.h: New file.
3390
3391 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3392
3393 * sysdeps/s390/multiarch/Makefile
3394 (sysdep_routines): Remove memchr variants.
3395 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
3396 * sysdeps/s390/multiarch/ifunc-impl-list.c
3397 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
3398 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
3399 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
3400 * sysdeps/s390/multiarch/memchr.c: Move to ...
3401 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
3402 * sysdeps/s390/ifunc-memchr.h: New file.
3403 * sysdeps/s390/s390-64/memchr.S: Move to ...
3404 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
3405 for 31/64bit and ifunc handling.
3406 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
3407 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
3408 * sysdeps/s390/s390-32/memchr.S: Likewise.
3409
3410 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3411
3412 * sysdeps/s390/multiarch/Makefile
3413 (sysdep_routines): Remove strcspn variants.
3414 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
3415 * sysdeps/s390/multiarch/ifunc-impl-list.c
3416 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
3417 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
3418 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
3419 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
3420 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
3421 * sysdeps/s390/multiarch/strcspn.c: Move to ...
3422 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
3423 * sysdeps/s390/ifunc-strcspn.h: New file.
3424
3425 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3426
3427 * sysdeps/s390/multiarch/Makefile
3428 (sysdep_routines): Remove strpbrk variants.
3429 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
3430 * sysdeps/s390/multiarch/ifunc-impl-list.c
3431 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
3432 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
3433 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
3434 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
3435 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
3436 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
3437 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
3438 * sysdeps/s390/ifunc-strpbrk.h: New file.
3439
3440 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3441
3442 * sysdeps/s390/multiarch/Makefile
3443 (sysdep_routines): Remove strspn variants.
3444 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
3445 * sysdeps/s390/multiarch/ifunc-impl-list.c
3446 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
3447 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
3448 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
3449 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
3450 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
3451 * sysdeps/s390/multiarch/strspn.c: Move to ...
3452 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
3453 * sysdeps/s390/ifunc-strspn.h: New file.
3454
3455 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3456
3457 * sysdeps/s390/multiarch/Makefile
3458 (sysdep_routines): Remove strrchr variants.
3459 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
3460 * sysdeps/s390/multiarch/ifunc-impl-list.c
3461 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
3462 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
3463 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
3464 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
3465 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
3466 * sysdeps/s390/multiarch/strrchr.c: Move to ...
3467 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
3468 * sysdeps/s390/ifunc-strrchr.h: New file.
3469
3470 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3471
3472 * sysdeps/s390/multiarch/Makefile
3473 (sysdep_routines): Remove strchrnul variants.
3474 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
3475 * sysdeps/s390/multiarch/ifunc-impl-list.c
3476 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
3477 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
3478 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
3479 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
3480 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
3481 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
3482 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
3483 * sysdeps/s390/ifunc-strchrnul.h: New file.
3484
3485 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3486
3487 * sysdeps/s390/multiarch/Makefile
3488 (sysdep_routines): Remove strchr variants.
3489 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
3490 * sysdeps/s390/multiarch/ifunc-impl-list.c
3491 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
3492 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
3493 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
3494 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
3495 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
3496 * sysdeps/s390/multiarch/strchr.c: Move to ...
3497 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
3498 * sysdeps/s390/ifunc-strchr.h: New file.
3499
3500 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3501
3502 * sysdeps/s390/multiarch/Makefile
3503 (sysdep_routines): Remove strncmp variants.
3504 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
3505 * sysdeps/s390/multiarch/ifunc-impl-list.c
3506 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
3507 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
3508 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
3509 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
3510 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
3511 * sysdeps/s390/multiarch/strncmp.c: Move to ...
3512 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
3513 * sysdeps/s390/ifunc-strncmp.h: New file.
3514
3515 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3516
3517 * sysdeps/s390/multiarch/Makefile
3518 (sysdep_routines): Remove strcmp variants.
3519 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
3520 * sysdeps/s390/multiarch/ifunc-impl-list.c
3521 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
3522 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
3523 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
3524 * sysdeps/s390/multiarch/strcmp.c: Move to ...
3525 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
3526 * sysdeps/s390/ifunc-strcmp.h: New file.
3527 * sysdeps/s390/s390-64/strcmp.S: Move to ...
3528 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
3529 for 31/64bit and ifunc handling.
3530 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
3531 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
3532 * sysdeps/s390/s390-32/strcmp.S: Likewise.
3533
3534 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3535
3536 * sysdeps/s390/multiarch/Makefile
3537 (sysdep_routines): Remove strncat variants.
3538 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
3539 * sysdeps/s390/multiarch/ifunc-impl-list.c
3540 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
3541 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
3542 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
3543 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
3544 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
3545 * sysdeps/s390/multiarch/strncat.c: Move to ...
3546 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
3547 * sysdeps/s390/ifunc-strncat.h: New file.
3548
3549 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3550
3551 * sysdeps/s390/multiarch/Makefile
3552 (sysdep_routines): Remove strcat variants.
3553 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
3554 * sysdeps/s390/multiarch/ifunc-impl-list.c
3555 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
3556 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
3557 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
3558 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
3559 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
3560 * sysdeps/s390/multiarch/strcat.c: Move to ...
3561 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
3562 * sysdeps/s390/ifunc-strcat.h: New file.
3563
3564 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3565
3566 * sysdeps/s390/multiarch/Makefile
3567 (sysdep_routines): Remove stpncpy variants.
3568 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
3569 * sysdeps/s390/multiarch/ifunc-impl-list.c
3570 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
3571 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
3572 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
3573 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
3574 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
3575 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
3576 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
3577 * sysdeps/s390/ifunc-stpncpy.h: New file.
3578
3579 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3580
3581 * sysdeps/s390/multiarch/Makefile
3582 (sysdep_routines): Remove strncpy variants.
3583 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
3584 * sysdeps/s390/multiarch/ifunc-impl-list.c
3585 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
3586 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
3587 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
3588 * sysdeps/s390/multiarch/strncpy.c: Move to ...
3589 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
3590 * sysdeps/s390/ifunc-strncpy.h: New file.
3591 * sysdeps/s390/s390-64/strncpy.S: Move to ...
3592 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
3593 and adjust ifunc handling.
3594 * sysdeps/s390/s390-32/strncpy.S: Move to ...
3595 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
3596 and adjust ifunc handling.
3597 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
3598 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
3599
3600 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3601
3602 * sysdeps/s390/multiarch/Makefile
3603 (sysdep_routines): Remove stpcpy variants.
3604 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
3605 * sysdeps/s390/multiarch/ifunc-impl-list.c
3606 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
3607 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
3608 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
3609 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
3610 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
3611 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
3612 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
3613 * sysdeps/s390/ifunc-stpcpy.h: New file.
3614
3615 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3616
3617 * sysdeps/s390/multiarch/Makefile
3618 (sysdep_routines): Remove strcpy variants.
3619 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
3620 * sysdeps/s390/multiarch/ifunc-impl-list.c
3621 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
3622 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
3623 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
3624 * sysdeps/s390/multiarch/strcpy.c: Move to ...
3625 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
3626 * sysdeps/s390/ifunc-strcpy.h: New file.
3627 * sysdeps/s390/s390-64/strcpy.S: Move to ...
3628 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
3629 for 31/64bit and ifunc handling.
3630 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
3631 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
3632 * sysdeps/s390/s390-32/strcpy.S: Likewise.
3633
3634 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3635
3636 * sysdeps/s390/multiarch/Makefile
3637 (sysdep_routines): Remove strnlen variants.
3638 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
3639 * sysdeps/s390/multiarch/ifunc-impl-list.c
3640 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
3641 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
3642 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
3643 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
3644 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
3645 * sysdeps/s390/multiarch/strnlen.c: Move to ...
3646 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
3647 * sysdeps/s390/ifunc-strnlen.h: New file.
3648
3649 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3650
3651 * sysdeps/s390/multiarch/Makefile
3652 (sysdep_routines): Remove strlen variants.
3653 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
3654 * sysdeps/s390/multiarch/ifunc-impl-list.c
3655 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
3656 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
3657 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
3658 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
3659 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
3660 * sysdeps/s390/multiarch/strlen.c: Move to ...
3661 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
3662 * sysdeps/s390/ifunc-strlen.h: New file.
3663
3664 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3665
3666 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
3667 * sysdeps/s390/multiarch/ifunc-impl-list.c
3668 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
3669 * sysdeps/s390/ifunc-memmem.h: New file.
3670 * sysdeps/s390/memmem.c: Likewise.
3671 * sysdeps/s390/memmem-c.c: Likewise.
3672 * sysdeps/s390/memmem-vx.c: Likewise.
3673
3674 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3675
3676 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
3677 * sysdeps/s390/multiarch/ifunc-impl-list.c
3678 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
3679 * sysdeps/s390/ifunc-strstr.h: New file.
3680 * sysdeps/s390/strstr.c: Likewise.
3681 * sysdeps/s390/strstr-c.c: Likewise.
3682 * sysdeps/s390/strstr-vx.c: Likewise.
3683
3684 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3685
3686 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
3687 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
3688 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
3689 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
3690 New defines.
3691 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
3692 * sysdeps/s390/memmove-c.c: New file.
3693 * sysdeps/s390/memmove.c: Likewise.
3694 * sysdeps/s390/multiarch/ifunc-impl-list.c
3695 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
3696
3697 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3698
3699 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
3700 * sysdeps/s390/configure.ac: Add check for z13 support.
3701 * sysdeps/s390/configure: Regenerated.
3702
3703 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3704
3705 * sysdeps/s390/memcopy.h: New file.
3706
3707 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3708
3709 * sysdeps/s390/s390-32/bcopy.S: Remove.
3710 * sysdeps/s390/s390-64/bcopy.S: Likewise.
3711
3712 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3713
3714 * sysdeps/s390/ifunc-memcpy.h: New File.
3715 * sysdeps/s390/memcpy.S: Move to ...
3716 * sysdeps/s390/memcpy-z900.S ... here.
3717 Move implementations from memcpy-s390x.s to here.
3718 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
3719 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3720 Remove memcpy/mempcpy variants.
3721 * sysdeps/s390/Makefile (sysdep_routines):
3722 Add memcpy/mempcpy variants.
3723 * sysdeps/s390/multiarch/ifunc-impl-list.c
3724 (__libc_ifunc_impl_list): Adjust ifunc variants for
3725 memcpy and mempcpy.
3726 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
3727 to ...
3728 * sysdeps/s390/memcpy.c: ... here.
3729 Adjust ifunc variants for memcpy.
3730 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
3731 * sysdeps/s390/mempcpy.c: ... here.
3732 Adjust ifunc variants for mempcpy.
3733 * sysdeps/s390/mempcpy.S: Delete file.
3734
3735 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3736
3737 * sysdeps/s390/s390-64/memcpy.S: Move to ...
3738 * sysdeps/s390/memcpy.S: ... here.
3739 Adjust to be usable for 31/64bit.
3740 * sysdeps/s390/s390-32/memcpy.S: Delete File.
3741 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
3742 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
3743 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3744 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
3745 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
3746 Adjust to be usable for 31/64bit.
3747 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
3748 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
3749 * sysdeps/s390/multiarch/memcpy.c: ... here.
3750 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
3751
3752 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3753
3754 * sysdeps/s390/ifunc-memcmp.h: New File.
3755 * sysdeps/s390/memcmp.S: Move to ...
3756 * sysdeps/s390/memcmp-z900.S ... here.
3757 Move implementations from memcmp-s390x.s to here.
3758 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
3759 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3760 Remove memcmp variants.
3761 * sysdeps/s390/Makefile (sysdep_routines):
3762 Add memcmp variants.
3763 * sysdeps/s390/multiarch/ifunc-impl-list.c
3764 (__libc_ifunc_impl_list): Adjust ifunc variants for
3765 memcmp.
3766 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
3767 to ...
3768 * sysdeps/s390/memcmp.c: ... here.
3769 Adjust ifunc variants for memcmp.
3770
3771 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3772
3773 * sysdeps/s390/s390-64/memcmp.S: Move to ...
3774 * sysdeps/s390/memcmp.S: ... here.
3775 Adjust to be usable for 31/64bit.
3776 * sysdeps/s390/s390-32/memcmp.S: Delete File.
3777 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
3778 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3779 Remove memcmp.
3780 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3781 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
3782 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
3783 Adjust to be usable for 31/64bit.
3784 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
3785 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
3786 * sysdeps/s390/multiarch/memcmp.c: ... here.
3787 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
3788
3789 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3790
3791 * sysdeps/s390/s390-32/bzero.S: Delete file.
3792 * sysdeps/s390/s390-64/bzero.S: Likewise.
3793 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
3794 * sysdeps/s390/bzero.c: New file.
3795 * sysdeps/s390/memset-z900.S: Add bzero entry points.
3796 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
3797 * sysdeps/s390/multiarch/ifunc-impl-list.c
3798 (__libc_ifunc_impl_list): Add bzero ifunc variants.
3799
3800 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3801
3802 * sysdeps/s390/ifunc-memset.h: New File.
3803 * sysdeps/s390/memset.S: Move to ...
3804 * sysdeps/s390/memset-z900.S ... here.
3805 Move implementations from memset-s390x.s to here.
3806 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
3807 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3808 Remove memset variants.
3809 * sysdeps/s390/Makefile (sysdep_routines):
3810 Add memset variants.
3811 * sysdeps/s390/multiarch/ifunc-impl-list.c
3812 (__libc_ifunc_impl_list): Adjust ifunc variants for
3813 memset.
3814 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
3815 to ...
3816 * sysdeps/s390/memset.c: ... here.
3817 Adjust ifunc variants for memset.
3818
3819 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3820
3821 * sysdeps/s390/s390-64/memset.S: Move to ...
3822 * sysdeps/s390/memset.S: ... here.
3823 Adjust to be usable for 31/64bit.
3824 * sysdeps/s390/s390-32/memset.S: Delete File.
3825 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
3826 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3827 Remove memset.
3828 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3829 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
3830 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
3831 Adjust to be usable for 31/64bit.
3832 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
3833 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
3834 * sysdeps/s390/multiarch/memset.c: ... here.
3835 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
3836
3837 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3838
3839 * sysdeps/s390/multiarch/ifunc-resolve.h
3840 (s390_libc_ifunc_init, s390_libc_ifunc,
3841 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
3842
3843 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3844
3845 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
3846 * sysdeps/s390/configure.ac: Add check for z10 support.
3847 * sysdeps/s390/configure: Regenerated.
3848
3849 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
3850
3851 * sysdeps/i386/atomic-machine.h: Merged with ...
3852 * sysdeps/x86_64/atomic-machine.h: To ...
3853 * sysdeps/x86/atomic-machine.h: This. New file.
3854
3855 2018-12-18 Florian Weimer <fweimer@redhat.com>
3856
3857 Rewrite locale/gen-translit.pl in Python.
3858 * locale/Makefile (generated): Add C-translit.h.
3859 (before-compile): Add $(objpfx)C-translit.h.
3860 (C-translit.h): Move to $(objpfx). Create target directory.
3861 Build using Python script.
3862 * locale/gen-translit.py: New file.
3863 * locale/gen-translit.pl: Remove file.
3864 * locale/C-translit.h.in: Change comment character to '#' for
3865 easier parsing without a C preprocessor.
3866 * locale/C-translit.h: Remove generated file.
3867 * manual/install.texi (Tools for Compilation): Do not mention
3868 C-translit.h.
3869 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3870 Remove locale/C-translit.h.
3871 * scripts/update-copyrights: Likewise.
3872 * INSTALL: Regenerate.
3873
3874 2018-12-18 Florian Weimer <fweimer@redhat.com>
3875
3876 [BZ #23995]
3877 * localedata/locales/bi_VU: Remove executable bit from file.
3878
3879 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3880
3881 * include/time.h
3882 (__localtime64): Add.
3883 * manual/maint.texi: Document Y2038 symbol handling.
3884 * time/localtime.c
3885 (__localtime64): Add.
3886 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3887
3888 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3889
3890 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3891 Do not clobber r12.
3892
3893 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3894 to allow extra macros from first or second sources.
3895 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3896 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3897 (tests-special): Add $(objpfx)tst-mman-consts.out.
3898 ($(objpfx)tst-mman-consts.out): New makefile target.
3899
3900 2018-12-17 Mao Han <han_mao@c-sky.com>
3901
3902 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
3903 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
3904 without stat64 system call support.
3905 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3906 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
3907 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
3908 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
3909 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
3910 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
3911 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
3912 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
3913 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
3914 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
3915 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
3916
3917 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
3918
3919 regex: fix storage-exhaustion error
3920 [BZ #18040]
3921 * posix/regexec.c (get_subexp):
3922 Do not continue if storage is exhausted.
3923
3924 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3925
3926 regex: fix heap-use-after-free error
3927 [BZ #18040]
3928 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
3929 https://debbugs.gnu.org/32592
3930 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
3931 call extend_buffers which reallocates the re_string_t internal buffer.
3932 Local variable 'buf' was not updated in such case, resulting in
3933 use-after-free.
3934 * posix/regexec.c (get_subexp): Update 'buf' after call to
3935 get_subexp_sub.
3936
3937 2018-12-15 Florian Weimer <fweimer@redhat.com>
3938
3939 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
3940 (minimum_stride_size): Use it.
3941 (support_blob_repeat_allocate): Likewise.
3942
3943 2018-12-14 Joseph Myers <joseph@codesourcery.com>
3944
3945 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
3946 definition.
3947 (acosh): Likewise.
3948 (atanh): Likewise.
3949
3950 2018-12-14 Florian Weimer <fweimer@redhat.com>
3951
3952 * manual/process.texi (Process Creation Concepts): Remove
3953 documentation of process (ID) lifetime. List more process
3954 creation functions. Reference Process Identification section.
3955 (Process Identification): Add information about process ID
3956 lifetime. Describe Linux thread/task IDs.
3957 * manual/signal.texi (Signaling Another Process): Mention that the
3958 signal is always sent to the process.
3959
3960 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3961
3962 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3963 and tst-ldbl-efgcvt.
3964 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3965 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3966 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3967 (fcvt_tests, output_error, output_r_error, do_test): Use the
3968 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3969 select the type of floating-point variables and arguments; to
3970 produce extra tests for double and conversion specifiers for
3971 printf; and to set the names of called functions.
3972 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3973 in tst-efgcvt-template.c.
3974 * misc/tst-ldbl-efgcvt.c: Likewise.
3975
3976 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3977
3978 * nss/Makefile (tst-nss-test3.out): New rule.
3979
3980 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3981
3982 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3983 clobber sp.
3984
3985 2018-12-13 fanjinke <fanjinke@hygon.cn>
3986
3987 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3988 "HygonGenuine".
3989
3990 2018-12-13 Andreas Schwab <schwab@suse.de>
3991
3992 [BZ #23861]
3993 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3994 (__pthread_rwlock_rdlock_full): Update expected value for
3995 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3996 * nptl/tst-rwlock-pwn.c: New file.
3997 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3998
3999 2018-12-12 Joseph Myers <joseph@codesourcery.com>
4000
4001 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
4002 definition.
4003
4004 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4005
4006 * benchtests/scripts/compare_bench.py (do_compare): write to
4007 stderr in casestat is not present.
4008 * benchtests/scripts/compare_bench.py (plot_graphs): write to
4009 stderr in case timings field is not present. Also string showing
4010 the output filename goes into the stderr.
4011
4012 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4013
4014 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
4015 and ZeroDivisorError exceptions.
4016 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
4017 argument to loop through user provided statistics.
4018 * benchtests/scripts/compare_bench.py (main): Include the --stats
4019 argument.
4020
4021 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4022
4023 * benchtests/scripts/compare_bench.py (compare_runs): Continue
4024 instead of return.
4025
4026 2018-12-12 Florian Weimer <fweimer@redhat.com>
4027
4028 * sysdeps/posix/timespec_get.c: Add missing “any later version”
4029 clause to copyright header.
4030
4031 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4032
4033 [BZ #23614]
4034 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
4035 registers saved in the stack frame.
4036 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
4037 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
4038
4039 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4040
4041 * include/bits/monetary-ldbl.h: New file.
4042 * include/bits/printf-ldbl.h: Likewise.
4043 * include/bits/stdio-ldbl.h: Likewise.
4044 * include/bits/stdlib-ldbl.h: Likewise.
4045 * include/bits/syslog-ldbl.h: Likewise.
4046 * include/bits/wchar-ldbl.h: Likewise.
4047
4048 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4049
4050 * libio/libio.h: Remove redirection for _IO_vfprintf.
4051
4052 2018-12-11 Andreas Schwab <schwab@suse.de>
4053
4054 * Makerules: Remove all references to abilist-pattern.
4055 (update-all-abi): Simplify find expression.
4056
4057 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
4058
4059 [BZ #23961]
4060 * math/auto-libm-test-in: Add new test case.
4061 * math/auto-libm-test-out-pow: Regenerated.
4062 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
4063
4064 2018-12-10 DJ Delorie <dj@redhat.com>
4065
4066 [BZ #23948]
4067 * support/test-container.c: Move postclean step to before we
4068 change namespaces.
4069
4070 2018-12-10 Joseph Myers <joseph@codesourcery.com>
4071
4072 * scripts/gen-as-const.py (main): Handle --python option.
4073 * scripts/gen-py-const.awk: Remove.
4074 * Makerules (py-const-script): Use gen-as-const.py.
4075 ($(py-const)): Likewise.
4076 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
4077 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
4078 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
4079 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
4080 ~PTHREAD_MUTEX_NO_ELISION_NP.
4081 * manual/README.pretty-printers: Update reference to
4082 gen-py-const.awk.
4083
4084 * scripts/glibcextract.py: New file.
4085 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
4086 or tempfile. Import glibcexctract.
4087 (compute_c_consts): Remove. Moved to glibcextract.py.
4088 (gen_test): Update reference to compute_c_consts.
4089 (main): Likewise.
4090 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
4091 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
4092 * sysdeps/unix/sysv/linux/Makefile
4093 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
4094 Redirect stderr as well as stdout.
4095
4096 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
4097
4098 [BZ #19767]
4099 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
4100 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
4101 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
4102 ALWAYS_USE_VSYSCALL.
4103 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
4104 ALWAYS_USE_VSYSCALL.
4105 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
4106 ALWAYS_USE_VSYSCALL.
4107
4108 2018-12-10 Florian Weimer <fweimer@redhat.com>
4109
4110 [BZ #23972]
4111 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
4112 offset instead of count for clarity. Fix typo in comment.
4113 (__old_getdents64): Keep track of previous offset. Use it to call
4114 handle_overflow.
4115 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
4116 that d_off is never zero.
4117
4118 2018-12-10 Andreas Schwab <schwab@suse.de>
4119
4120 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
4121 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
4122 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
4123 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
4124 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
4125
4126 2018-12-10 Joseph Myers <joseph@codesourcery.com>
4127
4128 * timezone/private.h: Update from tzcode 2018g.
4129 * timezone/tzfile.h: Likewise.
4130 * timezone/tzselect.ksh: Likewise.
4131 * timezone/zdump.c: Likewise.
4132 * timezone/zic.c: Likewise.
4133
4134 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
4135
4136 [BZ #23490]
4137 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
4138 (do_test): Adjust buffer size and fix format.
4139
4140 2018-12-07 DJ Delorie <dj@redhat.com>
4141
4142 [BZ #23907]
4143 * malloc/tst-tcfree3.c: New.
4144 * malloc/Makefile: Add it.
4145
4146 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4147
4148 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
4149
4150 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4151
4152 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
4153 used as a mask for the mode argument of __vfscanf_internal and
4154 __vfwscanf_internal.
4155 * stdio-common/vfscanf-internal.c
4156 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
4157 (__strtof128_internal): Define to __wcstof128_internal.
4158 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
4159 __strtof128_internal or __wcstof128_internal when the format of
4160 long double is the same as _Float128.
4161
4162 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
4163
4164 * include/unistd.h (__confstr): Add prototype and hidden prototype.
4165 * posix/confstr.c (confstr): Rename to __confstr.
4166 (__confstr): Add hidden def.
4167 (confstr): Add weak alias for __confstr.
4168 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
4169 confstr.
4170
4171 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4172
4173 * NEWS: Mention getcpu.
4174 * include/sched.h (__getcpu): New libc_hidden_proto.
4175 * manual/resource.texi: Document getcpu.
4176 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
4177 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
4178 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
4179 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4180 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4181 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4182 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4183 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4184 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4185 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4186 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4187 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4188 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
4189 Likewise.
4190 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4191 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4192 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4193 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4194 Likewise.
4195 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4196 Likewise.
4197 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
4198 Likewise.
4199 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
4200 Likewise.
4201 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4202 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4203 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4204 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4205 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4206 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4207 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4208 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4209 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
4210 * sysdeps/unix/sysv/linux/getcpu.c: New file.
4211 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
4212 Also check getcpu.
4213
4214 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4215
4216 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
4217 functions.
4218 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
4219
4220 2018-12-07 Florian Weimer <fweimer@redhat.com>
4221
4222 [BZ #17405]
4223 * posix/Makefile (routines): Add spawn_faction_addfchdir.
4224 * posix/Versions (GLIBC_2.29): Export
4225 posix_spawn_file_actions_addfchdir_np.
4226 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
4227 * posix/spawn_faction_destroy.c
4228 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
4229 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
4230 and the field action.fchdir_action.
4231 * posix/tst-spawn-chdir.c (add_chdir): New function.
4232 (do_test): Add do_fchdir loop. Call add_chdir.
4233 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
4234 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4235 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4236 posix_spawn_file_actions_addfchdir_np.
4237 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4238 Likewise.
4239 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4240 Likewise.
4241 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4242 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4243 Likewise.
4244 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4245 Likewise.
4246 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4247 Likewise.
4248 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4249 Likewise.
4250 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4251 Likewise.
4252 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4253 Likewise.
4254 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4255 (GLIBC_2.29): Likewise.
4256 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4257 (GLIBC_2.29): Likewise.
4258 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4259 (GLIBC_2.29): Likewise.
4260 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4261 (GLIBC_2.29): Likewise.
4262 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4263 Likewise.
4264 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4265 (GLIBC_2.29): Likewise.
4266 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4267 (GLIBC_2.29): Likewise.
4268 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4269 (GLIBC_2.29): Likewise.
4270 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4271 (GLIBC_2.29): Likewise.
4272 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4273 Likewise.
4274 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4275 Likewise.
4276 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4277 Likewise.
4278 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4279 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4280 Likewise.
4281 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4282 Likewise.
4283 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4284 Likewise.
4285 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4286 Likewise.
4287
4288 2018-12-06 Joseph Myers <joseph@codesourcery.com>
4289
4290 * manual/texinfo.tex: Update to version 2018-09-21.20 with
4291 trailing whitespace removed.
4292 * scripts/config.guess: Update to version 2018-11-28.
4293 * scripts/config.sub: Update to version 2018-11-28.
4294 * scripts/install-sh: Update to version 2018-03-11.20.
4295 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
4296 * scripts/move-if-change: Update to version 2018-03-07 03:47.
4297
4298 2018-12-07 Florian Weimer <fweimer@redhat.com>
4299
4300 [BZ #23927]
4301 CVE-2018-19591
4302 * inet/tst-if_index-long.c: New file.
4303 * inet/Makefile (tests): Add tst-if_index-long.
4304
4305 2018-12-07 Florian Weimer <fweimer@redhat.com>
4306
4307 * support/check.h (support_record_failure_is_failed): Declare.
4308 * support/descriptors.h: New file.
4309 * support/support_descriptors.c: Likewise.
4310 * support/tst-support_descriptors.c: Likewise.
4311 * support/support_record_failure.c
4312 (support_record_failure_is_failed): New function.
4313 * support/Makefile (libsupport-routines): Add support_descriptors.
4314 (tests): Add tst-support_descriptors.
4315
4316 2018-12-05 Zack Weinberg <zackw@panix.com>
4317 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4318
4319 * stdio-common/vfprintf-internal.c
4320 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
4321 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
4322 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
4323 and __no_long_double.
4324 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
4325 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
4326 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
4327 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
4328 and __nldbl_*syslog* functions.
4329 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
4330 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
4331 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
4332 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
4333 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
4334 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
4335 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
4336 (__nldbl_vwprintf, __nldbl_wprintf):
4337 Directly call the appropriate __v*printf_internal routine, passing
4338 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
4339 variable names.
4340 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
4341 (__nldbl___printf_chk, __nldbl___snprintf_chk)
4342 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
4343 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
4344 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
4345 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4346 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
4347 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
4348 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
4349 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
4350 Likewise, and also pass PRINTF_FORTIFY when appropriate.
4351 (__nldbl_syslog, __nldbl_vsyslog):
4352 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
4353 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4354 appropriate.
4355 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4356 appropriate.
4357
4358 2018-12-05 Zack Weinberg <zackw@panix.com>
4359 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4360
4361 [BZ #11319]
4362 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
4363 Moved here from debug/vsprintf_chk.c.
4364 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
4365 and completion logic for the strfile to match exactly what
4366 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
4367 _IO_str_init_static_internal instead of maxlen-1.
4368 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4369 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
4370 __vsprintf_internal.
4371
4372 * debug/vsprintf_chk.c (__vsprintf_chk)
4373 * debug/sprintf_chk.c (__sprintf_chk):
4374 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
4375 'flags' argument is positive, and slen as maxlen. No need to lock
4376 the FILE and/or construct a temporary FILE. Minimize and normalize
4377 header inclusions and variable names. Do not libc_hidden_def anything.
4378
4379 * debug/asprintf_chk.c (__asprintf_chk)
4380 * debug/dprintf_chk.c (__dprintf_chk)
4381 * debug/fprintf_chk.c (__fprintf_chk)
4382 * debug/fwprintf_chk.c (__fwprintf_chk)
4383 * debug/printf_chk.c (__printf_chk)
4384 * debug/snprintf_chk.c (__snprintf_chk)
4385 * debug/swprintf_chk.c (__swprintf_chk)
4386 * debug/vasprintf_chk.c (__vasprintf_chk)
4387 * debug/vdprintf_chk.c (__vdprintf_chk)
4388 * debug/vfprintf_chk.c (__vfprintf_chk)
4389 * debug/vfwprintf_chk.c (__vfwprintf_chk)
4390 * debug/vprintf_chk.c (__vprintf_chk)
4391 * debug/vsnprintf_chk.c (__vsnprintf_chk)
4392 * debug/vswprintf_chk.c (__vswprintf_chk)
4393 * debug/vwprintf_chk.c (__vwprintf_chk)
4394 * debug/wprintf_chk.c (__wprintf_chk):
4395 Directly call the corresponding vxxprintf_internal function, passing
4396 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
4397 the FILE and/or construct a temporary FILE. Minimize and normalize
4398 header inclusions and variable names. Do not libc_hidden_def anything.
4399
4400 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
4401 __obstack_vprintf_internal.
4402 (__obstack_vprintf_chk): Convert into a wrapper that calls
4403 __obstack_vprintf_internal (these two functions already had the
4404 same code) and move to new file...
4405 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
4406 file.
4407 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
4408 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
4409 * debug/Makefile (routines): Add vobprintf_chk.
4410
4411 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4412 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4413 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
4414 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4415 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
4416 (__nldbl___obstack_vfprintf_chk):
4417 Directly call the corresponding vxxprintf_internal function,
4418 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
4419 duplicate comparison of slen with 0 or maxlen from the corresponding
4420 non-__nldbl function.
4421
4422 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
4423 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
4424 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
4425 Remove libc_hidden_proto.
4426
4427 * stdio-common/vfprintf-internal.c
4428 (__vfprintf_internal, __vfwprintf_internal):
4429 Do not check _IO_FLAGS2_FORTIFY.
4430 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
4431 * libio/libioP.h: Update prototype of __vsprintf_internal and add
4432 a comment explaining why it has the maxlen argument.
4433 (_IO_acquire_lock_clear_flags2_fct): Remove.
4434 (_IO_acquire_lock_clear_flags2): Remove.
4435 (_IO_release_lock): Remove conditional statement which will
4436 now never execute.
4437 (_IO_acquire_lock): Remove variable which is now unused.
4438 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4439 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4440
4441 * stdio-common/Makefile (tests): Add tst-bz11319 and
4442 tst-bz11319-fortify2.
4443 (CFLAGS-tst-bz11319-fortify2.c): New macro.
4444 * stdio-common/tst-bz11319-fortify2.c: New file.
4445 * stdio-common/tst-bz11319.c: Likewise.
4446
4447 2018-12-05 Zack Weinberg <zackw@panix.com>
4448 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4449
4450 * misc/syslog.c: Include libioP.h, not iolibio.h.
4451 (__vsyslog_internal): New function with the former body of
4452 __vsyslog_chk; takes mode_flags argument same as
4453 __v*printf_internal. Call __vfprintf_internal directly.
4454
4455 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
4456 Remove libc_hidden_def.
4457 (__syslog, __syslog_chk): Use __vsyslog_internal.
4458 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
4459
4460 * include/sys/syslog.h: Add multiple inclusion guard.
4461 Add prototype for __vsyslog_internal.
4462 Remove declaration and libc_hidden_proto for __vsyslog_chk.
4463
4464 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
4465 Use __vsyslog_internal.
4466
4467 2018-12-05 Zack Weinberg <zackw@panix.com>
4468 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4469
4470 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
4471 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
4472 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
4473 New functions.
4474 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
4475 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
4476
4477 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
4478 Include wctype.h here if COMPILE_WPRINTF is defined.
4479 Define __vfprintf_internal or __vfwprintf_internal, depending
4480 on COMPILE_WPRINTF.
4481 Temporarily, on entry to this function, update mode_flags
4482 according to the environmental settings corresponding to
4483 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
4484 Throughout, check mode_flags instead of __ldbl_is_dbl and
4485 _IO_FLAGS2_FORTIFY on the destination FILE.
4486 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
4487 Include vfprintf-internal.c. Don't include wctype.h.
4488 * stdio-common/vfprintf.c: New file. Just define __vfprintf
4489 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
4490 and vfprintf.
4491 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
4492 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
4493 and vfwprintf.
4494 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
4495
4496 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
4497 and add mode_flags argument; use __vfprintf_internal.
4498 (__vdprintf): New function. Alias vdprintf to this.
4499 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
4500 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
4501 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
4502 (__obstack_printf): Use __obstack_printf_internal.
4503 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
4504 public aliases __vsnprintf and vsnprintf.
4505 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
4506 called internally.
4507 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
4508 public aliases _IO_vsprintf and vsprintf.
4509 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
4510 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
4511 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
4512 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
4513 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
4514
4515 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
4516 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
4517 * stdio-common/fprintf.c, stdio-common/fxprintf.c
4518 * stdio-common/printf.c: Use __vfprintf_internal.
4519
4520 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
4521 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
4522 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
4523
4524 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
4525 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
4526 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
4527 __vfwprintf_internal.
4528
4529 * libio/libio.h: Remove libc_hidden_proto and declaration for
4530 _IO_vfprintf.
4531 Remove declaration of _IO_vfwprintf.
4532 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
4533 _IO_vsprintf.
4534 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
4535 _IO_obstack_printf.
4536 * include/stdio.h: Add prototype for __vasprintf.
4537 (__vsnprintf): Remove declaration, because there are no more
4538 internal calls.
4539 * include/wchar.h (__vfwprintf, __vswprintf): Remove
4540 declaration, because there are no more internal calls.
4541
4542 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
4543 __vsnprintf_internal, instead of _IO_vsnprintf.
4544 * argp/argp-help.c (__argp_error, __argp_failure): Use
4545 __vasprintf_internal, instead of _IO_vasprintf.
4546 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
4547 redefine, because there are no more internal calls.
4548
4549 2018-12-05 Zack Weinberg <zackw@panix.com>
4550 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4551
4552 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
4553 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
4554 Include libio/strfile.h instead of libioP.h.
4555 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
4556 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
4557 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
4558 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
4559 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
4560 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
4561 necessary. Do not set __no_long_double. Normalize variable names.
4562 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
4563 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
4564 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
4565 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
4566 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
4567 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
4568 Call __vfscanf_internal / __vfwscanf_internal directly, passing
4569 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
4570 Do not set __no_long_double. Normalize variable names.
4571
4572 2018-12-05 Zack Weinberg <zackw@panix.com>
4573 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4574
4575 * stdio-common/isoc99_scanf.c
4576 * stdio-common/isoc99_fscanf.c
4577 * stdio-common/isoc99_sscanf.c
4578 * stdio-common/isoc99_vscanf.c
4579 * stdio-common/isoc99_vfscanf.c
4580 * stdio-common/isoc99_vsscanf.c
4581 * wcsmbs/isoc99_wscanf.c
4582 * wcsmbs/isoc99_fwscanf.c
4583 * wcsmbs/isoc99_swscanf.c
4584 * wcsmbs/isoc99_vwscanf.c
4585 * wcsmbs/isoc99_vfwscanf.c
4586 * wcsmbs/isoc99_vswscanf.c:
4587 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
4588 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
4589 No need to lock and unlock the FILE passed to that function.
4590
4591 * stdio-common/vfscanf-internal.c
4592 (__vfscanf_internal, __vfwscanf_internal):
4593 Don't look at _IO_FLAGS2_SCANF_STD.
4594 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
4595 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
4596 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
4597
4598 2018-12-05 Zack Weinberg <zackw@panix.com>
4599 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4600
4601 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
4602 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
4603 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
4604 * libio/strfile.h: Add multiple inclusion guard.
4605 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
4606
4607 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
4608 consistency with the other version of this file.
4609 (ldbl_compat_symbol): New macro.
4610 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
4611 New macro.
4612
4613 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
4614 Define __vfscanf_internal or __vfwscanf_internal, depending on
4615 COMPILE_WSCANF; don't define any other public symbols.
4616 Remove errval and code to set errp.
4617 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
4618 as the mode_flags argument.
4619 (encode_error, conv_error, input_error): Don't set errval.
4620 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
4621 Include vfscanf-internal.c.
4622 * stdio-common/vfscanf.c: New file defining the public entry
4623 point vfscanf, which calls __vfscanf_internal.
4624 * stdio-common/vfwscanf.c: New file defining the public entry
4625 point vfwscanf, which calls __vfwscanf_internal.
4626
4627 * stdio-common/iovfscanf.c: New file.
4628 * stdio-common/iovfwscanf.c: Likewise.
4629
4630 * stdio-common/Makefile (routines): Add vfscanf-internal,
4631 vfwscanf-internal, iovfscanf, iovfwscanf.
4632 * stdio-common/Versions: Mention GLIBC_2.29, so that
4633 it can be used in SHLIB_COMPAT expressions.
4634 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
4635 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
4636 Call __vfscanf_internal, instead of _IO_vfscanf.
4637 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
4638 _IO_vfscanf.
4639 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
4640 _IO_vfwscanf.
4641
4642 * libio/iovsscanf.c: Clean up includes, when possible. Use
4643 _IO_strfile_read or _IO_strfile_readw, when needed. Call
4644 __vfscanf_internal or __vfwscanf_internal directly.
4645 * libio/iovswscanf.c: Likewise.
4646 * libio/swscanf.c: Likewise.
4647 * libio/vscanf.c: Likewise.
4648 * libio/vwscanf.c: Likewise.
4649 * libio/wscanf.c: Likewise.
4650 * stdio-common/isoc99_fscanf.c: Likewise.
4651 * stdio-common/isoc99_scanf.c: Likewise.
4652 * stdio-common/isoc99_sscanf.c: Likewise.
4653 * stdio-common/isoc99_vfscanf.c: Likewise.
4654 * stdio-common/isoc99_vscanf.c: Likewise.
4655 * stdio-common/isoc99_vsscanf.c: Likewise.
4656 * stdio-common/scanf.c: Likewise.
4657 * stdio-common/sscanf.c: Likewise.
4658 * wcsmbs/isoc99_fwscanf.c: Likewise.
4659 * wcsmbs/isoc99_swscanf.c: Likewise.
4660 * wcsmbs/isoc99_vfwscanf.c: Likewise.
4661 * wcsmbs/isoc99_vswscanf.c: Likewise.
4662 * wcsmbs/isoc99_vwscanf.c: Likewise.
4663 * wcsmbs/isoc99_wscanf.c: Likewise.
4664
4665 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
4666
4667 * include/time.h
4668 (__tz_compute): Replace time_t with __time64_t.
4669 (__tz_convert): Replace time_t* with __time64_t.
4670 (__offtime): Replace time_t* with __time64_t.
4671 * time/gmtime.c
4672 (__gmtime_r): Adjust call to __tz_convert.
4673 (gmtime): Likewise.
4674 * time/localtime.c
4675 (__localtime_r): Likewise.
4676 (localtime): Likewise.
4677 * time/offtime.c: Replace time_t with __time64_t.
4678 * time/tzset.c: Likewise.
4679
4680 2018-12-04 Joseph Myers <joseph@codesourcery.com>
4681
4682 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
4683 dynamic linker unless [$(run-built-tests) = yes].
4684
4685 2018-12-03 DJ Delorie <dj@delorie.com>
4686
4687 * support/test-container.c (check_for_unshare_hints): New.
4688 (main): Call it if unshare fails. Add support for "su" scriptlet
4689 command.
4690
4691 2018-12-03 Joseph Myers <joseph@codesourcery.com>
4692
4693 * scripts/gen-as-const.py (compute_c_consts): Take an argument
4694 'START' to indicate that start text should be output.
4695 (gen_test): Likewise.
4696 (main): Generate 'START' for first symbol or '--' line, or at end
4697 of input if not previously generated.
4698
4699 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
4700
4701 [BZ #19767]
4702 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
4703 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
4704 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
4705 ALWAYS_USE_VSYSCALL.
4706
4707 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4708
4709 [BZ #23913]
4710 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
4711 new_argv by one.
4712
4713 2018-12-03 Carlos O'Donell <carlos@redhat.com>
4714
4715 [BZ #23923]
4716 * locale/programs/localedef.c: Declare boolean hard_links default true.
4717 (options): Add --no-hard-links option.
4718 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
4719 * locale/programs/localedef.h: Declare prototype for hard_links.
4720 * locale/programs/locfile.c (write_locale_data): Don't use hard
4721 links if hard_links is false.
4722
4723 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
4724
4725 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
4726 cpu_features_basic.
4727 (__cache_sysconf): Likewise.
4728 (init_cacheinfo): Likewise.
4729 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
4730 populate COMMON_CPUID_INDEX_80000007 and
4731 COMMON_CPUID_INDEX_80000008.
4732 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
4733 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
4734 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
4735 (init_cpu_features): Use _Static_assert on
4736 index_arch_Fast_Unaligned_Load.
4737 __get_cpuid_registers and __get_arch_feature. Updated for
4738 cpu_features_basic. Set stepping in cpu_features.
4739 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
4740 (FEATURE_INDEX_2): New.
4741 (FEATURE_INDEX_MAX): Changed to enum.
4742 (COMMON_CPUID_INDEX_D_ECX_1): New.
4743 (COMMON_CPUID_INDEX_80000007): Likewise.
4744 (COMMON_CPUID_INDEX_80000008): Likewise.
4745 (cpuid_registers): Likewise.
4746 (cpu_features_basic): Likewise.
4747 (CPU_FEATURE_USABLE): Likewise.
4748 (bit_arch_XXX_Usable): Likewise.
4749 (cpu_features): Use cpuid_registers and cpu_features_basic.
4750 (bit_arch_XXX): Reweritten.
4751 (bit_cpu_XXX): Likewise.
4752 (index_cpu_XXX): Likewise.
4753 (reg_XXX): Likewise.
4754 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
4755 <support/check.h>.
4756 (CHECK_CPU_FEATURE): New.
4757 (CHECK_CPU_FEATURE_USABLE): Likewise.
4758 (cpu_kinds): Likewise.
4759 (do_test): Print vendor, family, model and stepping. Check
4760 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
4761 (TEST_FUNCTION): Removed.
4762 Include <support/test-driver.c> instead of
4763 "../../test-skeleton.c".
4764 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
4765 Check POPCNT instead of POPCOUNT.
4766 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
4767
4768 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4769
4770 * scripts/gen-as-const.py (main): Avoid emitting empty line when
4771 there is no element in `consts'.
4772
4773 2018-12-01 Florian Weimer <fweimer@redhat.com>
4774
4775 * support/support_capture_subprocess.c
4776 (support_capture_subprocess): Check that pipe descriptors have
4777 expected values. Close original pipe descriptors in subprocess.
4778
4779 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4780
4781 [BZ #23032]
4782 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
4783 attr with __pthread_default_barrierattr.
4784 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
4785 attr with __pthread_default_condattr.
4786 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
4787 attr with __pthread_default_mutexattr.
4788 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
4789 attr with __pthread_default_rwlockattr.
4790
4791 2018-12-01 Kemi Wang <kemi.wang@intel.com>
4792
4793 * manual/tunables.texi (POSIX Thread Tunables): New node.
4794 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
4795 * nptl/nptl-init.c: Include pthread_mutex_conf.h
4796 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
4797 __pthread_tunables_init.
4798 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
4799 (max_adaptive_count): Define.
4800 * nptl/pthread_mutex_conf.c: New file.
4801 * nptl/pthread_mutex_conf.h: New file.
4802 * sysdeps/generic/adaptive_spin_count.h: New file.
4803 * sysdeps/nptl/dl-tunables.list: New file.
4804 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
4805 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
4806 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
4807 Likewise.
4808
4809 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4810
4811 [BZ #20544]
4812 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
4813 * stdlib/on_exit.c (__on_exit): Likewise.
4814 * stdlib/Makefile (tests): Add tst-bz20544.
4815 * stdlib/tst-bz20544.c: New test.
4816
4817 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
4818
4819 [BZ #19767]
4820 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
4821 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
4822 New.
4823
4824 2018-11-30 Florian Weimer <fweimer@redhat.com>
4825
4826 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
4827 Extend error logging.
4828 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
4829 symbol.
4830
4831 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4832
4833 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
4834 __sigismember instead of sigismember.
4835 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
4836 cancel_handler): New definitions.
4837 (do_system): Use posix_spawn instead of fork and execl and remove
4838 reentracy code.
4839 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
4840 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
4841 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
4842 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
4843 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
4844 * sysdeps/unix/sysv/linux/system.c: Likewise.
4845
4846 [BZ #22834]
4847 [BZ #17490]
4848 * NEWS: Add new semantic for atfork with popen and system.
4849 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
4850 fork and execl.
4851
4852 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4853
4854 [BZ #23690]
4855 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
4856 modification order when accessing reloc_result->addr.
4857 * include/link.h (reloc_result): Add field init.
4858 * nptl/Makefile (tests): Add tst-audit-threads.
4859 (modules-names): Add tst-audit-threads-mod1 and
4860 tst-audit-threads-mod2.
4861 Add rules to build tst-audit-threads.
4862 * nptl/tst-audit-threads-mod1.c: New file.
4863 * nptl/tst-audit-threads-mod2.c: Likewise.
4864 * nptl/tst-audit-threads.c: Likewise.
4865 * nptl/tst-audit-threads.h: Likewise.
4866
4867 2018-11-30 Joseph Myers <joseph@codesourcery.com>
4868
4869 * scripts/gen-as-const.py: New file.
4870 * scripts/gen-as-const.awk: Remove.
4871 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
4872 gen-as-const.py.
4873 ($(objpfx)test-as-const-%.c): Likewise.
4874
4875 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4876
4877 * elf/dl-exception.c: Include <_itoa.h>.
4878
4879 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4880
4881 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4882 returned by __f_setlk.
4883
4884 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4885 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4886
4887 * elf/Makefile (tests-internal): Add tst-create_format1.
4888 * elf/dl-exception.c (_dl_exception_create_format): Support
4889 %x, %lx and %zx.
4890 * elf/tst-create_format1.c: New file.
4891
4892 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4893
4894 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4895 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4896 gnulib.)
4897 * argp/argp-help.c (__argp_failure): Likewise.
4898
4899 2018-11-29 Mao Han <han_mao@c-sky.com>
4900
4901 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
4902 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
4903 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
4904 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
4905 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
4906 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
4907 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
4908 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
4909 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
4910 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
4911 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
4912 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
4913 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
4914 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
4915 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
4916 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
4917 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
4918 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
4919 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
4920 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
4921 (R_CKCORE_TLS_TPOFF32): New defines.
4922
4923 2018-11-29 Florian Weimer <fweimer@redhat.com>
4924
4925 * posix/Makefile (before-compile): Remove testcases.h and
4926 ptestcases.h.
4927 (generated): Add testcases.h and ptestcases.h.
4928 (testcases.h, ptestcases.h): Move to $(objpfx).
4929 (runtests.o): Add dependency on testcases.h.
4930 (runptests.o): Add dependency on ptestcases.h.
4931 * posix/testcases.h, posix/ptestcases.h: Remove files.
4932 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
4933 not touch posix/testcases.h and posix/ptestcases.h.
4934
4935 2018-11-28 Florian Weimer <fweimer@redhat.com>
4936
4937 support: Add signal support to support_capture_subprocess_check.
4938 * support/capture_subprocess.h (support_capture_subprocess_check):
4939 Adjust comment and rename parameter.
4940 * support/support_capture_subprocess_check.c
4941 (print_actual_status): New function.
4942 (support_capture_subprocess_check): Support negative
4943 status_or_signal. Call print_actual_status.
4944 * support/tst-support_capture_subprocess.c (do_test): Call
4945 support_capture_subprocess_check.
4946 * libio/tst-vtables-common.c (termination_status)
4947 (init_termination_status): Remove.
4948 (check_for_termination): Adjust support_capture_subprocess_check
4949 call.
4950 (do_test): Remove call to init_termination_status.
4951
4952 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4953
4954 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4955 source directory instead of a copy.
4956 (CommandList.create_copy_dir): Remove.
4957
4958 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4959
4960 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4961
4962 2018-11-28 Florian Weimer <fweimer@redhat.com>
4963
4964 * support/support.h (support_quote_string): Do not use str
4965 parameter name.
4966
4967 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4968
4969 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4970 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4971
4972 2018-11-27 Florian Weimer <fweimer@redhat.com>
4973
4974 * support/support.h (support_quote_string): Declare.
4975 * support/support_quote_string.c: New file.
4976 * support/tst-support_quote_string.c: Likewise.
4977 * support/Makefile (libsupport-routines): Add
4978 support_quote_string.
4979 (tests): Add tst-support_quote_string.
4980
4981 2018-11-27 Florian Weimer <fweimer@redhat.com>
4982
4983 [BZ #23927]
4984 CVE-2018-19591
4985 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4986 descriptor leak in case of ENODEV error.
4987
4988 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4989
4990 [BZ #19767]
4991 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4992 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4993 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4994
4995 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4996
4997 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4998 Error for unknown lines.
4999
5000 2018-11-26 Joseph Myers <joseph@codesourcery.com>
5001
5002 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
5003 Touch additional files.
5004
5005 2018-11-26 Florian Weimer <fweimer@redhat.com>
5006
5007 [BZ #23907]
5008 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
5009 double-frees.
5010
5011 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
5012
5013 [BZ #19767]
5014 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
5015 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
5016 SHARED. Include sysdep.h.
5017 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
5018 ALWAYS_USE_VSYSCALL.
5019 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
5020 ALWAYS_USE_VSYSCALL.
5021
5022 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
5023
5024 [BZ #19767]
5025 * nptl/Makefile (tests-static): Add tst-cond11-static.
5026 (tests): Likewise.
5027 * nptl/tst-cond11-static.c: New File.
5028 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
5029 tst-affinity-static.
5030 (tests): Likewise.
5031 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
5032 instead of SHARED.
5033 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
5034 (USE_VSYSCALL): Likewise.
5035 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
5036 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
5037 instead of SHARED.
5038 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
5039 SHARED.
5040 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
5041 New.
5042
5043 2018-11-23 Joseph Myers <joseph@codesourcery.com>
5044
5045 [BZ #23915]
5046 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5047 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
5048 Undefine.
5049
5050 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
5051
5052 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
5053 (tst-cet-legacy-1a-ARGS): New.
5054 ($(objpfx)tst-cet-legacy-1a): New target.
5055 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
5056
5057 2018-11-22 Joseph Myers <joseph@codesourcery.com>
5058
5059 * conform/conformtest.py (CompileSubTest.__init__): Set
5060 self.run_early to False.
5061 (ExecuteSubTest.__init__): Likewise.
5062 (HeaderTests.run): Try running all non-optional, non-XFAILed
5063 compilation tests in a single execution of the compiler.
5064
5065 * conform/conformtest.py (CompileSubTest): New class.
5066 (ExecuteSubTest): Likewise.
5067 (ElementTest.run): Rename to gen_subtests. Append tests to
5068 self.subtests instead of running them.
5069 (ConstantTest.run): Likewise.
5070 (SymbolTest.run): Likewise.
5071 (TypeTest.run): Likewise.
5072 (TagTest.run): Likewise.
5073 (FunctionTest.run): Likewise.
5074 (VariableTest.run): Likewise.
5075 (MacroFunctionTest.run): Likewise.
5076 (MacroStrTest.run): Likewise.
5077 (HeaderTests.handle_test_line): Generate subtests for tests.
5078 (HeaderTests.run): Run subtests for tests.
5079
5080 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5081
5082 * math/Versions (GLIBC_2.29): Add pow.
5083 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
5084 symbol.
5085 * math/w_pow.c: New file.
5086 * sysdeps/i386/fpu/w_pow.c: New file.
5087 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
5088 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
5089 and add necessary aliases.
5090 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
5091 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
5092 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5093 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5094 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5095 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5096 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5097 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5098 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5099 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5100 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5101 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5102 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5103 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5104 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5105 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5106 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5107 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5108 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5109 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5110 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5111 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5112 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5113 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5114 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5115 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5116 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
5117 __pow.
5118 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
5119 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
5120 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
5121
5122 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5123
5124 * math/Versions (GLIBC_2.29): Add log2.
5125 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
5126 symbol.
5127 * math/w_log2.c: New file.
5128 * sysdeps/i386/fpu/w_log2.c: New file.
5129 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
5130 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
5131 and add necessary aliases.
5132 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
5133 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
5134 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5135 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5136 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5137 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5138 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5139 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5140 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5141 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5142 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5143 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5144 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5145 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5146 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5147 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5148 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5149 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5150 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5151 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5152 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5153 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5154 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5155 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5156 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5157 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5158
5159 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5160
5161 * math/Versions (GLIBC_2.29): Add log.
5162 * math/w_log_compat.c (__log_compat): Change to versioned compat
5163 symbol.
5164 * math/w_log.c: New file.
5165 * sysdeps/i386/fpu/w_log.c: New file.
5166 * sysdeps/ia64/fpu/e_log.S: Update.
5167 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
5168 and add necessary aliases.
5169 * sysdeps/ieee754/dbl-64/w_log.c: New file.
5170 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
5171 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5172 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5173 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5174 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5175 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5176 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5177 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5178 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5179 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5180 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5181 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5182 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5183 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5184 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5185 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5186 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5187 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5188 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5189 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5190 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5191 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5192 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5193 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5194 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5195 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
5196 __log.
5197 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
5198 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
5199 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
5200 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
5201
5202 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5203
5204 * math/Versions (GLIBC_2.29): Add exp and exp2.
5205 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
5206 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
5207 * math/w_exp_compat.c (__exp_compat): Likewise.
5208 * math/w_exp.c: New file.
5209 * math/w_exp2.c: New file.
5210 * sysdeps/i386/fpu/w_exp.c: New file.
5211 * sysdeps/i386/fpu/w_exp2.c: New file.
5212 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
5213 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
5214 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
5215 and add necessary aliases.
5216 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
5217 and add necessary aliases.
5218 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
5219 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
5220 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
5221 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
5222 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5223 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5224 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5225 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5226 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5227 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5228 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5229 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5230 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5231 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5232 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5233 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5234 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5235 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5236 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5237 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5238 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5239 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5240 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5241 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5242 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5243 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5244 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5245 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5246 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
5247 (__ieee754_exp): Rename to __exp.
5248 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
5249 (__ieee754_exp): Rename to __exp.
5250 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
5251 (__ieee754_exp): Rename to __exp.
5252 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
5253 __exp.
5254 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
5255
5256 2018-11-20 DJ Delorie <dj@redhat.com>
5257
5258 * malloc/malloc.c (tcache_entry): Add key field.
5259 (tcache_put): Set it.
5260 (tcache_get): Likewise.
5261 (_int_free): Check for double free in tcache.
5262 * malloc/tst-tcfree1.c: New.
5263 * malloc/tst-tcfree2.c: New.
5264 * malloc/Makefile: Run the new tests.
5265 * manual/probes.texi: Document memory_tcache_double_free probe.
5266
5267 * dlfcn/dlerror.c (check_free): Prevent double frees.
5268
5269 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
5270
5271 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
5272
5273 2018-11-20 Joseph Myers <joseph@codesourcery.com>
5274
5275 * conform/conformtest.py (ElementTest.run): Use unique identifiers
5276 in tests. Use names for format arguments.
5277 (ConstantTest.run): Likewise.
5278 (SymbolTest.run): Likewise.
5279 (TypeTest.run): Likewise.
5280 (TagTest.run): Likewise.
5281 (FunctionTest.run): Likewise.
5282 (VariableTest.run): Likewise.
5283 (MacroFunctionTest.run): Likewise.
5284 (MacroStrTest.run): Likewise.
5285 (HeaderTests.__init__): Set self.num_tests.
5286 (HeaderTests.handle_test_line): Set test.num. Increment
5287 self.num_tests.
5288
5289 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5290
5291 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
5292 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
5293 SEEK_SET.
5294
5295 2018-11-19 Mao Han <han_mao@c-sky.com>
5296
5297 * scripts/config.guess: Update to version 2018-08-29.
5298 * scripts/config.sub: Update to version 2018-08-29.
5299
5300 2018-11-19 Florian Weimer <fweimer@redhat.com>
5301
5302 support: Print timestamps in timeout handler.
5303 * support/support_test_main.c (print_timestamp): New function.
5304 (signal_handler): Use it to print the termination time and the
5305 time of the last write to standard output.
5306
5307 2018-11-16 Zack Weinberg <zackw@panix.com>
5308 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5309
5310 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
5311 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
5312 argument.
5313 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
5314 and add flags argument. Check flags instead of __ldbl_is_dbl when
5315 deciding whether to set is_long_double.
5316 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
5317 passing zero for flags argument.
5318 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
5319
5320 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5321 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
5322 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
5323 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
5324 variable names. Remove libc_hidden_def/libc_hidden_proto from
5325 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
5326 longer called from within the library.
5327 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
5328 for __nldbl___vstrfmon_l, declare it explicitly.
5329
5330 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
5331
5332 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
5333
5334 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
5335 macros
5336 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
5337 F_SETLK64, F_SETLKW64, respectively.
5338 * sysdeps/mach/hurd/f_setlk.c: New file.
5339 * sysdeps/mach/hurd/f_setlk.h: New file.
5340 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
5341 f_setlk.
5342 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
5343 (__libc_fcntl): Move non-flock operations to...
5344 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
5345 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
5346
5347 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
5348
5349 mktime: DEBUG_MKTIME cleanup
5350 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
5351 And it’s no longer needed now that glibc and Gnulib both have
5352 their own testing mechanisms for mktime.
5353 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
5354
5355 mktime: fix non-EOVERFLOW errno handling
5356 [BZ#23789]
5357 mktime was not properly reporting failures when the underlying
5358 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
5359 them like EOVERFLOW failures, and set errno to EOVERFLOW.
5360 The problem could happen on non-glibc platforms, with Gnulib.
5361 * time/mktime.c (guess_time_tm): Remove, replacing with ...
5362 (tm_diff): ... this simpler function, which does not change errno.
5363 All callers changed to deal with errno themselves.
5364 (ranged_convert, __mktime_internal): Return failure immediately if
5365 the underlying function reports any failure other than EOVERFLOW.
5366 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
5367 gap code fails.
5368
5369 mktime: fix bug with Y2038 DST transition
5370 [BZ#23789]
5371 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
5372 mishandle a DST transition that jumps over the Y2038 boundary.
5373 No such DST transitions are known so this is only a theoretical
5374 bug, but we might as well do things right.
5375
5376 mktime: make more room for overflow
5377 [BZ#23789]
5378 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
5379 This is so that we can add tm_diff results to a previous guess,
5380 which will be useful in a later patch.
5381
5382 mktime: simplify offset guess
5383 [BZ#23789]
5384 * time/mktime.c (__mktime_internal): Omit excess precision.
5385
5386 mktime: new test for mktime failure
5387 [BZ#23789]
5388 Based on a test suggested by Albert Aribaud in:
5389 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
5390 * time/Makefile (tests): Add bug-mktime4.
5391 * time/bug-mktime4.c: New file.
5392
5393 mktime: fix EOVERFLOW bug
5394 [BZ#23789]
5395 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
5396 Include libc-config.h, not config.h, for __set_errno.
5397 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
5398
5399 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5400
5401 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
5402 __attribute_copy__ to copy attributes from name. Drop static qualifier
5403 to avoid warnings about leaf attribute not having effect on static
5404 functions.
5405
5406 2018-11-13 Florian Weimer <fweimer@redhat.com>
5407
5408 * malloc/malloc.c (fastbin_push_entry): New function.
5409 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
5410 (REMOVE_FB): Remove macro.
5411 (_int_malloc): Use fastbin_pop_entry and reindent.
5412 (_int_free): Use fastbin_push_entry.
5413 (malloc_consolidate): Use atomic_exchange_acquire.
5414
5415 2018-11-13 Joseph Myers <joseph@codesourcery.com>
5416
5417 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
5418 alias attribute, not with strong_alias.
5419
5420 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
5421 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
5422 with additional parameter thread.
5423 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
5424 in terms of __hidden_ver2.
5425 (hidden_tls_def): New macro.
5426 (libc_hidden_tls_def): Likewise.
5427 (rtld_hidden_tls_def): Likewise.
5428 (libm_hidden_tls_def): Likewise.
5429 (libmvec_hidden_tls_def): Likewise.
5430 (libresolv_hidden_tls_def): Likewise.
5431 (librt_hidden_tls_def): Likewise.
5432 (libdl_hidden_tls_def): Likewise.
5433 (libnss_files_hidden_tls_def): Likewise.
5434 (libnsl_hidden_tls_def): Likewise.
5435 (libnss_nisplus_hidden_tls_def): Likewise.
5436 (libutil_hidden_tls_def): Likewise.
5437 (libutil_hidden_tls_def): Likweise.
5438 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
5439 libc_hidden_tls_def.
5440 (__sim_disabled_exceptions_thread): Likewise.
5441 (__sim_round_mode_thread): Likewise.
5442
5443 * sysdeps/sparc/sparc-ifunc.h [SHARED]
5444 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
5445 copy attributes from name.
5446
5447 2018-11-12 Joseph Myers <joseph@codesourcery.com>
5448
5449 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
5450 Use __attribute_copy__ to copy attributes from name.
5451
5452 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
5453 with __hidden_ver1 call.
5454 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
5455 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
5456 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
5457 (__cosf): Do not declare here.
5458 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
5459 (__sincosf): Do not declare here.
5460 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
5461 (__sinf): Do not declare here.
5462
5463 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
5464 (__BIG_ENDIAN): Likewise.
5465 (__BYTE_ORDER): Likewise.
5466 (strong_alias): Likewise.
5467 (_strong_alias): Likewise.
5468
5469 2018-11-12 Florian Weimer <fweimer@redhat.com>
5470
5471 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
5472 function. Move after the definition of in_smallbin_range. Do not
5473 use __builtin_expect for paths that lead to a noreturn function.
5474 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
5475 because it is unclear whether this is in fact an unlikely
5476 condition.
5477 (_int_malloc, _int_free): Adjust.
5478 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
5479 variables.
5480 * malloc/arena.c (heap_trim): Likewise.
5481
5482 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5483
5484 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
5485 it, free it if needed.
5486 (reauthenticate): Test and use ccwdir.
5487 (child_init_port): In non-resetids case, test and use ccwdir.
5488 (child_chdir): New nested function to set ccwdir.
5489 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
5490 * hurd/hurd/port.h (_hurd_port_move): New function.
5491 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
5492 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
5493 * hurd/Versions (_hurd_port_move): Export function.
5494 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
5495 symbol.
5496 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
5497 of dtablesize for allocating dtable_cloexec.
5498
5499 2018-11-09 Martin Sebor <msebor@redhat.com>
5500
5501 * include/libc-symbols.h (__attribute_copy__): Define macro unless
5502 it's already defined.
5503 (_strong_alias): Use __attribute_copy__.
5504 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
5505 * misc/sys/cdefs.h (__attribute_copy__): New macro.
5506 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
5507 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
5508 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
5509 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
5510 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
5511 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
5512 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
5513 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
5514 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
5515 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
5516 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
5517 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
5518 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
5519 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
5520 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
5521 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
5522 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
5523
5524 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5525
5526 * misc/tst-efgcvt.c: Include support/check.h and
5527 support/test-driver.c. Do not include test-skeleton.c.
5528 (error_count): Remove.
5529 (output_error): Replace increments to error_count with calls to
5530 support_record_failure.
5531 (output_r_error): Likewise.
5532 (special): Likewise.
5533 (do_test): Unconditionally return zero.
5534 (TEST_FUNCTION): Remove.
5535
5536 2018-11-09 Joseph Myers <joseph@codesourcery.com>
5537
5538 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
5539 not $(@D)/scratch.
5540 ($(linknamespace-header-tests)): Likewise.
5541
5542 * conform/conformtest.py: New file.
5543 * conform/conformtest.pl: Remove.
5544 * conform/GlibcConform.pm: Likewise.
5545 * conform/glibcconform.py (KEYWORDS_C90): New constant.
5546 (KEYWORDS_C99): Likewise.
5547 (KEYWORDS): Likewise.
5548 * conform/Makefile ($(conformtest-header-tests)): Use
5549 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
5550 option. Use --header instead of --headers.
5551 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
5552 function entries.
5553 * conform/data/spawn.h-data: Likewise.
5554 * conform/data/fcntl.h-data (openat): Add space after function
5555 name.
5556 * conform/data/wchar.h-data (wcscasecmp): Likewise.
5557 (wcscasecmp_l): Likewise.
5558 * conform/data/termios.h-data (c_cc): Add space after element
5559 name.
5560
5561 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5562
5563 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
5564 instead of manually comparing and reporting mismatching strings.
5565 * misc/tst-ldbl-error.c (do_one_test): Likewise.
5566 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5567
5568 2018-11-08 Joseph Myers <joseph@codesourcery.com>
5569
5570 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
5571 __ASSUME_SOCKETCALL.
5572 * sysdeps/unix/sysv/linux/i386/kernel-features.h
5573 (__ASSUME_SOCKETCALL): Remove.
5574 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5575 (__ASSUME_SOCKETCALL): Likewise.
5576 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5577 (__ASSUME_SOCKETCALL): Likewise.
5578 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5579 (__ASSUME_SOCKETCALL): Likewise.
5580 * sysdeps/unix/sysv/linux/s390/kernel-features.h
5581 (__ASSUME_SOCKETCALL): Likewise.
5582 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5583 (__ASSUME_SOCKETCALL): Likewise.
5584 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5585 (__ASSUME_SOCKETCALL): Likewise.
5586
5587 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
5588
5589 [BZ #23509]
5590 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
5591 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
5592 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
5593 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
5594 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
5595 lc_unknown.
5596
5597 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
5598
5599 [BZ #17630]
5600 * resolv/tst-resolv-network.c: Add test for getnetbyname.
5601
5602 2018-11-07 Joseph Myers <joseph@codesourcery.com>
5603
5604 [BZ #23867]
5605 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5606 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5607 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5608 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5609
5610 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5611
5612 * support/support_test_compare_string.c
5613 (support_test_compare_string): Fix printf format.
5614
5615 2018-11-07 Florian Weimer <fweimer@redhat.com>
5616
5617 Implement TEST_COMPARE_STRING.
5618 * support/check.h (TEST_COMPARE_STRING): Define.
5619 (support_test_compare_string): Declare.
5620 * support/Makefile (libsupport-routines): Add
5621 support_test_compare_string.
5622 (tests): Add tst-test_compare_string.
5623 * support/support_test_compare_string.c: New file.
5624 * support/tst-test_compare_string.c: Likewise.
5625
5626 2018-11-07 Andreas Schwab <schwab@suse.de>
5627
5628 [BZ #23864]
5629 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
5630 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
5631 Undef.
5632
5633 2018-11-06 Joseph Myers <joseph@codesourcery.com>
5634
5635 [BZ #23862]
5636 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5637 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
5638 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
5639 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
5640 Likewise.
5641
5642 2018-11-06 Florian Weimer <fweimer@redhat.com>
5643
5644 [BZ #17405]
5645 * posix/Makefile (routines): Add spawn_faction_addchdir.
5646 (tests): Add tst-spawn-chdir.
5647 * posix/Versions (GLIBC_2.29): Add
5648 posix_spawn_file_actions_addchdir_np.
5649 * posix/spawn_faction_addchdir.c: New file.
5650 * posix/spawn_faction_destroy.c
5651 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
5652 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
5653 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
5654 chdir_action.
5655 * posix/tst-spawn-chdir.c: New file.
5656 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
5657 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5658 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5659 posix_spawn_file_actions_addchdir_np.
5660 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5661 Likewise.
5662 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5663 Likewise.
5664 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5665 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5666 Likewise.
5667 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5668 Likewise.
5669 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5670 Likewise.
5671 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5672 Likewise.
5673 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5674 Likewise.
5675 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5676 Likewise.
5677 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5678 (GLIBC_2.29): Likewise.
5679 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5680 (GLIBC_2.29): Likewise.
5681 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5682 (GLIBC_2.29): Likewise.
5683 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5684 (GLIBC_2.29): Likewise.
5685 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5686 Likewise.
5687 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5688 (GLIBC_2.29): Likewise.
5689 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5690 (GLIBC_2.29): Likewise.
5691 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5692 (GLIBC_2.29): Likewise.
5693 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5694 (GLIBC_2.29): Likewise.
5695 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5696 Likewise.
5697 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5698 Likewise.
5699 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5700 Likewise.
5701 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5702 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5703 Likewise.
5704 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5705 Likewise.
5706 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5707 Likewise.
5708 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5709 Likewise.
5710
5711 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5712
5713 * misc/Makefile (tests): Add tst-ldbl-error.
5714 * misc/tst-ldbl-error.c: New file.
5715
5716 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5717
5718 * misc/Makefile (tests): Add tst-ldbl-warn.
5719 * misc/tst-ldbl-warn.c: New file.
5720
5721 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5722
5723 * argp/Makefile (tests): Add tst-ldbl-argp.
5724 * argp/tst-ldbl-argp.c: New file.
5725
5726 2018-11-05 Arjun Shankar <arjun@redhat.com>
5727
5728 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
5729 __gconv_path_elem and call __gconv_get_path unconditionally.
5730
5731 2018-11-05 Andreas Schwab <schwab@suse.de>
5732
5733 [BZ #22927]
5734 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
5735 creating the first helper thread failed.
5736
5737 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5738
5739 * sysdeps/mach/hurd/msync.c: New file.
5740
5741 2018-11-02 Florian Weimer <fweimer@redhat.com>
5742
5743 * support/shell-container.c (copy_func): Call
5744 support_copy_file_range instead of copy_file_range to support
5745 cross-device copies.
5746
5747 2018-11-02 Florian Weimer <fweimer@redhat.com>
5748
5749 * support/test-container.c: Include <libc-pointer-arith.h> for
5750 ALIGN_UP.
5751
5752 2018-11-01 Zong Li <zong@andestech.com>
5753
5754 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
5755 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
5756 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
5757 (__FP_FRAC_SET_8): Add implementation for RV32 use.
5758
5759 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
5760 variable to avoid overlap arguments.
5761
5762 2018-11-01 Joseph Myers <joseph@codesourcery.com>
5763
5764 * posix/bug-regex22.c (main): Use puts with distinct error
5765 messages for unexpected success of re_compile_pattern, not printf
5766 with NULL argument to %s.
5767
5768 * stdio-common/bug22.c: Include <libc-diag.h>.
5769 (do_test): Disable -Wformat-overflow= warnings around fprintf
5770 calls outputting more than INT_MAX characters.
5771 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
5772 around printf call with NULL %s argument.
5773
5774 [BZ #23848]
5775 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
5776 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
5777 Undefine.
5778 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5779 (__ASSUME_RECVMSG_SYSCALL): Likewise.
5780 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5781 (__ASSUME_SENDTO_SYSCALL): Likewise.
5782 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5783 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
5784 [!__arch64__].
5785 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5786 (__ASSUME_CONNECT_SYSCALL): Likewise.
5787 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5788 (__ASSUME_RECVFROM_SYSCALL): Likewise.
5789 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
5790 Define.
5791 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
5792 Likewise.
5793 [__LINUX_KERNEL_VERSION >= 0x040400]
5794 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5795 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
5796 Remove.
5797 (listen): Likewise.
5798 (setsockopt): Likewise.
5799
5800 2018-11-01 Fredrik Noring <noring@nocrew.org>
5801
5802 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
5803 with the ISA override.
5804
5805 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
5806
5807 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
5808 #endif.
5809
5810 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
5811
5812 * manual/errno.texi (EIEIO): Document how translators should
5813 translate the error message.
5814 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
5815 printing trailing whitespaces refused by git.
5816 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
5817 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5818 * hurd/Makefile (user-interfaces): Add pci.
5819
5820 2018-10-30 Joseph Myers <joseph@codesourcery.com>
5821
5822 * conform/linknamespace.py: New file.
5823 * conform/linknamespace.pl: Remove file.
5824 * conform/Makefile ($(linknamespace-header-tests)): Use
5825 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
5826 option.
5827
5828 2018-10-30 Florian Weimer <fweimer@redhat.com>
5829
5830 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
5831 memory leaks.
5832
5833 2018-10-30 Florian Weimer <fweimer@redhat.com>
5834
5835 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
5836
5837 2018-10-30 Florian Weimer <fweimer@redhat.com>
5838
5839 * stdlib/tst-strtod-overflow.c (do_test): Switch to
5840 support_blob_repeat.
5841
5842 2018-10-30 Florian Weimer <fweimer@redhat.com>
5843
5844 Avoid spurious test failures in stdlib/test-bz22786.
5845 * support/Makefile (libsupport-routines): Add blob_repeat.
5846 (tests): Add tst-support_blob_repeat.
5847 * support/blob_repeat.h: New file.
5848 * support/blob_repeat.c: Likewise.
5849 * support/tst-support_blob_repeat.c: Likewise.
5850 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
5851 support_blob_repeat_allocate.
5852
5853 2018-10-30 Andreas Schwab <schwab@suse.de>
5854
5855 [BZ #23125]
5856 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
5857 Don't use tail call.
5858 * elf/tst-unwind-main.c: New file.
5859 * elf/Makefile (tests): Add tst-unwind-main.
5860 (CFLAGS-tst-unwind-main.c): Define.
5861
5862 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
5863
5864 [BZ #23791]
5865 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
5866 n_cs_precedes to 0.
5867 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
5868
5869 2018-10-29 Joseph Myers <joseph@codesourcery.com>
5870
5871 * conform/glibcconform.py: Do not import shutil.
5872 (list_exported_functions): Use tempfile.TemporaryDirectory instead
5873 of mkdtemp.
5874
5875 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5876 critic_missing for versions before 3.4.
5877 * configure: Regenerated.
5878 * manual/install.texi (Tools for Compilation): Document
5879 requirement for Python to build glibc.
5880 * INSTALL: Regenerated.
5881 * Rules [PYTHON]: Make code unconditional.
5882 * benchtests/Makefile [PYTHON]: Likewise.
5883 * conform/Makefile [PYTHON]: Likewise.
5884 * manual/Makefile [PYTHON]: Likewise.
5885 * math/Makefile [PYTHON]: Likewise.
5886
5887 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5888
5889 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5890 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5891 answer to interrupt_operation, return EIEIO instead of EINTR.
5892 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5893 _hurd_intr_rpc_msg_about_to global point to start of controlled
5894 assembly snippet. Make it check canceled flag.
5895 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5896 the _hurd_intr_rpc_msg_about_to point.
5897 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
5898 issue, remove cancel flag check.
5899
5900 2018-10-26 Joseph Myers <joseph@codesourcery.com>
5901
5902 * scripts/build-many-glibcs.py: Remove compatibility for missing
5903 os.cpu_count and re.fullmatch.
5904
5905 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
5906
5907 [BZ #23822]
5908 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
5909 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
5910 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
5911
5912 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5913
5914 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
5915 macro.
5916
5917 2018-10-25 Florian Weimer <fweimer@redhat.com>
5918
5919 [BZ #23562]
5920 [BZ #23821]
5921 XFAIL siginfo_t si_band conform test on sparc64.
5922 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
5923 (__SI_BAND_TYPE): Only override long int default type on sparc64.
5924 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5925 (conformtest-xfail-conds): Add sparc64-linux.
5926 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
5927 sparc64.
5928 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
5929
5930 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5931
5932 * elf/elf.h (NT_MIPS_DSP): New macro.
5933 (NT_MIPS_FP_MODE): Likewise.
5934
5935 2018-10-25 Zong Li <zong@andestech.com>
5936
5937 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
5938 name by adding the file extension (.so).
5939
5940 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
5941
5942 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5943 (test-xfail-ISO11/threads.h/linknamespace,
5944 test-xfail-ISO11/threads.h/conform): Add.
5945
5946 2018-10-24 Joseph Myers <joseph@codesourcery.com>
5947
5948 * math/gen-libm-test.py: Import os.
5949 (ALL_FLOATS_MANUAL): New constant.
5950 (ALL_FLOATS_SUFFIX): Likewise.
5951 (Ulps.all_functions): New function.
5952 (real_all_ulps): Likewise.
5953 (generate_err_table_sub): Likewise.
5954 (generate_err_table): Likewise.
5955 (main): Handle -s and -m options.
5956 * manual/libm-err-tab.pl: Remove.
5957 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5958 instead of libm-err-tab.pl.
5959 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5960 != no].
5961 * manual/install.texi (Tools for Compilation): Document
5962 requirement for Python to build manual.
5963 * INSTALL: Regenerated.
5964
5965 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5966
5967 * bits/time64.h: New file.
5968 * include/time.h: Replace internal_time_t with __time64_t.
5969 * posix/bits/types (__time64_t): Add.
5970 * stdlib/Makefile: Add bits/time64.h to includes.
5971 * time/tzfile.c: Replace internal_time_t with __time64_t.
5972
5973 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5974
5975 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5976 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5977 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5978 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5979 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5980 prototype.
5981 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5982 * posix/spawn_faction_addclose.c
5983 (__posix_spawn_file_actions_addclose): Add hidden definition.
5984 * posix/spawn_faction_adddup2.c
5985 (__posix_spawn_file_actions_adddup2): Likewise.
5986 * posix/spawn_faction_destroy.c
5987 (__posix_spawn_file_actions_destroy): Likewise.
5988 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5989 Likewise.
5990 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5991 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5992 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5993 Likewise.
5994 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5995 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5996 Likewise.
5997
5998 2018-10-24 Andreas Schwab <schwab@suse.de>
5999
6000 [BZ #18093]
6001 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
6002 format cache.
6003 * elf/cache.c (print_cache): Likewise.
6004
6005 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
6006
6007 * bits/timesize.h: New file.
6008 * stdlib/Makefile (headers): Add bits/timesize.h.
6009 * sysdeps/unix/sysv/linux/bits/msq-pad.h
6010 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
6011 * sysdeps/unix/sysv/linux/bits/sem-pad.h
6012 (__SEM_PAD_AFTER_TIME): Likewise.
6013 * sysdeps/unix/sysv/linux/bits/shm-pad.h
6014 (__SHM_PAD_AFTER_TIME): Likewise.
6015 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
6016 (__MSQ_PAD_BEFORE_TIME): Likewise.
6017 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
6018 (__SEM_PAD_BEFORE_TIME): Likewise.
6019 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
6020 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
6021 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
6022 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
6023 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
6024 (__MSQ_PAD_BEFORE_TIME): Likewise.
6025 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
6026 (__SEM_PAD_BEFORE_TIME): Likewise.
6027 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
6028 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
6029 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
6030 (__MSQ_PAD_BEFORE_TIME): Likewise.
6031 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
6032 (__SEM_PAD_BEFORE_TIME): Likewise.
6033 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
6034 (__SHM_PAD_BEFORE_TIME): Likewise.
6035 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
6036 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6037 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
6038
6039 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
6040
6041 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
6042 USE_RDTSCP is defined.
6043 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
6044 USE_RDTSCP is defined.
6045
6046 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6047
6048 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
6049 defined.
6050
6051 [BZ #23709]
6052 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
6053 independently of other flags.
6054
6055 2018-10-23 Florian Weimer <fweimer@redhat.com>
6056
6057 * time/tst-mktime2.c (N_STRINGS): Remove.
6058 (set_timezone): New function.
6059 (spring_forward_gap): Call it. Use FAIL_EXIT1.
6060 (mktime_test1): Report localtime failure and check errno value.
6061 Use TEST_COMPARE.
6062 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
6063 (do_test): Remove alarm call. Use set_timezone and array_length.
6064
6065 2018-10-23 Andreas Schwab <schwab@suse.de>
6066
6067 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
6068 (__start_context): Use END instead of PSEUDO_END.
6069
6070 2018-10-22 Joseph Myers <joseph@codesourcery.com>
6071
6072 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6073 version to 4.19.
6074
6075 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6076 version to 4.19.
6077
6078 [BZ #23793]
6079 * wcsmbs/c32rtomb.c: New file.
6080 * wcsmbs/mbrtoc32.c: Likewise.
6081 * wcsmbs/tst-c32-state.c: Likewise.
6082 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
6083 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
6084 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
6085 (tests): Add tst-c32-state.
6086 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
6087 $(gen-locales).
6088
6089 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
6090
6091 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
6092 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
6093
6094 2018-10-19 Joseph Myers <joseph@codesourcery.com>
6095
6096 [BZ #23794]
6097 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
6098 pair and return 0 in that case, and use saved character to
6099 interpret following character.
6100 * wcsmbs/tst-c16-surrogate.c: New file.
6101 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
6102 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
6103 Depend on $(gen-locales)
6104
6105 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6106
6107 [BZ #23562]
6108 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
6109 (struct siginfo_t): Use correct type for si_band.
6110
6111 2018-10-19 Florian Weimer <fweimer@redhat.com>
6112
6113 [BZ #23689]
6114 * resource/bits/types/struct_rusage.h (struct rusage): Update
6115 comment on struct. Remove extraneous field comment.
6116
6117 2018-10-18 David S. Miller <davem@davemloft.net>
6118
6119 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
6120 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
6121 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
6122 sysdep_routines in subdir elf.
6123 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
6124 version for __vdso_clock_gettime.
6125 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
6126 Define.
6127 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
6128 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
6129
6130 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
6131
6132 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
6133
6134 * sysdeps/i386/init-arch.h: Removed.
6135 * sysdeps/i386/i586/init-arch.h: Likewise.
6136 * sysdeps/i386/i686/init-arch.h: Likewise.
6137 * sysdeps/i386/i686/hp-timing.h: Likewise.
6138 * sysdeps/x86_64/hp-timing.h: Likewise.
6139 * sysdeps/i386/isa.h: New file.
6140 * sysdeps/i386/i586/isa.h: Likewise.
6141 * sysdeps/i386/i686/isa.h: Likewise.
6142 * sysdeps/x86_64/isa.h: Likewise.
6143 * sysdeps/x86/hp-timing.h: New file.
6144 * sysdeps/x86/init-arch.h: Include <isa.h>.
6145
6146 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6147
6148 * math/libm-test-pow.inc (pow_test_data): Do not allow
6149 divide-by-zero exception for pow(+/- 0, -Inf).
6150
6151 2018-10-17 Zack Weinberg <zackw@panix.com>
6152
6153 * manual/job.texi (Job Control is Optional): Remove node, as
6154 job control has not been optional in quite some time.
6155 (Job Control): Mention briefly that systems older than
6156 POSIX.1-2001 might not support job control.
6157 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
6158 defined on systems conforming to POSIX.1-2001.
6159
6160 2018-10-17 Arjun Shankar <arjun@redhat.com>
6161
6162 [BZ #22062]
6163 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
6164 indentation.
6165 * (__gconv_read_conf): Mark function static.
6166 * (once): New static variable.
6167 * (__gconv_load_conf): New function.
6168 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
6169 * iconv/gconv_db.c (once): Remove static variable.
6170 * (__gconv_compare_alias): Use __gconv_load_conf instead of
6171 __gconv_read_conf.
6172 * (__gconv_find_transform): Likewise.
6173 * iconv/tst-iconv-mt.c: New test.
6174 * iconv/Makefile: Add tst-iconv_mt.
6175
6176 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6177
6178 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6179 bits/shm-pad.h.
6180 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
6181 (shmatt_t): Define as __syscall_ulong_t.
6182 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
6183 and [__SHM_PAD_AFTER_TIME].
6184 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
6185 Define shm_segsz and associated padding based on
6186 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
6187 Use __syscall_ulong_t instead of unsigned long int.
6188 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
6189 unsigned long int.
6190 [__USE_MISC] (struct shm_info): Likewise.
6191 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
6192 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
6193 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
6194 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
6195 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
6196 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6197 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
6198 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
6199 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6200 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6201 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
6202
6203 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6204 bits/shmlba.h.
6205 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
6206 (SHMLBA): Remove macro.
6207 (__getpagesize): Remove function declaration.
6208 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
6209 <bits/shmlba.h>.
6210 (SHMLBA): Remove macro.
6211 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
6212 <bits/shmlba.h>.
6213 (SHMLBA): Remove macro.
6214 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
6215 <bits/shmlba.h>.
6216 (SHMLBA): Remove macro.
6217 (__getpagesize): Remove function declaration.
6218 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
6219 <bits/shmlba.h>.
6220 (SHMLBA): Remove macro.
6221 (__getshmlba): Remove function declaration.
6222 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
6223 (SHMLBA): Remove macro.
6224 (__getpagesize): Remove function declaration.
6225 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
6226 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6227 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6228 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
6229 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
6230 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
6231 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
6232 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
6233 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
6234 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
6235
6236 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
6237
6238 [BZ #23275]
6239 * nptl/tst-mutex10.c: New File.
6240 * nptl/Makefile (tests): Add tst-mutex10.
6241 (tst-mutex10-ENV): New variable.
6242 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
6243 Ensure that elision path is used if elision is available.
6244 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
6245 Likewise.
6246 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
6247 Likewise.
6248 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
6249 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
6250 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
6251 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
6252 Likewise.
6253 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
6254 (__pthread_mutex_cond_lock_adjust): Likewise.
6255 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
6256 Likewise.
6257 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
6258 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
6259 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6260 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
6261 Add comments.
6262 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
6263 Use atomic_load_relaxed and atomic_store_relaxed.
6264 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
6265 Use atomic_store_relaxed.
6266
6267 2018-10-17 Andreas Schwab <schwab@suse.de>
6268
6269 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
6270 * crypt/badsalttest.c (TIMEOUT): Likewise.
6271 * crypt/sha256c-test.c (TIMEOUT): Likewise.
6272 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
6273 * io/test-lfs.c (TIMEOUT): Likewise.
6274 * libio/tst-atime.c (TIMEOUT): Likewise.
6275 * localedata/tst-leaks.c (TIMEOUT): Likewise.
6276 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
6277 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
6278 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
6279 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
6280 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
6281 * nptl/tst-cond11.c (TIMEOUT): Likewise.
6282 * nptl/tst-cond14.c (TIMEOUT): Likewise.
6283 * nptl/tst-cond15.c (TIMEOUT): Likewise.
6284 * nptl/tst-cond24.c (TIMEOUT): Likewise.
6285 * nptl/tst-cond25.c (TIMEOUT): Likewise.
6286 * nptl/tst-kill2.c (TIMEOUT): Likewise.
6287 * nptl/tst-kill3.c (TIMEOUT): Likewise.
6288 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
6289 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
6290 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
6291 * nptl/tst-once2.c (TIMEOUT): Likewise.
6292 * nptl/tst-once3.c (TIMEOUT): Likewise.
6293 * nptl/tst-once4.c (TIMEOUT): Likewise.
6294 * nptl/tst-robust8.c (TIMEOUT): Likewise.
6295 * nptl/tst-robust9.c (TIMEOUT): Likewise.
6296 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
6297 * nptl/tst-sem14.c (TIMEOUT): Likewise.
6298 * nptl/tst-sem6.c (TIMEOUT): Likewise.
6299 * nptl/tst-signal3.c (TIMEOUT): Likewise.
6300 * nptl/tst-spin4.c (TIMEOUT): Likewise.
6301 * nptl/tst-tls3.c (TIMEOUT): Likewise.
6302 * nptl/tst-tls4.c (TIMEOUT): Likewise.
6303 * posix/tst-chmod.c (TIMEOUT): Likewise.
6304 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
6305 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
6306 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
6307 * posix/tst-regex2.c (TIMEOUT): Likewise.
6308 * posix/tst-waitid.c (TIMEOUT): Likewise.
6309 * rt/tst-aio.c (TIMEOUT): Likewise.
6310 * rt/tst-aio10.c (TIMEOUT): Likewise.
6311 * rt/tst-aio4.c (TIMEOUT): Likewise.
6312 * rt/tst-aio5.c (TIMEOUT): Likewise.
6313 * rt/tst-aio6.c (TIMEOUT): Likewise.
6314 * rt/tst-aio64.c (TIMEOUT): Likewise.
6315 * rt/tst-aio7.c (TIMEOUT): Likewise.
6316 * rt/tst-aio9.c (TIMEOUT): Likewise.
6317 * rt/tst-clock.c (TIMEOUT): Likewise.
6318 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
6319 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
6320 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
6321 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
6322 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
6323 * rt/tst-timer4.c (TIMEOUT): Likewise.
6324 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
6325 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
6326 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
6327 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
6328 * time/tst-ftime.c (TIMEOUT): Likewise.
6329 * timezone/tst-tzset.c (TIMEOUT): Likewise.
6330
6331 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
6332
6333 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
6334 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
6335 for thunderX2.
6336
6337 2018-10-15 Joseph Myers <joseph@codesourcery.com>
6338
6339 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6340 bits/sem-pad.h.
6341 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
6342 instead of <bits/wordsize.h>.
6343 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
6344 and [__SEM_PAD_AFTER_TIME].
6345 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
6346 __syscall_ulong_t instead of unsigned long int.
6347 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
6348 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
6349 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
6350 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
6351 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
6352 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
6353 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
6354 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
6355 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
6356 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
6357 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
6358
6359 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
6360
6361 regex: simplify by using intprops.h
6362 [BZ#23744]
6363 * posix/regex_internal.h [_LIBC]: Include intprops.h.
6364 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
6365 intprops.h defines them.
6366
6367 regex: __builtin_expect → __glibc_unlikely
6368 [BZ#23744]
6369 This refactoring was prompted by a problem when the regex code is
6370 used as part of Gnulib and when the builder’s compiler does not grok
6371 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
6372 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
6373 Although this refactoring does not fix the problem directly,
6374 we might as well have Gawk use the now-preferred glibc style for when
6375 __builtin_expect is unavailable.
6376 * posix/regex_internal.h (BE): Remove.
6377 All uses replaced by __glibc_unlikely or __glibc_likely.
6378
6379 2018-10-11 Joseph Myers <joseph@codesourcery.com>
6380
6381 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6382 bits/msq-pad.h.
6383 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
6384 instead of <bits/wordsize.h>.
6385 (msgqnum_t): Define as __syscall_ulong_t.
6386 (msglen_t): Likewise.
6387 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
6388 and [__MSQ_PAD_AFTER_TIME].
6389 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
6390 __syscall_ulong_t instead of unsigned long int.
6391 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
6392 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
6393 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
6394 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
6395 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
6396 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
6397 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
6398 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
6399 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
6400 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
6401 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
6402
6403 2018-10-10 Joseph Myers <joseph@codesourcery.com>
6404
6405 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
6406 (struct shmid_ds): Condition padding after time fields on
6407 [__WORDSIZE == 32].
6408 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
6409 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
6410 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6411
6412 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
6413 (struct semid_ds): Condition padding after time fields on
6414 [__WORDSIZE == 32].
6415 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
6416 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
6417 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
6418 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
6419
6420 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
6421 (struct msqid_ds): Condition padding after time fields on
6422 [__WORDSIZE == 32].
6423 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
6424 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
6425 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
6426 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
6427
6428 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6429
6430 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
6431
6432 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6433
6434 * libio/tst-readline.c (TIMEOUT): Define.
6435
6436 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
6437
6438 mktime fix for Gnulib + coreutils
6439 [BZ#23745]
6440 This fix affects only Gnulib. Problem discovered when
6441 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
6442 * time/mktime.c:
6443 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
6444 Do not define since it is not used. Defining an unused static
6445 function prompts a warning from GCC when Coreutils is configured
6446 with --enable-gcc-warnings.
6447
6448 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6449
6450 * benchtests/scripts/compare_bench.py (main): set float type on
6451 threshold argument.
6452
6453 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
6454
6455 [BZ #23740]
6456 * localedata/locales/kl_GL (mon): Update, the relative case.
6457 (alt_mon): Add, fill with month names in the nominative case.
6458 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
6459 (d_fmt): Set to "%b %d %Y".
6460
6461 2018-10-04 Joseph Myers <joseph@codesourcery.com>
6462
6463 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
6464 <bits/mman-linux.h>.
6465 (PROT_READ): Don't define here.
6466 (PROT_WRITE): Likewise.
6467 (PROT_EXEC): Likewise.
6468 (PROT_NONE): Likewise.
6469 (PROT_GROWSDOWN): Likewise.
6470 (PROT_GROWSUP): Likewise.
6471 (MAP_SHARED): Likewise.
6472 (MAP_PRIVATE): Likewise.
6473 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
6474 [__USE_MISC] (MAP_FILE): Likewise.
6475 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
6476 [__USE_MISC] (MAP_ANON): Likewise.
6477 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
6478 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
6479 (MCL_CURRENT): Likewise.
6480 (MCL_FUTURE): Likewise.
6481 (MCL_ONFAULT): Likewise.
6482 [__USE_MISC] (MADV_NORMAL): Likewise.
6483 [__USE_MISC] (MADV_RANDOM): Likewise.
6484 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
6485 [__USE_MISC] (MADV_WILLNEED): Likewise.
6486 [__USE_MISC] (MADV_DONTNEED): Likewise.
6487 [__USE_MISC] (MADV_FREE): Likewise.
6488 [__USE_MISC] (MADV_REMOVE): Likewise.
6489 [__USE_MISC] (MADV_DONTFORK): Likewise.
6490 [__USE_MISC] (MADV_DOFORK): Likewise.
6491 [__USE_MISC] (MADV_HWPOISON): Likewise.
6492 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
6493 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
6494 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
6495 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
6496 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
6497 (__MAP_ANONYMOUS): New macro.
6498 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
6499 <bits/mman-linux.h> inclusion.
6500 (MAP_FIXED): Likewise.
6501 (MS_SYNC): Likewise.
6502 (MS_ASYNC): Likewise.
6503 (MS_INVALIDATE): Likewise.
6504 [__USE_MISC] (MADV_MERGEABLE): Likewise.
6505 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
6506 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
6507 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
6508 [__USE_MISC] (MADV_DONTDUMP): Likewise.
6509 [__USE_MISC] (MADV_DODUMP): Likewise.
6510 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
6511 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
6512
6513 [BZ #23735]
6514 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
6515 Define.
6516 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
6517 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
6518 Add test-nldbl-redirect.
6519 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
6520 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
6521 $(objpfx)libnldbl_nonshared.a.
6522
6523 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
6524
6525 * support/support.h (support_objdir_elf_ldso): New variable.
6526 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
6527 * support/Makefile (CFLAGS-support_paths.c): Add definition
6528 for OBJDIR_ELF_LDSO_PATH.
6529 * support/test-container.c (main): Search for the ld.so
6530 which is also used by the testsuite.
6531
6532 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
6533
6534 [BZ #20209]
6535 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
6536 should be "sap" rather than "sab".
6537 (day): Fix spelling of Sunday, should be "sapaat" rather than
6538 "sabaat".
6539
6540 2018-10-02 Joseph Myers <joseph@codesourcery.com>
6541
6542 * math/libm-test-fma.inc (fma_test_data): Add more tests.
6543
6544 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
6545
6546 [BZ #19444]
6547 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
6548 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
6549 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
6550
6551 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6552
6553 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
6554
6555 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
6556
6557 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
6558 Add -mrtm.
6559 (CFLAGS-elision-unlock.c): Likewise.
6560 (CFLAGS-elision-timed.c): Likewise.
6561 (CFLAGS-elision-trylock.c): Likewise.
6562 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
6563
6564 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6565
6566 [BZ #21037]
6567 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
6568 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
6569 new fd_to_filename interface.
6570 * libio/freopen64.c (freopen64): Likewise.
6571 * libio/tst-memstream.h: New file.
6572 * libio/tst-memstream4.c: Likewise.
6573 * libio/tst-wmemstream4.c: Likewise.
6574 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
6575 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
6576 and remove internal dynamic allocation.
6577
6578 2018-10-01 Joseph Myers <joseph@codesourcery.com>
6579
6580 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
6581 (MREMAP_MAYMOVE): Do not define here.
6582 [__USE_GNU] (MREMAP_FIXED): Likewise.
6583 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
6584 (MREMAP_MAYMOVE): Define here instead.
6585 [__USE_GNU] (MREMAP_FIXED): Likewise.
6586 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
6587 (MREMAP_MAYMOVE): Remove.
6588 [__USE_GNU] (MREMAP_FIXED): Likewise.
6589
6590 2018-09-28 Joseph Myers <joseph@codesourcery.com>
6591
6592 * math/fromfp.h: Do not include <math_private.h>.
6593 * math/s_cacosh_template.c: Likewise.
6594 * math/s_casin_template.c: Likewise.
6595 * math/s_casinh_template.c: Likewise.
6596 * math/s_ccos_template.c: Likewise.
6597 * math/s_cproj_template.c: Likewise.
6598 * math/s_fdim_template.c: Likewise.
6599 * math/s_fmaxmag_template.c: Likewise.
6600 * math/s_fminmag_template.c: Likewise.
6601 * math/s_iseqsig_template.c: Likewise.
6602 * math/s_ldexp_template.c: Likewise.
6603 * math/s_nextdown_template.c: Likewise.
6604 * math/w_log1p_template.c: Likewise.
6605 * math/w_scalbln_template.c: Likewise.
6606 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6607 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6608 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6609 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6610 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
6611 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
6612 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
6613 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
6614 * sysdeps/i386/fpu/s_atanl.c: Likewise.
6615 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
6616 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6617 * sysdeps/i386/fpu/s_fdim.c: Likewise.
6618 * sysdeps/i386/fpu/s_logbl.c: Likewise.
6619 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6620 * sysdeps/i386/fpu/s_significandl.c: Likewise.
6621 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
6622 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
6623 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6624 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6625 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6626 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6627 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6628 * sysdeps/ieee754/k_standardf.c: Likewise.
6629 * sysdeps/ieee754/k_standardl.c: Likewise.
6630 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6631 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
6632 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
6633 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
6634 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
6635 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
6636 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
6637 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6638 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6639 * sysdeps/ieee754/s_signgam.c: Likewise.
6640 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
6641 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
6642 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
6643 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6644 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6645 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6646 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6647 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6648 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6649 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6650 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6651 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6652 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6653 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6654 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6655 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6656 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6657 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6658 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6659 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6660 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6661 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6662 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6663 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6664 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6665 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6666 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6667 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6668 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6669 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6670 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6671 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6672 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6673 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6674 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6675 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6676 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
6677 <math_private.h>.
6678 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6679
6680 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
6681
6682 [BZ #23716]
6683 * sysdeps/i386/dl-cet.c: Removed.
6684 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
6685 prototype.
6686 (_dl_runtime_profile_shstk): Likewise.
6687 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
6688 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
6689
6690 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6691
6692 [BZ #23579]
6693 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
6694 do_test_with_invalid_iov): New tests.
6695 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
6696 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
6697 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
6698 errno is ENOSYS.
6699 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
6700 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
6701 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
6702
6703 2018-09-27 Joseph Myers <joseph@codesourcery.com>
6704
6705 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6706 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
6707 (MATH_REDIRECT_BINARY_ARGS): New macro.
6708 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6709 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
6710 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
6711 header inclusion.
6712 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
6713 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
6714 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
6715 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6716 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6717 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6718 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
6719 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
6720 Likewise.
6721 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
6722 Likewise.
6723 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
6724 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
6725 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
6726 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
6727 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
6728 Likewise.
6729 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
6730 Likewise.
6731 * sysdeps/generic/math_private_calls.h
6732 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
6733 Do not declare and define as an inline function.
6734 * math/divtc3.c (__divtc3): Use copysign functions instead of
6735 __copysign variants.
6736 * math/multc3.c (__multc3): Likewise.
6737 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
6738 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
6739 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
6740 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6741 Likewise.
6742 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
6743 (__ieee754_yn): Likewise.
6744 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
6745 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
6746 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
6747 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6748 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
6749 (__sin): Likewise.
6750 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
6751 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
6752 Likewise.
6753 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
6754 Likewise.
6755 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
6756 Likewise.
6757 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
6758 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6759 Likewise.
6760 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
6761 (__ieee754_ynf): Likewise.
6762 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
6763 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6764 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6765 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6766 Likewise.
6767 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
6768 (__ieee754_ynl): Likewise.
6769 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6770 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6771 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6772 Likewise.
6773 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
6774 (__ieee754_ynl): Likewise.
6775 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
6776 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6777 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6778 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6779 Likewise.
6780 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6781 (__ieee754_ynl)
6782 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
6783 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6784 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
6785 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6786 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6787
6788 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6789 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
6790 using MATH_REDIRECT.
6791 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
6792 header inclusion.
6793 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
6794 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6795 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6796 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
6797 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6798 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
6799 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6800 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
6801 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
6802 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
6803 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
6804 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6805 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6806 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6807 (round): Redirect to __round.
6808 (__roundl): Call round instead of __round.
6809 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
6810 Remove macro.
6811 [_ARCH_PWR5X] (__roundf): Likewise.
6812 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
6813 functions instead of __round variants.
6814 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6815 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6816 Likewise.
6817 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6818 Likewise.
6819 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6820 Likewise.
6821 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
6822 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
6823 __lroundl.
6824 (__ieee754_expl): Call roundl instead of __roundl.
6825
6826 2018-09-27 Andreas Schwab <schwab@suse.de>
6827
6828 [BZ #23717]
6829 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
6830 (do_test): Make st1 static.
6831
6832 2018-09-26 Andreas Schwab <schwab@suse.de>
6833
6834 [BZ #23707]
6835 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
6836 * elf/Makefile (tests): Add tst-unwind-ctor.
6837 (modules-names): Add tst-unwind-ctor-lib.
6838 ($(objpfx)tst-unwind-ctor): Depend on
6839 $(objpfx)tst-unwind-ctor-lib.so.
6840
6841 2018-09-26 Joseph Myers <joseph@codesourcery.com>
6842
6843 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
6844 file. Most contents moved from ....
6845 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
6846 and include <bits/mman-map-flags-generic.h>.
6847 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6848 (sysdep_headers): Add bits/mman-map-flags-generic.h.
6849 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
6850 <bits/mman-map-flags-generic.h>.
6851 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
6852 macros defined in <bits/mman-map-flags-generic.h>.
6853 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
6854 <bits/mman-map-flags-generic.h>.
6855 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
6856 defined in <bits/mman-map-flags-generic.h>.
6857
6858 2018-09-26 Andreas Schwab <schwab@suse.de>
6859
6860 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
6861 output.
6862
6863 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
6864 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6865 Fangrui Song <maskray@google.com>
6866
6867 [BZ #20480]
6868 * config.make.in (have-textrel_ifunc): New define.
6869 * configure.ac: Add check if linker supports textrel relocation with
6870 ifunc.
6871 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
6872 tst-ifunc-textrel.
6873 (CFLAGS-tst-ifunc-textrel.c): New rule.
6874 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
6875 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6876 * elf/tst-ifunc-textrel.c: New file.
6877
6878 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6879
6880 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6881 <bits/procfs-prregset.h>.
6882 (prgregset_t): Define using __prgregset_t.
6883 (prfpregset_t): Define using __prfpregset_t.
6884 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6885 (sysdep_headers): Add bits/procfs-prregset.h.
6886 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6887 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6888 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6889 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6890
6891 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6892 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6893 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6894 pr_uid and pr_gid.
6895 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6896 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
6897 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
6898 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
6899 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
6900 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
6901 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
6902 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
6903 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
6904 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
6905 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
6906 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
6907 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
6908 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
6909 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
6910 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
6911 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
6912 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
6913 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
6914 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
6915 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
6916 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
6917 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
6918 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
6919
6920 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
6921 AArch64 version. Include <bits/procfs.h>.
6922 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6923 (sysdep_headers): Add bits/procfs.h.
6924 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6925 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
6926 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
6927 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
6928 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
6929 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
6930 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
6931 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
6932 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
6933 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
6934 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
6935 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
6936 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
6937 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6938 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
6939 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6940 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
6941
6942 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6943
6944 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
6945 Use libsupport.
6946
6947 2018-09-25 Arjun Shankar <arjun@redhat.com>
6948
6949 * iconv/gconv_int.h (__gconv_path_elem): Remove.
6950 (__gconv_max_path_elem_len): Likewise.
6951 (__gconv_nmodules): Likewise.
6952 (__gconv_get_path): Likewise.
6953 (path_elem): Move to ...
6954 * iconv/gconv_conf.c: ... here.
6955 (__gconv_get_path): Mark function static.
6956 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6957 * iconv/gconv_open.c: ... here.
6958
6959 2018-09-24 Andreas Schwab <schwab@suse.de>
6960
6961 * scripts/haveversions.awk: New file.
6962 * Makerules ($(common-objpfx)Versions.def)
6963 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6964 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6965 Move rules ...
6966 * Makeconfig ($(common-objpfx)Versions.def)
6967 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6968 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6969 ... here.
6970 ($(common-objpfx)Versions.mk): New rule. Include it.
6971 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6972 Emit error if build-obsolete-nsl = yes.
6973 * manual/install.texi (Configuring and compiling): Describe
6974 --enable-obsolete-nsl as unavaiable after version 2.28.
6975 * INSTALL: Regenerate.
6976
6977 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6978
6979 * NEWS: Add note about new TLE support on powerpc64le.
6980 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6981 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6982 __ununsed1.
6983 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6984 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6985 * sysdeps/powerpc/powerpc32/sysdep.h,
6986 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6987 ABORT_TRANSACTION): Remove macros.
6988 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6989 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6990 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6991 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6992 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6993 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6994 usage.
6995 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6996
6997 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6998
6999 [BZ #10425]
7000 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
7001 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
7002 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
7003 which is the same as in it_IT.
7004 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
7005 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
7006
7007 2018-09-20 Joseph Myers <joseph@codesourcery.com>
7008
7009 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7010 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
7011 using MATH_REDIRECT.
7012 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
7013 header inclusion.
7014 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
7015 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
7016 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
7017 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
7018 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
7019 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
7020 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
7021 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
7022 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
7023 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
7024 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7025 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7026 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
7027 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
7028 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
7029 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
7030 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
7031 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7032 (ceil): Redirect to __ceil.
7033 (floor): Redirect to __floor.
7034 (trunc): Redirect to __trunc.
7035 (__truncl): Call trunc instead of __trunc.
7036 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
7037 Remove macro.
7038 [_ARCH_PWR5X] (__truncf): Likewise.
7039 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
7040 trunc functions instead of __trunc variants.
7041 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7042 Likewise.
7043 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7044 Likewise.
7045 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7046 Likewise.
7047 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7048 Likewise.
7049
7050 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
7051 [__i586__ || __pentium__].
7052 [__i486__]: Handle explicitly.
7053 (HAS_CPUID): Define to 1 if above macros are undefined.
7054 (HAS_I586): Likewise.
7055 (HAS_I686): Likewise.
7056
7057 2018-09-20 Florian Weimer <fweimer@redhat.com>
7058
7059 * misc/tst-gethostid.c: New file.
7060 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
7061 (tst-gethostid): Link with -ldl.
7062
7063 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
7064
7065 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
7066 value from gethostbyname_r.
7067
7068 2018-09-19 Carlos O'Donell <carlos@redhat.com>
7069
7070 * stdlib/tst-setcontext9.c (f1): Rename to...
7071 (f1a): ... this.
7072 (f1b): New function implementing lower half of f1 in alternate stack.
7073
7074 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
7075
7076 Fix mktime localtime offset confusion
7077 [BZ #23603]
7078 * include/time.h (__mktime_internal): The localtime offset is now
7079 of type long int instead of time_t. This is the longstanding type
7080 in glibc, and it is more than enough to represent difference
7081 between localtime and gmtime even if it is 32 bits and time_t is
7082 64. Changing it now will let us avoid an unnecessary change when
7083 time_t is widened to 64 bits on 32-bit platforms.
7084 * time/mktime-internal.h (mktime_offset_t): Now long int.
7085
7086 Merge mktime, timegm from upstream Gnulib
7087 [BZ #23603][BZ #16346]
7088 This fixes some obscure problems with integer overflow.
7089 Although it looks scary, it is almost all a byte-for-byte copy
7090 from Gnulib, and the Gnulib code has been tested reasonably well.
7091 * include/intprops.h: New file, copied from Gnulib.
7092 * include/verify.h, time/mktime-internal.h:
7093 New tiny files, simplified from Gnulib.
7094 * time/mktime.c: Copy from Gnulib. This has the following changes:
7095 Do not include config.h if DEBUG_MKTIME is nonzero.
7096 Include stdbool.h, intprops.h, verify.h.
7097 Include string.h only if needed.
7098 Include stdlib.h on MS-Windows.
7099 Include mktime-internal.h.
7100 (DEBUG_MKTIME): Default to 0, and simplify later uses.
7101 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
7102 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
7103 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
7104 simplify later conditionals; default the others to zero. Use
7105 these conditionals to express only the code needed on the current
7106 platform. In uses of these conditionals, explicitly spell out how
7107 _LIBC affects things, so it’s easier to review from a glibc
7108 viewpoint.
7109 (WRAPV): Remove; no longer needed now that we have
7110 systematic overflow checking.
7111 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
7112 compartmentalize tzset issues. Move system-dependent tzsettish
7113 code here from mktime.
7114 (verify): Remove; now done by verify.h. All uses changed.
7115 (long_int): Use a more-conservative definition, to avoid
7116 integer overflow.
7117 (SHR): Remove, replacing with ...
7118 (shr): New function, which means we needn’t worry about side
7119 effects in args, and conversion analysis is simpler.
7120 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
7121 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
7122 (time_t_avg, time_t_add_ok): Remove.
7123 (mktime_min, mktime_max): New constants.
7124 (leapyear, isdst_differ): Use bool for booleans.
7125 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
7126 Use long_int, not time_t, for mktime differences.
7127 (long_int_avg): New function, replacing time_t_avg.
7128 INT_ADD_WRAPV replaces time_t_add_ok.
7129 (guess_time_tm): 6th arg is now long_int, not time_t const *.
7130 All uses changed.
7131 (convert_time): New function.
7132 (ranged_convert): Use it.
7133 (__mktime_internal): Last arg now points to mktime_offset_t, not
7134 time_t. All uses changed. This is a no-op on glibc, where
7135 mktime_offset_t is always time_t. Use int, not time_t, for UTC
7136 offset guess. Directly check for integer overflow instead of
7137 using a heuristic that works only 99.9...% of the time.
7138 Access *OFFSET only once, to avoid an unlikely race if the
7139 compiler delays a load and if this cascades into a signed integer
7140 overflow.
7141 (mktime): Move tzsettish code to my_tzset, and move
7142 localtime_offset to within mktime so that it doesn’t
7143 need a separate ifdef.
7144 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
7145 instead of localtime.
7146 * time/timegm.c: Copy from Gnulib. This has the following changes:
7147 Include mktime-internal.h.
7148 [!_LIBC]: Include config.h and time.h. Do not include
7149 timegm.h or time_r.h. Make __mktime_internal a macro,
7150 and include mktime-internal.h to get its declaration.
7151 (timegm): Temporary is now mktime_offset_t, not time_t.
7152 This affects only Gnulib.
7153
7154 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
7155
7156 [BZ #23637]
7157 * string/test-strstr.c (pr23637): New function.
7158 (test_main): Add tests with longer needles.
7159 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
7160 * string/strstr.c (AVAILABLE): Likewise.
7161
7162 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7163
7164 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
7165
7166 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7167
7168 * NEWS: Mention pow improvements.
7169 * math/Makefile (type-double-routines): Add e_pow_log_data.
7170 * sysdeps/generic/math_private.h (__exp1): Remove.
7171 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
7172 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
7173 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
7174 contraction.
7175 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
7176 (exp_inline): Remove.
7177 (__ieee754_exp): Only single double input is handled.
7178 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
7179 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
7180 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
7181 (__pow_log_data): Define.
7182 * sysdeps/ieee754/dbl-64/upow.h: Remove.
7183 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
7184 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
7185 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
7186 contraction.
7187 (CFLAGS-e_pow-fma4.c): Likewise.
7188
7189 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
7190
7191 Simplify tzfile fstat failure code
7192 [BZ #21716]
7193 * time/tzfile.c (__tzfile_read): Simplify slightly.
7194
7195 Fix tzfile low-memory assertion failure
7196 [BZ #21716]
7197 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
7198 when registering time zone abbreviations.
7199
7200 2018-09-18 Joseph Myers <joseph@codesourcery.com>
7201
7202 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
7203 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
7204 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
7205 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
7206 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
7207 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
7208 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
7209 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7210 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
7211
7212 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
7213 __ceil.
7214 (__ceill): Call ceil instead of __ceil.
7215 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
7216 __floor.
7217 (__floorl): Call floor instead of __floor.
7218
7219 2018-09-17 Joseph Myers <joseph@codesourcery.com>
7220
7221 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7222 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
7223 using MATH_REDIRECT.
7224 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
7225 header inclusion.
7226 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
7227 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
7228 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7229 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
7230 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7231 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7232 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
7233 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
7234 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
7235 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
7236 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
7237 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
7238 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7239 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7240 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
7241 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
7242 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
7243 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
7244 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
7245 Remove macro.
7246 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
7247 functions instead of __ceil variants.
7248 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7249 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
7250 Likewise.
7251 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
7252 Likewise.
7253 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7254 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
7255 Likewise.
7256 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7257 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7258
7259 [BZ #21286]
7260 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
7261 constant.
7262 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
7263 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
7264 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
7265 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
7266 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
7267 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
7268 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
7269 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
7270 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
7271 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
7272 (ILL_BADIADDR): Remove constant.
7273 (TRAP_BRANCH): Likewise.
7274 (TRAP_HWBKPT): Likewise.
7275
7276 2018-09-14 Joseph Myers <joseph@codesourcery.com>
7277
7278 [BZ #23656]
7279 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
7280 Remove [_MIPS_SIM = _ABIN32] conditional case.
7281 (struct elf_prpsinfo): Likewise.
7282
7283 [BZ #23649]
7284 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
7285 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
7286 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
7287 Likewise.
7288 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
7289 elf_prpsinfo): Likewise.
7290 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
7291 elf_prpsinfo): Likewise.
7292 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
7293 Likewise.
7294
7295 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7296 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
7297 using MATH_REDIRECT.
7298 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
7299 header inclusion.
7300 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
7301 * sysdeps/alpha/fpu/s_rint.c: Likewise.
7302 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7303 * sysdeps/i386/fpu/s_rintl.c: Likewise.
7304 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
7305 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
7306 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
7307 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
7308 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7309 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7310 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
7311 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
7312 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
7313 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
7314 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
7315 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
7316 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7317 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
7318 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
7319 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
7320 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
7321 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
7322 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
7323 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
7324 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
7325 * sysdeps/x86_64/fpu/math_private.h: Remove file.
7326 * math/e_scalb.c (invalid_fn): Use rint functions instead of
7327 __rint variants.
7328 * math/e_scalbf.c (invalid_fn): Likewise.
7329 * math/e_scalbl.c (invalid_fn): Likewise.
7330 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7331 Likewise.
7332 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7333 Likewise.
7334 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7335 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
7336 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7337 Likewise.
7338 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7339 Likewise.
7340 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7341 Likewise.
7342 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
7343 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
7344
7345 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7346 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
7347 New macro.
7348 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7349 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
7350 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7351 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
7352 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7353 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
7354 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7355 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
7356 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7357 && !NO_MATH_REDIRECT] (floor): Likewise.
7358 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
7359 header inclusion.
7360 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
7361 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7362 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7363 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
7364 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7365 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7366 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7367 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
7368 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
7369 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
7370 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
7371 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
7372 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7373 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7374 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
7375 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
7376 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
7377 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
7378 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
7379 Remove macro.
7380 [_ARCH_PWR5X] (__floorf): Likewise.
7381 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
7382 inline function.
7383 [__SSE4_1__] (__floorf): Likewise.
7384 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
7385 instead of __floor variants.
7386 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
7387 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
7388 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
7389 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
7390 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
7391 * math/w_tgamma_compat.c (__tgamma): Likewise.
7392 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
7393 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
7394 * math/w_tgammal_compat.c (__tgammal): Likewise.
7395 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
7396 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
7397 Likewise.
7398 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
7399 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
7400 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
7401 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7402 Likewise.
7403 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7404 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
7405 Likewise.
7406 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
7407 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
7408 Likewise.
7409 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7410 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
7411 Likewise.
7412 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
7413 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7414 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
7415 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
7416 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7417 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7418
7419 2018-09-12 Joseph Myers <joseph@codesourcery.com>
7420
7421 * elf/Makefile (modules-names-tests): New variable.
7422
7423 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7424
7425 * NEWS: Mention log2 improvements.
7426 * math/Makefile (type-double-routines): Add e_log2_data.
7427 * sysdeps/i386/fpu/e_log2_data.c: New file.
7428 * sysdeps/ia64/fpu/e_log2_data.c: New file.
7429 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
7430 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
7431 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
7432 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
7433 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
7434
7435 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7436
7437 * NEWS: Mention log improvement.
7438 * math/Makefile (type-double-routines): Add e_log_data.
7439 * sysdeps/i386/fpu/e_log_data.c: New file.
7440 * sysdeps/ia64/fpu/e_log_data.c: New file.
7441 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
7442 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
7443 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
7444 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
7445 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
7446 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
7447
7448 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
7449 Xuepeng Guo <xuepeng.guo@intel.com>
7450
7451 [BZ #23606]
7452 * sysdeps/i386/start.S: Include <sysdep.h>
7453 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
7454 enabled. Add cfi_undefined (eip).
7455
7456 2018-09-11 Joseph Myers <joseph@codesourcery.com>
7457
7458 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
7459 (MOVQ): Likewise.
7460 (EXTRACT_WORDS64): Likewise.
7461 (INSERT_WORDS64): Likewise.
7462 (GET_FLOAT_WORD): Likewise.
7463 (SET_FLOAT_WORD): Likewise.
7464
7465 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
7466 argument.
7467 (Config.build_gcc): Use --disable-libsanitizer for first GCC
7468 build, but not for second build if --full-gcc. Use
7469 --enable-languages=all for second build if --full-gcc.
7470 (get_parser): Add --full-gcc option.
7471 (main): Update call to Context.
7472
7473 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
7474
7475 [BZ #10797]
7476 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
7477 Single Quotation Mark).
7478 (thousands_sep): Likewise.
7479 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
7480 * localedata/locales/it_IT (thousands_sep): Use ".".
7481 (grouping): Use "3;3".
7482
7483 2018-09-10 Joseph Myers <joseph@codesourcery.com>
7484
7485 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7486 x86_64 and i686 configs using --enable-obsolete-rpc
7487 --enable-obsolete-nsl.
7488
7489 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7490
7491 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7492
7493 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7494
7495 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
7496 Increment size of new_argv by one.
7497
7498 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
7499
7500 [BZ #17426]
7501 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
7502 * localedata/locales/ar_IN (d_fmt): Likewise.
7503 * localedata/locales/bhb_IN (d_fmt): Likewise.
7504 * localedata/locales/bho_IN (d_fmt): Likewise.
7505 * localedata/locales/bn_BD (d_fmt): Likewise.
7506 * localedata/locales/bn_IN (d_fmt): Likewise.
7507 * localedata/locales/doi_IN (d_fmt): Likewise.
7508 * localedata/locales/gu_IN (d_fmt): Likewise.
7509 * localedata/locales/hi_IN (d_fmt): Likewise.
7510 * localedata/locales/hne_IN (d_fmt): Likewise.
7511 * localedata/locales/kn_IN (d_fmt): Likewise.
7512 * localedata/locales/mag_IN (d_fmt): Likewise.
7513 * localedata/locales/mai_IN (d_fmt): Likewise.
7514 * localedata/locales/mjw_IN (d_fmt): Likewise.
7515 * localedata/locales/ml_IN (d_fmt): Likewise.
7516 * localedata/locales/mni_IN (d_fmt): Likewise.
7517 * localedata/locales/mr_IN (d_fmt): Likewise.
7518 * localedata/locales/pa_IN (d_fmt): Likewise.
7519 * localedata/locales/raj_IN (d_fmt): Likewise.
7520 * localedata/locales/sat_IN (d_fmt): Likewise.
7521 * localedata/locales/sd_IN (d_fmt): Likewise.
7522 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
7523 * localedata/locales/ta_IN (d_fmt): Likewise.
7524 * localedata/locales/ta_LK (d_fmt): Likewise.
7525 * localedata/locales/tcy_IN (d_fmt): Likewise.
7526 * localedata/locales/ur_IN (d_fmt): Likewise.
7527
7528 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
7529 * localedata/locales/ks_IN (d_fmt): Likewise.
7530 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
7531
7532 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
7533 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
7534 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
7535 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
7536
7537 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
7538
7539 * NEWS: Mention exp and exp2 improvements.
7540 * math/Makefile (libm-support): Remove t_exp.
7541 (type-double-routines): Add math_err and e_exp_data.
7542 * sysdeps/aarch64/libm-test-ulps: Update.
7543 * sysdeps/arm/libm-test-ulps: Update.
7544 * sysdeps/i386/fpu/e_exp_data.c: New file.
7545 * sysdeps/i386/fpu/math_err.c: New file.
7546 * sysdeps/i386/fpu/t_exp.c: Remove.
7547 * sysdeps/ia64/fpu/e_exp_data.c: New file.
7548 * sysdeps/ia64/fpu/math_err.c: New file.
7549 * sysdeps/ia64/fpu/t_exp.c: Remove.
7550 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
7551 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
7552 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
7553 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
7554 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
7555 * sysdeps/ieee754/dbl-64/math_config.h: New file.
7556 * sysdeps/ieee754/dbl-64/math_err.c: New file.
7557 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
7558 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
7559 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
7560 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
7561 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
7562 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
7563 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
7564 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7565 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7566
7567 2018-09-05 Joseph Myers <joseph@codesourcery.com>
7568
7569 * sysdeps/alpha/fpu/math_private.h: Remove.
7570
7571 * sysdeps/generic/math_private.h
7572 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
7573 Move this inline function ....
7574 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
7575 * include/math.h [!_ISOMAC]: To here....
7576
7577 2018-09-04 Joseph Myers <joseph@codesourcery.com>
7578
7579 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
7580 code ....
7581 [!FE_HAVE_ROUNDING_MODES]: And this code ....
7582 * include/fenv.h [!_ISOMAC]: ... to here.
7583 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
7584 (feraiseexcept): Likewise.
7585 * math/fromfp.h: Do not include <fenv_private.h>.
7586 * math/s_cexp_template.c: Likewise.
7587 * math/s_csin_template.c: Likewise.
7588 * math/s_csinh_template.c: Likewise.
7589 * math/s_ctan_template.c: Likewise.
7590 * math/s_ctanh_template.c: Likewise.
7591 * math/s_iseqsig_template.c: Likewise.
7592 * math/w_acos_compat.c: Likewise.
7593 * math/w_acosf_compat.c: Likewise.
7594 * math/w_acosl_compat.c: Likewise.
7595 * math/w_asin_compat.c: Likewise.
7596 * math/w_asinf_compat.c: Likewise.
7597 * math/w_asinl_compat.c: Likewise.
7598 * math/w_j0_compat.c: Likewise.
7599 * math/w_j0f_compat.c: Likewise.
7600 * math/w_j0l_compat.c: Likewise.
7601 * math/w_j1_compat.c: Likewise.
7602 * math/w_j1f_compat.c: Likewise.
7603 * math/w_j1l_compat.c: Likewise.
7604 * math/w_jn_compat.c: Likewise.
7605 * math/w_jnf_compat.c: Likewise.
7606 * math/w_log10_compat.c: Likewise.
7607 * math/w_log10f_compat.c: Likewise.
7608 * math/w_log10l_compat.c: Likewise.
7609 * math/w_log2_compat.c: Likewise.
7610 * math/w_log2f_compat.c: Likewise.
7611 * math/w_log2l_compat.c: Likewise.
7612 * math/w_log_compat.c: Likewise.
7613 * math/w_logf_compat.c: Likewise.
7614 * math/w_logl_compat.c: Likewise.
7615 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7616 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7617 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7618 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7619 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7620 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7621 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7622 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7623 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7624 * sysdeps/ieee754/k_standardl.c: Likewise.
7625 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7626 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7627 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7628 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7629 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7630 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7631 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7632 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7633 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7634 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7635 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7636 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7637 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7638 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7639 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7640 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7641 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7642 * math/w_ilogb_template.c: Include <fenv.h> instead of
7643 <fenv_private.h>.
7644 * math/w_llogb_template.c: Likewise.
7645 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7646 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7647
7648 2018-09-03 Joseph Myers <joseph@codesourcery.com>
7649
7650 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
7651 * math/fromfp.h: Include <fenv_private.h>.
7652 * math/math-narrow.h: Likewise.
7653 * math/s_cexp_template.c: Likewise.
7654 * math/s_csin_template.c: Likewise.
7655 * math/s_csinh_template.c: Likewise.
7656 * math/s_ctan_template.c: Likewise.
7657 * math/s_ctanh_template.c: Likewise.
7658 * math/s_iseqsig_template.c: Likewise.
7659 * math/w_acos_compat.c: Likewise.
7660 * math/w_acosf_compat.c: Likewise.
7661 * math/w_acosl_compat.c: Likewise.
7662 * math/w_asin_compat.c: Likewise.
7663 * math/w_asinf_compat.c: Likewise.
7664 * math/w_asinl_compat.c: Likewise.
7665 * math/w_ilogb_template.c: Likewise.
7666 * math/w_j0_compat.c: Likewise.
7667 * math/w_j0f_compat.c: Likewise.
7668 * math/w_j0l_compat.c: Likewise.
7669 * math/w_j1_compat.c: Likewise.
7670 * math/w_j1f_compat.c: Likewise.
7671 * math/w_j1l_compat.c: Likewise.
7672 * math/w_jn_compat.c: Likewise.
7673 * math/w_jnf_compat.c: Likewise.
7674 * math/w_llogb_template.c: Likewise.
7675 * math/w_log10_compat.c: Likewise.
7676 * math/w_log10f_compat.c: Likewise.
7677 * math/w_log10l_compat.c: Likewise.
7678 * math/w_log2_compat.c: Likewise.
7679 * math/w_log2f_compat.c: Likewise.
7680 * math/w_log2l_compat.c: Likewise.
7681 * math/w_log_compat.c: Likewise.
7682 * math/w_logf_compat.c: Likewise.
7683 * math/w_logl_compat.c: Likewise.
7684 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
7685 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
7686 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
7687 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
7688 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7689 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7690 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7691 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7692 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7693 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7694 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7695 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7696 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
7697 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
7698 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7699 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
7700 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7701 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7702 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7703 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7704 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7705 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7706 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7707 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
7708 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7709 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7710 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
7711 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
7712 * sysdeps/ieee754/float128/float128_private.h: Likewise.
7713 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
7714 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7715 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7716 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
7717 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7718 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7719 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7720 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7721 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7722 * sysdeps/ieee754/k_standardl.c: Likewise.
7723 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7724 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
7725 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7726 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7727 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
7728 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
7729 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7730 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7731 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7732 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7733 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7734 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7735 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
7736 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7737 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
7738 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
7739 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7740 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
7741 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
7742 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7743 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7744 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7745 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7746 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7747 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
7748 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
7749 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7750 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
7751 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
7752 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7753 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7754 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7755 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7756 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7757 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7758 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
7759 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7760 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7761 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7762 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7763 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
7764 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7765 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
7766 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7767 * sysdeps/riscv/rvd/s_finite.c: Likewise.
7768 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
7769 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
7770 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
7771 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
7772 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
7773 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
7774 * sysdeps/riscv/rvf/fegetround.c: Likewise.
7775 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
7776 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
7777 * sysdeps/riscv/rvf/fesetround.c: Likewise.
7778 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
7779 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
7780 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
7781 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7782 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
7783 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7784 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
7785 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
7786 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
7787 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
7788 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
7789 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
7790 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
7791 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
7792 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7793 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7794
7795 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7796
7797 [BZ #20271]
7798 * include/stdio.h (__libc_fatal): Mention newline in comment.
7799 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
7800 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
7801 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7802 * nss/nsswitch.c (__nss_next2): Likewise.
7803 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
7804 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
7805 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
7806 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
7807 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
7808 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
7809 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
7810 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
7811 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
7812 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
7813 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
7814 * sysdeps/unix/sysv/linux/netlink_assert_response.c
7815 (__netlink_assert_response): Likewise.
7816
7817 2018-08-31 Joseph Myers <joseph@codesourcery.com>
7818
7819 * conform/glibcconform.py: New file.
7820 * conform/list-header-symbols.py: Likewise.
7821 * conform/list-header-symbols.pl: Remove.
7822 * conform/Makefile (tests-special): Only add linknamespace tests
7823 if [PYTHON].
7824 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
7825
7826 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
7827
7828 [BZ #23597]
7829 * support/Makefile (libsupport-routines): Add
7830 support_copy_file_range and xcopy_file_range.
7831 * support/support.h: Include <sys/types.h>.
7832 (support_copy_file_range): New prototype.
7833 * support/support_copy_file_range.c: New file. Copied and
7834 modified from io/copy_file_range-compat.c.
7835 * support/test-container.c (copy_one_file): Call xcopy_file_rang
7836 instead of copy_file_range.
7837 * support/xcopy_file_range.c: New file.
7838 * support/xunistd.h (xcopy_file_range): New prototype.
7839
7840 2018-08-30 Carlos O'Donell <carlos@redhat.com>
7841
7842 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
7843 xpthread_create and xpthread_join.
7844
7845 2018-08-30 Florian Weimer <fweimer@redhat.com>
7846
7847 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
7848
7849 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
7850
7851 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
7852 if malloc fails.
7853
7854 2018-08-29 Joseph Myers <joseph@codesourcery.com>
7855
7856 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
7857 and minus_oflow as non-finite.
7858
7859 2018-08-28 Joseph Myers <joseph@codesourcery.com>
7860
7861 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
7862 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
7863 moved to fenv_private.h except for ...
7864 (TOINT_INTRINSICS): Kept in math_private.h.
7865 (roundtoint): Likewise.
7866 (converttoint): Likewise.
7867 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
7868 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7869 * sysdeps/arm/math_private.h: Remove.
7870 * sysdeps/generic/fenv_private.h: New file. Contents moved from
7871 ....
7872 * sysdeps/generic/math_private.h: ... this file. Include
7873 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
7874 Include <fenv_private.h>. Remove functions and macros moved to
7875 fenv_private.h.
7876 * sysdeps/i386/fpu/math_private.h: Remove.
7877 * sysdeps/mips/math_private.h: Move to ....
7878 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7879 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7880 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7881 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7882 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7883 * sysdeps/powerpc/fpu/math_private.h: Do not include
7884 <fenv_private.h>.
7885 * sysdeps/riscv/rvf/math_private.h: Move to ....
7886 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7887 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7888 <fenv_private.h>.
7889 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7890 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7891 * sysdeps/sparc/fpu/math_private.h: Remove.
7892 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7893 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7894 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7895 <fenv_private.h>.
7896 * sysdeps/x86_64/fpu/math_private.h: Do not include
7897 <sysdeps/i386/fpu/fenv_private.h>.
7898
7899 2018-08-28 Florian Weimer <fweimer@redhat.com>
7900
7901 [BZ #23578]
7902 * posix/tst-regcomp-truncated.c: New file.
7903 * posix/Makefile (tests): Add it.
7904 (tst-regcomp-truncated.out): Depend on generated locales.
7905
7906 2018-08-28 Florian Weimer <fweimer@redhat.com>
7907
7908 * support/test-container.c (main): Treat unshare failure with
7909 EPERM as an unsupported test.
7910
7911 2018-08-28 Florian Weimer <fweimer@redhat.com>
7912
7913 [BZ #23520]
7914 nscd: Fix use-after-free in addgetnetgrentX and its callers.
7915 * nscd/netgroupcache.c
7916 (addgetnetgrentX): Add tofreep parameter. Do not free
7917 heap-allocated buffer.
7918 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
7919 (addgetnetgrentX_ignore): New function.
7920 (addgetnetgrent): Call it.
7921 (readdgetnetgrent): Likewise.
7922
7923 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7924
7925 * string/memmem.c: Use memcmp for first match.
7926
7927 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7928
7929 [BZ #17426]
7930 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
7931
7932 2018-08-27 DJ Delorie <dj@redhat.com>
7933
7934 * support/Makefile (others): Don't list programs explicitly as a
7935 dependency of "others".
7936
7937 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7938
7939 * sysdeps/generic/math-tests-trap-force.h: New file.
7940 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
7941 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
7942 * sysdeps/powerpc/math-tests.h: Remove file.
7943 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
7944
7945 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
7946 Torvald Riegel <triegel@redhat.com>
7947
7948 [BZ #23538]
7949 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
7950 Update r to include the set wake-request flag if waiters are
7951 remaining after spinning.
7952
7953 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7954
7955 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7956
7957 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7958
7959 [BZ #23578]
7960 regex: fix uninitialized memory access
7961 I introduced this bug into gnulib in commit
7962 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7963 eventually it was merged into glibc. The bug was found by
7964 project-repo <bugs@feusi.co> and reported here:
7965 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7966 Diagnosis and draft fix reported by Assaf Gordon here:
7967 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7968 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7969 * posix/regex_internal.c (build_wcs_upper_buffer):
7970 Fix bug when mbrtowc returns 0.
7971
7972 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7973
7974 * po/be.po: Update translation.
7975
7976 2018-08-24 DJ Delorie <dj@delorie.com>
7977
7978 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7979 $(libunwind).
7980
7981 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7982
7983 [BZ #23400]
7984 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7985 create temporary files in source tree.
7986
7987 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7988
7989 * sysdeps/generic/math-tests-trap.h: New file.
7990 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7991 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7992 * sysdeps/aarch64/math-tests.h: Remove file.
7993 * sysdeps/arm/math-tests.h: Likewise.
7994 * sysdeps/riscv/math-tests.h: Likewise.
7995 * sysdeps/aarch64/math-tests-trap.h: New file.
7996 * sysdeps/arm/math-tests-trap.h: Likewise.
7997 * sysdeps/riscv/math-tests-trap.h: Likewise.
7998
7999 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
8000
8001 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
8002 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
8003 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
8004 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
8005 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
8006 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
8007 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
8008 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
8009 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
8010 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
8011 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
8012 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8013 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
8014 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
8015 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
8016 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
8017 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
8018 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
8019
8020 2018-08-23 Joseph Myers <joseph@codesourcery.com>
8021
8022 * sysdeps/generic/math-tests-exceptions.h: New file.
8023 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
8024 (EXCEPTION_TESTS_float): Do not define here.
8025 (EXCEPTION_TESTS_double): Likewise.
8026 (EXCEPTION_TESTS_long_double): Likewise.
8027 (EXCEPTION_TESTS_float128): Likewise.
8028 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
8029 Likewise.
8030 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
8031 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
8032 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
8033 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
8034 * sysdeps/mips/math-tests.h: Likewise.
8035 * sysdeps/nios2/math-tests.h: Likewise.
8036 * sysdeps/riscv/math-tests.h [!__riscv_flen]
8037 (EXCEPTION_TESTS_float): Do not define here.
8038 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
8039 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
8040 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
8041
8042 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
8043
8044 * NEWS: Move optimized sinf entry to 2.29.
8045
8046 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
8047
8048 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
8049
8050 2018-08-22 DJ Delorie <dj@redhat.com>
8051
8052 * Makefile (testroot.pristine): New rules to initialize the
8053 test-in-container "testroot".
8054 * Makerules (all-testsuite): Add tests-container.
8055 * Rules (tests-expected): Add tests-container.
8056 (binaries-all-tests): Likewise.
8057 (tests-container): New, run these tests in the testroot container.
8058 * support/Makefile (others): Add *-container, support_paths.c,
8059 xmkdirp, and links-dso-program.
8060 * support/links-dso-program-c.c: New.
8061 * support/links-dso-program.cc: New.
8062 * support/test-container.c: New.
8063 * support/shell-container.c: New.
8064 * support/echo-container.c: New.
8065 * support/true-container.c: New.
8066 * support/xmkdirp.c: New.
8067 * support/xsymlink.c: New.
8068 * support/support_paths.c: New.
8069 * support/support.h: Add support paths prototypes.
8070 * support/xunistd.h: Add xmkdirp () and xsymlink ().
8071
8072 * nss/tst-nss-test3.c: Convert to test-in-container.
8073 * nss/tst-nss-test3.root/: New.
8074
8075 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
8076
8077 regex: port Gnulib code to z/OS POSIX environment
8078 Problem reported by Arnold Robbins in:
8079 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
8080 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
8081 Undef.
8082
8083 2018-08-22 Joseph Myers <joseph@codesourcery.com>
8084
8085 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
8086 (ROUNDING_TESTS_double): Remove.
8087 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
8088 (ROUNDING_TESTS_double): Remove.
8089 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
8090 (ROUNDING_TESTS_double): Remove.
8091 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
8092 (ROUNDING_TESTS_float): Remove.
8093 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
8094 (ROUNDING_TESTS_float): Remove.
8095 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
8096 (ROUNDING_TESTS_float): Remove.
8097 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
8098 !TEST_MATHVEC here.
8099 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
8100 (IF_ROUND_INIT_FE_UPWARD): Likewise.
8101
8102 * sysdeps/generic/math-tests-rounding.h: New file.
8103 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
8104 (ROUNDING_TESTS_float): Do not define here.
8105 (ROUNDING_TESTS_double): Likewise.
8106 (ROUNDING_TESTS_long_double): Likewise.
8107 (ROUNDING_TESTS_float128): Likewise.
8108 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
8109 (ROUNDING_TESTS_double): Undefine before defining.
8110 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
8111 (ROUNDING_TESTS_double): Undefine before defining.
8112 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
8113 (ROUNDING_TESTS_double): Undefine before defining.
8114 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
8115 (ROUNDING_TESTS_float): Undefine before defining.
8116 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
8117 (ROUNDING_TESTS_float): Undefine before defining.
8118 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
8119 (ROUNDING_TESTS_float): Undefine before defining.
8120 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
8121 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
8122 not define here.
8123 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
8124 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
8125 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
8126 * sysdeps/riscv/math-tests.h [!__riscv_flen]
8127 (ROUNDING_TESTS_float): Do not define here.
8128 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
8129 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
8130 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
8131 (ROUNDING_TESTS_float): Likewise.
8132 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
8133 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
8134 * sysdeps/mips/math-tests.h [__mips_soft_float]
8135 (ROUNDING_TESTS_float): Likewise.
8136 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
8137 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
8138 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
8139 (ROUNDING_TESTS_double): Likewise.
8140 (ROUNDING_TESTS_long_double): Likewise.
8141
8142 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
8143
8144 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
8145 (PF_XDP): New macro.
8146 (AF_XDP): New macro.
8147 (SOL_XDP): New macro.
8148
8149 2018-08-21 Joseph Myers <joseph@codesourcery.com>
8150
8151 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
8152 (TCP_INQ): Likewise.
8153 (TCP_CM_INQ): Likewise.
8154 (TCP_REPAIR_ON): Likewise.
8155 (TCP_REPAIR_OFF): Likewise.
8156 (TCP_REPAIR_OFF_NO_WP): Likewise.
8157 (struct tcp_zerocopy_receive): New type.
8158
8159 2018-08-21 Florian Weimer <fweimer@redhat.com>
8160
8161 * support/support.h (support_descriptor_supports_holes): Declare.
8162 * support/Makefile (libsupport-routines): Add
8163 support_descriptor_supports_holes.
8164 * support/support_descriptor_supports_holes.c: New file.
8165 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
8166 and stop testing if holes are not supported.
8167 * io/test-lfs.c (do_prepare): Likewise.
8168 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
8169 Likewise.
8170 * timezone/tst-tzset.c (create_tz_file): Likewise.
8171 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
8172 variable.
8173 (do_prepare): Set it.
8174 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
8175
8176 2018-08-21 Florian Weimer <fweimer@redhat.com>
8177
8178 [BZ #17248]
8179 * Makeconfig (+cflags): Do not sort (and deduplicate).
8180
8181 2018-08-21 Florian Weimer <fweimer@redhat.com>
8182
8183 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
8184 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
8185
8186 2018-08-20 Florian Weimer <fweimer@redhat.com>
8187
8188 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
8189 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
8190
8191 2018-08-20 Joseph Myers <joseph@codesourcery.com>
8192
8193 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
8194 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
8195 and ssi_arch members.
8196
8197 * elf/elf.c (NT_VMCOREDD): New macro.
8198 (AT_MINSIGSTKSZ): Likewise.
8199
8200 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8201
8202 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
8203 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
8204 s_cosf-ppc64 and s_cosf-power8.
8205 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
8206 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
8207 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
8208 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
8209 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
8210 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
8211 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
8212 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
8213 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
8214 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
8215 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
8216 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
8217
8218 2018-08-17 Florian Weimer <fweimer@redhat.com>
8219
8220 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8221
8222 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
8223
8224 * malloc/malloc.c (_int_malloc): Additional binning code checks.
8225
8226 2018-08-16 Florian Weimer <fweimer@redhat.com>
8227
8228 * configure.ac: Add --with-nonshared-cflags option.
8229 * config.make.in (extra-nonshared-cflags): Set variable.
8230 * Makeconfig (CFLAGS-.oS): Use it.
8231 * manual/install.texi (Configuring and compiling): Document
8232 --with-nonshared-cflags.
8233 * configure: Regenerate.
8234 * INSTALL: Likewise.
8235
8236 2018-08-16 Florian Weimer <fweimer@redhat.com>
8237
8238 * Makeconfig (ASFLAGS): Always append required assembler flags.
8239
8240 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
8241
8242 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
8243 (malloc_consolidate): Likewise.
8244
8245 2018-08-16 Pochang Chen <johnchen902@gmail.com>
8246
8247 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
8248
8249 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
8250
8251 * benchtests/bench-strlen.c (do_test): Allocate buffers before
8252 every strlen call.
8253
8254 * benchtests/bench-strlen.c: Print performance numbers in json.
8255
8256 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8257
8258 * sysdeps/powerpc/powerpc64/multiarch/Makefile
8259 (sysdep_routines): Build strcmp-power9 and strncmp-power9
8260 only for little endian.
8261 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8262 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
8263 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
8264 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
8265 Add check for little endian.
8266 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
8267 (__strcmp_power9): Add check for little endian.
8268 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
8269 Add check for little endian.
8270 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
8271 (__strncmp_power9): Add check for little endian.
8272 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
8273 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
8274 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
8275 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
8276 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
8277
8278 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
8279
8280 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
8281 [!STRLEN](STRLEN): Set to __strlen.
8282 * sysdeps/aarch64/multiarch/strlen.c: New file.
8283 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
8284 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
8285 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
8286 (__libc_ifunc_impl_list): Add strlen.
8287 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
8288 strlen_generic and strlen_asimd.
8289
8290 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8291
8292 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
8293 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
8294 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
8295
8296 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8297
8298 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
8299
8300 2018-08-14 Florian Weimer <fweimer@redhat.com>
8301
8302 [BZ #23519]
8303 * include/stdio.h (__vfxprintf): Declare.
8304 * stdio-common/fxprintf.c (__vfxprintf): New function.
8305 (__fxprintf): Call it.
8306 * misc/err.c (convert_and_print): Remove function.
8307 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
8308 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
8309 * misc/Makefile (tests): Add tst-warn-wide.
8310 * misc/tst-warn-wide.c: New file.
8311
8312 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
8313 Szabolcs Nagy <szabolcs.nagy@arm.com>
8314
8315 * NEWS: Mention sinf, cosf, sincosf.
8316 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
8317 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
8318 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
8319 constants rather than including generic sincosf.h.
8320 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
8321 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
8322 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
8323 (reduced_cos): Remove.
8324 (sinf_poly): New function.
8325 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
8326
8327 2018-08-14 Florian Weimer <fweimer@redhat.com>
8328
8329 [BZ #23521]
8330 [BZ #23522]
8331 * nss/nss_files/files-alias.c (get_next_alias): During :include:
8332 processing, bail out if no room, and close the stream before
8333 returning ERANGE.
8334 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
8335 (tst-nss-files-alias-leak): Link with libdl.
8336 (tst-nss-files-alias-leak.out): Depend on nss_files.
8337
8338 * nss/tst-nss-files-alias-leak.c: New file.
8339
8340 2018-08-14 Florian Weimer <fweimer@redhat.com>
8341
8342 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
8343 server_user, stat_user.
8344
8345 2018-08-13 Joseph Myers <joseph@codesourcery.com>
8346
8347 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8348 version to 4.18.
8349 (io_pgetevents): New syscall.
8350 (rseq): Likewise.
8351
8352 * manual/install.texi (Configuring and compiling): Do not list
8353 tools used for testing pretty printers here.
8354 (Tools for Compilation): List Python, PExpect and GDB here.
8355 Update descriptions of uses of Perl and Python.
8356 * INSTALL: Regenerate.
8357
8358 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8359 version to 4.18.
8360
8361 2018-08-13 Florian Weimer <fweimer@redhat.com>
8362
8363 * misc/error.c (error): Add missing va_end call.
8364 (error_at_line): Likewise.
8365
8366 2018-08-13 Florian Weimer <fweimer@redhat.com>
8367
8368 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
8369
8370 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
8371
8372 * benchtests/scripts/benchout.schema.json (properties): Add
8373 new properties.
8374
8375 * benchtests/bench-skeleton.c (main): Add duration and
8376 iterations attributes.
8377
8378 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
8379
8380 regex: Gnulib unibyte RRI uses bytes not chars
8381 Adjust the non-glibc code to agree with what Gawk needs for
8382 rational range interpretation (RRI) for regular expression ranges.
8383 In unibyte locales, Gawk wants ranges to use the underlying byte
8384 rather than the character code point. This change does not affect
8385 glibc proper.
8386 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
8387 In unibyte locales, use the byte value rather than
8388 running it through btowc.
8389
8390 2018-08-10 Joseph Myers <joseph@codesourcery.com>
8391
8392 * sysdeps/generic/math-tests-snan.h: New file.
8393 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
8394 (SNAN_TESTS_float): Do not define here.
8395 (SNAN_TESTS_double): Likewise.
8396 (SNAN_TESTS_long_double): Likewise.
8397 (SNAN_TESTS_float128): Likewise.
8398 * sysdeps/i386/fpu/math-tests-snan.h: New file.
8399 * sysdeps/i386/fpu/math-tests.h: Remove file.
8400 * sysdeps/ia64/math-tests-snan.h: New file.
8401 * sysdeps/ia64/math-tests.h: Remove file.
8402 * sysdeps/x86/math-tests.h: Likewise.
8403 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
8404
8405 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8406 Szabolcs Nagy <szabolcs.nagy@arm.com>
8407
8408 * math/Makefile: Add s_sincosf_data.c.
8409 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
8410 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
8411 (sincosf_poly): Likewise.
8412 (reduce_small): Likewise.
8413 (reduce_large): Likewise.
8414 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
8415 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
8416 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
8417 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
8418
8419 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8420 Szabolcs Nagy <szabolcs.nagy@arm.com>
8421
8422 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
8423 (converttoint): Use lround.
8424 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
8425 document the semantics when TOINT_INTRINSICS is set.
8426 (converttoint): Likewise.
8427 (TOINT_RINT): Remove.
8428 (TOINT_SHIFT): Remove.
8429 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
8430 path.
8431
8432 2018-08-10 Florian Weimer <fweimer@redhat.com>
8433
8434 [BZ #23497]
8435 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
8436 function.
8437 (__old_getdents64): Use getdents64. Convert entries without
8438 moving them.
8439 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
8440 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
8441 tst-readdir64-compat.
8442
8443 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8444
8445 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
8446 Fix unwind.
8447
8448 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8449
8450 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
8451 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
8452 code to s390x-mcount.h and #include it.
8453 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
8454 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
8455 (__fentry__): Add.
8456
8457 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8458
8459 * stdlib/Versions: Remove __fentry__.
8460 * sysdeps/i386/Versions: Add __fentry__.
8461 * sysdeps/x86_64/Versions: Add __fentry__.
8462
8463 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8464
8465 * sysdeps/s390/Makefile: Register the new tests.
8466 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
8467 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
8468 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
8469 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
8470 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
8471 * sysdeps/s390/tst-dl-runtime.c: New file.
8472
8473 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8474
8475 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8476 Do not clobber R0.
8477
8478 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8479
8480 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8481 Do not clobber R0.
8482
8483 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8484
8485 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8486 Do not clobber R0.
8487
8488 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8489
8490 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8491 Do not clobber R0.
8492
8493 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8494
8495 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8496 Use symbolic offsets for stack variables.
8497
8498 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8499
8500 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8501 Use symbolic offsets for stack variables.
8502
8503 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8504
8505 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8506 Use symbolic offsets for stack variables.
8507
8508 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8509
8510 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8511 Use symbolic offsets for stack variables.
8512
8513 2018-08-09 Joseph Myers <joseph@codesourcery.com>
8514
8515 * math/gen-libm-test.py: New file.
8516 * math/gen-libm-test.pl: Remove.
8517 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
8518 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
8519 gen-libm-test.pl.
8520 ($(libm-test-c-noauto-obj)): Likewise.
8521 ($(libm-test-c-auto-obj)): Likewise.
8522 ($(libm-test-c-narrow-obj)): Likewise.
8523 (regen-ulps): Likewise.
8524 * math/README.libm-test: Update references to gen-libm-test.pl.
8525 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
8526 referencing gen-libm-test.pl.
8527 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
8528 * math/libm-test-support.c: Likewise.
8529 * math/libm-test-support.h: Likewise.
8530 * sysdeps/generic/libm-test-ulps: Likewise.
8531
8532 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
8533
8534 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
8535 Fix value.
8536
8537 2018-08-08 Joseph Myers <joseph@codesourcery.com>
8538
8539 * math/libm-test-nextdown.inc (do_test): Move comment to ....
8540 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
8541
8542 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
8543
8544 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
8545 symbols.
8546 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
8547 __pthread_setspecific): Add hidden proto.
8548 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
8549 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
8550
8551 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
8552
8553 * benchtests/bench-string.h (buf1_size, buf2_size): New
8554 variables.
8555 (init_sizes): New function.
8556 (test_init): Use it.
8557 (alloc_buf, exit_error): New functions.
8558 (alloc_bufs): Use ALLOC_BUF.
8559 (realloc_bufs): Remove.
8560 * benchtests/bench-memcmp.c (do_test): Adjust.
8561 * benchtests/bench-memset-large.c (do_test): Likewise.
8562 * benchtests/bench-memset-walk.c (do_test): Likewise.
8563 * benchtests/bench-memset.c (do_test): Likewise.
8564 * benchtests/bench-strncmp.c (do_test): Likewise.
8565
8566 2018-08-06 Andreas Schwab <schwab@suse.de>
8567
8568 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
8569 of CONST_THREAD_AREA.
8570
8571 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
8572
8573 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
8574 (STATE_SAVE_MASK): Likewise.
8575 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
8576 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
8577 (STATE_SAVE_MASK): Likewise.
8578 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
8579 instead of <cpu-features.h>.
8580
8581 2018-08-03 DJ Delorie <dj@redhat.com>
8582
8583 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
8584 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
8585
8586 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
8587
8588 2018-08-03 Joseph Myers <joseph@codesourcery.com>
8589
8590 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
8591 after TEST_* calls.
8592 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
8593 * math/libm-test-logb.inc (logb_test_data): Likewise.
8594
8595 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
8596
8597 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
8598 * string/strstr.c (AVAILABLE): Likewise.
8599
8600 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8601
8602 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
8603 <init-arch.h>.
8604 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
8605 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
8606 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
8607
8608 2018-08-03 Carlos O'Donell <carlos@redhat.com>
8609
8610 * po/be.po: Update translation.
8611
8612 * po/be.po: Update translation.
8613
8614 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8615
8616 * sysdeps/x86/cpu-features-offsets.sym
8617 (rtld_global_ro_offsetof): Removed.
8618 (CPU_FEATURES_SIZE): Likewise.
8619 (CPUID_OFFSET): Likewise.
8620 (CPUID_SIZE): Likewise.
8621 (CPUID_EAX_OFFSET): Likewise.
8622 (CPUID_EBX_OFFSET): Likewise.
8623 (CPUID_ECX_OFFSET): Likewise.
8624 (CPUID_EDX_OFFSET): Likewise.
8625 (FAMILY_OFFSET): Likewise.
8626 (MODEL_OFFSET): Likewise.
8627 (FEATURE_OFFSET): Likewise.
8628 (FEATURE_SIZ): Likewise.
8629 (COMMON_CPUID_INDEX_1): Likewise.
8630 (COMMON_CPUID_INDEX_7): Likewise.
8631 (FEATURE_INDEX_1): Likewise.
8632 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
8633
8634 2018-08-02 Carlos O'Donell <carlos@redhat.com>
8635
8636 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
8637 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
8638 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
8639 (install-locales): Depend on install-locale-archive.
8640 (install-locale-archive): Define.
8641 (install-locale-files): Define.
8642 (build-one-locale): Define macro.
8643 * manual/install.texi (Running make install): Document.
8644 * manual/INSTALL: Regenerate.
8645
8646 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
8647
8648 * benchtests/scripts/compare_strings.py: Import traceback.
8649 (parse_file): Pretty-print error.
8650
8651 * NEWS: Mention the change.
8652 * elf/dl-tunables.list: Rename tune namespace to cpu.
8653 * sysdeps/powerpc/dl-tunables.list: Likewise.
8654 * sysdeps/x86/dl-tunables.list: Likewise.
8655 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
8656 cpu.name.
8657 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
8658 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
8659 * manual/README.tunables: Likewise.
8660 * manual/tunables.texi: Likewise.
8661 * sysdeps/powerpc/cpu-features.c: Likewise.
8662 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
8663 (init_cpu_features): Likewise.
8664 * sysdeps/x86/cpu-features.c: Likewise.
8665 * sysdeps/x86/cpu-features.h: Likewise.
8666 * sysdeps/x86/cpu-tunables.c: Likewise.
8667 * sysdeps/x86_64/Makefile: Likewise.
8668 * sysdeps/x86/dl-cet.c: Likewise.
8669
8670 2018-08-02 Joseph Myers <joseph@codesourcery.com>
8671
8672 [BZ #23479]
8673 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
8674 [__mips_hard_float].
8675 (FE_UNDERFLOW): Likewise.
8676 (FE_OVERFLOW): Likewise.
8677 (FE_DIVBYZERO): Likewise.
8678 (FE_INVALID): Likewise.
8679 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
8680 (FE_TOWARDZERO): Define only if [__mips_hard_float].
8681 (FE_UPWARD): Likewise.
8682 (FE_DOWNWARD): Likewise.
8683 (__FE_UNDEFINED): Define if [!__mips_hard_float]
8684 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
8685 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
8686 [__mips_hard_float].
8687 (FP_ROUNDMODE): Likewise.
8688 (FP_RND_NEAREST): Likewise.
8689 (FP_RND_ZERO): Likewise.
8690 (FP_RND_PINF): Likewise.
8691 (FP_RND_MINF): Likewise.
8692 (FP_EX_INVALID): Likewise.
8693 (FP_EX_OVERFLOW): Likewise.
8694 (FP_EX_UNDERFLOW): Likewise.
8695 (FP_EX_DIVZERO): Likewise.
8696 (FP_EX_INEXACT): Likewise.
8697 (FP_INIT_ROUNDMODE): Likewise.
8698 * sysdeps/mips/nofpu/fesetenv.c: New file.
8699 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
8700
8701 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8702
8703 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
8704 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
8705 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
8706 conditional on [FE_UPWARD].
8707
8708 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
8709
8710 regex: fix memory leak in Gnulib
8711 Problem and fix reported by Assaf Gordon in:
8712 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
8713 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
8714 range_ends members too, as they are defined in 'struct
8715 re_charset_t' even if not _LIBC. This affects only Gnulib.
8716
8717 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
8718
8719 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
8720 ...
8721 (get_common_indices): This.
8722 (init_cpu_features): Updated.
8723
8724 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8725
8726 * sysdeps/generic/math-tests-snan-payload.h: New file.
8727 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
8728 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
8729 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
8730 * sysdeps/generic/math-tests.h: Include
8731 <math-tests-snan-payload.h>.
8732 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8733 * sysdeps/hppa/math-tests.h: Remove file.
8734 * sysdeps/mips/math-tests.h [!__mips_nan2008]
8735 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8736 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
8737 Likewise.
8738
8739 * sysdeps/generic/math-tests-snan-cast.h: New file.
8740 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
8741 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
8742 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
8743 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
8744
8745 2018-08-01 Carlos O'Donel <carlos@redhat.com>
8746
8747 * version.h (RELEASE): Set to "development".
8748 (VERSION): Set to "2.28.9000".
8749 * NEWS (2.29): New section.
8750
8751 * version.h (RELEASE): Set to "stable".
8752 (VERSION): Set to "2.28".
8753 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
8754 * NEWS: Add the list of bugs fixed in 2.28.
8755
8756 * po/ca.po: Update to latest version.
8757 * po/cs.po: Likewise
8758 * po/da.po: Likewise
8759 * po/el.po: Likewise
8760 * po/eo.po: Likewise
8761 * po/es.po: Likewise
8762 * po/fi.po: Likewise
8763 * po/fr.po: Likewise
8764 * po/gl.po: Likewise
8765 * po/hu.po: Likewise
8766 * po/ia.po: Likewise
8767 * po/id.po: Likewise
8768 * po/it.po: Likewise
8769 * po/ja.po: Likewise
8770 * po/ko.po: Likewise
8771 * po/lt.po: Likewise
8772 * po/nb.po: Likewise
8773 * po/nl.po: Likewise
8774 * po/pt_BR.po: Likewise
8775 * po/ru.po: Likewise
8776 * po/rw.po: Likewise
8777 * po/sk.po: Likewise
8778 * po/sl.po: Likewise
8779 * po/tr.po: Likewise
8780 * po/zh_CN.po: Likewise
8781 * po/zh_TW.po: Likewise
8782
8783 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8784
8785 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
8786 initialization...
8787 (init): ... before initializing libpthread.
8788
8789 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
8790 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
8791 (__mach_setup_tls): ... new function.
8792 (mach_setup_tls): New alias.
8793 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
8794 __mach_setup_thread.
8795 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
8796 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
8797 * mach/Versions [libc] (mach_setup_tls): Add symbol.
8798 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
8799
8800 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8801
8802 * manual/install.texi: Update versions.
8803 * INSTALL: Regenerate.
8804
8805 * manual/contrib.texi (Contributors): Update contributions.
8806
8807 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8808
8809 * po/be.po: Update translations.
8810
8811 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8812
8813 * sysdeps/sh/libm-test-ulps: Update.
8814
8815 2018-07-30 Carlos O'Donell <carlos@redhat.com>
8816
8817 * po/bg.po: Update translations.
8818 * po/de.po: Likewise.
8819 * po/hr.po: Likewise.
8820 * po/pt_BR.po: Likewise.
8821 * po/sv.po: Likewise.
8822 * po/vi.po: Likewise.
8823
8824 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8825
8826 [BZ #23467]
8827 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8828 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
8829 (CFLAGS-tst-cet-property-1.o): New.
8830 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
8831 ($(objpfx)tst-cet-property-2): Likewise.
8832 ($(objpfx)tst-cet-property-2.out): Likewise.
8833 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
8834 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
8835 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
8836 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
8837 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
8838
8839 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8840
8841 [BZ #23458]
8842 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
8843
8844 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8845
8846 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
8847 __sbrk): Do not set attribute_hidden.
8848 * sysdeps/mach/hurd/not-errno.h: New file.
8849 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8850 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
8851
8852 2018-07-27 Carlos O'Donell <carlos@redhat.com>
8853
8854 * po/uk.po: Update translations.
8855 * po/cs.po: Likewise.
8856 * po/pl.po: Likewise.
8857
8858 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
8859
8860 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
8861 parse beyond the note end.
8862
8863 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8864
8865 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
8866 kernel does not support OFD locks.
8867 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
8868
8869 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
8870
8871 * sysdeps/mach/hurd/Versions (libc): Make __access and
8872 __access_noerrno external so they can override the ld symbols.
8873 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
8874 __writev, __open64, __access_noerrno extern so they can be overrided.
8875 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8876 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8877
8878 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8879
8880 * po/libc.pot: Regenerate.
8881
8882 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8883
8884 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8885
8886 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8887
8888 [BZ #23459]
8889 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8890 function.
8891 (init_cpu_features): Call get_extended_indices for both Intel
8892 and AMD CPUs.
8893 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8894 Remove "for AMD" comment.
8895
8896 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8897
8898 [BZ # 23456]
8899 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
8900 COMMON_CPUID_INDEX_80000001.
8901
8902 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
8903
8904 * string/tst-xbzero-opt.c (use_test_buffer): New function.
8905 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
8906
8907 2018-07-26 Florian Weimer <fweimer@redhat.com>
8908
8909 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
8910 aliases for symbols not in the implementation namespace.
8911
8912 2018-07-25 Carlos O'Donell <carlos@redhat.com>
8913
8914 [BZ #23393]
8915 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
8916 lowercase in LATIN script.
8917 * localedata/Makefile (test-input): Add en_US.UTF-8.
8918 * localedata/en_US.UTF-8.in: New file.
8919 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
8920 and restore old tests.
8921 * posix/tst-regexloc.c (do_test): Add back range expression test.
8922
8923 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8924
8925 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
8926
8927 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8928
8929 * nptl/threads.h: Move to ...
8930 * sysdeps/nptl/threads.h: ... here.
8931 * sysdeps/hurd/stdc-predef.h: New file.
8932
8933 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8934
8935 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8936 tst-cet-setcontext-1 if CET is enabled.
8937 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
8938 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
8939
8940 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8941
8942 * include/threads.h: Move to ...
8943 * sysdeps/nptl/threads.h: ... here.
8944 * sysdeps/htl/threads.h: New file.
8945 * conform/Makefile (linknamespace-libs-ISO11): Use
8946 static-thread-library instead of linking libpthread.
8947 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
8948
8949 2018-07-25 Florian Weimer <fweimer@redhat.com>
8950
8951 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
8952 nanoseconds into seconds.
8953 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8954 (do_test): Likewise.
8955 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8956 (do_test): Likewise. Avoid nanosecond overflow and spurious
8957 timeouts due to system load.
8958 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8959 (child_wait): Increment it.
8960 (do_test): Wait as long as necessary until all expected threads
8961 have arrived.
8962
8963 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8964 H.J. Lu <hongjiu.lu@intel.com>
8965
8966 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8967 __ssp.
8968 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8969 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8970 (__push___start_context): New.
8971 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8972 <asm/prctl.h>.
8973 (__getcontext): Record the current shadow stack base. Save the
8974 caller's shadow stack pointer and base.
8975 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8976 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8977 (__push___start_context): New prototype.
8978 (__makecontext): Call __push___start_context to allocate a new
8979 shadow stack, push __start_context onto the new stack as well
8980 as the new shadow stack.
8981 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8982 <asm/prctl.h>.
8983 (__setcontext): Restore the target shadow stack.
8984 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8985 <asm/prctl.h>.
8986 (__swapcontext): Record the current shadow stack base. Save
8987 the caller's shadow stack pointer and base. Restore the target
8988 shadow stack.
8989 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8990 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8991 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8992
8993 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8994
8995 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8996 tst-setcontext8 and tst-setcontext9.
8997 * stdlib/tst-setcontext6.c: New file.
8998 * stdlib/tst-setcontext7.c: Likewise.
8999 * stdlib/tst-setcontext8.c: Likewise.
9000 * stdlib/tst-setcontext9.c: Likewise.
9001
9002 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9003
9004 * stdlib/Makefile ((tests): Add tst-setcontext5.
9005 * stdlib/tst-setcontext5.c: New file.
9006
9007 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9008
9009 * stdlib/Makefile (tests): Add tst-setcontext4.
9010 * stdlib/tst-setcontext4.c: New file.
9011
9012 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9013
9014 * stdlib/Makefile (tests): Add tst-swapcontext1.
9015 * stdlib/tst-swapcontext1.c: New test.
9016
9017 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9018
9019 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
9020 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
9021 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
9022 and tst-cet-legacy-4c.
9023 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
9024 and tst-cet-legacy-mod-4.
9025 (CFLAGS-tst-cet-legacy-2.c): New.
9026 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
9027 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
9028 (CFLAGS-tst-cet-legacy-3.c): Likewise.
9029 (CFLAGS-tst-cet-legacy-4.c): Likewise.
9030 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
9031 ($(objpfx)tst-cet-legacy-1): Likewise.
9032 ($(objpfx)tst-cet-legacy-2): Likewise.
9033 ($(objpfx)tst-cet-legacy-2.out): Likewise.
9034 ($(objpfx)tst-cet-legacy-2a): Likewise.
9035 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
9036 ($(objpfx)tst-cet-legacy-4): Likewise.
9037 ($(objpfx)tst-cet-legacy-4.out): Likewise.
9038 ($(objpfx)tst-cet-legacy-4a): Likewise.
9039 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
9040 (tst-cet-legacy-4a-ENV): Likewise.
9041 ($(objpfx)tst-cet-legacy-4b): Likewise.
9042 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
9043 (tst-cet-legacy-4b-ENV): Likewise.
9044 ($(objpfx)tst-cet-legacy-4c): Likewise.
9045 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
9046 (tst-cet-legacy-4c-ENV): Likewise.
9047 * sysdeps/x86/tst-cet-legacy-1.c: New file.
9048 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
9049 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
9050 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
9051 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
9052 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
9053 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
9054 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
9055 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
9056 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
9057 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
9058
9059 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9060
9061 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9062 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9063 with ssp_base.
9064 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9065 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9066 with ssp_base.
9067
9068 2018-07-25 Andreas Schwab <schwab@suse.de>
9069
9070 [BZ #23442]
9071 * locale/weightwc.h (findidx): Handle the case where usrc is a
9072 prefix of cp but one character too short.
9073
9074 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9075
9076 * NEWS: Add ISO C threads addition.
9077
9078 2018-07-24 Florian Weimer <fweimer@redhat.com>
9079
9080 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9081 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
9082 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
9083 4.13.
9084
9085 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9086
9087 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
9088 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
9089 <sys/prctl.h> and <asm/prctl.h>.
9090 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
9091 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
9092 and <asm/prctl.h>.
9093 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
9094 ARCH_CET_LEGACY_BITMAP.
9095 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
9096 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
9097 * sysdeps/x86/libc-start.c: Include <startup.h>.
9098
9099 2018-07-24 Florian Weimer <fweimer@redhat.com>
9100
9101 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
9102 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
9103
9104 2018-07-24 Rical Jasan <rj@2c3t.io>
9105 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9106 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
9107
9108 [BZ #14092]
9109 * manual/debug.texi: Update adjacent chapter name.
9110 * manual/probes.texi: Likewise.
9111 * manual/threads.texi (ISO C Threads): New section.
9112 (POSIX Threads): Convert to a section.
9113
9114 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9115 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
9116
9117 [BZ# 14092]
9118 * nptl/Makefile (tests): Add new test files.
9119 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
9120 * nptl/tst-cnd-basic.c: Likewise.
9121 * nptl/tst-cnd-broadcast.c: Likewise.
9122 * nptl/tst-cnd-timedwait.c: Likewise.
9123 * nptl/tst-mtx-basic.c: Likewise.
9124 * nptl/tst-mtx-recursive.c: Likewise.
9125 * nptl/tst-mtx-timedlock.c: Likewise.
9126 * nptl/tst-mtx-trylock.c: Likewise.
9127 * nptl/tst-thrd-basic.c: Likewise.
9128 * nptl/tst-thrd-detach.c: Likewise.
9129 * nptl/tst-thrd-sleep.c: Likewise.
9130 * nptl/tst-tss-basic.c: Likewise.
9131
9132 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9133
9134 [BZ #14092]
9135 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9136 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
9137 symbols.
9138 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9139 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9140 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9141 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9142 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9143 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9144 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9145 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9146 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9147 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9148 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9149 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9150 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9151 Likewise.
9152 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9153 Likewise.
9154 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
9155 Likewise.
9156 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9157 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9158 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9159 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9160 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9161 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9162 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9163 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9164 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9165 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
9166 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
9167 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
9168 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
9169 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
9170 Likewise.
9171 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
9172 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
9173 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
9174 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
9175 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
9176 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
9177 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
9178 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
9179 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
9180 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
9181 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
9182 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
9183 ikewise.
9184 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
9185 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
9186 Likewise.
9187 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
9188 Likewise.
9189 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
9190 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
9191 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
9192 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
9193 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
9194 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
9195 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
9196 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
9197
9198 [BZ #14092]
9199 * conform/data/threads.h-data (thread_local): New macro.
9200 (TSS_DTOR_ITERATIONS): Likewise.
9201 (tss_t): New type.
9202 (tss_dtor_t): Likewise.
9203 (tss_create): New function.
9204 (tss_get): Likewise.
9205 (tss_set): Likewise.
9206 (tss_delete): Likewise.
9207 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
9208 tss_get, and tss_set objects.
9209 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9210 * nptl/tss_create.c: New file.
9211 * nptl/tss_delete.c: Likewise.
9212 * nptl/tss_get.c: Likewise.
9213 * nptl/tss_set.c: Likewise.
9214 * sysdeps/nptl/threads.h (thread_local): New define.
9215 (TSS_DTOR_ITERATIONS): Likewise.
9216 (tss_t): New typedef.
9217 (tss_dtor_t): Likewise.
9218 (tss_create): New prototype.
9219 (tss_get): Likewise.
9220 (tss_set): Likewise.
9221 (tss_delete): Likewise.
9222
9223 [BZ #14092]
9224 * conform/data/threads.h-data (cnd_t): New type.
9225 (cnd_init): New function.
9226 (cnd_signal): Likewise.
9227 (cnd_broadcast): Likewise.
9228 (cnd_wait): Likewise.
9229 (cnd_timedwait): Likewise.
9230 (cnd_destroy): Likewise.
9231 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
9232 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
9233 object.
9234 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9235 * nptl/cnd_broadcast.c: New file.
9236 * nptl/cnd_destroy.c: Likewise.
9237 * nptl/cnd_init.c: Likewise.
9238 * nptl/cnd_signal.c: Likewise.
9239 * nptl/cnd_timedwait.c: Likewise.
9240 * nptl/cnd_wait.c: Likewise.
9241 * sysdeps/nptl/threads.h (cnd_t): New type.
9242 (cnd_init): New prototype.
9243 (cnd_signa): Likewise.
9244 (cnd_broadcast): Likewise.
9245 (cnd_wait): Likewise.
9246 (cnd_timedwait): Likewise.
9247 (cnd_destroy): Likewise.
9248
9249 [BZ #14092]
9250 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
9251 (once_flag): New type.
9252 (call_once): New function.
9253 * nptl/Makefile (libpthread-routines): Add call_once object.
9254 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
9255 * nptl/call_once.c: New file.
9256 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
9257 (once_flag): New type.
9258 (call_once): New prototype.
9259
9260 [BZ #14092]
9261 * conform/data/threads.h-data (mtx_plain): New constant.
9262 (mtx_recursive): Likewise.
9263 (mtx_timed): Likewise.
9264 (mtx_t): New type.
9265 (mtx_init): New function.
9266 (mtx_lock): Likewise.
9267 (mtx_timedlock): Likewise.
9268 (mtx_trylock): Likewise.
9269 (mtx_unlock): Likewise.
9270 (mtx_destroy): Likewise.
9271 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
9272 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
9273 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
9274 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
9275 * nptl/mtx_destroy.c: New file.
9276 * nptl/mtx_init.c: Likewise.
9277 * nptl/mtx_lock.c: Likewise.
9278 * nptl/mtx_timedlock.c: Likewise.
9279 * nptl/mtx_trylock.c: Likewise.
9280 * nptl/mtx_unlock.c: Likewise.
9281 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
9282 (mtx_recursive): Likewise.
9283 (mtx_timed): Likewise.
9284 (mtx_t): New type.
9285 (mtx_init): New prototype.
9286 (mtx_lock): Likewise.
9287 (mtx_timedlock): Likewise.
9288 (mtx_trylock): Likewise.
9289 (mtx_unlock): Likewise.
9290 (mtx_destroy): Likewise.
9291
9292 [BZ #14092]
9293 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
9294 (linknamespace-libs-ISO11): Add libpthread.a.
9295 * conform/data/threads.h-data: New file: add C11 thrd_* types and
9296 functions.
9297 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
9298 * nptl/Makefile (headers): Add threads.h.
9299 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
9300 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
9301 thrd_yield.
9302 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
9303 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
9304 thrd_join, thrd_sleep, and thrd_yield symbols.
9305 * nptl/descr.h (struct pthread): Add c11 field.
9306 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
9307 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
9308 routine with expected function prototype.
9309 (__pthread_create_2_1): Add C11 threads check based on attribute
9310 value.
9311 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
9312 * nptl/thrd_create.c: New file.
9313 * nptl/thrd_current.c: Likewise.
9314 * nptl/thrd_detach.c: Likewise.
9315 * nptl/thrd_equal.c: Likewise.
9316 * nptl/thrd_exit.c: Likewise.
9317 * nptl/thrd_join.c: Likewise.
9318 * nptl/thrd_priv.h: Likewise.
9319 * nptl/thrd_sleep.c: Likewise.
9320 * nptl/thrd_yield.c: Likewise.
9321 * include/threads.h: Likewise.
9322
9323 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9324
9325 * bits/indirect-return.h: New file.
9326 * misc/sys/cdefs.h (__glibc_has_attribute): New.
9327 * sysdeps/x86/bits/indirect-return.h: Likewise.
9328 * stdlib/Makefile (headers): Add bits/indirect-return.h.
9329 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
9330 (swapcontext): Add __INDIRECT_RETURN.
9331 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
9332 (prepare_test_buffer): Use it.
9333
9334 2018-07-24 Andreas Schwab <schwab@suse.de>
9335
9336 [BZ #23448]
9337 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
9338 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
9339
9340 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9341
9342 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
9343 Redefine if shadow stack is enabled.
9344 (SYSCALL_ERROR_LABEL): Likewise.
9345 (__vfork): Pop shadow stack and jump back to to caller directly
9346 when shadow stack is in use.
9347 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
9348 Redefine if shadow stack is enabled.
9349 (SYSCALL_ERROR_LABEL): Likewise.
9350 (__vfork): Pop shadow stack and jump back to to caller directly
9351 when shadow stack is in use.
9352
9353 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9354
9355 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
9356 enabled.
9357 (foo): Likewise.
9358 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
9359 (foo): Likewise.
9360
9361 2018-07-20 Joseph Myers <joseph@codesourcery.com>
9362
9363 * scripts/build-many-glibcs.py (Context.checkout): Default
9364 binutils version to 2.31 branch.
9365
9366 2018-07-20 Zong Li <zong@andestech.com>
9367
9368 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
9369 URL of gcc's tarball.
9370
9371 2018-07-20 Florian Weimer <fweimer@redhat.com>
9372
9373 [BZ #23396]
9374 * posix/regcomp.c (build_equiv_class): When comparing weights, do
9375 not compare an extra byte after the end of the weights.
9376
9377 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
9378
9379 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
9380 to 1.
9381 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
9382 hidden prototypes.
9383 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
9384 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
9385 * scripts/check-execstack.awk: Consider `xfail' variable containing a
9386 list of libraries whose stack executability is expected.
9387 * elf/Makefile ($(objpfx)check-execstack.out): Pass
9388 $(check-execstack-xfail) to check-execstack.awk through `xfail'
9389 variable.
9390 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
9391 libc.so libpthread.so.
9392
9393 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
9394
9395 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
9396 SOCK_NONBLOCK.
9397 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
9398 and SOCK_NONBLOCK.
9399 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
9400 implement __pipe2.
9401 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
9402
9403 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9404
9405 * benchtests/scripts/compare_bench.py (__main__): use the argparse
9406 library to improve command line parsing.
9407 (__main__): make schema file as optional parameter (--schema),
9408 defaulting to benchtests/scripts/benchout.schema.json.
9409 (main): move out of the parsing stuff to __main_  and leave it
9410 only as caller of main comparison functions.
9411
9412 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
9413
9414 * NEWS: Add a note for Intel CET status.
9415 * manual/install.texi: Likewise.
9416 * INSTALL: Regenerated.
9417
9418 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
9419
9420 [BZ #23140]
9421 * localedata/locales/oc_FR (mon): Rename to...
9422 (alt_mon): This, then update October (typo fix).
9423 (mon): New content (genitive case, month names preceded by
9424 "de" or "d’").
9425
9426 [BZ #23422]
9427 * localedata/locales/oc_FR (abday): Update all items.
9428 (day): Update Wednesday and Saturday (typo fixes).
9429 (abmon): Update all items, except May.
9430 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
9431 (LC_IDENTIFICATION): Bump the revision number and date.
9432 Keep the "category" entries in alphabetic order.
9433 (LC_ADDRESS): Remove no longer needed comment.
9434 (LC_COLLATE): Use “copy "ca_ES"”.
9435 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
9436 "name_mrs".
9437
9438 2018-07-18 Joseph Myers <joseph@codesourcery.com>
9439
9440 * grp/tst_fgetgrent.c: Include <unistd.h>.
9441 (main): Use mkstemp instead of tmpnam.
9442 * io/test-utime.c (main): Likewise.
9443 * posix/annexc.c (macrofile): Change to modifiable array.
9444 (main): Remove macrofile here.
9445 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9446 macrofile here.
9447 (check_header): Do not remove macrofile here.
9448 * posix/bug-getopt1.c: Include <stdlib.h>.
9449 (do_test): Use mkstemp instead of tmpnam.
9450 * posix/bug-getopt2.c: Include <stdlib.h>.
9451 (do_test): Use mkstemp instead of tmpnam.
9452 * posix/bug-getopt3.c: Include <stdlib.h>.
9453 (do_test): Use mkstemp instead of tmpnam.
9454 * posix/bug-getopt4.c: Include <stdlib.h>.
9455 (do_test): Use mkstemp instead of tmpnam.
9456 * posix/bug-getopt5.c: Include <stdlib.h>.
9457 (do_test): Use mkstemp instead of tmpnam.
9458 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
9459 (main): Use mkstemp instead of tmpnam.
9460 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
9461 (main): Use mkstemp instead of tmpnam.
9462 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
9463 (main): use mkstemp instead of tmpnam.
9464 * stdlib/isomac.c (macrofile): Change to modifiable array.
9465 (main): Remove macrofile here.
9466 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9467 macrofile here.
9468 (check_header): Do not remove macrofile here.
9469
9470 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9471
9472 * manual/tunables.texi: Document glibc.tune.x86_ibt and
9473 glibc.tune.x86_shstk.
9474
9475 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9476
9477 * NEWS: Mention --enable-cet.
9478 * manual/install.texi: Document --enable-cet.
9479 * INSTALL: Regenerated.
9480
9481 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9482
9483 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
9484 Add _CET_NOTRACK before indirect jump to jump table.
9485
9486 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9487
9488 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
9489 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9490 to jump table.
9491
9492 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9493
9494 * sysdeps/i386/i686/multiarch/strcat-sse2.S
9495 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9496 to jump table.
9497
9498 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9499
9500 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
9501 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9502 to jump table.
9503
9504 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9505
9506 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
9507 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9508 to jump table.
9509
9510 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9511
9512 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
9513 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9514 to jump table.
9515 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
9516
9517 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9518
9519 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
9520 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9521 to jump table.
9522
9523 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9524
9525 * sysdeps/i386/i686/multiarch/memset-sse2.S
9526 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9527 to jump table.
9528
9529 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9530
9531 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
9532 indirect jump to jump table.
9533
9534 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9535
9536 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
9537 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9538 to jump table.
9539 (MEMCPY): Likewise.
9540
9541 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9542
9543 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
9544 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9545 to jump table.
9546 (MEMCPY): Likewise.
9547
9548 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9549
9550 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9551 _CET_NOTRACK before indirect jump to jump table.
9552
9553 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9554
9555 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
9556 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9557 to jump table.
9558
9559 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9560
9561 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
9562 indirect jump to jump table.
9563
9564 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
9565
9566 [BZ #22241]
9567 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
9568 (LOCALES): Likewise.
9569 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
9570 * localedata/locales/sah_RU: New file.
9571 * localedata/sah_RU.UTF-8.in: New file.
9572
9573 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9574
9575 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
9576 "sysdep.h".
9577 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9578 _CET_ENDBR to indirect jump targets and adjust jump destination
9579 for _CET_ENDBR.
9580 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
9581 "sysdep.h".
9582 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9583 _CET_ENDBR to indirect jump targets and adjust jump destination
9584 for _CET_ENDBR.
9585 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
9586 "sysdep.h".
9587 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
9588 _CET_ENDBR to indirect jump targets and adjust jump destination
9589 for _CET_ENDBR.
9590
9591 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9592
9593 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9594 _CET_ENDBR.
9595
9596 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9597
9598 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
9599 _CET_ENDBR.
9600 (_dl_tlsdesc_undefweak): Likewise.
9601 (_dl_tlsdesc_dynamic): Likewise.
9602 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
9603 (_dl_tlsdesc_resolve_rel): Likewise.
9604 (_dl_tlsdesc_resolve_rela): Likewise.
9605 (_dl_tlsdesc_resolve_hold): Likewise.
9606 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
9607 (_dl_tlsdesc_undefweak): Likewise.
9608 (_dl_tlsdesc_dynamic): Likewise.
9609 (_dl_tlsdesc_resolve_rela): Likewise.
9610 (_dl_tlsdesc_resolve_hold): Likewise.
9611
9612 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9613
9614 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
9615 (_fini): Likewise.
9616 * sysdeps/x86_64/crti.S (_init): Likewise.
9617 (_fini): Likewise.
9618
9619 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
9620
9621 [BZ #23140]
9622 * localedata/locales/os_RU (mon): Rename to...
9623 (alt_mon): This.
9624 (mon): Import from CLDR (genitive case).
9625
9626 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9627
9628 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
9629 cet-tunables.h> when CET is enabled.
9630
9631 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
9632
9633 [BZ #21598]
9634 * configure.ac: Add --enable-cet.
9635 * configure: Regenerated.
9636 * elf/Makefille (all-built-dso): Add a comment.
9637 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
9638 Include <dl-prop.h>.
9639 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
9640 segment.
9641 * elf/dl-open.c: Include <dl-prop.h>.
9642 (dl_open_worker): Call _dl_open_check.
9643 * elf/rtld.c: Include <dl-prop.h>.
9644 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
9645 _rtld_main_check.
9646 * sysdeps/generic/dl-prop.h: New file.
9647 * sysdeps/i386/dl-cet.c: Likewise.
9648 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
9649 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
9650 * sysdeps/x86/cet-tunables.h: Likewise.
9651 * sysdeps/x86/check-cet.awk: Likewise.
9652 * sysdeps/x86/configure: Likewise.
9653 * sysdeps/x86/configure.ac: Likewise.
9654 * sysdeps/x86/dl-cet.c: Likewise.
9655 * sysdeps/x86/dl-procruntime.c: Likewise.
9656 * sysdeps/x86/dl-prop.h: Likewise.
9657 * sysdeps/x86/libc-start.h: Likewise.
9658 * sysdeps/x86/link_map.h: Likewise.
9659 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
9660 _CET_ENDBR.
9661 (_dl_runtime_profile): Likewise.
9662 (_dl_runtime_resolve_shstk): New.
9663 (_dl_runtime_profile_shstk): Likewise.
9664 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
9665 if CET is enabled.
9666 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
9667 (CFLAGS-.os): Likewise.
9668 (CFLAGS-.op): Likewise.
9669 (CFLAGS-.oS): Likewise.
9670 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
9671 is enabled.
9672 (tests-special): Add $(objpfx)check-cet.out.
9673 (cet-built-dso): New.
9674 (+$(cet-built-dso:=.note)): Likewise.
9675 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
9676 ($(objpfx)check-cet.out): New.
9677 (generated): Add check-cet.out.
9678 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
9679 <cet-tunables.h>.
9680 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
9681 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9682 (init_cpu_features): Call get_cet_status to check CET status
9683 and update dl_x86_feature_1 with CET status. Call
9684 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
9685 (set_x86_shstk). Disable and lock CET in libc.a.
9686 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
9687 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
9688 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9689 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
9690 (_CET_ENDBR): Define if not defined.
9691 (ENTRY): Add _CET_ENDBR.
9692 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
9693 x86_shstk.
9694 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
9695 _CET_ENDBR.
9696 (_dl_runtime_profile): Likewise.
9697
9698 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
9699
9700 [BZ #21895]
9701 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
9702 restore r2 on longjmp.
9703 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
9704 test list.
9705 Added rules to build test tst-setjmp-bug21895-static.
9706 Added module setjmp-bug21895 and rules to build a shared object from it.
9707 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
9708 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
9709
9710 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
9711
9712 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
9713 * benchtests/bench-strstr.c: Likewise.
9714 * string/memmem.c (FASTSEARCH): Define.
9715 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
9716 Add support for FASTSEARCH.
9717 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
9718 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
9719 (FASTSEARCH): Define.
9720 * string/test-strcasestr.c: Rename __strnlen to strnlen.
9721 * string/test-strstr.c: Likewise.
9722
9723 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
9724
9725 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
9726 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
9727
9728 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9729 H.J. Lu <hongjiu.lu@intel.com>
9730
9731 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
9732 (__longjmp): Restore shadow stack pointer if shadow stack is
9733 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9734 isn't defined for __longjmp_cancel.
9735 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
9736 (_setjmp): Save shadow stack pointer if shadow stack is enabled
9737 and SHADOW_STACK_POINTER_OFFSET is defined.
9738 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
9739 (setjmp): Save shadow stack pointer if shadow stack is enabled
9740 and SHADOW_STACK_POINTER_OFFSET is defined.
9741 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
9742 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9743 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9744 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
9745 <jmp_buf-ssp.h>.
9746 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9747 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9748 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
9749 Remove jmp_buf-ssp.sym.
9750 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
9751 <jmp_buf-ssp.h>.
9752 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9753 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9754 * sysdeps/x86/Makefile (gen-as-const-headers): Add
9755 jmp_buf-ssp.sym.
9756 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
9757 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
9758 (__longjmp): Restore shadow stack pointer if shadow stack is
9759 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9760 isn't defined for __longjmp_cancel.
9761 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
9762 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9763 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9764
9765 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
9766
9767 [BZ #22563]
9768 * nptl/pthread_create.c: Include <tls-setup.h>.
9769 (__pthread_create_2_1): Call tls_setup_tcbhead.
9770 * sysdeps/generic/tls-setup.h: New file.
9771 * sysdeps/x86/nptl/tls-setup.h: Likewise.
9772 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9773 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
9774 Likewise.
9775 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
9776 to feature_1.
9777 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
9778 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
9779 (X86_FEATURE_1_SHSTK): Likewise.
9780 (CET_ENABLED): Likewise.
9781 (IBT_ENABLED): Likewise.
9782 (SHSTK_ENABLED): Likewise.
9783
9784 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
9785
9786 [BZ #23208]
9787 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
9788 (LOCALES): Likewise.
9789 * localedata/dsb_DE.UTF-8.in: New file.
9790 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
9791
9792 2018-07-12 Florian Weimer <fweimer@redhat.com>
9793
9794 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
9795 __mprotect, not mprotect.
9796
9797 2018-07-11 Florian Weimer <fweimer@redhat.com>
9798
9799 * io/Makefile (headers): Add bits/statx.h.
9800
9801 2018-07-10 Mike FABIAN <mfabian@redhat.com>
9802
9803 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
9804 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
9805 and headers.
9806 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
9807 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
9808 for utf8_gen.py
9809
9810 2018-07-10 Florian Weimer <fweimer@redhat.com>
9811
9812 * io/Makefile (routines): Add statx.
9813 (tests-internal): Add tst-statx.
9814 * io/Versions (GLIBC_2.28): Export statx.
9815 * io/bits/statx.h: New file.
9816 * io/sys/stat.h [__USE_GNU]: Include it.
9817 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
9818 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
9819 Define.
9820 * io/statx.c: New file.
9821 * io/statx_generic.: Likewise.
9822 * io/tst-statx.: Likewise.
9823 * include/bits/statx.h: Likewise.
9824 * sysdeps/unix/sysv/linux/kernel-features.h
9825 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
9826 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9827 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
9828 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
9829 Undefine.
9830 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9831 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
9832 * sysdeps/unix/sysv/linux/statx.c: New file.
9833 * manual/filesys.texi: Note that statx is undocumented.
9834 * sysdeps/**/libc*.abilist: Update.
9835
9836 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9837
9838 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
9839 a kernel issue which lead to test failure in some cases.
9840
9841 2018-07-10 Florian Weimer <fweimer@redhat.com>
9842
9843 [BZ #23036]
9844 * posix/regexec.c (check_node_accept_bytes): When comparing
9845 weights, do not compare an extra byte after the end of the
9846 weights.
9847
9848 2018-07-10 Florian Weimer <fweimer@redhat.com>
9849
9850 * libio/readline.c: Fix copyright year.
9851 * libio/tst-readline.c Likewise.
9852 * nss/tst-nss-files-hosts-getent.c: Likewise.
9853
9854 2018-07-06 Florian Weimer <fweimer@redhat.com>
9855
9856 [BZ #18991]
9857 * nss/nss_files/files-XXX.c (internal_getent): Use
9858 __libc_readline_unlocked. Seek back to the start of the line if
9859 parsing failes with ERANGE.
9860 (get_contents_ret, get_contents): Remove.
9861 * nss/tst-nss-files-hosts-getent.c: New file.
9862 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
9863 (tst-nss-files-hosts-getent): Link with -ldl.
9864
9865 2018-07-06 Florian Weimer <fweimer@redhat.com>
9866
9867 * include/stdio.h (__libc_readline_unlocked): Declare.
9868 (__ftello64, __fseeko64): Declare aliases.
9869 * libio/readline.c: New file.
9870 * libio/tst-readline.c: Likewise.
9871 (routines): Add readline.
9872 (tests-internal): Add tst-readlime.
9873 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
9874 __libc_readline_unlocked.
9875 * libio/fseeko.c (__fseeko): Rename from fseeko.
9876 (fseeko): Add alias.
9877 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9878 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9879 (fseeko64): Add alias.
9880 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9881 * libio/ftello64.c (__ftello64): Rename from ftello64.
9882 (ftello64): Add alias.
9883
9884 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9885
9886 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9887 HWCAP_ATOMICS.
9888
9889 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9890
9891 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9892 Use dl_hwcap without masking.
9893 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9894 Remove HWCAP_CPUID.
9895
9896 2018-07-06 Florian Weimer <fweimer@redhat.com>
9897
9898 * conform/conformtest.pl (checknamespace): Escape literal braces
9899 in regular expressions.
9900
9901 2018-07-06 Amit Pawar <amit.pawar@amd.com>
9902
9903 * sysdeps/x86/cpu-features.c (get_common_indeces):
9904 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
9905 * sysdeps/x86/cpu-features.c (init_cpu_features):
9906 AVX_Fast_Unaligned_Load is disabled for Excavator core.
9907
9908 2018-07-05 Florian Weimer <fweimer@redhat.com>
9909
9910 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
9911 protector.
9912 (CFLAGS-elf-init.oS): Likewise.
9913
9914 2018-07-05 Florian Weimer <fweimer@redhat.com>
9915 Carlos O'Donell <carlos@redhat.com>
9916
9917 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
9918 $(no-stack-protector). stack_chk_fail_local.c can be compiled
9919 with stack protector enabled because there is no risk of infinite
9920 recursion.
9921
9922 2018-07-05 Maciej W. Rozycki <macro@mips.com>
9923
9924 [BZ #19818]
9925 [BZ #23307]
9926 * libc-abis (ABSOLUTE): New ABI.
9927 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
9928 * NEWS: Mention the new ABI.
9929
9930 2018-07-05 Florian Weimer <fweimer@redhat.com>
9931
9932 [BZ # 17662]
9933 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
9934 (RENAME_WHITEOUT): Define.
9935 [__USE_GNU] (renameat2): Declare.
9936 * stdio-common/Makefile (routines): Add renameat2.
9937 (tests): Add tst-renameat2.
9938 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
9939 * stdio-common/renameat2.c: New file.
9940 * stdio-common/tst-renameat2.c: Likewise.
9941 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
9942 * manual/filesys.texi (Temporary Files): Note that renameat2 is
9943 undocumented.
9944 * sysdeps/unix/sysv/linux/kernel-features.h
9945 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
9946 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9947 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9948 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9949 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9950 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9951 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
9952 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9953 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9954 * include/stdio.h (__renameat): Add alias for renameat.
9955 * stdio-common/renameat.c (__renameat): Rename from renameat.
9956 Add hidden definition and alias.
9957 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9958 * sysdeps/mach/hurd/renameat.c: Likewise.
9959 * sysdeps/**/libc*.abilist: Add renameat2.
9960
9961 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9962
9963 * posix/bug-regex33.c: Fix build after regex sync.
9964
9965 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9966
9967 [BZ #23164]
9968 * localedata/tst-langinfo-setlocale.c: New file.
9969 * localedata/tst-langinfo-setlocale-static.c: New file.
9970 * localedata/tst-langinfo-newlocale.c: New file.
9971 * localedata/tst-langinfo-newlocale-static.c: New file.
9972 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9973 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9974 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9975 (tests-static): Remove tst-langinfo-static. Add
9976 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9977 (tests-special): Remove $(objpfx)tst-langinfo.out,
9978 $(objpfx)tst-langinfo-static.out. Add
9979 $(objpfx)tst-langinfo-setlocale.out,
9980 $(objpfx)tst-langinfo-newlocale.out,
9981 $(objpfx)tst-langinfo-setlocale-static.out,
9982 $(objpfx)tst-langinfo-newlocale-static.out.
9983 ($(objpfx)tst-langinfo.out): Remove.
9984 ($(objpfx)tst-langinfo-static.out): Remove.
9985 ($(objpfx)tst-langinfo-newlocale.out): New target.
9986 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9987 (test-xfail-tst-langinfo-newlocale-static): Add.
9988 ($(objpfx)tst-langinfo-setlocale.out): New target.
9989 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9990 * localedata/tst-langinfo.c: Call test_locale.
9991 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9992 data.
9993
9994 2018-07-04 Florian Weimer <fweimer@redhat.com>
9995
9996 testrun.sh: Implement --tool=strace, --tool=valgrind
9997 * Makefile (testrun-script): Define variable.
9998 (testrun.sh): Use variable.
9999 * manual/install.texi (Tools for Compilation): make 4.0 or later
10000 is required.
10001 * configure.ac: Check for make 4.0 or later.
10002 * INSTALL: Regenerate.
10003 * configure: Likewise.
10004
10005 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10006
10007 [BZ #23233]
10008 [BZ #21163]
10009 [BZ #18986]
10010 [BZ #13762]
10011 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
10012 * posix/PCRE.tests: Remove invalid test.
10013 * posix/bug-regex28.c: Fix expected values for used syntax.
10014 * posix/bug-regex37.c: New file.
10015 * posix/bug-regex38.c: Likewise.
10016 * posix/regcomp.c: Sync with gnulib.
10017 * posix/regex.c: Likewise.
10018 * posix/regex.h: Likewise.
10019 * posix/regex_internal.c: Likewise.
10020 * posix/regex_internal.h: Likewise.
10021 * posix/regexec.c: Likewise.
10022
10023 2018-06-26 Mike FABIAN <mfabian@redhat.com>
10024
10025 [BZ #23308]
10026 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
10027 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
10028 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
10029 * localedata/unicode-gen/PropList.txt: likewise.
10030 * localedata/unicode-gen/UnicodeData.txt: likewise.
10031 * localedata/charmaps/UTF-8: Regenerate.
10032 * localedata/locales/i18n_ctype: likewise.
10033 * localedata/locales/tr_TR: likewise.
10034 * localedata/locales/translit_circle: likewise.
10035 * localedata/locales/translit_cjk_compat: likewise.
10036 * localedata/locales/translit_combining: likewise.
10037 * localedata/locales/translit_compat: likewise.
10038 * localedata/locales/translit_font: likewise.
10039 * localedata/locales/translit_fraction: likewise.
10040
10041 2018-07-03 Florian Weimer <fweimer@redhat.com>
10042
10043 [BZ #23363]
10044 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
10045 * stdio-common/tst-printf.sh: Adjust expected output.
10046 * LICENSES: Update.
10047
10048 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10049
10050 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
10051 symbol.
10052
10053 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10054
10055 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
10056 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
10057 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
10058 * stdio-common/tst-printfsz-islongdouble.c: New file.
10059 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
10060 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
10061 [subdir == stdio-common] (routines): Add ieee128-printf_size.
10062 [subdir == stdio-common] (tests-internal): Add
10063 test-printf-size-ieee128, and test-printf-size-ibm128.
10064 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
10065 (CFLAGS-test-printf-size-ibm128.c): New variables.
10066 [subdir == stdio-common] (tests-special): Add
10067 $(objpfx)test-printf-size-ieee128.out and
10068 $(objpfx)test-printf-size-ibm128.out.
10069 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
10070 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
10071 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
10072 __printf_sizeieee128.
10073 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
10074 New file.
10075 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
10076 Likewise.
10077 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
10078 Likewise.
10079
10080 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
10081
10082 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
10083 (exp2f_inline): Likewise.
10084 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
10085 (__math_uflowf): Likewise.
10086 (__math_may_uflowf): Likewise.
10087 (__math_divzerof): Likewise.
10088 (__math_invalidf): Likewise.
10089 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
10090 (__math_oflowf): Likewise.
10091 (__math_uflowf): Likewise.
10092 (__math_may_uflowf): Likewise.
10093 (__math_divzerof): Likewise.
10094 (__math_invalidf): Likewise.
10095
10096 2018-06-29 DJ Delorie <dj@redhat.com>
10097 Carlos O'Donell <carlos@redhat.com>
10098
10099 [BZ #23329]
10100 * include/libc-symbols.h: Comment the freeres framework.
10101 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
10102 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
10103 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
10104 * dlfcn/dlerror.c: Include libc-symbols.h
10105 (__dlerror_main_freeres): New function.
10106 * dlfcn/dlfreeres.c: New file.
10107 * dlfcn/sdlfreeres.c: New file.
10108 * include/dlfcn.h: Declare __dlerror_main_freeres.
10109 * malloc/set-freeres.c: Declare __libdl_freeres, and
10110 __libpthread_freeres.
10111 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
10112 the releavant libraries are loaded.
10113 * malloc/thread-freeres.c: Add comments.
10114 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
10115 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
10116 * nptl/allocatestack.c (__nptl_free_stacks): New function.
10117 (__free_stacks): Rename to...
10118 (free_stacks): ...this. Mark static.
10119 (queue_stack): Call free_stacks.
10120 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
10121 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
10122 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
10123 ptr_freeres element from struct.
10124 (pthread_functions): Remove .ptr_freeres from struct initializer.
10125 [SHARED] (nptl_freeres): Remove.
10126 * nptl/nptlfreeres.c: New file.
10127 * nptl/pthreadP.h
10128 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
10129 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
10130 attribute_hidden.
10131 (__free_stacks): Rename to...
10132 (__nptl_stacks_freeres): ...this.
10133 (__shm_directory_freeres): Declare.
10134 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
10135 (__nptl_unwind_freeres): ...this.
10136 * resolv/res-close.c: Add comment.
10137 * resolv/resolv_conf.c: Include libc-symbols.h.
10138 * string/strerror_l.c: Include libc-symbols.h.
10139 * sunrpc/rpc_thread.c: Include libc-symbols.h.
10140 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
10141 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
10142 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
10143
10144 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10145
10146 * stdlib/tst-strfmon_l.c: Add tests for long double.
10147
10148 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
10149
10150 [BZ #23208]
10151 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
10152 * localedata/locales/dsb_DE: New file.
10153
10154 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10155
10156 [BZ #23140]
10157 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
10158 genitive case).
10159 (alt_mon): New entry, import from CLDR (nominative case).
10160
10161 2018-06-29 Sylvain Lesage <severo@rednegra.net>
10162
10163 [BZ #22996]
10164 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
10165
10166 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
10167
10168 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
10169 Use vector registers.
10170
10171 * sysdeps/aarch64/multiarch/memmove_falkor.S
10172 (__memcpy_falkor): Use vector registers.
10173
10174 2018-06-29 Martin Sebor <msebor@redhat.com>
10175
10176 * manual/stdio.texi (Customizing Printf): Mention interaction
10177 with GCC built-ins.
10178
10179 2018-06-29 Maciej W. Rozycki <macro@mips.com>
10180
10181 [BZ #23307]
10182 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
10183 `st_value' is 0 if `st_shndx' is SHN_ABS.
10184 * elf/tst-absolute-zero.c: New file.
10185 * elf/tst-absolute-zero-lib.c: New file.
10186 * elf/tst-absolute-zero-lib.lds: New file.
10187 * elf/Makefile (tests): Add `tst-absolute-zero'.
10188 (modules-names): Add `tst-absolute-zero-lib'.
10189 (LDLIBS-tst-absolute-zero-lib.so): New variable.
10190 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
10191 ($(objpfx)tst-absolute-zero: New dependency.
10192
10193 2018-06-29 Zack Weinberg <zackw@panix.com>
10194
10195 * configure.ac: New command-line option --disable-crypt.
10196 Force --disable-nss-crypt when --disable-crypt is given, with a
10197 warning if it was explicitly enabled.
10198 * configure: Regenerate.
10199 * config.make.in: New boolean substitution variable $(build-crypt).
10200 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
10201 when $(build-crypt).
10202 * manual/install.texi: Document --disable-crypt.
10203 * INSTALL: Regenerate.
10204
10205 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
10206 which is never set.
10207 * conform/Makefile: Only include libcrypt.a in
10208 linknamespace-libs-xsi and linknamespace-libs-XPG4
10209 when $(build-crypt).
10210 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
10211 USE_CRYPT to 1 when $(build-crypt).
10212 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
10213 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
10214 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
10215
10216 2018-06-29 Zack Weinberg <zackw@panix.com>
10217
10218 * crypt/crypt.h, posix/unistd.h: Update comments and
10219 prototypes for crypt and crypt_r.
10220
10221 * manual/crypt.texi (Cryptographic Functions): New initial
10222 exposition.
10223 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
10224 (Unpredictable Bytes): Improve initial exposition. Clarify error
10225 behavior of getentropy and getrandom.
10226 * manual/examples/genpass.c: Generate a salt using getentropy
10227 instead of the current time. Use hash $5$ (SHA-2-256).
10228 * manual/examples/testpass.c: Demonstrate validation against
10229 hashes generated with three different one-way functions.
10230
10231 * manual/intro.texi: crypt.texi does not need an overview
10232 anymore.
10233
10234 * manual/nss.texi, manual/memory.texi, manual/socket.texi
10235 * manual/terminal.texi: Consistently refer to "passphrases"
10236 * instead of "passwords", and to the "user database" instead
10237 * of the "password database".
10238 * manual/users.texi: Similarly. Add notes about how actual
10239 passphrase hashes are now stored in the shadow database.
10240 Remove 20-year-old junk todo note.
10241
10242 2018-06-29 Zack Weinberg <zackw@panix.com>
10243
10244 * manual/crypt.texi: Use a normal top-level @node declaration.
10245 Move most of the introductory text to the 'crypt' section.
10246 Move the example programs below the @deftypefun for 'crypt_r'.
10247 Move the 'getpass' section...
10248 * manual/terminal.texi: ...here.
10249
10250 2018-06-29 Zack Weinberg <zackw@panix.com>
10251 Florian Weimer <fweimer@redhat.com>
10252
10253 * posix/unistd.h: Do not declare encrypt.
10254 (_XOPEN_CRYPT): Remove macro definition.
10255 (crypt): Declare only for _USE_MISC.
10256 * stdlib/stdlib.h: Do not declare setkey.
10257 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
10258 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
10259
10260 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
10261 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
10262 into compat symbols. Don't define initial_perm if it's not
10263 going to be used.
10264 * crypt/cert.c: Link explicitly with the expected versions for
10265 setkey and encrypt. If they are not available at all, mark
10266 the test as unsupported.
10267
10268 * sunrpc/des_crypt.c: Unconditionally block linkage with
10269 cbc_crypt and ecb_crypt for new binaries.
10270 * sunrpc/des_soft.c: Unconditionally block linkage with
10271 des_setparity for new binaries.
10272
10273 * manual/crypt.texi: Remove the entire "DES Encryption"
10274 section. Also remove the paragraph talking about FIPS 140-2
10275 from the introduction.
10276 * manual/string.texi (strfry, memfrob): Revise. Recommend use
10277 of libgcrypt for "real" encryption, not DES.
10278 * manual/conf.texi (Constants for Sysconf): Mention that
10279 _XOPEN_CRYPT is no longer impelemented.
10280
10281 * conform/data/unistd.h-data: Remove crypt function declaration.
10282
10283 2018-06-29 Florian Weimer <fweimer@redhat.com>
10284
10285 [BZ #23351]
10286 * malloc/hooks.c: Update comments on restoring of dumped heaps.
10287 (disallow_malloc_check): Remove variable.
10288 (__malloc_check_init): Adjust.
10289 (malloc_set_state): Update comment.
10290 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
10291 declarations.
10292
10293 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10294
10295 [BZ #23140]
10296 * localedata/locales/ast_ES (mon): Rename to...
10297 (alt_mon): This.
10298 (mon): Import from CLDR (genitive case).
10299
10300 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
10301 Jakub Sitnicki <jkbs@redhat.com>
10302
10303 [BZ #21812]
10304 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
10305 on NLM_F_DUMP_INTR.
10306
10307 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
10308
10309 * manual/llio.texi: Remove spurious space.
10310
10311 2018-06-28 Florian Weimer <fweimer@redhat.com>
10312
10313 [BZ #23349]
10314 * time/bits/types/struct_timespec.h: Change header inclusion guard to
10315 _STRUCT_TIMESPEC.
10316
10317 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10318
10319 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
10320 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
10321 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
10322 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
10323 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
10324 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
10325 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
10326
10327 2018-06-27 Maciej W. Rozycki <macro@mips.com>
10328
10329 [BZ #23266]
10330 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
10331 Copy and null-terminate entries that are not terminated, in
10332 addition to empty ones.
10333
10334 2018-06-27 Florian Weimer <fweimer@redhat.com>
10335
10336 [BZ #18023]
10337 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
10338 (extend_alloca_account): Remove.
10339 * manual/stdio.texi (Variable Arguments Output): Update comment.
10340
10341 2018-06-27 Joseph Myers <joseph@codesourcery.com>
10342
10343 * nptl/sockperf.c: Remove file.
10344
10345 2018-06-27 Florian Weimer <fweimer@redhat.com>
10346
10347 [BZ #18023]
10348 * elf/dl-deps.c (_dl_map_object_deps): Use struct
10349 scratch_buffer instead of extend_alloca.
10350
10351 2018-06-27 Florian Weimer <fweimer@redhat.com>
10352
10353 [BZ #18023]
10354 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
10355 scratch_buffer instead of extend_alloca. Update comments.
10356
10357 2018-06-27 Florian Weimer <fweimer@redhat.com>
10358
10359 [BZ #18023]
10360 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
10361 instead of extend_alloca.
10362
10363 2018-06-26 Joseph Myers <joseph@codesourcery.com>
10364
10365 [BZ #13888]
10366 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
10367 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
10368 /tmp.
10369 * scripts/test-installation.pl: Put temporary files in build
10370 directory, not /tmp.
10371 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
10372 (CFLAGS-bug4.c): Likewise.
10373 (CFLAGS-bug5.c): Likewise.
10374 (CFLAGS-test-fseek.c): Likewise.
10375 (CFLAGS-test-popen.c): Likewise.
10376 (CFLAGS-test_rdwr.c): Likewise.
10377 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
10378 /tmp.
10379 * stdio-common/bug4.c (main): Likewise.
10380 * stdio-common/bug5.c (main): Likewise.
10381 * stdio-common/test-fseek.c (TESTFILE): Likewise.
10382 * stdio-common/test-popen.c (do_test): Likewise.
10383 * stdio-common/test_rdwr.c (main): Likewise.
10384
10385 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
10386
10387 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
10388 (sem_open): Set sem.newsem.pad to zero for valgrind.
10389
10390 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10391
10392 [BZ #20251]
10393 * NEWS: Mention fcntl64 addition.
10394 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
10395 * login/utmp_file.c: Likewise.
10396 * sysdeps/posix/fdopendir.c: Likewise.
10397 * sysdeps/posix/opendir.c: Likewise.
10398 * sysdeps/unix/pt-fcntl.c: Likewise.
10399 * include/fcntl.h (__libc_fcntl64, __fcntl64,
10400 __fcntl64_nocancel_adjusted): New prototype.
10401 (__fcntl_nocancel_adjusted): Remove prototype.
10402 * io/Makefile (routines): Add fcntl64.
10403 (CFLAGS-fcntl64.c): New rule.
10404 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
10405 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
10406 * io/fcntl.h (fcntl64): Add prototype and redirect if
10407 __USE_FILE_OFFSET64 is defined.
10408 * io/fcntl64.c: New file.
10409 * manual/llio.text: Add a note for which commands fcntl acts a
10410 cancellation point.
10411 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
10412 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
10413 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
10414 New symbols.
10415 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
10416 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
10417 non-LFS case.
10418 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
10419 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
10420 to __fcntl64_nocancel.
10421 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
10422 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
10423 to __fcntl64_nocancel.
10424 * sysdeps/generic/not-cancel.h: Likewise.
10425 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
10426 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
10427 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10428 (fcntl64): New symbol.
10429 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10430 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10431 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10432 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10433 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
10434 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10435 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10436 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10437 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10438 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10439 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
10440 fcntl64): Likewise.
10441 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10442 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
10443 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10444 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10445 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10446 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10447 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
10448 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10449 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10450 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10451 Likewise.
10452 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10453 Likewise.
10454 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10455 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10456 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10457
10458 2018-06-26 Florian Weimer <fweimer@redhat.com>
10459
10460 Run thread shutdown functions in an explicit order.
10461 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
10462 definition.
10463 (__libc_thread_freeres): Call thread shutdown functions
10464 explicitly.
10465 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
10466 * include/string.h (__strerror_thread_freeres): Declare.
10467 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
10468 arena_thread_freeres. No longer static. Remove thread shutdown
10469 hook registration.
10470 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
10471 Declare.
10472 * resolv/res-close.c (__res_thread_freeres): Renamed from
10473 res_thread_freeres. No longer static. Remove thread shutdown
10474 hook registration.
10475 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
10476 * resolv/resolv_conf.c (freeres): Remove incorrect section
10477 attribute and use libc_freeres_fn.
10478 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
10479 strerror_thread_freeres. No longer static. Remove thread
10480 shutdown hook registration.
10481 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
10482 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
10483 shutdown hook registration.
10484 * Makerules (shlib.lds): Do not provide section boundary symbols
10485 for __libc_thread_subfreeres.
10486 * manual/memory.texi (Basic Allocation): Update comment.
10487
10488 2018-06-26 Florian Weimer <fweimer@redhat.com>
10489
10490 Remove always-defined _RPC_THREAD_SAFE_ macro.
10491 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
10492 Do not define _RPC_THREAD_SAFE_.
10493 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
10494 conditional.
10495 * sunrpc/clnt_perr.c: Likewise.
10496 * sunrpc/clnt_raw.c: Likewise.
10497 * sunrpc/clnt_simp.c: Likewise.
10498 * sunrpc/key_call.c: Likewise.
10499 * sunrpc/rpc_common.c: Likewise.
10500 * sunrpc/rpc_main.c: Likewise.
10501 * sunrpc/rpc_thread.c: Likewise.
10502 * sunrpc/svc.c: Likewise.
10503 * sunrpc/svc_raw.c: Likewise.
10504 * sunrpc/svc_simple.c: Likewise.
10505 * sumrpc/svcauth_des.c: Likewise.
10506
10507 2018-06-26 Florian Weimer <fweimer@redhat.com>
10508
10509 * libio/Makefile (tests-internal): Add tst-vtables,
10510 tst-vtables-interposed.
10511 * libio/tst-vtables.c: New file.
10512 * libio/tst-vtables-common.c: Likewise.
10513 * libio/tst-vtables-interposed.c: Likewise.
10514
10515 2018-06-26 Florian Weimer <fweimer@redhat.com>
10516
10517 * support/support_test_main.c (support_test_main): Only call
10518 setvbuf if not disables.
10519 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
10520 * support/test-driver.h (struct test_config): Add no_setvbuf member.
10521
10522 2018-06-26 Florian Weimer <fweimer@redhat.com>
10523
10524 [BZ #23313]
10525 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
10526
10527 2018-06-25 Florian Weimer <fweimer@redhat.com>
10528
10529 [BZ #18023]
10530 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10531 Use struct scratch_buffer instead of extend_alloca.
10532
10533 2018-06-25 Florian Weimer <fweimer@redhat.com>
10534
10535 [BZ #18023]
10536 * nss/getent.c (initgroups_keys): Use dynarray instead of
10537 extend_alloca.
10538
10539 2018-06-25 Florian Weimer <fweimer@redhat.com>
10540
10541 [BZ #18023]
10542 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
10543 Use struct scratch_buffer instead of extend_alloca.
10544
10545 2018-06-25 Florian Weimer <fweimer@redhat.com>
10546
10547 [BZ #18023]
10548 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
10549 back to malloc directly, without stack allocations.
10550
10551 2018-06-25 Florian Weimer <fweimer@redhat.com>
10552
10553 [BZ #18023]
10554 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
10555 of extend_alloca.
10556
10557 2018-06-25 Florian Weimer <fweimer@redhat.com>
10558
10559 [BZ #18023]
10560 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
10561 of extend_alloca.
10562 * nscd/hstcache.c (addhstbyX): Likewise.
10563 * nscd/pwdcache.c (addpwbyX): Likewise.
10564 * nscd/servicescache.c (addservbyX): Likewise.
10565
10566 2018-06-25 Florian Weimer <fweimer@redhat.com>
10567
10568 [BZ #18023]
10569 * nscd/connections.c (read_cmdline): New function.
10570 (restart): Use it. Update comment.
10571
10572 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10573
10574 [BZ #23140]
10575 * localedata/locales/csb_PL (mon): Rename to...
10576 (alt_mon): This.
10577 (abmon): Rename to...
10578 (ab_alt_mon): This.
10579 (mon): Add with proper genitive forms, copy from Wikipedia.
10580 (abmon): Likewise.
10581
10582 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10583
10584 [BZ #19485]
10585 * localedata/locales/csb_PL (mon): Fix typos:
10586 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
10587 (yesstr): Add, value is "jo".
10588 (nostr): Add, value is "nié".
10589
10590 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10591
10592 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
10593 all log1p and significand functions on m680x0.
10594 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
10595 of s_significand.c..
10596 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
10597 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
10598 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
10599 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
10600 s_log1p.c and include it..
10601
10602 2018-06-21 Vincent Chen <vincentc@andestech.com>
10603
10604 * elf/elf.h (R_NDS32_NONE): New define.
10605 (R_NDS32_32_RELA): Likewise.
10606 (R_NDS32_COPY): Likewise.
10607 (R_NDS32_GLOB_DAT): Likewise.
10608 (R_NDS32_JUMP_SLOT): Likewise.
10609 (R_NDS32_RELATIVE): Likewise.
10610 (R_NDS32_TLS_TPOFF): Likewise.
10611 (R_NDS32_TLS_DESC): Likewise.
10612
10613 2018-06-21 Mark Wielaard <mark@klomp.org>
10614
10615 * elf/elf.h (R_BPF_MAP_FD): Removed.
10616 (R_BPF_64_64, R_BPF_64_32): New.
10617
10618 2018-06-21 Florian Weimer <fweimer@redhat.com>
10619
10620 [BZ #23253]
10621 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
10622 Renamed from libc_feholdsetround_ctx.
10623 (default_libc_feresetround_ctx): Renamed from
10624 libc_feresetround_ctx.
10625 (default_libc_feholdsetround_noex_ctx): Renamed from
10626 libc_feholdsetround_noex_ctx.
10627 (default_libc_feresetround_noex_ctx): Renamed from
10628 libc_feresetround_noex_ctx.
10629 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
10630 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
10631 forwardning to the old implementations under the new names.
10632 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
10633 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
10634 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
10635 (libc_feresetround_ctx): Forward to default implements for i386
10636 and MATH_SET_BOTH_ROUNDING_MODES.
10637 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
10638 Add -DMATH_SET_BOTH_ROUNDING_MODES.
10639
10640 2018-06-20 Joseph Myers <joseph@codesourcery.com>
10641
10642 * string/tst-cmp.c: Include <libc-diag.h>.
10643 (strncmp_max): Disable -Wstringop-overflow= around call to
10644 strncmp.
10645 (strncasecmp_max): Disable -Wstringop-overflow= around call to
10646 strncasecmp.
10647
10648 * string/bug-strpbrk1.c: Include <libc-diag.h>.
10649 (main): Disable -Wunused-value around call to strpbrk.
10650 * string/bug-strspn1.c: Include <libc-diag.h>.
10651 (main): Disable -Wunused-value around call to strspn.
10652
10653 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10654 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10655
10656 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
10657 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
10658
10659 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10660
10661 * math/Makefile (libm-calls): Move s_significandF to...
10662 (gen-libm-calls): ... here.
10663 * math/s_significand_template.c: New file.
10664 * math/s_significand.c: Removed.
10665 * math/s_significandf.c: Removed.
10666 * math/s_significandl.c: Removed.
10667 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
10668 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
10669
10670 * math/e_exp2_template.c (declare_mgen_finite_alias,
10671 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
10672 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
10673 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
10674
10675 2018-06-20 Florian Weimer <fweimer@redhat.com>
10676
10677 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
10678
10679 2018-06-19 Joseph Myers <joseph@codesourcery.com>
10680
10681 [BZ #23280]
10682 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
10683 floating-point number to strtod functions rather than possibly
10684 negating result of those functions.
10685 * stdio-common/tst-scanf-round.c: New file.
10686 * stdio-common/Makefile (tests): Add tst-scanf-round.
10687 ($(objpfx)tst-scanf-round): Depend on $(libm).
10688
10689 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
10690
10691 * sysdeps/mach/hurd/localplt.data: Move to...
10692 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
10693 R_386_GLOB_DAT like on Linux i386.
10694
10695 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10696
10697 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
10698 (SHM_STAT_ANY): New macro.
10699 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
10700 (SHM_STAT_ANY): Likewise.
10701 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
10702 (SHM_STAT_ANY): Likewise.
10703 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
10704 (SHM_STAT_ANY): Likewise.
10705 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
10706 (SHM_STAT_ANY): Likewise.
10707 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
10708 (SHM_STAT_ANY): Likewise.
10709 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
10710 (SHM_STAT_ANY): Likewise.
10711 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
10712 (SHM_STAT_ANY): Likewise.
10713 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
10714 (SHM_STAT_ANY): Likewise.
10715 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
10716 (SHM_STAT_ANY): Likewise.
10717 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
10718 (SHM_STAT_ANY): Likewise.
10719 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
10720 (SHM_STAT_ANY): Likewise.
10721
10722 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
10723 (SEM_STAT_ANY): New macro.
10724 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
10725 (SEM_STAT_ANY): Likewise.
10726 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
10727 (SEM_STAT_ANY): Likewise.
10728 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
10729 (SEM_STAT_ANY): Likewise.
10730 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
10731 (SEM_STAT_ANY): Likewise.
10732 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
10733 (SEM_STAT_ANY): Likewise.
10734 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
10735 (SEM_STAT_ANY): Likewise.
10736 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
10737 (SEM_STAT_ANY): Likewise.
10738 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
10739 (SEM_STAT_ANY): Likewise.
10740 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
10741 (SEM_STAT_ANY): Likewise.
10742
10743 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
10744 (MSG_STAT_ANY): New macro.
10745 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
10746 (MSG_STAT_ANY): Likewise.
10747 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
10748 (MSG_STAT_ANY): Likewise.
10749 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
10750 (MSG_STAT_ANY): Likewise.
10751 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
10752 (MSG_STAT_ANY): Likewise.
10753 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
10754 (MSG_STAT_ANY): Likewise.
10755 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
10756 (MSG_STAT_ANY): Likewise.
10757 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
10758 (MSG_STAT_ANY): Likewise.
10759 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
10760 (MSG_STAT_ANY): Likewise.
10761 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
10762 (MSG_STAT_ANY): Likewise.
10763
10764 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10765 (MAP_TYPE): Change value to 0x2b.
10766
10767 2018-06-18 Florian Weimer <fweimer@redhat.com>
10768
10769 [BZ #15722]
10770 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
10771 socket with SOCK_CLOEXEC.
10772
10773 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10774
10775 [BZ #23303]
10776 * sysdeps/powerpc/powerpc64/le/Makefile
10777 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
10778 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
10779 (gnulib-tests): Also add $(f128-loader-link) for
10780 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
10781
10782 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10783
10784 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
10785 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
10786 of sendfile.
10787 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
10788 (sendfile64): New strong alias.
10789 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
10790 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
10791 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
10792 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
10793 attribute.
10794 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
10795 ___pthread_get_cleanup_stack.
10796 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
10797 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
10798 * mach/shortcut.awk: Make syscall stubs include
10799 <mach-shortcuts-hidden.h> and add hidden definition.
10800 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
10801 (__mach_msg): Add hidden prototype.
10802 * mach/msg.c: Include <mach.h>.
10803 (__mach_msg): Add hidden definition.
10804 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
10805 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
10806 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
10807 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
10808 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
10809 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
10810 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
10811 prototype and definition.
10812 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
10813 hidden target for _hurd_self_sigstate.
10814
10815 2018-06-15 Joseph Myers <joseph@codesourcery.com>
10816
10817 [BZ #23007]
10818 * stdlib/tst-strtod-nan-sign-main.c: New file.
10819 * stdlib/tst-strtod-nan-sign.c: Likewise.
10820 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
10821 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
10822 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
10823 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
10824 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
10825
10826 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
10827
10828 [BZ #23007]
10829 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
10830 appropriate sign.
10831
10832 2018-06-14 Florian Weimer <fweimer@redhat.com>
10833
10834 [BZ #23290]
10835 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
10836 that the result stays within the ISO-8859-1 range.
10837 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
10838 characters are defined in IBM273.
10839
10840 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10841
10842 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
10843 __mach_task_self): Remove attribute_hidden.
10844
10845 2018-06-14 Joseph Myers <joseph@codesourcery.com>
10846
10847 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
10848 ignore -Wrestrict for one test.
10849
10850 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
10851 Szabolcs Nagy <szabolcs.nagy@arm.com>
10852
10853 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
10854
10855 2018-06-14 Florian Weimer <fweimer@redhat.com>
10856
10857 * scripts/update-abilist.sh: Accept empty list of files to patch.
10858
10859 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
10860
10861 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
10862 test-xfail-check-abi-libmachuser): Add.
10863 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
10864 __libc_read and __libc_write to __read and __write.
10865 * sysdeps/hurd/include/hurd/port.h: New file.
10866 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
10867 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
10868 __thread_switch, __evc_wait): Move declarations to...
10869 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
10870 attribute_hidden.
10871 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
10872 use PLT to call _hurd_self_sigstate.
10873
10874 2018-06-13 Joseph Myers <joseph@codesourcery.com>
10875
10876 [BZ #23279]
10877 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10878 MAX_EXP as overflowing.
10879 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10880 overflow flag.
10881 (round_str): Output also whether result overflows in each rounding
10882 mode.
10883 * stdlib/tst-strtod-round-data: Add more tests.
10884 * stdlib/tst-strtod-round-data.h: Regenerated.
10885 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10886 (TEST): Handle extra arguments for overflow flags.
10887 (struct test_overflow): New type.
10888 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10889 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10890 (test_in_one_mode): Take argument with overflow information.
10891 (do_test): Update calls to test_in_one_mode.
10892
10893 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10894
10895 * elf/dl-load (_dl_dst_substitute): Correct comment.
10896 (_dl_dst_count): Likewise.
10897
10898 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
10899 lll_futex_timed_wait.
10900
10901 2018-06-12 Joseph Myers <joseph@codesourcery.com>
10902
10903 [BZ #23277]
10904 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
10905 attribute.
10906 * math/test-nan-const.c: New file.
10907 * math/Makefile (tests): Add test-nan-const.
10908 (CFLAGS-test-nan-const.c): New variable.
10909
10910 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10911
10912 * benchtests/scripts/compare_strings.py (process_results): Add
10913 funcs argument. Compare only functions which are selected.
10914 (main): Check if base function is among selected functions.
10915 Pass selected functions to process_results.
10916 (__main__): Add -f/--functions argument.
10917
10918 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
10919 Hongbo Zhang <hongbo.zhang@linaro.org>
10920
10921 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
10922 __memcpy_falkor for phecda core.
10923 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
10924 __memmove_falkor for phecda core.
10925 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
10926 __memset_falkor for phecda core.
10927 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
10928 for phecda core.
10929 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
10930 macro to identify phecda core.
10931
10932 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10933 Andreas Schwab <schwab@suse.de>
10934 Dmitry V. Levin <ldv@altlinux.org>
10935 Florian Weimer <fweimer@redhat.com>
10936
10937 [BZ #23102]
10938 [BZ #21942]
10939 [BZ #18018]
10940 [BZ #23259]
10941 CVE-2011-0536
10942 * elf/dl-dst.h: Remove DL_DST_COUNT.
10943 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
10944 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
10945 (is_dst): Comment. Support ELF gABI.
10946 (_dl_dst_count): Comment. Simplify and count DSTs.
10947 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
10948 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
10949 locals.
10950
10951 2018-06-12 Zack Weinberg <zackw@panix.com>
10952
10953 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10954 * sysdeps/unix/sysv/linux/dl-sysdep.c
10955 Include not-cancel.h. Use __close_nocancel instead of __close,
10956 __open64_nocancel instead of __open, __read_nocancel instead of
10957 __libc_read, and __write_nocancel instead of __libc_write.
10958
10959 * csu/check_fds.c (check_one_fd)
10960 * sysdeps/posix/fdopendir.c (__fdopendir)
10961 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10962 instead of __fcntl and/or __libc_fcntl.
10963
10964 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10965 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10966 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10967 Use __open64_nocancel instead of __open_nocancel.
10968
10969 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10970 hidden_proto declarations to the end and issue them if either
10971 IS_IN(libc) or IS_IN(rtld).
10972 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10973 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10974 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10975 read_nocancel, waitpid_nocancel, write_nocancel.
10976
10977 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10978 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10979 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10980
10981 * nptl/pt-fcntl.c: New file.
10982 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10983 (libpthread-routines): Add pt-fcntl.
10984 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10985 (__libc_fcntl): Remove attribute_hidden.
10986 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10987 __fcntl_nocancel_adjusted, not fcntl_common.
10988 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10989 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10990 to fcntl_nocancel.c.
10991 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10992 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10993 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10994 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10995
10996 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10997 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10998 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10999 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
11000 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
11001 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
11002 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
11003 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
11004 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
11005 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
11006 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
11007 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
11008 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
11009 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
11010 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
11011 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
11012 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
11013 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
11014 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
11015 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
11016
11017 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
11018 libpthread-routines.
11019 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
11020 defines nothing.
11021
11022 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
11023 __libc_read, and __write instead of __libc_write. Define
11024 __open64 in addition to __open.
11025
11026 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
11027
11028 [BZ #23250]
11029 [BZ #10686]
11030 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
11031 to _private_tm[3] and add __glibc_reserved2.
11032 Add _Static_assert of offset of __private_ss == 0x30.
11033 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
11034 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
11035
11036 2018-06-12 Florian Weimer <fweimer@redhat.com>
11037
11038 x86: Make strncmp usable from rtld.
11039 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
11040 __strncmp_ia32 if in libc (and not in rtld).
11041 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
11042 strncmp if not in libc (and not to __strncmp_sse2).
11043
11044 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
11045
11046 [BZ #23140]
11047 * localedata/locales/gd_GB (mon): Rename to...
11048 (alt_mon): This.
11049 (mon): Import from CLDR (genitive case).
11050 * localedata/locales/hsb_DE (mon): Rename to...
11051 (alt_mon): This.
11052 (mon): Import from CLDR (genitive case).
11053 * localedata/locales/wa_BE (mon): Rename to...
11054 (alt_mon): This.
11055 (mon): Add, fill with the proper genitive forms, but CLDR data
11056 is incomplete; completed according to the comments in this file.
11057 (d_t_fmt): Do not use "di" before the month name, no longer needed.
11058
11059 * localedata/locales/wa_BE (country_name): Reword
11060 "Beljike" -> "Beldjike".
11061
11062 2018-06-11 Joseph Myers <joseph@codesourcery.com>
11063
11064 [BZ #23272]
11065 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
11066 cases of non-finite arguments.
11067 * math/libm-test-fma.inc (fma_test_data): Add more tests.
11068
11069 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
11070
11071 [BZ #23174]
11072 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
11073
11074 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11075
11076 [BZ #23264]
11077 * include/unistd.h (__execvpex): New prototype.
11078 * posix/Makefile (tests): Add tst-spawn4.
11079 (tests-internal): Add tst-spawn4-compat.
11080 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
11081 * posix/tst-spawn4-compat.c: New file.
11082 * posix/tst-spawn4.c: Likewise.
11083 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
11084 binaries as shell scripts.
11085 * sysdeps/posix/spawni.c (__spawni): Likewise.
11086
11087 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
11088
11089 [BZ #23145]
11090 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
11091 ($(all-built-dso:=.dynsym): New target.
11092 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
11093 ($(objpfx)check-initfini.out): New target.
11094 (generated): Add check-initfini.out.
11095 * scripts/check-initfini.awk: New file.
11096 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
11097 (_fini): Likewise.
11098 * sysdeps/alpha/crti.S (_init): Mark as hidden.
11099 (_fini): Likewise.
11100 * sysdeps/arm/crti.S (_init): Mark as hidden.
11101 (_fini): Likewise.
11102 * sysdeps/hppa/crti.S (_init): Mark as hidden.
11103 (_fini): Likewise.
11104 * sysdeps/i386/crti.S (_init): Mark as hidden.
11105 (_fini): Likewise.
11106 * sysdeps/ia64/crti.S (_init): Mark as hidden.
11107 (_fini): Likewise.
11108 * sysdeps/m68k/crti.S (_init): Mark as hidden.
11109 (_fini): Likewise.
11110 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
11111 (_fini): Likewise.
11112 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
11113 (_fini): Likewise.
11114 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
11115 (_fini): Likewise.
11116 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
11117 (_fini): Likewise.
11118 * sysdeps/nios2/crti.S (_init): Mark as hidden.
11119 (_fini): Likewise.
11120 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
11121 (_fini): Likewise.
11122 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
11123 (_fini): Likewise.
11124 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
11125 (_fini): Likewise.
11126 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
11127 (_fini): Likewise.
11128 * sysdeps/sh/crti.S (_init): Mark as hidden.
11129 (_fini): Likewise.
11130 * sysdeps/sparc/crti.S (_init): Mark as hidden.
11131 (_fini): Likewise.
11132 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
11133 (_fini): Likewise.
11134
11135 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11136
11137 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
11138 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
11139 and TF redirection to KFtype and KF only when the default
11140 long double type is not the IEEE 128-bit floating point type.
11141
11142 2018-06-05 Joseph Myers <joseph@codesourcery.com>
11143
11144 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
11145 macro.
11146 (HWCAP_USCAT): Likewise.
11147 (HWCAP_ILRCPC): Likewise.
11148 (HWCAP_FLAGM): Likewise.
11149 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
11150 Increase to 28.
11151 (_dl_aarch64_cap_flags): Add new flag names.
11152
11153 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
11154 (MAP_FIXED_NOREPLACE): New macro.
11155 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
11156 (MAP_FIXED_NOREPLACE): Likewise.
11157 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
11158 (MAP_FIXED_NOREPLACE): Likewise.
11159 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
11160 (MAP_FIXED_NOREPLACE): Likewise.
11161 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
11162 (MAP_FIXED_NOREPLACE): Likewise.
11163 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
11164 (MAP_FIXED_NOREPLACE): Likewise.
11165 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
11166 (MAP_FIXED_NOREPLACE): Likewise.
11167 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
11168 (MAP_FIXED_NOREPLACE): Likewise.
11169 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
11170 (MAP_FIXED_NOREPLACE): Likewise.
11171 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
11172 (MAP_FIXED_NOREPLACE): Likewise.
11173 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
11174 (MAP_FIXED_NOREPLACE): Likewise.
11175 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
11176 (MAP_FIXED_NOREPLACE): Likewise.
11177 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
11178 (MAP_FIXED_NOREPLACE): Likewise.
11179 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
11180 (MAP_FIXED_NOREPLACE): Likewise.
11181 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
11182 (MAP_FIXED_NOREPLACE): Likewise.
11183
11184 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11185 version to 4.17.
11186
11187 2018-06-04 Joseph Myers <joseph@codesourcery.com>
11188
11189 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11190 version to 4.17
11191
11192 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
11193
11194 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
11195 int.
11196 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
11197
11198 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11199
11200 * benchtests/scripts/compare_string.py: (process_results) Catch
11201 exception in non-existent base_func and catch exception in
11202 non-existent attribute.
11203 (parse_file) Catch exception if input file does not exist.
11204
11205 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11206
11207 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
11208 options to avoid diff calculation and omit header, respectively.
11209 (main): process --no-diff and --no-header
11210
11211 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11212 H.J. Lu <hongjiu.lu@intel.com>
11213
11214 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11215 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
11216 wcsncmp-sse2.
11217 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
11218 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
11219 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
11220 and __wcsncmp_sse2.
11221 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
11222 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
11223 AVX unaligned load is fast and vzeroupper is preferred.
11224 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
11225 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
11226 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
11227 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
11228 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
11229 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
11230 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
11231 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
11232 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
11233 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
11234 is undefined.
11235
11236 2018-06-01 Florian Weimer <fweimer@redhat.com>
11237
11238 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
11239 configuring with --disable-multi-arch, building with
11240 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
11241 Haswell-era CPU.
11242
11243 2018-06-01 Florian Weimer <fweimer@redhat.com>
11244
11245 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
11246 results from building with “-march=x86-64 -mtune=generic
11247 -mfpmath=sse” and running on a Haswell-era CPU.
11248
11249 2018-06-01 Joseph Myers <joseph@codesourcery.com>
11250
11251 [BZ #18473]
11252 * soft-fp/sqrttf2.c: Remove file.
11253 * soft-fp/sqrtdf2.c: Move to ....
11254 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
11255 <shlib-compat.h>.
11256 (__sqrtdf2): Make conditional on
11257 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11258 symbol.
11259 * soft-fp/sqrtsf2.c: Move to ....
11260 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
11261 <shlib-compat.h>.
11262 (__sqrtsf2): Make conditional on
11263 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11264 symbol.
11265 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
11266 (gcc-double-routines): Remove sqrtdf2.
11267 (gcc-quad-routines): Remove sqrttf2.
11268 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11269 Do not filter out sqrtsf2 and sqrtdf2.
11270 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
11271 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
11272
11273 2018-06-01 Florian Weimer <fweimer@redhat.com>
11274
11275 * sysdeps/generic/libcidn.abilist: Remove file.
11276
11277 2018-06-01 Florian Weimer <fweimer@redhat.com>
11278
11279 [BZ #23236]
11280 * libio/strfile.h (struct _IO_str_fields): Rename members to
11281 discourage their use and add comment.
11282 (_IO_STR_DYNAMIC): Remove unused macro.
11283 * libio/strops.c (_IO_str_init_static_internal): Do not use
11284 callback pointers. Call malloc and free.
11285 (_IO_str_overflow): Do not use callback pointers. Call malloc
11286 and free.
11287 (enlarge_userbuf): Likewise.
11288 (_IO_str_finish): Call free.
11289 * libio/wstrops.c (_IO_wstr_init_static): Initialize
11290 _allocate_buffer_unused.
11291 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
11292 and free.
11293 (enlarge_userbuf): Likewise.
11294 (_IO_wstr_finish): Call free.
11295 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
11296 _allocate_buffer_unused, _free_buffer_unused.
11297 * libio/memstream.c (__open_memstream): Likewise.
11298 * libio/vasprintf.c (_IO_vasprintf): Likewise.
11299 * libio/wmemstream.c (open_wmemstream): Likewise.
11300
11301 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
11302
11303 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
11304 AMD Ryzen 7 1800X.
11305
11306 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11307
11308 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
11309 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
11310 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
11311 New file.
11312 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
11313 Likewise.
11314 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
11315
11316 2018-05-29 Florian Weimer <fweimer@redhat.com>
11317
11318 * support/Makefile (libsupport-routines): Add
11319 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
11320 xpthread_barrierattr_setpshared.
11321 * support/xpthread_barrierattr_destroy.c: New file.
11322 * support/xpthread_barrierattr_init.c: Likewise.
11323 * support/xpthread_barrierattr_setpshared.c: Likewise.
11324
11325 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
11326
11327 [BZ #23206]
11328 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
11329 _r_debug and update DT_DEBUG for debugger.
11330
11331 2018-05-29 Florian Weimer <fweimer@redhat.com>
11332
11333 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
11334 (tst-strtod5i.out): Likewise.
11335
11336 2018-05-25 Joseph Myers <joseph@codesourcery.com>
11337
11338 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
11339 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
11340 (sparc64-quad-routines): New variable. Moved from ....
11341 [$(subdir) = soft-fp] (sysdep_routines): Add
11342 $(sparc64-quad-routines). Moved from ....
11343 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
11344 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
11345 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
11346 moved from ....
11347 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
11348 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
11349 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
11350 * sysdeps/sparc/sparc64/qp_add.c: ... here.
11351 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
11352 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
11353 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
11354 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
11355 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
11356 * sysdeps/sparc/sparc64/qp_div.c: ... here.
11357 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
11358 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
11359 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
11360 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
11361 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
11362 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
11363 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
11364 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
11365 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
11366 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
11367 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
11368 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
11369 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
11370 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
11371 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
11372 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
11373 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
11374 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
11375 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
11376 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
11377 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
11378 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
11379 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
11380 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
11381 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
11382 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
11383 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
11384 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
11385 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
11386 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
11387 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
11388 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
11389 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
11390 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
11391 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
11392 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
11393 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
11394 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
11395 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
11396 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
11397 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
11398 * sysdeps/sparc/sparc64/qp_util.c: ... here.
11399 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
11400 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
11401 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
11402 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
11403 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
11404 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
11405
11406 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
11407 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
11408 (sparc32-quad-routines): New variable. Moved from ....
11409 [$(subdir) = soft-fp] (sysdep_routines): Add
11410 $(sparc32-quad-routines). Moved from ....
11411 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
11412 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
11413 moved from ....
11414 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
11415 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
11416 * sysdeps/sparc/sparc32/q_add.c: ... here.
11417 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
11418 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
11419 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
11420 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
11421 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
11422 * sysdeps/sparc/sparc32/q_div.c: ... here.
11423 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
11424 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
11425 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
11426 * sysdeps/sparc/sparc32/q_feq.c: ... here.
11427 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
11428 * sysdeps/sparc/sparc32/q_fge.c: ... here.
11429 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
11430 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
11431 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
11432 * sysdeps/sparc/sparc32/q_fle.c: ... here.
11433 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
11434 * sysdeps/sparc/sparc32/q_flt.c: ... here.
11435 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
11436 * sysdeps/sparc/sparc32/q_fne.c: ... here.
11437 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
11438 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
11439 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
11440 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
11441 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
11442 * sysdeps/sparc/sparc32/q_mul.c: ... here.
11443 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
11444 * sysdeps/sparc/sparc32/q_neg.c: ... here.
11445 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
11446 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
11447 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
11448 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
11449 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
11450 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
11451 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
11452 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
11453 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
11454 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
11455 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
11456 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
11457 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
11458 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
11459 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
11460 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
11461 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
11462 * sysdeps/sparc/sparc32/q_sub.c: ... here.
11463 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
11464 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
11465 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
11466 * sysdeps/sparc/sparc32/q_util.c: ... here.
11467 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
11468 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
11469 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
11470 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
11471
11472 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11473 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11474
11475 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
11476 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
11477 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
11478 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
11479
11480 2018-05-24 Joseph Myers <joseph@codesourcery.com>
11481
11482 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
11483 powerpc/soft-fp.
11484 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
11485 Likewise.
11486 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
11487 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
11488
11489 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11490
11491 [BZ #23171]
11492 * math/math.h [C++] (iseqsig): Fix parameter type for the long
11493 double version.
11494
11495 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11496
11497 * sysdeps/sh/Implies: Remove sh/soft-fp.
11498 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
11499 * sysdeps/sh/sfp-machine.h: ... here.
11500
11501 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11502
11503 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11504 (__mempcpy_erms): Skip zero length.
11505 (__memmove_erms): Likewise.
11506 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11507 (__memset_erms): Likewise.
11508
11509 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11510
11511 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
11512 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11513 Add functions moved from ....
11514 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
11515 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
11516 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
11517 from ....
11518 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
11519 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
11520 * sysdeps/alpha/e_sqrtl.c: ... here.
11521 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
11522 * sysdeps/alpha/local-soft-fp.h: ... here.
11523 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
11524 * sysdeps/alpha/ots_add.c: ... here.
11525 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
11526 * sysdeps/alpha/ots_cmp.c: ... here.
11527 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
11528 * sysdeps/alpha/ots_cmpe.c: ... here.
11529 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
11530 * sysdeps/alpha/ots_cvtqux.c: ... here.
11531 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
11532 * sysdeps/alpha/ots_cvtqx.c: ... here.
11533 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
11534 * sysdeps/alpha/ots_cvttx.c: ... here.
11535 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
11536 * sysdeps/alpha/ots_cvtxq.c: ... here.
11537 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
11538 * sysdeps/alpha/ots_cvtxt.c: ... here.
11539 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
11540 * sysdeps/alpha/ots_div.c: ... here.
11541 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
11542 * sysdeps/alpha/ots_mul.c: ... here.
11543 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
11544 * sysdeps/alpha/ots_nintxq.c: ... here.
11545 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
11546 * sysdeps/alpha/ots_sub.c: ... here.
11547 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
11548 * sysdeps/alpha/sfp-machine.h: ... here.
11549
11550 2018-05-23 Florian Weimer <fweimer@redhat.com>
11551
11552 [BZ #19728]
11553 [BZ #19729]
11554 [BZ #22247]
11555 CVE-2016-6261
11556 CVE-2016-6263
11557 CVE-2017-14062
11558 Switch to extern IDNA implementation (libidn2).
11559 * libidn: Remove subdirectory.
11560 * LICENSES: Do not mention licensing conditions for the removed
11561 libidn code.
11562 * config.h.in (HAVE_LIBIDN): Remove.
11563 * include/dlfcn.h (__libc_dlopen): Update comment.
11564 * include/idna.h: Remove file.
11565 * inet/Makefile (routines): Add idna.
11566 (tests-static, tests-internal): Add tst-idna_name_classify.
11567 (LOCALES): Generate locales for tests.
11568 (tst-idna_name_classify.out): Depend on generated locales.
11569 * inet/idna_name_classify.c: New file.
11570 * inet/tst-idna_name_classify.c: Likewise.
11571 * inet/net-internal.h (__idna_to_dns_encoding)
11572 (__idna_from_dns_encoding): Declare.
11573 * inet/net-internal.h (enum idna_name_classification): Define.
11574 (__idna_name_classify): Declare.
11575 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
11576 __idna_from_dns_encoding.
11577 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
11578 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
11579 name as a fallback in case of encoding errors.
11580 (getnameinfo): Use DEPRECATED_NI_IDN.
11581 * inet/idna.c: New file.
11582 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
11583 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
11584 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
11585 (modules-names): Add tst-no-libidn2.
11586 (extra-test-objs): Add tst-no-libidn2.os.
11587 (LDFLAGS-tst-no-libidn2.so): Set soname.
11588 (LOCALES): Set, and generate locales.
11589 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
11590 (tst-resolv-ai_idn-latin1): Likewise.
11591 (tst-resolv-ai_idn-nolibidn2): Likewise.
11592 (tst-resolv-ai_idn.out): Depend on locales.
11593 (tst-resolv-ai_idn-latin1.out): Depend on locales.
11594 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
11595 tst-no-libidn2.so.
11596 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
11597 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
11598 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
11599 * resolv/tst-resolv-ai_idn.c: New file.
11600 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
11601 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
11602 * resolv/tst-no-libidn2.c: Likewise.
11603 * support/support_format_addrinfo.c (format_ai_flags): Do not
11604 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
11605 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
11606 (gaih_inet): Call __idna_to_dns_encoding and
11607 __idna_from_dns_encoding, and use the original (punycode) name if
11608 __idna_from_dns_encoding fails due to an encoding error.
11609 (getaddrinfo): Use DEPRECATED_AI_IDN.
11610 * sysdeps/unix/inet/Subdirs (libidn): Remove.
11611 * sysdeps/unix/inet/configure: Remove file.
11612 * sysdeps/unix/inet/configure.ac: Likewise.
11613
11614 2018-05-23 Florian Weimer <fweimer@redhat.com>
11615
11616 Implement allocate_once.
11617 * include/allocate_once.h: New file.
11618 * misc/allocate_once.c: Likewise.
11619 * misc/tst-allocate_once.c: Likewise.
11620 * misc/Makefile (routines): Add allocate_once.
11621 (tests-internal): Add tst-allocate_once.
11622 (generated): Add tst-allocate_once.mtrace,
11623 tst-allocate_once-mem.out.
11624 (tests-special): Add tst-allocate_once-mem.out.
11625 (tst-allocate_once-ENV): Set MALLOC_TRACE.
11626 (tst-allocate_once-mem.out): Call mtrace.
11627 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
11628
11629 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11630
11631 [BZ #23196]
11632 * string/test-memcpy.c (do_test1): New function.
11633 (test_main): Call it.
11634
11635 2018-05-23 Andreas Schwab <schwab@suse.de>
11636
11637 [BZ #23196]
11638 CVE-2018-11237
11639 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
11640 (L(preloop_large)): Save initial destination pointer in %r11 and
11641 use it instead of %rax after the loop.
11642 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
11643
11644 2018-05-22 Joseph Myers <joseph@codesourcery.com>
11645
11646 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
11647 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
11648 -I../soft-fp. Moved from ....
11649 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
11650 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
11651 * sysdeps/aarch64/e_sqrtl.c: ... here.
11652 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
11653 * sysdeps/aarch64/sfp-machine.h: ... here.
11654
11655 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
11656 -Wmaybe-uninitialized around access to fq[0].
11657 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11658 Likewise.
11659
11660 [BZ #18471]
11661 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
11662 aliases for non-libc case of versioned symbols.
11663 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
11664 (llseek): Define as compat symbol if
11665 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
11666 with link warning.
11667 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
11668 Make into a compat symbol, disabled for minimum symbol version
11669 GLIBC_2.28 and later.
11670 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
11671
11672 2018-05-22 Florian Weimer <fweimer@redhat.com>
11673
11674 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
11675 not add -mpreferred-stack-boundary=4.
11676 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
11677 (stack-align-test-flags): Likewise.
11678 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
11679 Likewise.
11680 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
11681 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
11682 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
11683 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
11684 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
11685 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
11686 (CFLAGS-tst-align2.c): Likewise.
11687
11688 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11689
11690 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
11691 (index_arch_Prefer_FSRM): Likewise.
11692 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
11693 Also check Prefer_FSRM.
11694 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
11695 Also return OPTIMIZE (erms) for Prefer_FSRM.
11696
11697 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11698
11699 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
11700 (index_cpu_FSRM): Likewise.
11701 (reg_FSRM): Likewise.
11702
11703 2018-05-18 Joseph Myers <joseph@codesourcery.com>
11704
11705 * math/gen-tgmath-tests.py: Import sys.
11706 (Tests.__init__): Initialize macros_seen.
11707 (Tests.add_tests): Add macro to macros_seen. Only generate tests
11708 if requested to do so for this macro.
11709 (Tests.add_all_tests): Take argument for macro for which to
11710 generate tests.
11711 (Tests.check_macro_list): New function.
11712 (main): Handle check-list argument and argument specifying macro
11713 for which to generate tests.
11714 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
11715 [PYTHON] (tgmath3-macro-tests): Likewise.
11716 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
11717 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
11718 not test-tgmath3.c.
11719 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
11720 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
11721 to CFLAGS.
11722 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
11723 [PYTHON] ($(foreach
11724 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
11725 rule.
11726 [PYTHON] (tests-special): Add
11727 $(objpfx)test-tgmath3-macro-list.out.
11728 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
11729
11730 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
11731 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
11732 later.
11733
11734 [BZ #22639]
11735 * time/tzset.c (SECSPERDAY): Cast to time_t.
11736 * time/tst-y2039.c: New file.
11737 * time/Makefile (tests): Add tst-y2039.
11738
11739 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11740
11741 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11742 (PREFETCH_ONE_SET): Remove duplicate line.
11743
11744 2018-05-17 Florian Weimer <fweimer@redhat.com>
11745
11746 * sysdeps/generic/math-type-macros-double.h: Include
11747 <math-nan-payload-double.h> after <libm-alias-double.h>.
11748 * sysdeps/generic/math-type-macros-float.h: Include
11749 <math-nan-payload-float.h> after <libm-alias-float.h>.
11750 * sysdeps/generic/math-type-macros-float128.h: Include
11751 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
11752 * sysdeps/generic/math-type-macros-ldouble.h: Include
11753 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
11754
11755 2018-05-17 Andreas Schwab <schwab@suse.de>
11756
11757 * resolv/res_send.c (__res_context_send): Don't set errno when
11758 returing error after malloc failure.
11759
11760 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
11761
11762 * nptl/allocatestack.c (allocate_stack): Remove the
11763 !__ASSUME_PRIVATE_FUTEX paths.
11764 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
11765 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
11766 Likewise.
11767 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
11768 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11769 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11770 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11771 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
11772 !__ASSUME_PRIVATE_FUTEX path.
11773 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
11774 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
11775 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11776 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
11777 !__ASSUME_PRIVATE_FUTEX macros.
11778 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
11779 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
11780 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
11781 * sysdeps/unix/sysv/linux/kernel-features.h
11782 (__ASSUME_PRIVATE_FUTEX): Removed.
11783
11784 2018-05-17 Joseph Myers <joseph@codesourcery.com>
11785
11786 * math/Makefile (libm-narrow-fns): Add div.
11787 (libm-test-funcs-narrow): Likewise.
11788 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
11789 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
11790 * math/gen-auto-libm-tests.c (test_functions): Add div.
11791 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
11792 (NARROW_DIV_ROUND_TO_ODD): Likewise.
11793 (NARROW_DIV_TRIVIAL): Likewise.
11794 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
11795 macro.
11796 (__ddivl): Likewise.
11797 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
11798 ddiv.
11799 (CFLAGS-nldbl-ddiv.c): New variable.
11800 (CFLAGS-nldbl-fdiv.c): Likewise.
11801 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11802 __nldbl_ddivl.
11803 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
11804 prototype.
11805 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
11806 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
11807 * math/auto-libm-test-in: Add tests of div.
11808 * math/auto-libm-test-out-narrow-div: New generated file.
11809 * math/libm-test-narrow-div.inc: New file.
11810 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
11811 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
11812 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
11813 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
11814 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
11815 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
11816 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
11817 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
11818 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
11819 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
11820 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
11821 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
11822 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
11823 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
11824 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
11825 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
11826 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
11827 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
11828 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11829 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11830 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11831 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11832 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11833 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11834 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11835 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11836 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11837 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11838 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11839 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11840 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11841 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11842 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11843 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11844 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11845 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11846 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11847 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11848 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11849 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11850 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11851 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11852 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11853 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11854
11855 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11856
11857 [BZ #23178]
11858 * nscd/nscd-client.h (sendfileall): Remove prototype.
11859 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
11860 (handle_request): Use writeall instead of sendfileall.
11861 * nscd/aicache.c (addhstaiX): Likewise.
11862 * nscd/grpcache.c (cache_addgr): Likewise.
11863 * nscd/hstcache.c (cache_addhst): Likewise.
11864 * nscd/initgrcache.c (addinitgroupsX): Likewise.
11865 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
11866 * nscd/pwdcache.c (cache_addpw): Likewise.
11867 * nscd/servicescache.c (cache_addserv): Likewise.
11868 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
11869 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
11870 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
11871 Remove define.
11872
11873 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
11874
11875 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11876 Include <string/strncat.c>.
11877 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11878 alias.
11879 (__GI___strncat): New hidden alias.
11880
11881 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11882
11883 * sysdeps/mips/mips32/libm-test-ulps: Update.
11884 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11885
11886 2018-05-16 Florian Weimer <fweimer@redhat.com>
11887
11888 * support/Makefile (libsupport-routines): Add support_quote_blob,
11889 support_test_compare_blob.
11890 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11891 * support/check.h (TEST_COMPARE_BLOB): Define.
11892 (support_test_compare_blob): Declare.
11893 * support/support.h (support_quote_blob): Declare.
11894 * support/support_quote_blob.c: New file.
11895 * support/support_test_compare_blob.c: Likewise.
11896 * support/tst-support_quote_blob.c: Likewise.
11897 * support/tst-test_compare_blob.c: Likewise.
11898
11899 2018-05-16 Florian Weimer <fweimer@redhat.com>
11900
11901 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
11902 of <strtod_nan_double.h>.
11903 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
11904 instead of SET_MANTISSA.
11905 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
11906 of include <strtod_nan_float.h>.
11907 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
11908 instead of <strtod_nan_ldouble.h>.
11909 * stdlib/strtod_nan_double.h: Move to ...
11910 * sysdeps/generic/math-nan-payload-double.h: ... here.
11911 (FLOAT): Remove definition.
11912 (SET_MANTISSA): Rename to ...
11913 (SET_NAN_PAYLOAD): ... this.
11914 * stdlib/strtod_nan_float.h: Move to ...
11915 * sysdeps/generic/math-nan-payload-float.h: ... here.
11916 (FLOAT): Remove definition.
11917 (SET_MANTISSA): Rename to ...
11918 (SET_NAN_PAYLOAD): ... this.
11919 * sysdeps/generic/math-type-macros-double.h: Include
11920 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
11921 instead of <math-svid-compat.h>.
11922 * sysdeps/generic/math-type-macros-float.h: Include
11923 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
11924 instead of <math-svid-compat.h>.
11925 * sysdeps/generic/math-type-macros-float128.h: Include
11926 <math-nan-payload-float128.h>.
11927 * sysdeps/generic/math-type-macros-ldouble.h: Include
11928 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
11929 instead of <math-svid-compat.h>.
11930 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
11931 check for definition.
11932 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
11933 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
11934 Include <ieee754_float128.h>.
11935 (FLOAT): Remove definition.
11936 (SET_MANTISSA): Rename to ...
11937 (SET_NAN_PAYLOAD): ... this.
11938 * sysdeps/ieee754/float128/strtof128_nan.c: Include
11939 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
11940 Do not include <float128_private.h>.
11941 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
11942 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
11943 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
11944 (FLOAT): Remove definition.
11945 (SET_MANTISSA): Rename to ...
11946 (SET_NAN_PAYLOAD): ... this.
11947 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
11948 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
11949 (FLOAT): Remove definition.
11950 (SET_MANTISSA): Rename to ...
11951 (SET_NAN_PAYLOAD): ... this.
11952 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11953 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11954 (FLOAT): Remove definition.
11955 (SET_MANTISSA): Rename to ...
11956 (SET_NAN_PAYLOAD): ... this.
11957 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11958 of "../stdlib/strtod_nan_double.h".
11959 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11960 of "../stdlib/strtod_nan_float.h".
11961 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11962 instead of "../stdlib/strtod_nan_ldouble.h".
11963 * manual/arith.texi (Parsing of Floats): Adjust comment.
11964
11965 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11966
11967 * math/Makefile (libm-narrow-fns): Add mul.
11968 (libm-test-funcs-narrow): Likewise.
11969 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11970 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11971 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11972 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11973 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11974 (NARROW_MUL_TRIVIAL): Likewise.
11975 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11976 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11977 macro.
11978 (__dmull): Likewise.
11979 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11980 dmul.
11981 (CFLAGS-nldbl-dmul.c): New variable.
11982 (CFLAGS-nldbl-fmul.c): Likewise.
11983 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11984 __nldbl_dmull.
11985 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11986 prototype.
11987 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11988 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11989 * math/auto-libm-test-in: Add tests of mul.
11990 * math/auto-libm-test-out-narrow-mul: New generated file.
11991 * math/libm-test-narrow-mul.inc: New file.
11992 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11993 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11994 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11995 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11996 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11997 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11998 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11999 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
12000 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
12001 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
12002 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
12003 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
12004 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
12005 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
12006 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
12007 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
12008 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
12009 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
12010 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12011 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12012 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12013 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12014 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12015 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12016 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12017 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12018 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12019 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12020 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12021 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12022 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12023 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12024 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12025 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
12026 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12027 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12028 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12029 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12030 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12031 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12032 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12033 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12034 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12035 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12036
12037 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12038
12039 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
12040 with *%eax in call.
12041
12042 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12043
12044 * sysdeps/i386/ldsodefs.h: Removed.
12045 * sysdeps/x86_64/ldsodefs.h: Moved to ...
12046 * sysdeps/x86/ldsodefs.h: This.
12047 (La_i86_regs): New.
12048 (La_i86_retval): Likewise.
12049 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
12050 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
12051
12052 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12053
12054 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
12055 unnecessary testl.
12056
12057 2018-05-13 Alan Modra <amodra@gmail.com>
12058
12059 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
12060 R_PARISC_TLS_DTPOFF32 reloc addend.
12061
12062 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12063
12064 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
12065 * math/math.h: Restrict the prototype definition for the functions
12066 issignaling(_Float128) and iszero(_Float128); and template
12067 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
12068 __HAVE_FLOAT128_UNLIKE_LDBL.
12069 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
12070 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
12071 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
12072 __f128() constants; define the type _Float128 as long double;
12073 and reuse long double in __CFLOAT128.
12074
12075 2018-05-11 Joseph Myers <joseph@codesourcery.com>
12076
12077 * sysdeps/generic/math_private.h: Do not include
12078 <math-barriers.h>.
12079 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
12080 <math_private.h>.
12081 * math/fromfp.h: Include <math-barriers.h>.
12082 * math/math-narrow.h: Likewise.
12083 * math/s_nextafter.c: Likewise.
12084 * math/s_nexttowardf.c: Likewise.
12085 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
12086 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
12087 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
12088 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
12089 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12090 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12091 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12092 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12093 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12094 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12095 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12096 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12097 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12098 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12099 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12100 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12101 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12102 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12103 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12104 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12105 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12106 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12107 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12108 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12109 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12110 * sysdeps/ieee754/k_standardl.c: Likewise.
12111 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12112 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12113 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12114 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12115 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12116 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12117 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12118 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12119 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12120 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12121 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12122 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12123 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12124 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12125 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12126 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12127 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12128 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12129 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12130 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12131 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
12132 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
12133
12134 2018-05-11 Florian Weimer <fweimer@redhat.com>
12135
12136 Use 64-bit epoch values in the time zone file parser.
12137 * include/time.h (internal_time_t): Define.
12138 (__tzfile_compute): Use it.
12139 * time/tzfile.c (struct leap): Use internal_time_t for epoch
12140 member.
12141 (transitions): Switch to internal_time_t.
12142 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
12143 types.
12144 (__tzfile_compute): Use internal_time_t for timer argument. Check
12145 for truncation before calling __offtime.
12146
12147 2018-05-11 Florian Weimer <fweimer@redhat.com>
12148
12149 [BZ #23166]
12150 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
12151 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
12152 Likewise.
12153 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
12154 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
12155 export without --enable-obsolete-rpc.
12156 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
12157 symbol. This should not have been exported, ever.
12158
12159 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
12160
12161 [BZ #23152]
12162 * localedata/locales/gd_GB (abmon): Fix typo in May:
12163 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
12164
12165 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
12166
12167 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12168 Use multiple registers to copy data in loop tail.
12169
12170 * sysdeps/aarch64/multiarch/memmove_falkor.S
12171 (__memmove_falkor): Use multiple registers to move data in
12172 loop tail.
12173
12174 2018-05-10 Joseph Myers <joseph@codesourcery.com>
12175
12176 * math/math-underflow.h: New file.
12177 * sysdeps/generic/math_private.h: Do not include <float.h>.
12178 (fabs_tg): Remove macro. Moved to math-underflow.h.
12179 (min_of_type_f): Likewise.
12180 (min_of_type_): Likewise.
12181 (min_of_type_l): Likewise.
12182 (min_of_type_f128): Likewise.
12183 (min_of_type): Likewise.
12184 (math_check_force_underflow): Likewise.
12185 (math_check_force_underflow_nonneg): Likewise.
12186 (math_check_force_underflow_complex): Likewise.
12187 * math/e_exp2_template.c: Include <math-underflow.h>.
12188 * math/k_casinh_template.c: Likewise.
12189 * math/s_catan_template.c: Likewise.
12190 * math/s_catanh_template.c: Likewise.
12191 * math/s_ccosh_template.c: Likewise.
12192 * math/s_cexp_template.c: Likewise.
12193 * math/s_clog10_template.c: Likewise.
12194 * math/s_clog_template.c: Likewise.
12195 * math/s_csin_template.c: Likewise.
12196 * math/s_csinh_template.c: Likewise.
12197 * math/s_csqrt_template.c: Likewise.
12198 * math/s_ctan_template.c: Likewise.
12199 * math/s_ctanh_template.c: Likewise.
12200 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12201 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12202 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12203 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12204 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12205 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12206 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12207 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12208 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12209 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12210 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12211 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12212 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12213 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12214 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12215 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12216 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12217 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12218 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12219 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12220 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12221 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12222 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12223 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12224 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12225 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12226 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12227 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12228 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12229 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12230 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12231 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12232 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12233 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12234 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12235 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12236 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12237 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12238 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12239 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12240 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12241 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12242 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12243 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12244 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12245 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12246 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12247 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12248 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12249 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12250 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12251 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
12252 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12253 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
12254 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12255 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12256 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12257 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12258 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12259 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12260 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12261 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12262 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12263 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12264 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12265 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12266 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12267 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
12268 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12269 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12270 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12271 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12272 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12273 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
12274 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12275 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12276 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12277 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12278 * sysdeps/x86/fpu/powl_helper.c: Likewise.
12279 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
12280 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
12281 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
12282 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
12283 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
12284
12285 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12286
12287 * sysdeps/generic/math-barriers.h: New file.
12288 * sysdeps/generic/math_private.h [!math_opt_barrier]
12289 (math_opt_barrier): Move to math-barriers.h.
12290 [!math_opt_barrier] (math_force_eval): Likewise.
12291 * sysdeps/aarch64/fpu/math-barriers.h: New file.
12292 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
12293 math-barriers.h.
12294 (math_force_eval): Likewise.
12295 * sysdeps/alpha/fpu/math-barriers.h: New file.
12296 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
12297 math-barriers.h.
12298 (math_force_eval): Likewise.
12299 * sysdeps/x86/fpu/math-barriers.h: New file.
12300 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
12301 math-barriers.h.
12302 (math_force_eval): Likewise.
12303 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
12304 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
12305 multiple-include guard for rename.
12306 * sysdeps/powerpc/fpu/math-barriers.h: New file.
12307 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
12308 math-barriers.h.
12309 (math_force_eval): Likewise.
12310
12311 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
12312
12313 [BZ #22786]
12314 CVE-2018-11236
12315 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
12316 computation.
12317 * stdlib/Makefile (test-bz22786): New test.
12318 * stdlib/test-bz22786.c: New test.
12319
12320 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12321
12322 * include/math-narrow-eval.h: New file. Contents moved from ....
12323 * sysdeps/generic/math_private.h: ... here.
12324 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
12325 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
12326 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
12327 * stdlib/strtod_l.c: Likewise.
12328 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12329 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12330 * sysdeps/i386/fpu/s_fdim.c: Likewise.
12331 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12332 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12333 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12334 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12335 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12336 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12337 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
12338 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12339 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
12340 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12341 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12342 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12343 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12344 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12345 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12346 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12347 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12348 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12349 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12350 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12351 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12352 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12353 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12354 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12355 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12356 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
12357
12358 2018-05-08 Andreas Schwab <schwab@suse.de>
12359
12360 * sysdeps/nptl/internaltypes.h: Fix comment.
12361
12362 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
12363
12364 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
12365 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
12366 hidden.
12367
12368 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
12369
12370 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
12371 of I into loop header.
12372 * benchtests/bench-memmove-walk.c
12373 (test_main): Likewise.
12374
12375 2018-05-07 Alexandre Oliva <oliva@gnu.org>
12376
12377 Revert:
12378 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12379 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12380
12381 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
12382
12383 [BZ #20419]
12384 * elf/dl-load.c (open_verify): Fix stack overflow.
12385 * elf/Makefile (tst-big-note): New test.
12386 * elf/tst-big-note-lib.S: New.
12387 * elf/tst-big-note.c: New.
12388
12389 2018-05-04 Joseph Myers <joseph@codesourcery.com>
12390
12391 * scripts/abilist.awk: Ignore absolute symbols.
12392 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
12393 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
12394 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
12395 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
12396 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
12397 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
12398 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12399 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
12400 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
12401 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
12402 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
12403 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
12404 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
12405 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
12406 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
12407 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
12408 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
12409 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
12410 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12411 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
12412 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
12413 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
12414 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
12415 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
12416 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
12417 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
12418 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
12419 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
12420 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12421 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
12422 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
12423 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12424 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
12425 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
12426 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
12427 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
12428 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
12429 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
12430 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
12431 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
12432 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
12433 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12434 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
12435 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
12436 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12437 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
12438 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
12439 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
12440 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
12441 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
12442 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
12443 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
12444 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
12445 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
12446 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12447 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
12448 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
12449 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12450 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
12451 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
12452 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
12453 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
12454 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
12455 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
12456 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
12457 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
12458 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
12459 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12460 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
12461 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
12462 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12463 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
12464 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
12465 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
12466 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
12467 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
12468 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
12469 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
12470 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
12471 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
12472 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12473 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
12474 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
12475 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12476 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
12477 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
12478 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
12479 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
12480 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
12481 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
12482 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
12483 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
12484 Likewise.
12485 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
12486 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12487 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
12488 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
12489 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12490 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
12491 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
12492 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
12493 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
12494 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
12495 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
12496 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
12497 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
12498 Likewise.
12499 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
12500 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12501 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
12502 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
12503 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12504 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
12505 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
12506 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
12507 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
12508 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
12509 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
12510 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
12511 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
12512 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
12513 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12514 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
12515 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
12516 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12517 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
12518 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
12519 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
12520 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
12521 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
12522 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
12523 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12524 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
12525 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
12526 Likewise.
12527 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
12528 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
12529 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
12530 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
12531 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12532 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
12533 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
12534 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
12535 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
12536 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
12537 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
12538 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
12539 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
12540 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
12541 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
12542 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
12543 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
12544 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
12545 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12546 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
12547 Likewise.
12548 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
12549 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
12550 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
12551 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12552 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
12553 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
12554 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
12555 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
12556 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
12557 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
12558 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12559 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
12560 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
12561 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12562 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
12563 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
12564 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
12565 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
12566 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12567 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
12568 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
12569 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12570 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
12571 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
12572 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
12573 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
12574 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
12575 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
12576 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
12577 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12578 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
12579 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
12580 Likewise.
12581 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
12582 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
12583 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
12584 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
12585 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
12586 Likewise.
12587 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
12588 Likewise.
12589 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
12590 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
12591 Likewise.
12592 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
12593 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12594 Likewise.
12595 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12596 Likewise.
12597 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
12598 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
12599 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
12600 Likewise.
12601 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
12602 Likewise.
12603 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
12604 Likewise.
12605 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
12606 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12607 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12608 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
12609 Likewise.
12610 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
12611 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
12612 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
12613 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12614 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12615 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
12616 Likewise.
12617 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
12618 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
12619 Likewise.
12620 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
12621 Likewise.
12622 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
12623 Likewise.
12624 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
12625 Likewise.
12626 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
12627 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
12628 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
12629 Likewise.
12630 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
12631 Likewise.
12632 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
12633 Likewise.
12634 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
12635 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
12636 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
12637 Likewise.
12638 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
12639 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12640 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
12641 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
12642 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12643 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
12644 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
12645 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
12646 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
12647 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
12648 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
12649 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
12650 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
12651 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
12652 Likewise.
12653 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12654 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
12655 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
12656 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12657 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
12658 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
12659 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
12660 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
12661 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
12662 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
12663 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
12664 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
12665 Likewise.
12666 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12667 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
12668 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
12669 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12670 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
12671 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
12672 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
12673 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
12674 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
12675 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
12676 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
12677 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
12678 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
12679 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12680 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
12681 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
12682 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12683 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
12684 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
12685 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
12686 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
12687 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
12688 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
12689 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
12690 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
12691 Likewise.
12692 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
12693 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12694 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
12695 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
12696 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12697 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
12698 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
12699 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
12700 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
12701 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
12702 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
12703 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
12704 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
12705 Likewise.
12706 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
12707 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12708 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
12709 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
12710 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12711 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
12712 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
12713 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
12714 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
12715 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
12716 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
12717 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
12718 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
12719 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
12720 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12721 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
12722 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
12723 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12724 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
12725 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
12726 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
12727 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
12728 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
12729 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
12730 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
12731 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
12732 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
12733 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
12734 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12735 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
12736 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
12737 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12738 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
12739 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
12740 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
12741 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
12742 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
12743 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
12744
12745 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
12746
12747 [BZ #23137]
12748 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
12749 Use atomic_load_acquire to load __tid.
12750
12751 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12752
12753 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
12754 Restore the pointer into %rdx, after syscall and use %rdx,
12755 instead of %rsi, to restore context.
12756
12757 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12758
12759 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
12760 Pop the pointer into %rdx after syscall and use %rdx, instead
12761 of %rsi, to restore context.
12762
12763 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12764
12765 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
12766 handlers after setjmp.
12767 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
12768 defined.
12769 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
12770 <libc-pointer-arith.h>.
12771 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
12772 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
12773 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
12774 _JUMP_BUF_SIGSET_BITS_PER_WORD.
12775 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
12776 * sysdeps/x86/__longjmp_cancel.S: New file.
12777 * sysdeps/x86/longjmp.c: Likewise.
12778 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
12779
12780 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12781
12782 * NEWS: Add ustat.h deprecation entry.
12783 * bits/ustat.h: Remove file.
12784 * misc/sys/ustat.h: Likewise.
12785 * misc/ustat.h: Likewise.
12786 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
12787 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
12788 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
12789 compatibility mode.
12790 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
12791 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
12792 generic Linux implementation.
12793
12794 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12795
12796 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
12797 * math/w_expl_compat.c: Likewise.
12798 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
12799
12800 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12801
12802 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12803
12804 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12805
12806 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
12807 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
12808 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
12809 Remove.
12810 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
12811 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12812 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12813 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
12814 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
12815 and SYSCALL_LL64.
12816
12817 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12818
12819 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
12820
12821 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
12822 * math/w_asin_template.c: Likewise.
12823 * math/w_atanh_template.c: Likewise.
12824
12825 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12826
12827 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
12828 to powerpc/powerpc64/be for big-endian.
12829 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
12830 little-endian.
12831
12832 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
12833 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
12834 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
12835 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
12836 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
12837 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
12838 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
12839 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
12840 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
12841 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
12842 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
12843 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
12844 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
12845 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
12846 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
12847 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
12848 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
12849 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
12850 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
12851 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
12852 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
12853 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
12854 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
12855 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
12856 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
12857 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
12858 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
12859 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
12860 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
12861 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12862 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12863 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12864
12865 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
12866 adjusted to imply powerpc64 and older processors on powerpc64/be.
12867 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
12868 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
12869 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
12870 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
12871 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
12872 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
12873 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
12874 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
12875 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
12876 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
12877 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
12878 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
12879 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12880 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12881 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12882 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12883 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12884 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12885 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12886 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12887 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12888 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12889 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12890 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12891 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12892 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12893 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12894 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12895 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12896 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
12897 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
12898
12899 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
12900 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
12901 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
12902 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
12903
12904 * sysdeps/powerpc/powerpc64/be/Implies: New file.
12905 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
12906 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
12907 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
12908
12909 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
12910 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
12911 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
12912 * sysdeps/powerpc/powerpc64le/configure: Likewise.
12913 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
12914 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
12915 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
12916 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
12917 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
12918 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
12919 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
12920
12921 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
12922 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
12923 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
12924 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12925 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
12926 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
12927 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
12928 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
12929 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
12930 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
12931 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
12932
12933 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
12934 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
12935 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
12936 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
12937 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
12938 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
12939 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
12940 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
12941 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
12942 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
12943 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
12944 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
12945
12946 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
12947 and adjusted to imply olders processors.
12948 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
12949 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
12950 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
12951 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
12952 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12953 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12954 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12955 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12956 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12957 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12958 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12959
12960 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12961 powerpc64/le.
12962 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12963 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12964
12965 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12966 powerpc64le.
12967 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12968 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12969
12970 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12971 powerpc64/be.
12972 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12973 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12974 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12975
12976 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12977 powerpc64 and adjusted.
12978 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12979 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12980 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12981 Likewise.
12982
12983 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12984
12985 * sysdeps/tile: Remove.
12986 * sysdeps/unix/sysv/linux/tile: Likewise.
12987 * README (tilegx-*-linux-gnu): Remove from list of supported
12988 configurations.
12989 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12990 contribution of support for generic Linux kernel syscall
12991 interface.
12992 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12993 tilegx configurations.
12994 (Config.install_linux_headers): Do not handle tile.
12995 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12996 in comment.
12997 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12998 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12999 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
13000 conditional undefine and redefine.
13001 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
13002 in comment.
13003 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
13004 conditional undefine and redefine.
13005
13006 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
13007
13008 * signal/tst-sigaction.c: New file to test BZ #23069.
13009 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
13010
13011 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13012
13013 [BZ #22766]
13014 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
13015 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
13016 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
13017 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
13018
13019 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13020
13021 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
13022 _DIRENT_MATCHES_DIRENT64 is not defined.
13023 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
13024 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
13025 is defined.
13026 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
13027 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
13028
13029 2018-04-25 Joseph Myers <joseph@codesourcery.com>
13030
13031 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
13032 version to GCC 8 branch.
13033
13034 2018-04-24 Joseph Myers <joseph@codesourcery.com>
13035
13036 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
13037 (check_no_hidden): Use type of original function when declaring
13038 alias.
13039
13040 * sysdeps/unix/sysv/linux/sys/ptrace.h
13041 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
13042 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
13043 (struct __ptrace_seccomp_metadata): New type.
13044 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
13045 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13046 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
13047 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13048 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
13049 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13050 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
13051 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13052 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
13053 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13054 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
13055 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13056 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
13057 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13058 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
13059 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13060
13061 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13062
13063 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
13064 defined.
13065 * dirent/versionsort.c (versionsort): Likewise.
13066 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
13067 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
13068 * dirent/versionsort64.c (versionsort64): Likewise.
13069 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
13070 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
13071 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
13072 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
13073 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
13074 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
13075 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
13076 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
13077 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
13078 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
13079 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
13080 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
13081 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
13082 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
13083
13084 2018-04-23 Joseph Myers <joseph@codesourcery.com>
13085
13086 * elf/elf.h (NT_PPC_PKEY): New macro.
13087
13088 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
13089
13090 [BZ #23094]
13091 * localedata/locales/hr_HR: fix thousands_sep and
13092 mon_thousands_sep
13093
13094 2018-04-20 Joseph Myers <joseph@codesourcery.com>
13095
13096 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
13097 (XTABS): Define to TAB3.
13098
13099 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13100
13101 * sysdeps/hppa/fpu/libm-test-ulps: Update.
13102
13103 * dirent/scandir-tail-common.c: New file.
13104 * dirent/scandir-tail.c: Use scandir-tail-common.c.
13105 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
13106 * dirent/scandir.c: Use scandir-tail-common.c.
13107 * dirent/scandirat.c: Likewise.
13108 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
13109 * dirent/scandir64.c (scandir64): Always build and alias to scandir
13110 if _DIRENT_MATCHES_DIRENT64 is defined.
13111 * dirent/scandirat64.c (scandirat64): Likewise.
13112 * include/dirent.h (__scandir_tail): Only define iff
13113 _DIRENT_MATCHES_DIRENT64 is not defined.
13114 (__scandir64_tail): Define regardless.
13115 (__scandirat, scandirat64): Remove libc_hidden_proto.
13116 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
13117 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
13118 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
13119 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
13120 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
13121 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
13122 * sysdeps/unix/sysv/linux/scandir64.c: New file.
13123
13124 2018-04-20 Joseph Myers <joseph@codesourcery.com>
13125
13126 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
13127 New macro.
13128 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13129 Increase to 24.
13130 (_dl_aarch64_cap_flags): Add asimdfhm.
13131
13132 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
13133
13134 * sysdeps/nios2/libm-test-ulps: Update.
13135
13136 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13137
13138 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
13139 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
13140
13141 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
13142 requirements.
13143 (_DIRENT_MATCHES_DIRENT64): Undef
13144 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
13145 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
13146 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
13147 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
13148 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
13149 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
13150 use getdents64 syscalls as base.
13151 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
13152 symbol if required.
13153 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
13154 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
13155 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
13156 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
13157 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
13158 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
13159 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
13160 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
13161 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13162 (__get_clockfreq_via_proc_openprom): Use __getdents64.
13163 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
13164
13165 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13166
13167 * scripts/test_printers_common.py (init_test): Disable lock elision.
13168
13169 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13170
13171 * math/test-tgmath.c (count_double, count_float,
13172 count_ldouble, count_cdouble, count_cfloat,
13173 count_cldouble): Use volatile int.
13174
13175 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13176
13177 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
13178 (conformtest-xfail-conds): Add i386-gnu.
13179 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
13180 i386-gnu.
13181 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
13182 ipc_perm.cuid, ipc_perm.cgid): Likewise.
13183 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
13184 msqid_ds.msg_lrpid): Likewise.
13185 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
13186 Likewise.
13187 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
13188 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
13189 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
13190 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
13191 unsigned int.
13192 (struct statvfs64): Likewise.
13193 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
13194 Likewise.
13195 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
13196 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
13197 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
13198 instead of wait_queue.
13199 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
13200 instead of vm_area_struct.
13201 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
13202 struct sched_param definition to it.
13203 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13204 * bits/types/struct_sched_param.h: New file.
13205 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
13206 <bits/types/struct_sched_param.h> instead of <sched.h>.
13207 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
13208 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
13209 generic version but include <bits/pthreadtypes.h> to make struct
13210 sigevent's sigev_notify_attributes field a pthread_attr_t*.
13211 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
13212 non-compliant.
13213 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
13214 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
13215 [__USE_XOPEN] (OFDEL): New macro.
13216 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
13217 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
13218 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
13219 prototypes.
13220 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
13221 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
13222 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
13223 non-compliant.
13224 * sysdeps/i386/sys/ucontext.h: Likewise.
13225 * sysdeps/m68k/sys/ucontext.h: Likewise.
13226 * sysdeps/mips/sys/ucontext.h: Likewise.
13227 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
13228 * sysdeps/mach/hurd/i386/Makefile
13229 (test-xfail-POSIX/fcntl.h/conform): Add.
13230 (test-xfail-POSIX/signal.h/conform): Add.
13231 (test-xfail-POSIX/semaphore.h/conform): Add.
13232 (test-xfail-POSIX/regex.h/conform): Add.
13233 (test-xfail-POSIX/aio.h/conform): Add.
13234 (test-xfail-POSIX/mqueue.h/conform): Add.
13235 (test-xfail-POSIX/sys/types.h/conform): Add.
13236 (test-xfail-UNIX98/fcntl.h/conform): Add.
13237 (test-xfail-UNIX98/netdb.h/conform): Add.
13238 (test-xfail-UNIX98/signal.h/conform): Add.
13239 (test-xfail-UNIX98/semaphore.h/conform): Add.
13240 (test-xfail-UNIX98/regex.h/conform): Add.
13241 (test-xfail-UNIX98/aio.h/conform): Add.
13242 (test-xfail-UNIX98/ftw.h/conform): Add.
13243 (test-xfail-UNIX98/mqueue.h/conform): Add.
13244 (test-xfail-UNIX98/netinet/in.h/conform): Add.
13245 (test-xfail-UNIX98/sys/wait.h/conform): Add.
13246 (test-xfail-UNIX98/sys/sem.h/conform): Add.
13247 (test-xfail-UNIX98/sys/uio.h/conform): Add.
13248 (test-xfail-UNIX98/sys/socket.h/conform): Add.
13249 (test-xfail-UNIX98/sys/types.h/conform): Add.
13250 (test-xfail-UNIX98/stdlib.h/conform): Add.
13251 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
13252 (test-xfail-POSIX2008/fcntl.h/conform): Add.
13253 (test-xfail-POSIX2008/netdb.h/conform): Add.
13254 (test-xfail-POSIX2008/signal.h/conform): Add.
13255 (test-xfail-POSIX2008/semaphore.h/conform): Add.
13256 (test-xfail-POSIX2008/regex.h/conform): Add.
13257 (test-xfail-POSIX2008/aio.h/conform): Add.
13258 (test-xfail-POSIX2008/mqueue.h/conform): Add.
13259 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
13260 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
13261 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
13262 (test-xfail-POSIX2008/sys/types.h/conform): Add.
13263 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
13264 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
13265 (test-xfail-XOPEN2K/netdb.h/conform): Add.
13266 (test-xfail-XOPEN2K/signal.h/conform): Add.
13267 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
13268 (test-xfail-XOPEN2K/regex.h/conform): Add.
13269 (test-xfail-XOPEN2K/aio.h/conform): Add.
13270 (test-xfail-XOPEN2K/ftw.h/conform): Add.
13271 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
13272 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
13273 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
13274 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
13275 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
13276 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
13277 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
13278 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
13279 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
13280 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
13281 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
13282 (test-xfail-XOPEN2K8/signal.h/conform): Add.
13283 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
13284 (test-xfail-XOPEN2K8/regex.h/conform): Add.
13285 (test-xfail-XOPEN2K8/aio.h/conform): Add.
13286 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
13287 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
13288 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
13289 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
13290 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
13291 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
13292 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
13293 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
13294 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
13295 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
13296 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
13297 i386-gnu.
13298 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
13299 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
13300
13301 2018-04-18 Joseph Myers <joseph@codesourcery.com>
13302
13303 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
13304 --enable-obsolete for powerpc-linux-gnuspe.
13305
13306 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13307
13308 * conform/data/sys/un.h-data: Allow sun_ prefix.
13309 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
13310 prototypes.
13311 * sysdeps/mach/include/mach.h: Likewise.
13312 * sysdeps/mach/include/mach/mig_support.h: Likewise.
13313 * sysdeps/mach/include/mach_error.h: Likewise.
13314
13315 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13316
13317 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
13318 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
13319 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
13320 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
13321
13322 2018-04-16 Andreas Schwab <schwab@suse.de>
13323
13324 [BZ #19527]
13325 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
13326
13327 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
13328
13329 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
13330 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
13331
13332 2018-04-12 DJ Delorie <dj@redhat.com>
13333
13334 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13335 version to 4.16.
13336
13337 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
13338
13339 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
13340 (struct kernel_sigaction): Use the same definition on 31bit as is used
13341 on 64bit.
13342
13343 2018-04-09 Florian Weimer <fweimer@redhat.com>
13344
13345 [BZ #23037]
13346 * resolv/res_send.c (send_dg): Use designated initializers instead
13347 of assignment to zero-initialize other fields of struct mmsghdr.
13348
13349 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13350
13351 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
13352 __READDIR_ALIAS): Undefine after usage.
13353 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
13354 __READDIR_R_ALIAS): Likewise.
13355 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
13356 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
13357 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
13358 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
13359 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
13360 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
13361 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
13362 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
13363 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
13364 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
13365 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
13366 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
13367 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
13368 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
13369 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
13370 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
13371 * sysdeps/unix/sysv/linux/readdir.c: New file.
13372 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
13373 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
13374 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
13375
13376 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
13377
13378 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
13379
13380 * manual/charset.texi (Converting a Character): Fix typo.
13381
13382 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13383
13384 * sysdeps/sparc/fpu/libm-test-ulps: Update.
13385
13386 * sysdeps/arm/libm-test-ulps: Update.
13387
13388 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
13389 as base implementation.
13390 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
13391 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13392 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13393 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13394 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13395 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
13396 remove unrequired definitions and update comments.
13397 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
13398 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
13399 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
13400 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
13401 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
13402 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
13403 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
13404 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
13405 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
13406 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
13407 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
13408 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
13409 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
13410 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
13411 and RESET_SA_RESTORER hooks.
13412
13413 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
13414
13415 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
13416
13417 2018-04-05 Florian Weimer <fweimer@redhat.com>
13418
13419 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
13420 integer overflow, memory leak on error, and indeterminate errno
13421 value. Add a null wide character to terminate the result string.
13422 * manual/charset.texi (Converting a Character): Mention embedded
13423 null bytes in the mbrtowc input string. Explain what happens in
13424 the -2 result case. Do not claim that mbrtowc is simple or
13425 obvious to use. Adjust the description of the code example. Use
13426 @code, not @var, for concrete variables.
13427
13428 2018-04-05 Florian Weimer <fweimer@redhat.com>
13429
13430 * manual/examples/mbstouwcs.c: New file.
13431 * manual/charset.texi (Converting a Character): Include it.
13432
13433 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
13434
13435 * include/dirent.h (dirfd): Add hidden proto.
13436 * dirent/dirfd.c (dirfd): Add hidden def.
13437 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
13438 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
13439
13440 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13441
13442 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
13443 sin, cos and sincos to 1 ULP.
13444
13445 2018-04-04 Maciej W. Rozycki <macro@mips.com>
13446
13447 [BZ #19818]
13448 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
13449 symbols.
13450 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
13451 * elf/tst-absolute-sym.c: New file.
13452 * elf/tst-absolute-sym-lib.c: New file.
13453 * elf/tst-absolute-sym-lib.lds: New file.
13454 * elf/Makefile (tests): Add `tst-absolute-sym'.
13455 (modules-names): Add `tst-absolute-sym-lib'.
13456 (LDLIBS-tst-absolute-sym-lib.so): New variable.
13457 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
13458 ($(objpfx)tst-absolute-sym): New dependency.
13459
13460 [BZ #19818]
13461 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
13462 parameter.
13463 (SYMBOL_ADDRESS): New macro.
13464 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
13465 SYMBOL_ADDRESS for symbol address calculation.
13466 * elf/dl-runtime.c (_dl_fixup): Likewise.
13467 (_dl_profile_fixup): Likewise.
13468 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
13469 * elf/rtld.c (dl_main): Likewise.
13470 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
13471 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
13472 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
13473 (elf_machine_rela): Likewise.
13474 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
13475 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
13476 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13477 (elf_machine_rela): Likewise.
13478 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13479 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
13480 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
13481 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
13482 Likewise.
13483 (elf_machine_reloc): Likewise.
13484 (elf_machine_got_rel): Likewise.
13485 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
13486 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
13487 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13488 Likewise.
13489 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13490 Likewise.
13491 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
13492 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
13493 Likewise.
13494 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
13495 Likewise.
13496 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13497 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
13498 Likewise.
13499 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13500 Likewise.
13501 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
13502 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13503
13504 2018-04-04 Zack Weinberg <zackw@panix.com>
13505
13506 * sysdeps/generic/internal-signals.h: Include signal.h,
13507 sigsetops.h, and stdbool.h.
13508 (__libc_signal_block_all): Actually block all signals.
13509 (__libc_signal_block_app): Likewise.
13510 (__libc_signal_restore_set): Actually restore the signal mask.
13511
13512 2018-04-04 Florian Weimer <fweimer@redhat.com>
13513
13514 inet: Actually build and run tst-deadline.
13515 * inet/Makefile (tests-internal): Add tst-deadline and do not
13516 overwrite the variable.
13517 (tests-static-internal): Remove variable.
13518
13519 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
13520
13521 [BZ #22947]
13522 * bits/uio-ext.h (RWF_APPEND): New.
13523 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
13524 * manual/llio.texi: Document RWF_APPEND.
13525 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
13526 (RWF_SUPPORTED): Add RWF_APPEND.
13527
13528 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13529
13530 [BZ #22391]
13531 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
13532 check for internal nptl signals.
13533 * nptl/sigaction.c (__sigaction): Likewise.
13534 * signal/sigaddset.c (sigaddset): Likewise.
13535 * signal/sigdelset.c (sigdelset): Likewise.
13536 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
13537 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
13538 value.
13539 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
13540 to filter out internal nptl signals.
13541 * signal/tst-sigset.c (do_test): Check ech signal indidually and
13542 also check realtime signals using standard macros.
13543 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
13544 __is_internal_signal, __libc_signal_block_all,
13545 __libc_signal_block_app, __libc_signal_restore_set): New functions.
13546 * sysdeps/nptl/sigfillset.c: Remove file.
13547 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
13548 Change return to bool.
13549 (__clear_internal_signals): Remove SIGTIMER clean since it is
13550 equal to SIGCANEL on Linux.
13551 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
13552 signal set was constructed using standard functions.
13553
13554 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
13555
13556 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
13557 ifname is too long.
13558 * hurd/hurdsig.c (interrupted_reply_port_location): Use
13559 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
13560 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
13561 hidden def.
13562 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
13563 * signal/sigaddset.c: Include <sigsetopts.h>.
13564 * signal/sigdelset.c: Likewise.
13565
13566 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13567
13568 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
13569 (__cos): Likewise.
13570 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
13571 logic as sin and cos.
13572
13573 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13574
13575 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
13576 inputs. Return correct sign.
13577 (do_sincos): Remove small input check before do_sin, let do_sin set
13578 the sign.
13579 (__sin): Likewise.
13580 (__cos): Likewise.
13581
13582 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13583
13584 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
13585 (do_cos_slow): Likewise.
13586 (do_sin_slow): Likewise.
13587 (reduce_and_compute): Likewise.
13588 (slow): Likewise.
13589 (slow1): Likewise.
13590 (slow2): Likewise.
13591 (sloww): Likewise.
13592 (sloww1): Likewise.
13593 (sloww2): Likewise.
13594 (bslow): Likewise.
13595 (bslow1): Likewise.
13596 (bslow2): Likewise.
13597 (cslow2): Likewise.
13598
13599 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13600
13601 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
13602 (do_cos): Remove corp parameter and calculations.
13603 (do_sin): Likewise.
13604 (do_sincos): Remove cor variable.
13605 (__sin): Use do_sincos for huge inputs.
13606 (__cos): Likewise.
13607 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13608 (reduce_and_compute_sincos): Remove unused function.
13609
13610 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13611
13612 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
13613 reduce_sincos, improve accuracy to 136 bits.
13614 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
13615 (__sin): Use improved reduction and simplified do_sincos calculation.
13616 (__cos): Likewise.
13617 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13618
13619 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13620
13621 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
13622 (do_sincos_2): Likewise.
13623 (__sin): Remove middle range reduction case.
13624 (__cos): Likewise.
13625 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
13626 reduction case.
13627
13628 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13629
13630 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
13631 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
13632 inputs.
13633 (__cos): Likewise.
13634 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
13635
13636 2018-04-03 Joseph Myers <joseph@codesourcery.com>
13637
13638 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13639 version to 4.16
13640
13641 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13642
13643 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
13644 Remove definitions.
13645 (opendir_oflags): Use O_DIRECTORY regardless.
13646 (__opendir, __opendirat): Remove need_isdir_precheck usage.
13647 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
13648
13649 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13650
13651 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
13652 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
13653 macros.
13654 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
13655 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
13656 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
13657 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
13658 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
13659 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
13660
13661 * htl/Makefile: Bump licence to LGPL 2.1+.
13662 * htl/alloca_cutoff.c: Likewise.
13663 * htl/cthreads-compat.c: Likewise.
13664 * htl/lockfile.c: Likewise.
13665 * htl/pt-alloc.c: Likewise.
13666 * htl/pt-cancel.c: Likewise.
13667 * htl/pt-cleanup.c: Likewise.
13668 * htl/pt-create.c: Likewise.
13669 * htl/pt-dealloc.c: Likewise.
13670 * htl/pt-detach.c: Likewise.
13671 * htl/pt-exit.c: Likewise.
13672 * htl/pt-getattr.c: Likewise.
13673 * htl/pt-initialize.c: Likewise.
13674 * htl/pt-internal.h: Likewise.
13675 * htl/pt-join.c: Likewise.
13676 * htl/pt-self.c: Likewise.
13677 * htl/pt-setcancelstate.c: Likewise.
13678 * htl/pt-setcanceltype.c: Likewise.
13679 * htl/pt-sigmask.c: Likewise.
13680 * htl/pt-spin-inlines.c: Likewise.
13681 * htl/pt-testcancel.c: Likewise.
13682 * htl/pt-yield.c: Likewise.
13683 * htl/tests/test-1.c: Likewise.
13684 * htl/tests/test-10.c: Likewise.
13685 * htl/tests/test-11.c: Likewise.
13686 * htl/tests/test-12.c: Likewise.
13687 * htl/tests/test-13.c: Likewise.
13688 * htl/tests/test-14.c: Likewise.
13689 * htl/tests/test-15.c: Likewise.
13690 * htl/tests/test-16.c: Likewise.
13691 * htl/tests/test-17.c: Likewise.
13692 * htl/tests/test-2.c: Likewise.
13693 * htl/tests/test-3.c: Likewise.
13694 * htl/tests/test-4.c: Likewise.
13695 * htl/tests/test-5.c: Likewise.
13696 * htl/tests/test-6.c: Likewise.
13697 * htl/tests/test-7.c: Likewise.
13698 * htl/tests/test-8.c: Likewise.
13699 * htl/tests/test-9.c: Likewise.
13700 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
13701 * sysdeps/htl/bits/cancelation.h: Likewise.
13702 * sysdeps/htl/bits/pthread-np.h: Likewise.
13703 * sysdeps/htl/bits/pthread.h: Likewise.
13704 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
13705 * sysdeps/htl/bits/semaphore.h: Likewise.
13706 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
13707 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
13708 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
13709 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
13710 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
13711 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
13712 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
13713 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
13714 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
13715 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
13716 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
13717 * sysdeps/htl/old_pt-atfork.c: Likewise.
13718 * sysdeps/htl/pt-atfork.c: Likewise.
13719 * sysdeps/htl/pt-attr-destroy.c: Likewise.
13720 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
13721 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
13722 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
13723 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
13724 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
13725 * sysdeps/htl/pt-attr-getscope.c: Likewise.
13726 * sysdeps/htl/pt-attr-getstack.c: Likewise.
13727 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
13728 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
13729 * sysdeps/htl/pt-attr-init.c: Likewise.
13730 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
13731 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
13732 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
13733 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
13734 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
13735 * sysdeps/htl/pt-attr-setscope.c: Likewise.
13736 * sysdeps/htl/pt-attr-setstack.c: Likewise.
13737 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
13738 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
13739 * sysdeps/htl/pt-attr.c: Likewise.
13740 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
13741 * sysdeps/htl/pt-barrier-init.c: Likewise.
13742 * sysdeps/htl/pt-barrier-wait.c: Likewise.
13743 * sysdeps/htl/pt-barrier.c: Likewise.
13744 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
13745 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
13746 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
13747 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
13748 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
13749 * sysdeps/htl/pt-cond-destroy.c: Likewise.
13750 * sysdeps/htl/pt-cond-init.c: Likewise.
13751 * sysdeps/htl/pt-cond-signal.c: Likewise.
13752 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
13753 * sysdeps/htl/pt-cond-wait.c: Likewise.
13754 * sysdeps/htl/pt-cond.c: Likewise.
13755 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
13756 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
13757 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
13758 * sysdeps/htl/pt-condattr-init.c: Likewise.
13759 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
13760 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
13761 * sysdeps/htl/pt-destroy-specific.c: Likewise.
13762 * sysdeps/htl/pt-equal.c: Likewise.
13763 * sysdeps/htl/pt-getconcurrency.c: Likewise.
13764 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
13765 * sysdeps/htl/pt-getschedparam.c: Likewise.
13766 * sysdeps/htl/pt-getspecific.c: Likewise.
13767 * sysdeps/htl/pt-init-specific.c: Likewise.
13768 * sysdeps/htl/pt-key-create.c: Likewise.
13769 * sysdeps/htl/pt-key-delete.c: Likewise.
13770 * sysdeps/htl/pt-key.h: Likewise.
13771 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
13772 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
13773 * sysdeps/htl/pt-mutex-init.c: Likewise.
13774 * sysdeps/htl/pt-mutex-lock.c: Likewise.
13775 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
13776 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
13777 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
13778 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
13779 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
13780 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
13781 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
13782 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
13783 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
13784 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
13785 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
13786 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
13787 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
13788 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
13789 * sysdeps/htl/pt-mutexattr.c: Likewise.
13790 * sysdeps/htl/pt-once.c: Likewise.
13791 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
13792 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
13793 * sysdeps/htl/pt-rwlock-init.c: Likewise.
13794 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
13795 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
13796 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
13797 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
13798 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
13799 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
13800 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
13801 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
13802 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
13803 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
13804 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
13805 * sysdeps/htl/pt-setconcurrency.c: Likewise.
13806 * sysdeps/htl/pt-setschedparam.c: Likewise.
13807 * sysdeps/htl/pt-setschedprio.c: Likewise.
13808 * sysdeps/htl/pt-setspecific.c: Likewise.
13809 * sysdeps/htl/pt-spin.c: Likewise.
13810 * sysdeps/htl/pt-startup.c: Likewise.
13811 * sysdeps/htl/pthread.h: Likewise.
13812 * sysdeps/htl/sem-close.c: Likewise.
13813 * sysdeps/htl/sem-destroy.c: Likewise.
13814 * sysdeps/htl/sem-getvalue.c: Likewise.
13815 * sysdeps/htl/sem-init.c: Likewise.
13816 * sysdeps/htl/sem-open.c: Likewise.
13817 * sysdeps/htl/sem-post.c: Likewise.
13818 * sysdeps/htl/sem-timedwait.c: Likewise.
13819 * sysdeps/htl/sem-trywait.c: Likewise.
13820 * sysdeps/htl/sem-unlink.c: Likewise.
13821 * sysdeps/htl/sem-wait.c: Likewise.
13822 * sysdeps/hurd/htl/pt-kill.c: Likewise.
13823 * sysdeps/i386/htl/pt-machdep.h: Likewise.
13824 * sysdeps/mach/htl/pt-block.c: Likewise.
13825 * sysdeps/mach/htl/pt-spin.c: Likewise.
13826 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
13827 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
13828 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
13829 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
13830 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
13831 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
13832 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
13833 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
13834 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
13835 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
13836 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
13837 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
13838 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
13839 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
13840 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
13841 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
13842 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
13843 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
13844 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
13845 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
13846 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
13847 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
13848 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
13849 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
13850 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
13851 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
13852 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
13853 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
13854 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
13855 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
13856 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
13857 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
13858 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
13859 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
13860 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
13861 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
13862 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
13863 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
13864 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
13865 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
13866 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
13867 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
13868 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
13869
13870 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
13871 * README: Remove the mention of out-of-tree patches needed for
13872 GNU/Hurd.
13873
13874 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
13875 (UTIME_NOW, UTIME_OMIT): Define macros.
13876
13877 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13878 instead of pthread_detach.
13879 (__cthread_fork): Call __pthread_create instead of pthread_create.
13880 (__cthread_keycreate): Call __pthread_key_create instead of
13881 pthread_key_create.
13882 (__cthread_getspecific): Call __pthread_getspecific instead of
13883 pthread_getspecific.
13884 (__cthread_setspecific): Call __pthread_setspecific instead of
13885 pthread_setspecific.
13886 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13887 __pthread_mutex_unlock instead of pthread_mutex_lock and
13888 pthread_mutex_unlock.
13889 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13890 ___pthread_get_cleanup_stack.
13891 (__pthread_get_cleanup_stack): New strong alias.
13892 * htl/pt-create.c: Include <pthreadP.h>.
13893 (entry_point): Call __pthread_exit instead of pthread_exit.
13894 (pthread_create): Rename to __pthread_create.
13895 (pthread_create): New strong alias.
13896 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
13897 (pthread_detach): New strong alias.
13898 (__pthread_detach): Call __pthread_cond_broadcast instead of
13899 pthread_cond_broadcast.
13900 * htl/pt-exit.c: Include <pthreadP.h>.
13901 (__pthread_exit): Call __pthread_setcancelstate and
13902 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
13903 __pthread_get_cleanup_stack.
13904 * htl/pt-testcancel.c: Include <pthreadP.h>.
13905 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
13906 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
13907 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
13908 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
13909 pthread_attr_getstacksize.
13910 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
13911 Rename to __pthread_attr_getstackaddr.
13912 (pthread_attr_getstackaddr): New strong alias.
13913 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
13914 Rename to __pthread_attr_getstacksize.
13915 (pthread_attr_getstacksize): New strong alias.
13916 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
13917 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
13918 (pthread_attr_setstack): New strong alias.
13919 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
13920 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
13921 pthread_attr_getstacksize, pthread_attr_setstacksize and
13922 pthread_attr_setstackaddr.
13923 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
13924 Rename to __pthread_attr_setstackaddr.
13925 (pthread_attr_setstackaddr): New strong alias.
13926 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
13927 Rename to __pthread_attr_setstacksize.
13928 (pthread_attr_setstacksize): New strong alias.
13929 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
13930 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
13931 pthread_exit.
13932 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
13933 (__pthread_key_create): New hidden def.
13934 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
13935 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
13936 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
13937 __pthread_exit, __pthread_key_create, __pthread_getspecific,
13938 __pthread_setspecific, __pthread_setcancelstate,
13939 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
13940 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
13941 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
13942 declarations.
13943 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
13944 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
13945 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
13946 (pthread_attr_setstackaddr): New strong alias.
13947 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
13948 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
13949 (pthread_attr_setstacksize): New strong alias.
13950 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
13951 (call_exit): Call __pthread_exit instead of pthread_exit.
13952 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13953 (_pthread_mutex_init): New hidden definition.
13954 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13955 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13956 instead of pthread_attr_init and pthread_attr_setstack.
13957
13958 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13959 __vm_deallocate instead of vm_allocate and vm_deallocate.
13960 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13961 setenv.
13962 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13963 of geteuid.
13964 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13965 strdup.
13966 * hurd/siginfo.c: Include <libioP.h>.
13967 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13968 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13969 munmap.
13970 * mach/devstream.c: Include <libioP.h>.
13971 (dealloc_ref): Call __mach_port_deallocate instead of
13972 mach_port_deallocate.
13973 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13974 Call __mach_port_deallocate instead of mach_port_deallocate.
13975 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13976 pathconf.
13977 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13978 munmap.
13979 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13980 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13981 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13982 of munmap.
13983 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13984 of close.
13985 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13986 instead of sysconf.
13987 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13988 __clock_gettime instead of clock_gettime.
13989 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13990 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13991 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13992 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13993 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13994 tcgetattr.
13995 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13996 __clock_gettime and __nanosleep instead of clock_gettime and
13997 nanosleep.
13998 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13999 __hurd_catch_signal.
14000 (hurd_catch_signal): New strong alias.
14001 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
14002 __hurd_catch_signal instead of hurd_catch_signal.
14003 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
14004 * hurd/hurdexec.c (_hurd_init): Add hidden def.
14005 * hurd/hurdinit.c (_hurd_init): Add hidden def.
14006 * hurd/hurdsig.c: Include <mach/mig_support.h>.
14007 (_hurd_thread_sigstate): Add hidden def.
14008 (_hurd_internal_post_signal): Use __mutex_unlock instead of
14009 mutex_unlock.
14010 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
14011 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
14012 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
14013 __hurd_file_name_path_lookup.
14014 (hurd_file_name_path_lookup): New strong alias.
14015 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
14016 hurd_file_name_path_lookup.
14017 * mach/errstring.c (mach_error_type): Add hidden def.
14018 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
14019 * mach/mutex-init.c (__mutex_init): Add hidden def.
14020 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
14021 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
14022 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
14023 * sysdeps/mach/hurd/getcwd.c
14024 (_hurd_canonicalize_directory_name_internal): Rename to
14025 __hurd_canonicalize_directory_name_internal.
14026 (_hurd_canonicalize_directory_name_internal): New strong alias.
14027 (__canonicalize_directory_name_internal, __getcwd): Call
14028 __hurd_canonicalize_directory_name_internal instead of
14029 _hurd_canonicalize_directory_name_internal.
14030 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
14031 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
14032 hidden defs.
14033 * sysdeps/hurd/include/hurd.h: New file.
14034 * sysdeps/hurd/include/hurd/fd.h: New file.
14035 * sysdeps/hurd/include/hurd/signal.h: New file.
14036 * sysdeps/mach/include/lock-intern.h: New file.
14037 * sysdeps/mach/include/mach.h: New file.
14038 * sysdeps/mach/include/mach/mig_support.h: New file.
14039 * sysdeps/mach/include/mach_error.h: New file.
14040 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
14041 prototype.
14042 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
14043 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
14044 _HEADER_H_HIDDEN_DEF macro.
14045 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
14046 _hurd_fd_error_signal): Add hidden prototype.
14047 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
14048 hidden def.
14049 * libio/iolibio.h (_IO_puts): New hidden prototype.
14050 * libio/ioputs.c (_IO_puts): New hidden def.
14051 * sysdeps/mach/hurd/localplt.data: New file.
14052
14053 2018-04-02 Agustina Arzille <avarzille@riseup.net>
14054 Amos Jeffries <squid3@treenet.co.nz>
14055 David Michael <fedora.dm0@gmail.com>
14056 Marco Gerards <marco@gnu.org>
14057 Marcus Brinkmann <marcus@gnu.org>
14058 Neal H. Walfield <neal@gnu.org>
14059 Pino Toscano <toscano.pino@tiscali.it>
14060 Richard Braun <rbraun@sceen.net>
14061 Roland McGrath <roland@gnu.org>
14062 Samuel Thibault <samuel.thibault@ens-lyon.org>
14063 Thomas DiModica <ricinwich@yahoo.com>
14064 Thomas Schwinge <tschwinge@gnu.org>
14065
14066 * htl: New directory.
14067 * sysdeps/htl: New directory.
14068 * sysdeps/hurd/htl: New directory.
14069 * sysdeps/i386/htl: New directory.
14070 * sysdeps/mach/htl: New directory.
14071 * sysdeps/mach/hurd/htl: New directory.
14072 * sysdeps/mach/hurd/i386/htl: New directory.
14073 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
14074 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
14075 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
14076
14077 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
14078
14079 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
14080 signals in thread created for runing timers.
14081
14082 2018-04-01 Florian Weimer <fweimer@redhat.com>
14083
14084 * support/support_format_addrinfo.c (support_format_addrinfo):
14085 Include unknown error number in formatted result.
14086
14087 2018-03-29 Florian Weimer <fweimer@redhat.com>
14088
14089 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
14090 capture SIGBUS.
14091
14092 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14093
14094 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
14095 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
14096 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
14097 (__ASSUME_CLONE_BACKWARDS): Define.
14098
14099 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
14100
14101 [BZ #23024]
14102 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
14103 early when linux sentinel value is set.
14104
14105 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14106
14107 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
14108
14109 2018-03-27 Andreas Schwab <schwab@suse.de>
14110
14111 [BZ #23005]
14112 * resolv/res_send.c (__res_context_send): Return ENOMEM if
14113 allocation of private copy of nsaddr_list fails.
14114
14115 2018-03-26 Joseph Myers <joseph@codesourcery.com>
14116
14117 [BZ #16552]
14118 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
14119 * sysdeps/unix/sysv/linux/umount.c: ... here.
14120 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
14121 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
14122 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
14123 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
14124 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
14125 * sysdeps/unix/sysv/linux/umount.S: Likewise.
14126 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
14127
14128 2018-03-26 Andreas Schwab <schwab@suse.de>
14129
14130 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
14131 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
14132 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
14133 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
14134 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
14135 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
14136 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
14137 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
14138 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
14139 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
14140 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
14141 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
14142 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
14143 (R_RISCV_NUM): Define.
14144
14145 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
14146
14147 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
14148 TLS declaration of errno.
14149 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
14150 __libc_setup_tls.
14151 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
14152 (ARCH_SETUP_TLS): Likewise.
14153 * sysdeps/mach/hurd/libc-start.h: New file copied from
14154 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
14155 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
14156 instead of __libc_setup_tls.
14157 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
14158 __libc_setup_tls before initializing libpthread and running _hurd_init
14159 which starts the signal thread.
14160 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
14161 Declare function.
14162 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14163
14164 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
14165
14166 [BZ #22998]
14167 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
14168 after it is defined.
14169
14170 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
14171 Max Horn <max@quendi.de>
14172
14173 [BZ #22644]
14174 CVE-2017-18269
14175 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
14176 branch conditions.
14177 * string/test-memmove.c (do_test2): New testcase.
14178
14179 2018-03-22 Joseph Myers <joseph@codesourcery.com>
14180
14181 * sysdeps/generic/frame.h: Remove file.
14182 * sysdeps/arm/frame.h: Likewise.
14183 * sysdeps/hppa/frame.h: Likewise.
14184 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
14185 macro.
14186 (GET_FRAME): Likewise.
14187 (GET_STACK): Likewise.
14188 (CALL_SIGHANDLER): Likewise.
14189 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
14190 Likewise.
14191 (GET_FRAME): Likewise.
14192 (GET_STACK): Likewise.
14193 (CALL_SIGHANDLER): Likewise.
14194 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
14195 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14196 (GET_FRAME): Likewise.
14197 (GET_STACK): Likewise.
14198 (CALL_SIGHANDLER): Likewise.
14199 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
14200 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14201 (GET_FRAME): Likewise.
14202 (GET_STACK): Likewise.
14203 (ADVANCE_STACK_FRAME): Likewise.
14204 (CALL_SIGHANDLER): Likewise.
14205 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
14206 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14207 (GET_FRAME): Likewise.
14208 (GET_STACK): Likewise.
14209 (CALL_SIGHANDLER): Likewise.
14210 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
14211 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14212 (GET_FRAME): Likewise.
14213 (GET_STACK): Likewise.
14214 (CALL_SIGHANDLER): Likewise.
14215 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
14216 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14217 (GET_FRAME): Likewise.
14218 (GET_STACK): Likewise.
14219 (CALL_SIGHANDLER): Likewise.
14220 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
14221 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14222 (GET_FRAME): Likewise.
14223 (GET_STACK): Likewise.
14224 (CALL_SIGHANDLER): Likewise.
14225 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
14226 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14227 (GET_FRAME): Likewise.
14228 (GET_STACK): Likewise.
14229 (CALL_SIGHANDLER): Likewise.
14230 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
14231 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14232 (GET_FRAME): Likewise.
14233 (GET_STACK): Likewise.
14234 (CALL_SIGHANDLER): Likewise.
14235 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
14236 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14237 (GET_FRAME): Likewise.
14238 (GET_STACK): Likewise.
14239 (CALL_SIGHANDLER): Likewise.
14240 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
14241 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14242 (GET_FRAME): Likewise.
14243 (GET_STACK): Likewise.
14244 (CALL_SIGHANDLER): Likewise.
14245 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
14246 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14247 (GET_FRAME): Likewise.
14248 (GET_STACK): Likewise.
14249 (CALL_SIGHANDLER): Likewise.
14250 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
14251 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14252 (FIRST_FRAME_POINTER): Likewise.
14253 (ADVANCE_STACK_FRAME): Likewise.
14254 (GET_STACK): Likewise.
14255 (GET_FRAME): Likewise.
14256 (CALL_SIGHANDLER): Likewise.
14257 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
14258 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14259 (ADVANCE_STACK_FRAME): Likewise.
14260 (GET_STACK): Likewise.
14261 (GET_FRAME): Likewise.
14262 (CALL_SIGHANDLER): Likewise.
14263 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
14264 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14265 (GET_FRAME): Likewise.
14266 (GET_STACK): Likewise.
14267 (CALL_SIGHANDLER): Likewise.
14268 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
14269 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14270 (GET_FRAME): Likewise.
14271 (GET_STACK): Likewise.
14272 (CALL_SIGHANDLER): Likewise.
14273
14274 2018-03-21 Joseph Myers <joseph@codesourcery.com>
14275
14276 * sysdeps/x86_64/backtrace.c: Move to ....
14277 * debug/backtrace.c: ... here.
14278 * sysdeps/aarch64/backtrace.c: Remove file.
14279 * sysdeps/alpha/backtrace.c: Likewise.
14280 * sysdeps/hppa/backtrace.c: Likewise.
14281 * sysdeps/ia64/backtrace.c: Likewise.
14282 * sysdeps/mips/backtrace.c: Likewise.
14283 * sysdeps/nios2/backtrace.c: Likewise.
14284 * sysdeps/riscv/backtrace.c: Likewise.
14285 * sysdeps/sh/backtrace.c: Likewise.
14286 * sysdeps/tile/backtrace.c: Likewise.
14287
14288 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14289
14290 [BZ #22987]
14291 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
14292 function.
14293 (fdimf): Likewise.
14294 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
14295
14296 [BZ #17343]
14297 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
14298 possibly overflowing computations.
14299
14300 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14301
14302 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
14303 values from Linux-specific section now that it is in the GNU section.
14304 * sysdeps/gnu/errlist.c: Regenerate.
14305
14306 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14307
14308 * math/Makefile (libm-narrow-fns): Add sub.
14309 (libm-test-funcs-narrow): Likewise.
14310 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
14311 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
14312 * math/gen-auto-libm-tests.c (test_functions): Add sub.
14313 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
14314 (NARROW_SUB_ROUND_TO_ODD): Likewise.
14315 (NARROW_SUB_TRIVIAL): Likewise.
14316 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
14317 macro.
14318 (__dsubl): Likewise.
14319 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
14320 dsub.
14321 (CFLAGS-nldbl-dsub.c): New variable.
14322 (CFLAGS-nldbl-fsub.c): Likewise.
14323 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14324 __nldbl_dsubl.
14325 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
14326 prototype.
14327 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
14328 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
14329 * math/auto-libm-test-in: Add tests of sub.
14330 * math/auto-libm-test-out-narrow-sub: New generated file.
14331 * math/libm-test-narrow-sub.inc: New file.
14332 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14333 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
14334 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
14335 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
14336 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
14337 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
14338 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
14339 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
14340 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
14341 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
14342 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
14343 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
14344 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
14345 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
14346 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
14347 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
14348 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
14349 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
14350 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14351 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14352 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14353 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14354 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14355 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14356 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14357 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14358 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14359 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14360 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14361 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14362 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14363 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14364 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14365 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14366 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14367 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14368 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14369 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14370 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14371 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14372 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14373 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14374 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
14375 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
14376 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14377 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14378
14379 2018-03-19 Joseph Myers <joseph@codesourcery.com>
14380
14381 [BZ #20079]
14382 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
14383
14384 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
14385
14386 * benchtests/bench-timing.h (attribute_hidden): Undefine.
14387
14388 2018-03-18 Richard Braun <rbraun@sceen.net>
14389
14390 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
14391 thread reference.
14392
14393 2018-03-18 Agustina Arzille <avarzille@riseup.net>
14394
14395 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
14396 (__libc_cleanup_fct): Define function.
14397 (__libc_cleanup_region_start, __libc_cleanup_region_end,
14398 __libc_cleanup_end): Rewrite implementation using
14399 __attribute__ ((__cleanup__)).
14400 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
14401 * hurd/Makefile (routines): Add hurdlock.
14402 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
14403 interface.
14404 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
14405 * hurd/hurdpid.c: Include <lowlevellock.h>
14406 (_S_msg_proc_newids): Use lll_wait to synchronize.
14407 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
14408 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
14409 * mach/Makefile (lock-headers): Remove machine-lock.h.
14410 * mach/lock-intern.h: Include <lowlevellock.h> instead of
14411 <machine-lock.h>.
14412 (__spin_lock_t): New type.
14413 (__SPIN_LOCK_INITIALIZER): New macro.
14414 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
14415 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
14416 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
14417 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
14418 (__mutex_init): Initialize with lll.
14419 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
14420 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
14421 needing lll.
14422 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14423 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
14424 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
14425 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
14426 (__setpgid): Use lll for synchronization.
14427 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
14428 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
14429 instead of <cthreads.h>.
14430 (_IO_lock_inexpensive): New macro
14431 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
14432 (__libc_lock_self0): New declaration.
14433 (__libc_lock_owner_self): New macro.
14434 (__libc_key_t): Remove type.
14435 (_LIBC_LOCK_INITIALIZER): New macro.
14436 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
14437 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
14438 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
14439 __libc_lock_define_initialized_recursive,
14440 __rtld_lock_define_initialized_recursive,
14441 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
14442 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
14443 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
14444 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
14445 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
14446 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
14447 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
14448 New macros.
14449 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
14450 * hurd/hurdlock.c: New file.
14451 * hurd/hurdlock.h: New file.
14452 * mach/lowlevellock.h: New file
14453
14454 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14455
14456 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
14457 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
14458 when opening a symlink with O_NOFOLLOW.
14459 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
14460 path when flags contains O_NOFOLLOW.
14461 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
14462 if flags contains O_DIRECTORY and the result is a directory.
14463 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
14464 oneself when the pointer given in D is nul (as set by ext2fs).
14465 * sysdeps/mach/hurd/mlockall.c: New file.
14466 * sysdeps/mach/hurd/munlockall.c: New file.
14467
14468 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14469
14470 * hurd/hurdsig.c: Include <pthread.h>.
14471 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
14472 get the signal thread stack layout.
14473 * hurd/Makefile (headers): Remove threadvar.h.
14474 (inline-headers): Remove threadvar.h.
14475 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
14476 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
14477 __hurd_threadvar_max, __hurd_errno_location.
14478 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
14479 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
14480 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
14481 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
14482 unless TLS is not initialized yet, in which case we do not need a
14483 critical section yet anyway.
14484 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
14485 <machine-sp.h>.
14486 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
14487 declarations.
14488 (__hurd_threadvar_index): Remove enum.
14489 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
14490 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
14491 inlines.
14492 (__hurd_reply_port0): New variable declaration.
14493 (__hurd_local_reply_port): New macro.
14494 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
14495 (interrupted_reply_port_location): Add thread_t parameter. Use it
14496 with THREAD_TCB to access thread-local variables.
14497 (_hurdsig_abort_rpcs): Pass ss->thread to
14498 interrupted_reply_port_location.
14499 (_hurd_internal_post_signal): Likewise.
14500 (_hurdsig_init): Use presence of cthread_fork instead of
14501 __hurd_threadvar_stack_mask to start signal thread by hand.
14502 Remove signal thread threadvar initialization.
14503 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
14504 * hurd/sigunwind.c: Include <hurd/threadvar.h>
14505 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
14506 of threadvar.
14507 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
14508 __libc_lock_self0.
14509 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
14510 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
14511 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
14512 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
14513 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
14514 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
14515 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
14516 define variables.
14517 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
14518 <hurd/threadvar.h>.
14519 [IS_IN(rtld)] (rtld_errno): New variable.
14520 [IS_IN(rtld)] (__errno_location): New weak function.
14521 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
14522 * sysdeps/mach/hurd/errno.c: Remove file.
14523 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
14524 (__fork): Remove THREADVAR_SPACE macro and its use.
14525 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
14526 variable.
14527 (init): Do not initialize threadvar.
14528 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
14529 symbol.
14530 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
14531 __hurd_local_reply_port instead of threadvar.
14532 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
14533 _hurd_sigstate fields.
14534 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
14535 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
14536 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
14537 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
14538 instead of threadvar.
14539 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
14540 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
14541 (use_threadvar, global_reply_port): Remove variables.
14542 (__hurd_reply_port0): New variable.
14543 (__mig_get_reply_port): Use __hurd_local_reply_port and
14544 __hurd_reply_port0 instead of threadvar.
14545 (__mig_dealloc_reply_port): Likewise.
14546 (__mig_init): Do not initialize threadvar.
14547 * sysdeps/mach/hurd/profil.c: Fix comment.
14548 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
14549 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
14550 cthread_keycreate, cthread_getspecific, cthread_setspecific to
14551 __cthread_fork, __cthread_detach, __pthread_getattr_np,
14552 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
14553 __cthread_setspecific.
14554 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
14555 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
14556 __cthread_t instead of cthread_fork, cthread_detach,
14557 pthread_getattr_np, pthread_attr_getstack.
14558 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
14559 __cthread_keycreate.
14560 (cthread_getspecific): Rename to __cthread_getspecific.
14561 (cthread_setspecific): Rename to __cthread_setspecific.
14562 (__libc_getspecific): Use __cthread_getspecific instead of
14563 cthread_getspecific.
14564 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
14565 __cthread_keycreate instead of cthread_keycreate.
14566 (__libc_setspecific): Use __cthread_setspecific instead of
14567 cthread_setspecific.
14568 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
14569 Likewise.
14570 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
14571 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
14572 testing whether it is defined.
14573
14574 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
14575
14576 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
14577 Define macro.
14578 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
14579 * sysdeps/mach/i386/thread_state.h
14580 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
14581 i386_THREAD_STATE.
14582 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
14583 i386_THREAD_STATE.
14584 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
14585
14586 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
14587 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
14588
14589 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
14590 macros.
14591 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
14592 descriptor instead of creating a new one.
14593 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
14594
14595 * mach/setup-thread.c: Include <ldsodefs.h>.
14596 (__mach_setup_thread): Call _dl_allocate_tls, pass
14597 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
14598 MACHINE_THREAD_STATE_FLAVOR, before getting
14599 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
14600 MACHINE_THREAD_STATE_FLAVOR with the result.
14601 * hurd/hurdfault.c (_hurdsig_fault_init): Call
14602 MACHINE_THREAD_STATE_FIX_NEW.
14603 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
14604 too. Add original thread parameter.
14605
14606 2018-03-16 Joseph Myers <joseph@codesourcery.com>
14607
14608 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
14609 Remove inline function.
14610
14611 * sysdeps/i386/fpu/libm-test-ulps: Update.
14612 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14613
14614 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
14615
14616 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
14617 commit.
14618
14619 2018-03-15 Joseph Myers <joseph@codesourcery.com>
14620
14621 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
14622 (__sincos_code): Remove define and undefine.
14623 [__FAST_MATH__] (__sincos): Remove inline function.
14624 [__FAST_MATH__] (__sincosf): Remove inline function.
14625 [__FAST_MATH__] (__sincosl): Remove inline function.
14626 (__atan2l): Remove inline functions.
14627 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
14628 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
14629 function.
14630 (floor): Remove inline function.
14631 (ceil): Likewise.
14632 [__FAST_MATH__] (__ldexp_code): Remove macro.
14633 [__FAST_MATH__] (ldexp): Remove inline function.
14634 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
14635 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
14636 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
14637 [__USE_ISOC99] (__lrint_code): Remove macro.
14638 [__USE_ISOC99] (__llrint_code): Likewise.
14639 [__USE_ISOC99] (lrintf): Remove inline function.
14640 [__USE_ISOC99] (lrint): Likewise.
14641 [__USE_ISOC99] (lrintl): Likewise.
14642 [__USE_ISOC99] (llrint): Likewise.
14643 [__USE_ISOC99] (llrintf): Likewise.
14644 [__USE_ISOC99] (llrintl): Likewise.
14645
14646 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14647
14648 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
14649 (__ieee754_sqrtf): Remove.
14650 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
14651 (__ieee754_sqrtf): Remove.
14652 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
14653 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14654 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
14655 (__ieee754_sqrtf): Remove.
14656 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
14657 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
14658 (sqrtf): Remove.
14659 (sqrtl): Remove.
14660 (__ieee754_sqrt): Remove.
14661 (__ieee754_sqrtf): Remove.
14662 (__ieee754_sqrtl): Remove.
14663 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14664 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
14665 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
14666 (__ieee754_sqrtf): Remove.
14667 (__ieee754_sqrtl): Remove.
14668
14669 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14670
14671 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
14672 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
14673 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
14674 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
14675 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
14676 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14677 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
14678 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
14679 Likewise.
14680 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
14681 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
14682 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
14683 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
14684 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
14685 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
14686 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14687 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
14688 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
14689 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14690 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
14691 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
14692 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
14693 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
14694 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
14695 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
14696 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14697 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
14698 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
14699 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
14700 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
14701 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
14702 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
14703 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
14704 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
14705 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
14706 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14707 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
14708 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
14709 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14710 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
14711 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
14712 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
14713 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
14714 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14715 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14716 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
14717 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
14718 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
14719 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
14720
14721 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14722
14723 * include/math.h (sqrt): Declare with asm redirect.
14724 (sqrtf): Likewise.
14725 (sqrtl): Likewise.
14726 (sqrtf128): Likewise.
14727 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
14728 nonlib and libnldbl with -fmath-errno.
14729 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
14730 * math/w_sqrt_template.c: Likewise.
14731 * math/w_sqrtf_compat.c: Likewise.
14732 * math/w_sqrtl_compat.c: Likewise.
14733 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
14734 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
14735 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
14736 complex.h.
14737
14738 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14739
14740 * benchtests/Makefile: Define _ISOMAC.
14741 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
14742 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
14743 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
14744 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
14745 * benchtests/bench-timing.h: Define attribute_hidden.
14746
14747 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
14748
14749 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
14750 mov + lsr.
14751
14752 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14753
14754 [BZ #22963]
14755 * localedata/locales/cs_CZ (mon): Rename to...
14756 (alt_mon): This.
14757 (mon): Import from CLDR (genitive case).
14758
14759 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14760
14761 [BZ #22937]
14762 * localedata/locales/el_CY (abmon): Rename to...
14763 (ab_alt_mon): This.
14764 (abmon): Import from CLDR (abbreviated genitive case).
14765 * localedata/locales/el_GR (abmon): Rename to...
14766 (ab_alt_mon): This.
14767 (abmon): Import from CLDR (abbreviated genitive case).
14768
14769 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14770
14771 [BZ #22932]
14772 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
14773
14774 2018-03-15 Robert Buj <robert.buj@gmail.com>
14775
14776 [BZ #22848]
14777 * localedata/locales/ca_ES (abmon): Rename to...
14778 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
14779 (mon): Rename to...
14780 (alt_mon): This.
14781 (abmon): Import from CLDR (genitive case, month names preceded by
14782 "de" or "d’").
14783 (mon): Likewise.
14784 (abday): Synchronize with CLDR.
14785 (d_t_fmt): Likewise.
14786 (d_fmt): Likewise.
14787 (am_pm): Likewise.
14788
14789 (LC_TIME): Improve indentation.
14790 (LC_TELEPHONE): Likewise.
14791 (LC_NAME): Likewise.
14792 (LC_ADDRESS): Likewise.
14793
14794 2018-03-14 Joseph Myers <joseph@codesourcery.com>
14795
14796 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
14797 (lrintf): Remove definitions used only with old GCC.
14798 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
14799 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
14800 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
14801 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
14802 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
14803 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
14804 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
14805 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
14806 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
14807 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
14808 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
14809 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
14810 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
14811 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
14812 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
14813 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
14814 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
14815 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
14816 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
14817 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
14818 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
14819 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
14820 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
14821 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
14822 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
14823 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
14824 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
14825 [__FAST_MATH__] (__M_SQRT2): Remove macro.
14826
14827 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
14828
14829 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
14830 instruction to unbreak builds with binutils 2.26 and older.
14831
14832 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
14833
14834 * sysdeps/aarch64/strncmp.S (count): New macro.
14835 (strncmp): Store misaligned length in SRC1 in COUNT.
14836 (mutual_align): Adjust.
14837 (misaligned8): Load dword at a time when it is safe.
14838
14839 2018-03-12 Zack Weinberg <zackw@panix.com>
14840
14841 [BZ #1190]
14842 [BZ #19476]
14843 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
14844 if the _IO_EOF_SEEN bit is already set; update commentary.
14845 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
14846 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
14847
14848 * support/support_openpty.c, support/tty.h: New files.
14849 * support/Makefile (libsupport-routines): Add support_openpty.
14850
14851 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
14852 New test cases.
14853 * libio/Makefile (tests): Add tst-fgetc-after-eof.
14854 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
14855
14856 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
14857
14858 * po/pt_BR.po: Update translations.
14859
14860 2018-03-12 David Michael <fedora.dm0@gmail.com>
14861
14862 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
14863 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
14864 get a port to the startup server.
14865
14866 2018-03-11 Zack Weinberg <zackw@panix.com>
14867
14868 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
14869 before nldbl-compat.h.
14870
14871 2018-03-10 Zack Weinberg <zackw@panix.com>
14872
14873 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
14874 math.h or math_private.h.
14875
14876 * sysdeps/alpha/fpu/s_isnan.c
14877 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14878 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14879 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14880 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14881 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14882 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14883 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14884 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14885 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14886 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14887 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14888 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14889 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14890 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14891 Include math_private.h.
14892
14893 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14894 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14895 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14896 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
14897 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
14898 * sysdeps/powerpc/power7/fpu/s_logb.c:
14899 Include math.h and math_private.h.
14900
14901 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
14902 uses of $at in .set noat / .set at.
14903
14904 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
14905
14906 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
14907 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
14908 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
14909 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
14910 Likewise.
14911
14912 2018-03-09 Florian Weimer <fweimer@redhat.com>
14913
14914 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
14915 in comment.
14916
14917 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
14918
14919 [BZ #22919]
14920 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
14921 Add nop before __startcontext, add explaining comments.
14922
14923 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14924
14925 [BZ #22926]
14926 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
14927 empty for __SPE__.
14928 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
14929 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
14930 Do not build hardware transactional code for __SPE__.
14931 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14932 (__lll_trylock_elision): Likewise.
14933 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
14934 (__lll_unlock_elision): Likewise.
14935
14936 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
14937 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
14938 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
14939 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
14940 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
14941 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
14942 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
14943 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
14944 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
14945 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
14946 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
14947 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
14948 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
14949 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
14950 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
14951 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
14952 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14953 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14954 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14955 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14956 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14957 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14958 (__ASSUME_CLONE_BACKWARDS): Define.
14959 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14960 __clone2 if __NR_clone2 is defined.
14961 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14962 (__ASSUME_CLONE_BACKWARDS): Likewise.
14963 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14964 (__ASSUME_CLONE_BACKWARDS): Likewise.
14965 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14966 (__ASSUME_CLONE2): Likewise.
14967 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14968 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14969 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14970 variants and the define architecture can use.
14971 (__ASSUME_CLONE_DEFAULT): Define as default.
14972 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14973 (__ASSUME_CLONE_BACKWARDS): Likewise.
14974 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14975 (__ASSUME_CLONE_BACKWARDS): Likewise.
14976 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14977 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14978
14979 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14980
14981 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14982
14983 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14984 time.
14985
14986 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14987 (do_test_limit): Likewise.
14988
14989 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14990 for every implementation.
14991 (do_test): Likewise.
14992
14993 * benchtests/bench-strncmp.c: Convert output to json.
14994
14995 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14996
14997 * io/futimens.c: Add missing start-of-file descriptive comment.
14998 * io/utime.c: Likewise.
14999 * misc/futimesat.c: Likewise.
15000 * misc/utimes.c: Likewise.
15001 * sysdeps/mach/hurd/futimesat.c: Likewise.
15002 * sysdeps/mach/hurd/utimes.c: Likewise.
15003 * sysdeps/posix/utime.c: Likewise.
15004 * sysdeps/posix/utimes.c: Likewise.
15005 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
15006 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
15007 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
15008 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
15009
15010 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15011
15012 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
15013 hurd_futimes.
15014 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
15015 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
15016 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
15017 (__futimens): Move implementation to...
15018 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
15019 utime_tvalue_from_tspec): ... new helper functions.
15020 (hurd_futimens): New function.
15021 * sysdeps/mach/hurd/futimesat.c: New file.
15022 * sysdeps/mach/hurd/utimensat.c: New file.
15023
15024 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
15025
15026 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
15027 UTIME_OMIT): New macros.
15028 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
15029 before reverting to converting time spec to time value and calling
15030 __file_utimes.
15031 * sysdeps/mach/hurd/utime-helper.c: New file.
15032 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
15033 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
15034 reverting to utime_tvalue_from_tval and __file_utimes.
15035 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
15036 (__lutimes): Just call hurd_futimens after lookup.
15037 * sysdeps/mach/hurd/utimes.c: Likewise.
15038
15039 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15040
15041 * bits/sigaction.h: Add include guard.
15042 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
15043 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
15044 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
15045 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
15046 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
15047 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
15048 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
15049 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
15050 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
15051
15052 2018-03-05 Joseph Myers <joseph@codesourcery.com>
15053
15054 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
15055 -Wmaybe-uninitialized for -Os.
15056 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
15057 this disabling.
15058
15059 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15060
15061 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
15062 __INO_T_MATCHES_INO64_T is defined.
15063 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
15064 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
15065 of definition.
15066 * dirent/alphasort64.c: Likewise.
15067 * dirent/scandir.c: Likewise.
15068 * dirent/scandir64-tail.c: Likewise.
15069 * dirent/scandir64.c: Likewise.
15070 * dirent/scandirat.c: Likewise.
15071 * dirent/scandirat64.c: Likewise.
15072 * dirent/versionsort.c: Likewise.
15073 * dirent/versionsort64.c: Likewise.
15074 * include/dirent.h: Likewise.
15075
15076 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
15077 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
15078 for socketpair endpoint.
15079 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
15080 WRITE_BUFFER_SIZE as buffer size for sending socket.
15081 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
15082 issue on system where send is implemented with sendto syscall.
15083 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
15084 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
15085 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
15086 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
15087
15088 [BZ #21269]
15089 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
15090 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
15091 sa_restorer for vDSO case.
15092 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
15093
15094 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15095
15096 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
15097 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
15098 * hurd/hurd/ioctl.h: Include <mach/port.h>
15099 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
15100 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
15101 <mach/mach_types.h> and <mach/message.h>.
15102 (headers): Move mach/param.h to bits/mach/param.h.
15103 * sysdeps/mach/i386/mach/param.h: Move file to ...
15104 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
15105 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
15106 of <mach/param.h>.
15107 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
15108 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
15109 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
15110 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
15111 trivial, for C++ conformity.
15112 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
15113 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
15114 Process mig output through $(migheadersed).
15115 * hurd/Makefile (migheadersed): Define variable.
15116 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
15117 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
15118 headers.
15119 * hurd/hurd.h: Include <bits/types/sigset_t.h>
15120 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
15121 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
15122 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
15123 <bits/types/sigset_t.h>.
15124 [!defined __USE_GNU]: Do not #error out.
15125 (struct hurd_sigstate): Use _NSIG instead of NSIG.
15126 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
15127 Include <stddef.h> and <bits/types/sigset_t.h>
15128 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
15129 instead of sighandler_t.
15130 * stdlib/errno.h (error_t): Move definition to...
15131 * bits/types/error_t.h: ... new header.
15132 * stdlib/Makefile (headers): Add bits/types/error_t.h.
15133 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
15134 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
15135 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
15136 * hurd/hurd.h: Include <bits/types/error_t.h>
15137 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
15138 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
15139 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
15140 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
15141 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
15142 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
15143 * sysdeps/mach/hurd/futimens.c: New file.
15144
15145 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
15146
15147 [BZ #22918]
15148 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
15149 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
15150 * nscd/gai.c (__nss_hosts_database): Readd definition.
15151 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
15152 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
15153 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
15154
15155 2018-03-02 Joseph Myers <joseph@codesourcery.com>
15156
15157 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
15158 (ifunc_one): Likewise.
15159
15160 2018-03-01 DJ Delorie <dj@delorie.com>
15161
15162 [BZ #22342]
15163 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
15164 key value.
15165
15166 2018-03-01 Maciej W. Rozycki <macro@mips.com>
15167
15168 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
15169 `match_pid' parameter.
15170 (td_ta_thr_iter): Update accordingly.
15171
15172 2018-03-01 Florian Weimer <fweimer@redhat.com>
15173
15174 * nptl/Makefile (install-lib-ldscripts): Remove.
15175 (install): Remove rule.
15176 ($(inst_libdir)/libpthread.so): Likewise.
15177
15178 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15179
15180 [BZ #22896]
15181 * localedata/locales/an_ES: update month and day names,
15182 improve d_fmt, improve postal_fmt, add country_post,
15183 add country_isbn
15184
15185 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15186
15187 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
15188 Ukrainian instead of Bulgarian.
15189
15190 2018-03-01 Florian Weimer <fweimer@redhat.com>
15191
15192 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
15193 reference.
15194
15195 2018-03-01 Florian Weimer <fweimer@redhat.com>
15196
15197 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
15198 * nptl/Makefile (routines): Add pthread_atfork.
15199 (static-only-routines): Set to pthread_atfork.
15200 (libpthread-routines): Remove pthread_atfork.
15201 (libpthread-static-only-routines): Remove.
15202 (install): Update comment.
15203 (libpthread.so): Do not install libpthread_nonshared.a.
15204 (tests): Do not link with libpthread_nonshared.a.
15205 (generated): Remove libpthread_nonshared.a.
15206 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
15207 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
15208 with libpthread_nonshared.a.
15209
15210 2018-02-28 Joseph Myers <joseph@codesourcery.com>
15211
15212 [BZ #22902]
15213 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
15214 (libc_feholdexcept_setroundf128): New macro.
15215 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
15216
15217 [BZ #15105]
15218 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
15219 libc_hidden_def.
15220 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
15221 * include/inttypes.h: New file.
15222
15223 2018-02-27 Joseph Myers <joseph@codesourcery.com>
15224
15225 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
15226 -Os in two more places.
15227
15228 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15229
15230 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
15231 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
15232 be sorted correctly at the moment because of a bug.
15233
15234 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15235
15236 [BZ #22550] - es_ES locale (and other es_* locales): collation should
15237 treat ñ as a primary different character, sync the collation
15238 for Spanish with CLDR.
15239 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
15240 * localedata/Makefile: Add new test files.
15241 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
15242 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
15243 collation order.
15244 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
15245 * localedata/am_ET.UTF-8.in: New test file.
15246 * localedata/az_AZ.UTF-8.in: Likewise.
15247 * localedata/be_BY.UTF-8.in: Likewise.
15248 * localedata/ber_DZ.UTF-8.in: Likewise.
15249 * localedata/ber_MA.UTF-8.in: Likewise.
15250 * localedata/bg_BG.UTF-8.in: Likewise.
15251 * localedata/br_FR.UTF-8.in: Likewise.
15252 * localedata/cmn_TW.UTF-8.in: Likewise.
15253 * localedata/crh_UA.UTF-8.in: Likewise.
15254 * localedata/csb_PL.UTF-8.in: Likewise.
15255 * localedata/cv_RU.UTF-8.in: Likewise.
15256 * localedata/cy_GB.UTF-8.in: Likewise.
15257 * localedata/dz_BT.UTF-8.in: Likewise.
15258 * localedata/eo.UTF-8.in: Likewise.
15259 * localedata/es_ES.UTF-8.in: Likewise.
15260 * localedata/fa_IR.UTF-8.in: Likewise.
15261 * localedata/fi_FI.UTF-8.in: Likewise.
15262 * localedata/fil_PH.UTF-8.in: Likewise.
15263 * localedata/fur_IT.UTF-8.in: Likewise.
15264 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
15265 * localedata/ha_NG.UTF-8.in: Likewise.
15266 * localedata/ig_NG.UTF-8.in: Likewise.
15267 * localedata/ik_CA.UTF-8.in: Likewise.
15268 * localedata/kk_KZ.UTF-8.in: Likewise.
15269 * localedata/ku_TR.UTF-8.in: Likewise.
15270 * localedata/ky_KG.UTF-8.in: Likewise.
15271 * localedata/ln_CD.UTF-8.in: Likewise.
15272 * localedata/mi_NZ.UTF-8.in: Likewise.
15273 * localedata/ml_IN.UTF-8.in: Likewise.
15274 * localedata/mn_MN.UTF-8.in: Likewise.
15275 * localedata/mr_IN.UTF-8.in: Likewise.
15276 * localedata/mt_MT.UTF-8.in: Likewise.
15277 * localedata/nb_NO.UTF-8.in: Likewise.
15278 * localedata/om_KE.UTF-8.in: Likewise.
15279 * localedata/os_RU.UTF-8.in: Likewise.
15280 * localedata/ps_AF.UTF-8.in: Likewise.
15281 * localedata/ro_RO.UTF-8.in: Likewise.
15282 * localedata/ru_RU.UTF-8.in: Likewise.
15283 * localedata/sc_IT.UTF-8.in: Likewise.
15284 * localedata/se_NO.UTF-8.in: Likewise.
15285 * localedata/sq_AL.UTF-8.in: Likewise.
15286 * localedata/sv_SE.UTF-8.in: Likewise.
15287 * localedata/szl_PL.UTF-8.in: Likewise.
15288 * localedata/tg_TJ.UTF-8.in: Likewise.
15289 * localedata/tk_TM.UTF-8.in: Likewise.
15290 * localedata/tt_RU.UTF-8.in: Likewise.
15291 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
15292 * localedata/ug_CN.UTF-8.in: Likewise.
15293 * localedata/uz_UZ.UTF-8.in: Likewise.
15294 * localedata/vi_VN.UTF-8.in: Likewise.
15295 * localedata/yi_US.UTF-8.in: Likewise.
15296 * localedata/yo_NG.UTF-8.in: Likewise.
15297 * localedata/zh_CN.UTF-8.in: Likewise.
15298 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
15299 file and fix bugs in the collation.
15300 * localedata/locales/az_AZ: Likewise.
15301 * localedata/locales/be_BY: Likewise.
15302 * localedata/locales/ber_DZ: Likewise.
15303 * localedata/locales/ber_MA: Likewise.
15304 * localedata/locales/bg_BG: Likewise.
15305 * localedata/locales/br_FR: Likewise.
15306 * localedata/locales/br_FR@euro: Likewise.
15307 * localedata/locales/ca_ES: Likewise.
15308 * localedata/locales/cns11643_stroke: Likewise.
15309 * localedata/locales/crh_UA: Likewise.
15310 * localedata/locales/cs_CZ: Likewise.
15311 * localedata/locales/csb_PL: Likewise.
15312 * localedata/locales/cv_RU: Likewise.
15313 * localedata/locales/cy_GB: Likewise.
15314 * localedata/locales/da_DK: Likewise.
15315 * localedata/locales/dz_BT: Likewise.
15316 * localedata/locales/en_CA: Likewise.
15317 * localedata/locales/eo: Likewise.
15318 * localedata/locales/es_CU: Likewise.
15319 * localedata/locales/es_EC: Likewise.
15320 * localedata/locales/es_ES: Likewise.
15321 * localedata/locales/es_US: Likewise.
15322 * localedata/locales/et_EE: Likewise.
15323 * localedata/locales/fa_IR: Likewise.
15324 * localedata/locales/fi_FI: Likewise.
15325 * localedata/locales/fil_PH: Likewise.
15326 * localedata/locales/fur_IT: Likewise.
15327 * localedata/locales/gez_ER@abegede: Likewise.
15328 * localedata/locales/ha_NG: Likewise.
15329 * localedata/locales/hr_HR: Likewise.
15330 * localedata/locales/hsb_DE: Likewise.
15331 * localedata/locales/hu_HU: Likewise.
15332 * localedata/locales/ig_NG: Likewise.
15333 * localedata/locales/ik_CA: Likewise.
15334 * localedata/locales/is_IS: Likewise.
15335 * localedata/locales/iso14651_t1_pinyin: Likewise.
15336 * localedata/locales/kk_KZ: Likewise.
15337 * localedata/locales/ku_TR: Likewise.
15338 * localedata/locales/ky_KG: Likewise.
15339 * localedata/locales/ln_CD: Likewise.
15340 * localedata/locales/lt_LT: Likewise.
15341 * localedata/locales/lv_LV: Likewise.
15342 * localedata/locales/mi_NZ: Likewise.
15343 * localedata/locales/ml_IN: Likewise.
15344 * localedata/locales/mn_MN: Likewise.
15345 * localedata/locales/mr_IN: Likewise.
15346 * localedata/locales/mt_MT: Likewise.
15347 * localedata/locales/nb_NO: Likewise.
15348 * localedata/locales/om_KE: Likewise.
15349 * localedata/locales/os_RU: Likewise.
15350 * localedata/locales/pl_PL: Likewise.
15351 * localedata/locales/ps_AF: Likewise.
15352 * localedata/locales/ro_RO: Likewise.
15353 * localedata/locales/ru_RU: Likewise.
15354 * localedata/locales/ru_UA: Likewise.
15355 * localedata/locales/sc_IT: Likewise.
15356 * localedata/locales/se_NO: Likewise.
15357 * localedata/locales/si_LK: Likewise.
15358 * localedata/locales/sq_AL: Likewise.
15359 * localedata/locales/sv_FI: Likewise.
15360 * localedata/locales/sv_FI@euro: Likewise.
15361 * localedata/locales/sv_SE: Likewise.
15362 * localedata/locales/szl_PL: Likewise.
15363 * localedata/locales/tg_TJ: Likewise.
15364 * localedata/locales/ti_ER: Likewise.
15365 * localedata/locales/tk_TM: Likewise.
15366 * localedata/locales/tl_PH: Likewise.
15367 * localedata/locales/tr_TR: Likewise.
15368 * localedata/locales/tt_RU: Likewise.
15369 * localedata/locales/tt_RU@iqtelif: Likewise.
15370 * localedata/locales/ug_CN: Likewise.
15371 * localedata/locales/uk_UA: Likewise.
15372 * localedata/locales/uz_UZ: Likewise.
15373 * localedata/locales/uz_UZ@cyrillic: Likewise.
15374 * localedata/locales/vi_VN: Likewise.
15375 * localedata/locales/yi_US: Likewise.
15376 * localedata/locales/yo_NG: Likewise.
15377
15378 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15379
15380 * gen-locales.mk: Make test files which contain @ modifiers in their
15381 name work.
15382 * localedata/gen-locale.sh: Likewise.
15383
15384 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15385
15386 * posix/tst-fnmatch.input: Fix results for range expressions
15387 for non C locales.
15388 * posix/tst-regexloc.c: Do not use a range expression for
15389 de_DE.ISO-8859-1 locale.
15390
15391 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15392
15393 * posix/bug-regex5.c: Fix test case because with the new
15394 iso14651_t1_common file, the da_DK locale now has 6 collating elements
15395 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
15396 file.
15397
15398 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15399
15400 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
15401 downloaded from ISO, the collation order of @-. and space has changed.
15402 Therefore, this test file needed to be adapted.
15403 * localedata/fr_CA.UTF-8.in: Likewise.
15404 * localedata/fr_FR.UTF-8.in: Likewise.
15405 * localedata/uk_UA.UTF-8.in: Likewise.
15406
15407 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15408
15409 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
15410 order of ȥ in the new iso14651_t1_common file.
15411 * localedata/pl_PL.UTF-8.in: Likewise.
15412
15413 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15414
15415 * localedata/locales/iso14651_t1_common: Add sections for various
15416 scripts to the iso14651_t1_common file.
15417
15418 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15419
15420 * localedata/locales/iso14651_t1_common: Use the code point of a
15421 character in the fourth collation level instead of IGNORE for all
15422 entries which have IGNORE on all 4 levels.
15423
15424 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15425
15426 * localedata/locales/iso14651_t1_common: Add some convenient collation
15427 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
15428 rules similar to those in CLDR.
15429
15430 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15431
15432 * localedata/locales/iso14651_t1_common: The new version of this
15433 file downloaded from ISO contained several syntax errors which
15434 are fixed by this patch.
15435
15436 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15437
15438 * localedata/locales/iso14651_t1_common: replace all <U.....>
15439 with <U000.....> because glibc understands only 4 digit or 8 digit
15440
15441 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15442
15443 * localedata/locales/iso14651_t1_common: Necessary changes
15444 to make the file downloaded from ISO usable by glibc.
15445
15446 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15447
15448 [BZ #14095]
15449 * localedata/locales/iso14651_t1_common: Update file to
15450 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
15451
15452 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15453
15454 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
15455 of <nptl/pthreadP.h>
15456 (thread_attr_compare): Move function to...
15457 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
15458 * sysdeps/nptl/timer_routines.h: ... new header.
15459 * sysdeps/mach/hurd/gai_misc.h: New file.
15460
15461 2018-02-26 Joseph Myers <joseph@codesourcery.com>
15462
15463 * string/strcoll_l.c: Include <libc-diag.h>.
15464 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
15465 declarations of seq1 and seq2.
15466
15467 [BZ #15105]
15468 * stdlib/atoi.c (atoi): Use libc_hidden_def.
15469 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
15470
15471 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
15472
15473 [BZ #22433]
15474 [BZ #22807]
15475 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
15476 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
15477 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
15478 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
15479 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
15480 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
15481
15482 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15483
15484 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
15485 macros used in __ptrace_request.
15486
15487 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
15488
15489 [BZ #22792]
15490 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
15491 to $(CC).
15492 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
15493 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
15494 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
15495 <tcb-offsets.h>.
15496
15497 2018-02-23 Joseph Myers <joseph@codesourcery.com>
15498
15499 [BZ #15105]
15500 * ctype/ctype.c (tolower): Use libc_hidden_def.
15501 (toupper): Likewise.
15502 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
15503 [!_ISOMAC] (toupper): Likewise.
15504
15505 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15506
15507 * localedata/Makefile: Remove --quiet argument when
15508 installing locales
15509
15510 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15511
15512 [BZ #17438]
15513 * localedata/locales/pt_BR (LC_TIME): use / instead of -
15514 in d_fmt.
15515 * localedata/locales/pt_PT (LC_TIME): likewise
15516
15517 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15518
15519 [BZ #22646]
15520 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
15521 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
15522 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
15523
15524 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15525
15526 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15527
15528 * nptl/Makefile (routines): Remove unregister-atfork.
15529 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
15530 (fork_handler_alloc): Remove function.
15531 (fork_handlers, fork_handler_init): New variables.
15532 (__fork_lock): Rename to atfork_lock.
15533 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
15534 to use a dynamic array to add/remove atfork handlers.
15535 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15536 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
15537 Remove declaration.
15538 (fork_handler): Remove next, refcntr, and need_signal member.
15539 (__run_fork_handler_type): New enum.
15540 (__run_fork_handlers): New prototype.
15541 * nptl/register-atfork.c: Remove file.
15542 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
15543
15544 * sysdeps/nptl/nptl-signals.h: Move to ...
15545 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
15546 comments.
15547 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
15548 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
15549 unnecessary check for SIGTIMER.
15550 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
15551 remove unnecessary removal of SIGTIMER.
15552 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
15553 include-signals.h rename.
15554 * nptl/pthreadP.h: Likewise.
15555 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
15556 __is_internal_signal instead of __nptl_is_internal_signal.
15557
15558 2018-02-22 Andrew Waterman <andrew@sifive.com>
15559
15560 [BZ # 22884]
15561 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
15562 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
15563 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
15564 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
15565
15566 2018-02-22 DJ Delorie <dj@delorie.com>
15567
15568 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
15569
15570 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
15571
15572 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
15573 do_misaligned, not misaligned8.
15574
15575 2018-02-22 Steve Ellcey <sellcey@cavium.com>
15576
15577 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
15578 Add memcpy_thunderx2.
15579 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
15580 Increment to 4.
15581 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
15582 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
15583 and IS_THUNDERX2PA checks.
15584 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
15585 Use macro to set name appropriately.
15586 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
15587 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
15588 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
15589 New macro.
15590 (IS_THUNDERX2): New macro.
15591
15592 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
15593
15594 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15595
15596 2018-02-21 Zack Weinberg <zackw@panix.com>
15597
15598 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
15599 Define here, unconditionally.
15600 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
15601 * libio/libioP.h: Remove #if 0 blocks.
15602 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
15603 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
15604 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
15605
15606 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
15607 Assume weak_alias is always defined.
15608
15609 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
15610 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
15611 Remove #if 0 and #ifdef TODO blocks.
15612 Assume text_set_element is always defined.
15613
15614 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
15615 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
15616 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
15617
15618 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
15619 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
15620 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
15621 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
15622 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
15623 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
15624 Reformat bit flags for _flags field to make occupancy clearer.
15625 Update commentary.
15626 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
15627 Keep definitions consistent with those in libio/libio.h.
15628
15629 * libio/libio.h (_IO_file_flags): Remove macro.
15630 All uses changed to _flags.
15631
15632 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
15633 (__HAVE_COLUMN, _IO_BE): Don't define.
15634 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
15635 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
15636 * libio/libioP.h (EOF): Don't define.
15637 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
15638 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
15639 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
15640 testing _IO_UNIFIED_JUMPTABLES.
15641
15642 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
15643 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
15644 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
15645 (_IO_size_t): Delete; all uses changed to size_t.
15646 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
15647 (_IO_off_t): Delete; all uses changed to off_t.
15648 (_IO_off64_t): Delete; all uses changed to off64_t.
15649 (_IO_pid_t): Delete; all uses changed to pid_t.
15650 (_IO_uid_t): Delete; all uses changed to uid_t.
15651 (_IO_wint_t): Delete; all uses changed to wint_t.
15652 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
15653 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
15654 (_IO_cookie_io_functions_t): Delete; all uses changed to
15655 cookie_io_functions_t.
15656 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
15657 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
15658 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
15659 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
15660
15661 * libio/iofopncook.c: Remove unnecessary forward declarations.
15662 * libio/iolibio.h: Correct outdated commentary.
15663 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
15664 * stdio-common/fxprintf.c (__fxprintf_nocancel):
15665 Remove unnecessary casts.
15666 * stdio-common/getline.c: Use _IO_getdelim directly.
15667 Don't redefine ssize_t.
15668 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
15669 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
15670 Remove outdated comments.
15671 * stdio-common/vfscanf.c: Don't redefine va_list.
15672
15673 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
15674 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
15675 Remove preprocessor conditionals on _LIBC and __USE_GNU,
15676 which are always true, and __cplusplus, which is always false.
15677
15678 2018-02-21 Joseph Myers <joseph@codesourcery.com>
15679
15680 [BZ #15105]
15681 [BZ #19463]
15682 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
15683 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
15684 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
15685 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
15686 libc_hidden_proto.
15687 [!_ISOMAC] (putc_unlocked): Likewise.
15688 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
15689 define inline if [__USE_EXTERN_INLINES].
15690 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
15691 putc_unlocked.
15692
15693 [BZ #15105]
15694 [BZ #19463]
15695 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
15696 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
15697 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
15698 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
15699 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
15700 getc_unlocked.
15701 * time/tzfile.c (__tzfile_read): Likewise.
15702
15703 2018-02-21 Mike FABIAN <mfabian@redhat.com>
15704
15705 [BZ #22517]
15706 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
15707
15708 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15709
15710 * io/fcntl.h: Fix a typo in a comment.
15711
15712 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15713
15714 [BZ #22862]
15715 * include/features.h: Add _ISOC11_SOURCE to test for whether to
15716 define _DEFAULT_SOURCE.
15717 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
15718
15719 2018-02-21 Florian Weimer <fweimer@redhat.com>
15720
15721 [BZ #20890]
15722 * elf/cache.c (save_cache): Call fsync on temporary file before
15723 renaming it.
15724 (save_aux_cache): Call fdatasync on temporary file before renaming
15725 it.
15726
15727 2018-02-21 Florian Weimer <fweimer@redhat.com>
15728
15729 [BZ #22787]
15730 * include/caller.h: Remove file.
15731 * elf/dl-caller.c: Likewise.
15732 * elf/Makefile (dl-routines): Remove dl-caller.
15733 (shared-only-routines): Do not add dl-caller.
15734 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
15735 __check_caller.
15736 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
15737 member.
15738 (dl_open_worker): Do not call __check_caller.
15739 (_dl_open): Do not set caller_dl_open member.
15740 * elf/rtld.c (_rtld_global_ro): Do not initialize
15741 _dl_check_caller member.
15742 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
15743 _dl_check_caller member.
15744 (_dl_check_caller): Remove declaration.
15745 * sysdeps/unix/sysv/linux/dl-execstack.c
15746 (_dl_make_stack_executable): Do not call __check_caller.
15747
15748 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
15749
15750 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
15751 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
15752
15753 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15754
15755 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
15756 description.
15757
15758 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15759
15760 [BZ #16335]
15761 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
15762 of 199606L, 200112L, and 200809L.
15763 (_XOPEN_SOURCE): Document special values of 600 and 700.
15764 (_ISOC11_SOURCE): Document macro.
15765 (_ATFILE_SOURCE): Likewise.
15766 (_FORTIFY_SOURCE): Likewise.
15767
15768 2018-02-19 Joseph Myers <joseph@codesourcery.com>
15769
15770 [BZ #15105]
15771 [BZ #19463]
15772 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
15773 and define as weak alias of __ferror_unlocked. Use
15774 libc_hidden_weak.
15775 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
15776 libc_hidden_proto.
15777 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
15778 function if [__USE_EXTERN_INLINES].
15779 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
15780 ferror_unlocked.
15781
15782 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
15783
15784 [BZ #6889]
15785 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
15786
15787 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15788
15789 [BZ #22818]
15790 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
15791 the GLIBC_2.1 version.
15792
15793 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15794
15795 [BZ #21508]
15796 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
15797 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
15798 intl/tst-gettext-de.po from po/de.po by removing the
15799 POT-Creation-Date line.
15800 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
15801 ../po/de.po.
15802 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
15803 ../po/de.po.
15804
15805 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
15806
15807 * mach/Makefile (headers): Add mach/param.h.
15808 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
15809 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
15810 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
15811 (__ptsname_r): Move implementation to...
15812 (__ptsname_internal): ... new function. Add filling the STP
15813 structure.
15814
15815 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
15816
15817 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
15818 idouble to 1 ULP.
15819
15820 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
15821
15822 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
15823 syntax.
15824
15825 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
15826
15827 * nptl/Makefile (tst-mutex8-ENV): Delete.
15828 * nptl/tst-mutex8.c (check_type):
15829 Add runtime check if mutex will be elided.
15830
15831 2018-02-15 Joseph Myers <joseph@codesourcery.com>
15832
15833 [BZ #20980]
15834 [BZ #21234]
15835 * manual/install.texi (Configuring and compiling): Describe
15836 passing CC and CFLAGS on configure command line, not as
15837 environment variables. Use @code markup on those variables.
15838 Specify what options go in CC and what go in CFLAGS. Note the
15839 requirement to compile with optimization.
15840 * INSTALL: Regenerated.
15841
15842 [BZ #18124]
15843 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
15844 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
15845 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
15846 __sigprocmask instead of sigprocmask.
15847 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
15848 Likewise.
15849 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
15850 __sigsetjmp and sigprocmask.
15851
15852 [BZ #15105]
15853 * include/argz.h (argz_next): Use libc_hidden_proto.
15854 (__argz_next): Likewise.
15855 * string-argz-next.c (__argz_next): Use libc_hidden_def.
15856 (argz_next): Use libc_hidden_weak.
15857
15858 [BZ #15105]
15859 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
15860 libc_hidden_proto.
15861 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
15862 libc_hidden_def.
15863
15864 [BZ #15105]
15865 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
15866 libc_hidden_proto.
15867 * libio/iofputs.c (fputs): Use libc_hidden_weak.
15868
15869 [BZ #15105]
15870 [BZ #19463]
15871 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
15872 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
15873 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
15874 (__feof_unlocked): New declaration, and inline function if
15875 [__USE_EXTERN_INLINES].
15876 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15877 instead of feof_unlocked.
15878 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15879 * nss/nsswitch.c (nss_parse_file): Likewise.
15880 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15881 Likewise.
15882 * time/getdate.c (__getdate_r): Likewise.
15883 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15884 Define as macro to call __feof_unlocked.
15885
15886 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15887
15888 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15889
15890 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15891
15892 * math/Makefile: Remove mpexp.c and mplog.c
15893 * sysdeps/i386/fpu/mpexp.c: Delete file.
15894 * sysdeps/i386/fpu/mplog.c: Likewise.
15895 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15896 * sysdeps/ia64/fpu/mplog.c: Likewise.
15897 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
15898 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
15899 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
15900 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15901 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
15902 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
15903 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
15904 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
15905 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15906 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15907 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
15908 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15909 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15910 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
15911 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15912 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15913
15914 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
15915
15916 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15917
15918 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15919
15920 * sysdeps/sh/libm-test-ulps: Update.
15921
15922 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15923
15924 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15925 idouble to 1 ULP.
15926
15927 2018-02-12 Zack Weinberg <zackw@panix.com>
15928
15929 [BZ #19239]
15930 * posix/sys/types.h: Don't include sys/sysmacros.h.
15931 * misc/sys/sysmacros.h: Remove the conditional deprecation
15932 warnings for the macros defined by this header.
15933
15934 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15935
15936 * manual/probes.texi: Remove slowexp probes.
15937 * math/Makefile: Remove slowexp.
15938 * sysdeps/generic/math_private.h (__slowexp): Remove.
15939 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
15940 document error bounds.
15941 * sysdeps/i386/fpu/slowexp.c: Remove.
15942 * sysdeps/ia64/fpu/slowexp.c: Remove.
15943 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
15944 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
15945 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
15946 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
15947 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
15948 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
15949 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
15950 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
15951 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
15952 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15953 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15954
15955 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15956
15957 [BZ #13932]
15958 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15959 * benchtests/pow-inputs: Update comment for slow path cases.
15960 * manual/probes.texi (slowpow_p10): Delete removed probe.
15961 (slowpow_p10): Likewise.
15962 * math/Makefile: Remove halfulp.c and slowpow.c.
15963 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15964 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15965 (__halfulp): Remove.
15966 (__slowpow): Remove.
15967 * sysdeps/i386/fpu/halfulp.c: Delete file.
15968 * sysdeps/i386/fpu/slowpow.c: Likewise.
15969 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15970 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15971 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15972 improve comments and add error analysis.
15973 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15974 (power1): Remove function:
15975 (log1): Remove error argument, add error analysis.
15976 (my_log2): Remove function.
15977 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15978 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15979 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15980 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15981 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15982 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15983 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15984 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15985 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15986 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15987 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15988 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15989 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15990 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15991
15992 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15993
15994 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15995 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15996
15997 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15998
15999 [BZ #22433]
16000 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
16001 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
16002 and PTRACE_SETHBPREGS.
16003
16004 2018-02-10 Zack Weinberg <zackw@panix.com>
16005
16006 [BZ #22830]
16007 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
16008 correctly.
16009 * malloc/tst-malloc-stats-cancellation.c: New test case.
16010 * malloc/Makefile: Add new test case.
16011
16012 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
16013
16014 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
16015
16016 2018-02-10 Joseph Myers <joseph@codesourcery.com>
16017
16018 * math/Makefile (libm-narrow-fns): Add add.
16019 (libm-test-funcs-narrow): Likewise.
16020 * math/Versions (GLIBC_2.28): Add narrowing add functions.
16021 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
16022 * math/gen-auto-libm-tests.c (test_functions): Add add.
16023 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
16024 (NARROW_ADD_ROUND_TO_ODD): Likewise.
16025 (NARROW_ADD_TRIVIAL): Likewise.
16026 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
16027 macro.
16028 (__daddl): Likewise.
16029 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
16030 dadd.
16031 (CFLAGS-nldbl-dadd.c): New variable.
16032 (CFLAGS-nldbl-fadd.c): Likewise.
16033 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16034 __nldbl_daddl.
16035 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
16036 prototype.
16037 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
16038 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
16039 * math/auto-libm-test-in: Add tests of add.
16040 * math/auto-libm-test-out-narrow-add: New generated file.
16041 * math/libm-test-narrow-add.inc: New file.
16042 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
16043 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
16044 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
16045 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
16046 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
16047 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
16048 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
16049 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
16050 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
16051 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
16052 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
16053 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
16054 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
16055 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
16056 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
16057 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
16058 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
16059 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
16060 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16061 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16062 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16063 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16064 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16065 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16066 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16067 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16068 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16069 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16070 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16071 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16072 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16073 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16074 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16075 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16076 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16077 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16078 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16079 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16080 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16081 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16082 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16083 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16084 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16085 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16086 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16087 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16088
16089 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
16090 (f128-pairs): New variable.
16091 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
16092 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
16093 to CFLAGS.
16094 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
16095 Also make tests add $(f128-loader-link) to gnulib-tests.
16096
16097 2018-02-09 DJ Delorie <dj@redhat.com>
16098
16099 [BZ #22827]
16100 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
16101 64-bit ELF type for 64-bit ELF objects.
16102
16103 2018-02-09 Joseph Myers <joseph@codesourcery.com>
16104
16105 * math/libm-test-driver.c (snan_tests_arg): New variable.
16106 * math/libm-test-support.h (snan_tests_arg): New declaration.
16107 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
16108
16109 * math/Makefile (test-type-pairs): New variable.
16110 (test-type-pairs-f64xf128-yes): Likewise.
16111 (tests): Add test-narrow-macros.
16112 (libm-test-funcs-narrow): New variable.
16113 (libm-test-c-narrow): Likewise.
16114 (generated): Add $(libm-test-c-narrow).
16115 (libm-tests-base-narrow): New variable.
16116 (libm-tests-narrow): Likewise.
16117 (libm-tests): Add $(libm-tests-narrow).
16118 (libm-tests-for-type): Handle $(libm-tests-narrow).
16119 (libm-test-c-narrow-obj): New variable.
16120 ($(libm-test-c-narrow-obj)): New rule.
16121 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
16122 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
16123 $(o-iterator) to set dependencies and CFLAGS.
16124 * math/gen-auto-libm-tests.c: Document use for narrowing
16125 functions.
16126 (output_for_one_input_case): Take argument NARROW.
16127 (generate_output): Likewise. Update call to
16128 output_for_one_input_case.
16129 (main): Take --narrow option. Update call to generate_output.
16130 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
16131 (apply_lit): Update call to _apply_lit.
16132 (apply_arglit): New function.
16133 (parse_args): Handle "a" arguments.
16134 (parse_auto_input): Handle format names using ":".
16135 * math/README.libm-test: Document "a" parameter type.
16136 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
16137 (ARG_TYPE_TRUE_MIN): Likewise.
16138 (ARG_TYPE_MAX): Likwise.
16139 (ARG_MIN_EXP): Likewise.
16140 (ARG_MAX_EXP): Likewise.
16141 (ARG_MANT_DIG): Likewise.
16142 (TEST_COND_arg_ibm128): Likewise.
16143 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
16144 (TEST_COND_arg_fmt): New macro.
16145 (init_max_error): Update prototype.
16146 * math/libm-test-support.c (test_ibm128): New variable.
16147 (init_max_error): Take argument testing_ibm128 and set test_ibm128
16148 instead of using [TEST_COND_ibm128] conditional.
16149 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
16150 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
16151 [TEST_NARROW] (TEST_MSG): New definition.
16152 (arg_plus_zero): New macro.
16153 (arg_minus_zero): Likewise.
16154 (arg_plus_infty): Likewise.
16155 (arg_minus_infty): Likewise.
16156 (arg_qnan_value_pl): Likewise.
16157 (arg_qnan_value): Likewise.
16158 (arg_snan_value_pl): Likewise.
16159 (arg_snan_value): Likewise.
16160 (arg_max_value): Likewise.
16161 (arg_min_value): Likewise.
16162 (arg_min_subnorm_value): Likewise.
16163 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
16164 (RUN_TEST_LOOP_aa_f): New macro.
16165 (TEST_SUFF): New macro.
16166 (TEST_SUFF_STR): Likewise.
16167 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
16168 (TEST_COND_any_ibm128): New macro.
16169 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
16170 this_func. Update call to init_max_error.
16171 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
16172 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
16173 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
16174 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
16175 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
16176 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
16177 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
16178 * math/test-math-scalar.h (TEST_NARROW): Likewise.
16179 * math/test-math-vector.h (TEST_NARROW): Likewise.
16180 * math/test-arg-double.h: New file.
16181 * math/test-arg-float128.h: Likewise.
16182 * math/test-arg-float32x.h: Likewise.
16183 * math/test-arg-float64.h: Likewise.
16184 * math/test-arg-float64x.h: Likewise.
16185 * math/test-arg-ldouble.h: Likewise.
16186 * math/test-math-narrow.h: Likewise.
16187 * math/test-narrow-macros.c: Likewise.
16188 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
16189 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
16190 test-narrow-macros-ldbl-64.
16191 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
16192
16193 * math/bits/mathcalls-narrow.h: New file.
16194 * include/bits/mathcalls-narrow.h: Likewise.
16195 * math/math-narrow.h: Likewise.
16196 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
16197 (__MATHCALL_NARROW_ARGS_2): Likewise.
16198 (__MATHCALL_NARROW_ARGS_3): Likewise.
16199 (__MATHCALL_NARROW_NORMAL): Likewise.
16200 (__MATHCALL_NARROW_REDIR): Likewise.
16201 (__MATHCALL_NARROW): Likewise.
16202 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
16203 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
16204 defined.
16205 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16206 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
16207 (libm-narrow-fns): New variable.
16208 (libm-narrow-types-basic): Likewise.
16209 (libm-narrow-types-ldouble-yes): Likewise.
16210 (libm-narrow-types-float128-yes): Likewise.
16211 (libm-narrow-types-float128-alias-yes): Likewise.
16212 (libm-narrow-types): Likewise.
16213 (libm-routines): Add narrowing functions.
16214 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
16215 (libc_feholdexcept_setroundf128): New macro.
16216 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
16217 * sysdeps/ieee754/float128/float128_private.h: Include
16218 <math/math-narrow.h>.
16219 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
16220 Undefine and redefine.
16221 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
16222 (libm_alias_float_ldouble): Undefine and redefine.
16223 (libm_alias_double_ldouble): Likewise.
16224
16225 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
16226
16227 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
16228
16229 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
16230 FPCR/FPSR.
16231
16232 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
16233
16234 * manual/creature.texi: Convert references to gcc.info to gcc.
16235 * manual/stdio.texi: Likewise.
16236 * manual/string.texi: Likewise.
16237
16238 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16239
16240 [BZ #17979]
16241 * posix/bits/types.h (__int_least8_t): New typedef.
16242 (__uint_least8_t): Likewise.
16243 (__int_least16_t): Likewise.
16244 (__uint_least16_t): Likewise.
16245 (__int_least32_t): Likewise.
16246 (__uint_least32_t): Likewise.
16247 (__int_least64_t): Likewise.
16248 (__uint_least64_t): Likewise.
16249 * sysdeps/generic/stdint.h (int_least8_t): Define using
16250 __int_least8_t.
16251 (int_least16_t): Define using __int_least16_t.
16252 (int_least32_t): Define using __int_least32_t.
16253 (int_least64_t): Define using __int_least64_t.
16254 (uint_least8_t): Define using __uint_least8_t.
16255 (uint_least16_t): Define using __uint_least16_t.
16256 (uint_least32_t): Define using __uint_least32_t.
16257 (uint_least64_t): Define using __uint_least64_t.
16258 * wcsmbs/uchar.h: Include <bits/types.h>.
16259 (char16_t): Define using __uint_least16_t conditional only on
16260 [!__USE_ISOCXX11].
16261 (char32_t): Define using __uint_least32_t conditional only on
16262 [!__USE_ISOCXX11].
16263 * wcsmbs/test-char-types.c: New file.
16264 * wcsmbs/Makefile (tests): Add test-char-types.
16265
16266 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
16267 version to 4.0.1.
16268
16269 2018-02-07 Zack Weinberg <zackw@panix.com>
16270
16271 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
16272 Delete all contents except for definitions of _G_HAVE_MMAP and
16273 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
16274 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
16275 sysdeps/unix/sysv/linux/_G_config.h. Make same content
16276 change as above.
16277
16278 * libio/libio.h: Don't include bits/_G_config.h here.
16279 Include stddef.h with __need_wchar_t defined. Include
16280 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
16281 Define _IO_iconv_t here, directly.
16282 Don't define _IO_HAVE_ST_BLKSIZE.
16283 * libio/libioP.h: Include _G_config.h here. Move include of
16284 shlib-compat.h up with rest of includes. Simplify conditionals
16285 controlling definition of _IO_JUMPS_OFFSET.
16286
16287 * csu/init.c: Remove always-true #if around entire file.
16288 Don't include stdio.h. Set _IO_stdin_used to hardwired
16289 constant 0x20001, and update commentary.
16290 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
16291 Replace all uses of _G_va_list with __gnuc_va_list.
16292 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
16293 instead of #if _IO_HAVE_ST_BLKSIZE.
16294 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
16295 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
16296 not #ifdef.
16297
16298 * libio/bits/libio.h: Move back to libio/libio.h and adjust
16299 multiple-include guard to match.
16300 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
16301 into this file.
16302 Remove preprocessor conditionals that are always true and/or
16303 redundant to other preprocessor conditionals in the same nest.
16304 Include shlib-compat.h unconditionally.
16305 Error out if _LIBC is not defined, or if _ISOMAC is defined,
16306 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
16307 defined after including stdio.h.
16308 Use __BEGIN_DECLS/__END_DECLS.
16309
16310 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
16311 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
16312 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
16313
16314 2018-02-07 Zack Weinberg <zackw@panix.com>
16315
16316 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
16317 New single-type headers split from _G_config.h.
16318 * libio/bits/types/cookie_io_functions_t.h
16319 * libio/bits/types/struct_FILE.h
16320 New single-type headers split from libio.h.
16321
16322 * libio/Makefile: Install the above new headers. Don't install
16323 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
16324 bits/libio-ldbl.h.
16325 * libio/_G_config.h, libio/libio.h: Delete file.
16326
16327 * libio/bits/libio.h: Remove improper-inclusion guard.
16328 Include stdio.h and don't repeat anything that it does.
16329 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
16330 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
16331 __io_read_fn as cookie_read_function_t,
16332 __io_write_fn as cookie_write_function_t,
16333 __io_seek_fn as cookie_seek_function_t,
16334 __io_close_fn as cookie_close_function_t,
16335 and _IO_cookie_io_functions_t as cookie_io_functions_t.
16336 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
16337 here, in the "compatibility defines" section. Remove an #if 0
16338 block. Use the "body" macros from bits/types/struct_FILE.h to
16339 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
16340 and _IO_ferror_unlocked.
16341 Move prototypes of __uflow and __overflow...
16342
16343 * libio/stdio.h: ...here. Don't include bits/libio.h.
16344 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
16345 directly from stdarg.h. Include bits/types/__fpos_t.h,
16346 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
16347 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
16348 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
16349 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
16350 cookie_io_functions_t, not _IO_cookie_io_functions_t;
16351 __ssize_t, not _IO_ssize_t. Unconditionally define
16352 BUFSIZ as 8192 and EOF as (-1).
16353
16354 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
16355 macros from bits/types/struct_FILE.h instead of _IO_* macros
16356 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
16357 instead of _IO_ssize_t.
16358 * libio/bits/stdio2.h: Similarly.
16359
16360 * libio/iolibio.h: Add multiple-include guard.
16361 Include bits/libio.h after stdio.h.
16362 * libio/libioP.h: Add multiple-include guard.
16363 Include stdio.h and bits/libio.h before iolibio.h.
16364
16365 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
16366 * include/bits/types/cookie_io_functions_t.h
16367 * include/bits/types/struct_FILE.h: New wrappers.
16368
16369 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
16370 Get definitions of _G_fpos_t and _G_fpos64_t from
16371 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
16372 respectively. Remove improper-inclusion guards.
16373
16374 * conform/data/stdio.h-data: Update expectations of va_list.
16375 * scripts/check-installed-headers.sh: Remove special case for
16376 libio.h and _G_config.h.
16377
16378 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16379
16380 [BZ #15105]
16381 [BZ #19463]
16382 * include/sys/sysmacros.h [!_ISOMAC]
16383 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
16384 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
16385 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
16386 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
16387 libc_hidden_proto.
16388 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
16389 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
16390 Likewise.
16391 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
16392 Undefine and redefine to add use __gnu_dev_ prefix.
16393 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
16394 Likewise.
16395 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
16396 and define as hidden inline function.
16397 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
16398 Likewise.
16399 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
16400 Likewise.
16401 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
16402 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
16403 (gnu_dev_minor): Likewise.
16404 (gnu_dev_makedev): Likewise.
16405 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
16406 makedev.
16407 * posix/wordexp.c (exec_comm_child): Likewise.
16408 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
16409 instead of minor and __gnu_dev_major instead of major.
16410 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
16411 __gnu_dev_major instead of major.
16412 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
16413 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
16414 instead of gnu_dev_minor.
16415 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
16416 (SLAVE_P): Likewise.
16417 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
16418 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
16419 instead of major.
16420
16421 [BZ #21313]
16422 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
16423 in another place.
16424 * locale/weightwc.h (findidx): Likewise.
16425
16426 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
16427
16428 * manual/probes.texi (slowlog): Delete documentation of removed probe.
16429 (slowlog_inexact): Likewise
16430 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
16431 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
16432
16433 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
16434
16435 [BZ #22797]
16436 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
16437 missing second underscore to parameter name.
16438
16439 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16440
16441 [BZ #14508]
16442 [BZ #15512]
16443 [BZ #17082]
16444 [BZ #20530]
16445 * bits/byteswap.h: Update file comment. Do not include
16446 <bits/byteswap-16.h>.
16447 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
16448 constant.
16449 (__bswap_16): Define as inline function.
16450 (__bswap_constant_32): Reformat definition.
16451 (__bswap_32): Always define as inline function, not macro, using
16452 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
16453 otherwise __bswap_constant_32.
16454 (__bswap_constant_64): Reformat definition. Do not use
16455 __extension__ here.
16456 (__bswap_64): Always define as inline function, not macro. Use
16457 __extension__ on function definition. Use __builtin_bswap64 if
16458 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
16459 * string/test-endian-file-scope.c: New file.
16460 * string/test-endian-sign-conversion.c: Likewise.
16461 * string/Makefile (headers): Remove bits/byteswap-16.h.
16462 (tests): Add test-endian-file-scope and
16463 test-endian-sign-conversion.
16464 (CFLAGS-test-endian-sign-conversion.c): New variable.
16465 * bits/byteswap-16.h: Remove file.
16466 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
16467 * sysdeps/ia64/bits/byteswap.h: Likewise.
16468 * sysdeps/m68k/bits/byteswap.h: Likewise.
16469 * sysdeps/s390/bits/byteswap-16.h: Likewise.
16470 * sysdeps/s390/bits/byteswap.h: Likewise.
16471 * sysdeps/tile/bits/byteswap.h: Likewise.
16472 * sysdeps/x86/bits/byteswap-16.h: Likewise.
16473 * sysdeps/x86/bits/byteswap.h: Likewise.
16474
16475 [BZ #17721]
16476 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
16477 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
16478 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
16479 199901L] (__restrict): Define to restrict.
16480
16481 [BZ #19667]
16482 * string/testcopy.c: Include <support/support.h>. Do not include
16483 <malloc.h>. Use <support/test-driver.c>.
16484 (main): Rename to do_test. Make static. Use xmalloc instead of
16485 malloc.
16486
16487 [BZ #13575]
16488 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
16489 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
16490 (SSIZE_MAX): Define to INT_MAX.
16491 * posix/test-ssize-max.c: New file.
16492 * posix/Makefile (tests): Add test-ssize-max.
16493
16494 [BZ #19668]
16495 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
16496 <support/support.h>. Do not include <malloc.h>.
16497 (query_auxv): Use xmalloc instead of malloc.
16498
16499 [BZ #14553]
16500 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
16501 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
16502 instead of loff_t.
16503
16504 2018-02-06 Florian Weimer <fweimer@redhat.com>
16505
16506 [BZ #18023]
16507 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16508 Use scratch_buffer instead of extend_alloca.
16509
16510 2018-02-06 Zack Weinberg <zackw@panix.com>
16511
16512 * libio/stdio.h: Don't define getc or putc as macros.
16513 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
16514 not _IO_getc and _IO_putc.
16515
16516 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
16517 * stdio-common/tstgetln.c: Don't redefine ssize_t.
16518
16519 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16520
16521 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
16522 (TCP_FASTOPEN_NO_COOKIE): Likewise.
16523
16524 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
16525
16526 [BZ #14890]
16527 * elf/elf.h (NT_PRFPREG): New macro.
16528 (NT_S390_VXRS_LOW): Likewise.
16529 (NT_S390_VXRS_HIGH): Likewise.
16530 (NT_S390_GS_CB): Likewise.
16531 (NT_S390_GS_BC): Likewise.
16532 (NT_S390_RI_CB): Likewise.
16533
16534 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16535 (MAP_SYNC): New macro.
16536 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
16537 Likewise.
16538 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16539 (MAP_SYNC): Likewise.
16540 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16541 (MAP_SYNC): Likewise.
16542 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16543 (MAP_SYNC): Likewise.
16544 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16545 (MAP_SYNC): Likewise.
16546 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16547 (MAP_SYNC): Likewise.
16548 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16549 (MAP_SYNC): Likewise.
16550 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
16551 Likewise.
16552 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
16553 Likewise.
16554
16555 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
16556 (MAP_SHARED_VALIDATE): New macro.
16557 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16558 (MAP_SHARED_VALIDATE): Likewise.
16559
16560 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16561
16562 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
16563 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
16564 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
16565
16566 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16567
16568 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
16569 (DT_NUM): Updated to 35.
16570
16571 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16572
16573 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
16574 __builtin_expect with __glibc_likely and __glibc_unlikely.
16575 (elf_machine_rela): Likewise.
16576 (elf_machine_lazy_rel): Likewise.
16577
16578 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16579
16580 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
16581 __builtin_expect with __glibc_likely and __glibc_unlikely.
16582 (elf_machine_lazy_rel): Likewise.
16583
16584 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16585
16586 [BZ #22638]
16587 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
16588 SHARED.
16589 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
16590
16591 2018-02-05 Andreas Schwab <schwab@suse.de>
16592
16593 [BZ #22761]
16594 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
16595 string.
16596
16597 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
16598
16599 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
16600 not check against PTHREAD_STACK_MIN.
16601
16602 2018-02-02 Sean McKean <smckean83@gmail.com>
16603
16604 [BZ #22735]
16605 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
16606
16607 2018-02-02 Florian Weimer <fweimer@redhat.com>
16608
16609 [BZ #22753]
16610 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
16611 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
16612 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
16613 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
16614 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
16615 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
16616 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
16617 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
16618 * manual/llio.texi (Scatter-Gather): Mention offset -1.
16619 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
16620 * misc/tst-preadvwritev2.c (do_test): Call it.
16621 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
16622
16623 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
16624
16625 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
16626
16627 * benchtests/bench-memcmp.c: Print json instead of plain text.
16628
16629 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
16630 every test run.
16631
16632 2018-02-01 Joseph Myers <joseph@codesourcery.com>
16633
16634 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16635 version to 4.15.
16636 (s390_sthyi): New syscall.
16637
16638 * sysdeps/generic/ldbl-classify-compat.h: New file.
16639 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
16640 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
16641 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
16642 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
16643 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
16644 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
16645 * sysdeps/ieee754/dbl-64/s_finite.c: Include
16646 <ldbl-classify-compat.h>.
16647 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16648 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
16649 <ldbl-classify-compat.h>.
16650 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16651 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
16652 <ldbl-classify-compat.h>.
16653 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16654 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
16655 <ldbl-classify-compat.h>.
16656 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16657 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
16658 <ldbl-classify-compat.h>.
16659 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16660 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
16661 <ldbl-classify-compat.h>.
16662 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16663 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
16664 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
16665 * sysdeps/m68k/coldfire/math_private.h: Remove file.
16666 * sysdeps/microblaze/math_private.h: Likewise.
16667 * sysdeps/nios2/math_private.h: Likewise.
16668 * sysdeps/sh/math_private.h: Likewise.
16669
16670 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
16671 * sysdeps/m68k/coldfire/math_private.h: ... here.
16672 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
16673 * sysdeps/tile/math_private.h: Likewise.
16674 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
16675 Remove macro.
16676 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
16677 Likewise.
16678
16679 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
16680 Remove macro.
16681 (libc_fetestexcept): Likewise.
16682 (libc_feupdateenv_test): Likewise.
16683 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
16684 (libc_fetestexcept): Likewise.
16685 (libc_feupdateenv_test): Likewise.
16686 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
16687 (libc_fetestexcept): Likewise.
16688 (libc_feupdateenv_test): Likewise.
16689 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
16690 (libc_fetestexcept): Likewise.
16691 (libc_feupdateenv_test): Likewise.
16692
16693 * sysdeps/generic/math_private.h
16694 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
16695 New inline function.
16696 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
16697 Likewise.
16698
16699 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
16700 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
16701 * sysdeps/generic/math_private.h
16702 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
16703 inline function.
16704 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
16705 Likewise.
16706 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
16707 Likewise.
16708 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
16709 Likewise.
16710 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
16711 Likewise.
16712 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
16713 Likewise.
16714 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
16715 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
16716 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
16717 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
16718 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
16719 (__fegetenv): Likewise.
16720 (fesetenv): Likewise.
16721 (__fesetenv): Likewise.
16722 (feupdateenv): Likewise.
16723 (__feupdateenv): Likewise.
16724 (fegetround): Likewise.
16725 (__fegetround): Likewise.
16726 (fesetround): Likewise.
16727 (__fesetround): Likewise.
16728
16729 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
16730 (feraiseexcept): New macro.
16731 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
16732 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
16733 Remove macro.
16734 (__feraiseexcept): Likewise.
16735 (feclearexcept): Likewise.
16736 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
16737 (__feraiseexcept): Likewise.
16738 (feclearexcept): Likewise.
16739 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
16740 (__feraiseexcept): Likewise.
16741 (feclearexcept): Likewise.
16742 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
16743 (__feraiseexcept): Likewise.
16744 (feclearexcept): Likewise.
16745 (fetestexcept): Likewise.
16746
16747 * sysdeps/m68k/coldfire/math-tests.h: New file.
16748
16749 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
16750 * sysdeps/m68k/bits/fenv.h: ... here.
16751 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
16752 not define.
16753 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
16754 Likewise.
16755 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
16756 Likewise.
16757 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
16758 Likewise.
16759 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
16760 Likewise.
16761 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
16762 Define to 0.
16763 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
16764 (__FE_UNDEFINED): New enum constant.
16765 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
16766 Do not define.
16767 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
16768 Likewise.
16769 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
16770 Likewise.
16771 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
16772 to match generic bits/fenv.h.
16773 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
16774 Do not define.
16775
16776 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
16777 packed on bits.
16778 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
16779 * soft-fp/half.h (union _FP_UNION_H): Likewise.
16780 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
16781 * soft-fp/single.h (union _FP_UNION_S): Likewise.
16782
16783 2018-02-01 Carlos O'Donell <carlos@redhat.com>
16784 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
16785 Joseph Myers <joseph@codesourcery.com>
16786
16787 [BZ #21314]
16788 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
16789 (__log1p): Disable -Wmaybe-uninitialized for -Os around
16790 computation using c.
16791 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
16792 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
16793 computation using c.
16794
16795 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16796
16797 * version.h (RELEASE): Set to "development".
16798 (VERSION): Set to "2.27.9000".
16799 * NEWS (2.28): New section.
16800
16801 * version.h (RELEASE): Set to "stable".
16802 (VERSION): Set to "2.27".
16803 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
16804
16805 * NEWS: Add the list of bugs fixed in 2.27.
16806
16807 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16808
16809 * stdlib/test-atexit-race-common.c (do_test): Check stack size
16810 against PTHREAD_STACK_MIN.
16811
16812 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16813
16814 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
16815 New entries.
16816 (Rafal Luzynski, Andreas Schwab): Update.
16817
16818 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
16819
16820 [BZ #10871]
16821 * NEWS: List the languages which actually use the alternative
16822 months feature in this release. Also explain that "alt_mon" and
16823 "ab_alt_mon" are optional.
16824
16825 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
16826
16827 [BZ #22765]
16828 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
16829
16830 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
16831
16832 * manual/install.texi (Tools for Compilation): Update the newest
16833 versions of gcc, binutils, texinfo, gawk, bison, and sed.
16834 * INSTALL: Regenerated.
16835
16836 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
16837
16838 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
16839 instead of __builtin_expect.
16840
16841 2018-01-30 Florian Weimer <fweimer@redhat.com>
16842
16843 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
16844 data.
16845 * nss/tst-nss-getpwent.c (do_test): Likewise.
16846
16847 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
16848
16849 [BZ #10871]
16850 * localedata/locales/hr_HR (mon): Rename to...
16851 (alt_mon): This.
16852 (mon): Import from CLDR (genitive case).
16853 (d_t_fmt): Update the comment.
16854
16855 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
16856
16857 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
16858 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
16859 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
16860
16861 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16862
16863 * mach/Versions: Fix version when __mach_host_self_ was added.
16864 * hurd/Versions: Fix version when _hurd_exec_paths was added.
16865 * sysdeps/mach/hurd/i386/ld.abilist: New file.
16866 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
16867 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
16868 * sysdeps/mach/hurd/i386/libc.abilist: New file.
16869 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
16870 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
16871 * sysdeps/mach/hurd/i386/libm.abilist: New file.
16872 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
16873 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
16874 * sysdeps/mach/hurd/i386/librt.abilist: New file.
16875 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16876 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16877 || to respect codestyle.
16878 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16879 (do_test_bz20181): Rename accordingly.
16880 * malloc/malloc.c: Include <assert.h>.
16881 (assert): Do not define.
16882 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16883 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16884 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16885 * sysdeps/mach/hurd/hp-timing.h: New file.
16886 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16887
16888 2018-01-29 Darius Rad <darius@bluespec.com>
16889
16890 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16891
16892 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16893
16894 * sysdeps/init_array/crti.S (.section .init_array): Add
16895 PREINIT_FUNCTION when defined.
16896 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
16897 * config.h.in: Regenerate.
16898 * manual/platform.texi: Add RISC-V documenation for
16899 __riscv_flush_icache.
16900 * sysdeps/riscv/__longjmp.S: New file.
16901 * sysdeps/riscv/backtrace.c: Likewise.
16902 * sysdeps/riscv/bits/endian.h: Likewise.
16903 * sysdeps/riscv/bits/setjmp.h: Likewise.
16904 * sysdeps/riscv/bits/wordsize.h: Likewise.
16905 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
16906 * sysdeps/riscv/bsd-setjmp.c: Likewise.
16907 * sysdeps/riscv/dl-trampoline.S: Likewise.
16908 * sysdeps/riscv/gccframe.h: Likewise.
16909 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
16910 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
16911 * sysdeps/riscv/machine-gmon.h: Likewise.
16912 * sysdeps/riscv/memusage.h: Likewise.
16913 * sysdeps/riscv/setjmp.S: Likewise.
16914 * sysdeps/riscv/sys/asm.h: Likewise.
16915 * sysdeps/riscv/tls-macros.h: Likewise.
16916 * sysdeps/riscv/dl-tls.h: New file.
16917 * sysdeps/riscv/libc-tls.c: Likewise.
16918 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
16919 * sysdeps/riscv/nptl/tls.h: Likewise.
16920 * sysdeps/riscv/stackinfo.h: Likewise.
16921 * sysdeps/riscv/bits/fenv.h: New file.
16922 * sysdeps/riscv/e_sqrtl.c: Likewise.
16923 * sysdeps/riscv/fpu_control.h: Likewise.
16924 * sysdeps/riscv/math-tests.h: Likewise.
16925 * sysdeps/riscv/nofpu/Implies: Likewise.
16926 * sysdeps/riscv/sfp-machine.h: Likewise.
16927 * sysdeps/riscv/tininess.h: Likewise.
16928 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
16929 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
16930 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
16931 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
16932 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
16933 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
16934 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
16935 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
16936 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
16937 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
16938 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
16939 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
16940 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
16941 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
16942 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
16943 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
16944 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
16945 * sysdeps/riscv/rvd/s_finite.c: Likewise.
16946 * sysdeps/riscv/rvd/s_fma.c: Likewise.
16947 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
16948 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
16949 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
16950 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
16951 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
16952 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16953 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16954 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16955 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16956 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16957 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16958 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16959 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16960 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16961 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16962 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16963 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16964 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16965 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16966 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16967 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16968 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16969 * sysdeps/riscv/rvf/math_private.h: Likewise.
16970 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16971 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16972 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16973 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16974 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16975 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16976 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16977 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16978 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16979 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16980 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16981 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16982 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16983 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16984 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16985 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16986 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16987 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16988 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16989 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16990 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16991 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16992 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16993 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16994 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16995 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16996 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16997 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16998 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16999 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
17000 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
17001 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
17002 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
17003 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
17004 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
17005 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
17006 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
17007 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
17008 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
17009 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
17010 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
17011 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
17012 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
17013 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
17014 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
17015 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
17016 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
17017 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
17018 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
17019 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
17020 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
17021 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
17022 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
17023 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
17024 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
17025 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
17026 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
17027 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
17028 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
17029 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
17030 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
17031 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
17032 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
17033 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
17034 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17035 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
17036 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
17037 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
17038 * sysdeps/riscv/Implies: New file.
17039 * sysdeps/riscv/Makefile: Likewise.
17040 * sysdeps/riscv/configure: Likewise.
17041 * sysdeps/riscv/configure.ac: Likewise.
17042 * sysdeps/riscv/nptl/Makefile: Likewise.
17043 * sysdeps/riscv/preconfigure: Likewise.
17044 * sysdeps/riscv/rv64/Implies-after: Likewise.
17045 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
17046 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
17047 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
17048 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
17049 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
17050 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
17051 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
17052 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
17053 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
17054 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
17055 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
17056 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
17057 (Config): Likewise.
17058
17059 2018-01-29 Florian Weimer <fweimer@redhat.com>
17060
17061 [BZ #22701]
17062 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
17063 libnsl_hidden_proto.
17064 * include/rpcsvc/yp.h (yp_xdrall): Declare with
17065 libnsl_hidden_proto.
17066 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
17067 * nis/Makefile (libnsl-routines): Add nss-default only for
17068 build-obsolete-nsl.
17069 * nis/nis_defaults.c (__nis_default_ttl): Add
17070 libnsl_hidden_nolink_def.
17071 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
17072 declaration.
17073 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
17074 * nis/ypclnt.c (yp_maplist): Likewise.
17075
17076 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
17077
17078 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17079 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
17080
17081 2018-01-29 Joseph Myers <joseph@codesourcery.com>
17082
17083 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
17084 clean -dxfq for git updates when replacing sources.
17085
17086 * scripts/build-many-glibcs.py (Config.build_gcc): Use
17087 --disable-libcilkrts unconditionally, not just for the final GCC
17088 build for Hurd.
17089
17090 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
17091 version to 4.15.
17092
17093 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17094
17095 [BZ #10871]
17096 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
17097 case).
17098
17099 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17100
17101 [BZ #10871]
17102 * localedata/locales/be_BY (mon): Rename to...
17103 (alt_mon): This, then synchronize with CLDR (nominative case).
17104 (abmon): Rename to...
17105 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
17106 (mon): Import from CLDR (genitive case).
17107 (abmon): Likewise.
17108 * localedata/locales/be_BY@latin (mon): Rename to...
17109 (alt_mon): This.
17110 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
17111
17112 * localedata/locales/be_BY@latin (lang_name): Reworded to
17113 "biełaruskaja mova".
17114
17115 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17116
17117 [BZ #10871]
17118 * localedata/locales/el_CY (mon): Renamed to...
17119 (alt_mon): This.
17120 (mon): Import from CLDR (genitive case).
17121 * localedata/locales/el_GR: Likewise.
17122
17123 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17124
17125 [BZ #10871]
17126 * localedata/locales/ru_RU (mon): Rename to...
17127 (alt_mon): This.
17128 (abmon): Rename to...
17129 (ab_alt_mon): This.
17130 (mon): Import from CLDR (genitive case).
17131 (abmon): Copy from the old content except the 5th month which is
17132 now in the genitive case, even when abbreviated.
17133 * localedata/locales/ru_UA: Likewise.
17134 * time/tst-strptime.c (day_tests): Add an actual example of
17135 a difference between %b and %Ob in Russian.
17136
17137 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
17138
17139 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
17140 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
17141 a `c' variable.
17142 * resolv/res-close.c: Include <stdlib.h>.
17143 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
17144 <sys/wait.h>, <time.h>, <sys/uio.h>.
17145 (NOT_CANCEL_H): Add inclusion guard.
17146 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
17147 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
17148 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
17149 return 0.
17150 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
17151 vm_address_t * to ElfW(Addr) * for dl_main parameter.
17152 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
17153 instead of void *.
17154 * sysdeps/pthread/timer_create.c (timer_create): Do not use
17155 timer_ptr2id to cast struct timer_node * to void *.
17156 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
17157 --disable-libcilkrts to gcc configure.
17158 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
17159 and make them the default for now.
17160 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
17161 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
17162 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
17163 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
17164 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
17165 MACH_IPC_COMPAT.
17166 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
17167 __task_terminate would ever return successfully.
17168 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
17169 to global scope.
17170 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
17171 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
17172 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
17173 critical section to make code simpler and avoid warning.
17174 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
17175 critical section to make code simpler and avoid warning.
17176 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
17177 const char * instead of char *.
17178 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
17179 __hurd_file_name_split, hurd_file_name_split,
17180 __hurd_directory_name_split, hurd_directory_name_split,
17181 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
17182 hurd_file_name_path_lookup): Make lookup function parameter take a
17183 const char *name instead of char *name.
17184 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
17185 __hurd_directory_name_split): Likewise.
17186 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
17187 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
17188 * sysdeps/mach/hurd/check_native.c: New file.
17189 * sysdeps/mach/hurd/check_pf.c: New file.
17190 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
17191 (__freeifaddrs): Define macro to freeifaddrs.
17192 * sysdeps/mach/hurd/libhurduser.abilist: New file.
17193 * sysdeps/mach/libmachuser.abilist: New file.
17194 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
17195 (do_test_bz20181): Rename accordingly.
17196 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
17197 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
17198 <sys/mount.h>.
17199 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
17200 version only if __USE_EXTERN_INLINES is defined.
17201 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
17202 __hurd_sockfail): Likewise.
17203 (_hurd_fd_get): Always declare functions, and provide inline versions
17204 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
17205 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
17206 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
17207 _hurd_port_set): Always declare functions, and provide inline versions
17208 only if __USE_EXTERN_INLINES and _LIBC are defined and
17209 IS_IN(libc).
17210 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
17211 _hurd_critical_section_unlock): Likewise.
17212 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
17213 * __hurd_threadvar_location): Likewise.
17214 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
17215 _hurd_userlink_clear): Likewise.
17216 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
17217 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
17218 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
17219 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
17220 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
17221 __spin_lock_locked): Likewise.
17222 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
17223 __spin_lock_locked): Likewise.
17224 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
17225 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
17226 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
17227 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
17228 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
17229 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
17230 _POSIX_NO_TRUNC): Define to 0.
17231 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
17232 check size against PTHREAD_STACK_MIN.
17233 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
17234 IS_IN(libpthread)]: Include <sigsetops.h>.
17235 * mach/Makefile (user-interfaces): Add mach/gnumach.
17236 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
17237 * sysdeps/mach/configure (mach_interface_list): Regenerate.
17238 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
17239 instead of invalid -1.
17240 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
17241 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
17242 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
17243 <net/ppp_defs.h>.
17244
17245 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
17246
17247 * hurd/fcntl-internal.h: New file.
17248
17249 2018-01-27 James Clarke <jrtc27@jrtc27.com>
17250
17251 * sysdeps/hppa/fpu/libm-test-ulps: Update.
17252
17253 * sysdeps/alpha/fpu/libm-test-ulps: Update.
17254
17255 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
17256
17257 [BZ #22701]
17258 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
17259 Build only shared objects.
17260
17261 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17262
17263 * README: Update for hppa.
17264
17265 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17266
17267 * sysdeps/sparc/fpu/libm-test-ulps: Update
17268 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
17269
17270 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17271
17272 Revert:
17273
17274 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17275
17276 [BZ #22563]
17277 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17278 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17279 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17280 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17281 to feature_1.
17282
17283 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17284
17285 [BZ #22563]
17286 * bits/types/__cancel_jmp_buf_tag.h: New file.
17287 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17288 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17289 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17290 * nptl/Makefile (headers): Add
17291 bits/types/__cancel_jmp_buf_tag.h.
17292 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17293 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17294 * sysdeps/nptl/pthread.h: Include
17295 <bits/types/__cancel_jmp_buf_tag.h>.
17296 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17297 __cancel_jmp_buf.
17298 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17299
17300 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
17301
17302 [BZ #10871]
17303 * localedata/locales/uk_UA (mon): Renamed to...
17304 (alt_mon): This.
17305 (alt_digits): "0" removed and then renamed to...
17306 (mon): This.
17307 (date_fmt): Definition changed not to use the alternative
17308 digits hack.
17309
17310 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
17311
17312 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
17313 FLAG_RISCV_FLOAT_ABI_DOUBLE.
17314 * elf/elf.h (EF_RISCV_RVC): New define.
17315 (EF_RISCV_FLOAT_ABI): Likewise.
17316 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
17317 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
17318 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17319 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
17320 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
17321 define.
17322 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17323
17324 2018-01-25 Andreas Schwab <schwab@suse.de>
17325
17326 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
17327 single quotes.
17328 * sysdeps/gnu/configure: Regenerate.
17329 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
17330 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
17331 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
17332 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
17333 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
17334 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
17335 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
17336 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
17337
17338 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
17339
17340 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
17341 URL, and run autoconf, make it the default for now.
17342
17343 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17344
17345 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17346 soft-float ColdFire configuration.
17347
17348 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
17349 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
17350 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
17351
17352 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
17353 MicroBlaze file.
17354
17355 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
17356 ....
17357 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
17358 ... here.
17359 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
17360 New file.
17361
17362 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
17363 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
17364 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
17365 file.
17366
17367 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
17368
17369 [BZ #22742]
17370 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
17371 Rename to __reserved and add comment.
17372 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
17373 Rename to __reserved.
17374
17375 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17376
17377 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17378 i686-gnu configurations.
17379 (Context.run_builds): Include mig, gnumach and hurd in components
17380 considered.
17381 (Context.checkout): Add mig, gnumach and hurd to components.
17382 (Context.checkout_tar): Add URL mappings for mig, gnumach and
17383 hurd.
17384 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
17385 (Config.build): Install gnumach headers, build mig and install
17386 hurd headers for 'gnu' OS.
17387 (Config.install_gnumach_headers): New function.
17388 (Config.install_hurd_headers): Likewise.
17389 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
17390 when building for 'gnu' OS.
17391
17392 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
17393
17394 * manual/tunables.texi (Hardware Capability Tunables): Fix
17395 spelling.
17396
17397 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
17398
17399 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
17400 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
17401 (ALTMON_11, ALTMON_12): Improve documentation.
17402 * manual/time.texi (strftime): Likewise.
17403
17404 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17405
17406 [BZ #10871]
17407 * localedata/locales/pl_PL: Alternative month names added,
17408 primary month names are genitive now.
17409 * time/tst-strptime.c (day_tests): Actually use a genitive case
17410 of a month name in Polish language.
17411
17412 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17413
17414 [BZ #10871]
17415 * manual/locale.texi: Document ALTMON_1..12 constants for
17416 nl_langinfo. Specify when to use ALTMON instead of MON.
17417 * manual/time.texi (strftime, strptime): Document GNU extension
17418 permitting O modifier with %B and %b. Specify when to use
17419 %OB instead of %B.
17420
17421 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17422
17423 [BZ #10871]
17424 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
17425 names, define them as the same as abbreviated month names explicitly.
17426 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
17427 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
17428 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
17429 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
17430 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
17431 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
17432 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
17433 _NL_WABALTMON_12): New enum constants.
17434 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
17435 wab_alt_mon, and ab_alt_mon_defined members.
17436 (time_output): Output ab_alt_mon and wab_alt_mon members.
17437 (time_read): Read them, initialize them as copies of abmon and wabmon
17438 respectively if they are missing, initialize ab_alt_mon_defined.
17439 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
17440 * locale/programs/locfile-kw.h: Regenerate.
17441 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
17442 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
17443 and ru_RU.UTF-8.
17444 * time/strftime_l.c (a_altmonth, aam_len): New macros.
17445 [!COMPILE_WIDE] (ABALTMON_1): New macro.
17446 (__strftime_internal): Handle %Ob and %Oh formats.
17447 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
17448 (__strptime_internal): Handle %Ob and %Oh formats.
17449 * time/tst-strptime.c (day_tests): Add more tests to parse different
17450 forms of month names including the new %Ob format specifier.
17451
17452 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17453
17454 [BZ #10871]
17455 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
17456 define them as the same as primary full month names explicitly.
17457 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
17458 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
17459 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
17460 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
17461 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
17462 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
17463 _NL_WALTMON_12): New enum constants.
17464 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
17465 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
17466 macros.
17467 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
17468 walt_mon, and alt_mon_defined members.
17469 (time_output): Output alt_mon and walt_mon members.
17470 (time_read): Read them, initialize them as copies of mon and wmon
17471 respectively if they are missing, initialize alt_mon_defined.
17472 * locale/programs/locfile-kw.gperf (alt_mon): Define.
17473 * locale/programs/locfile-kw.h: Regenerate.
17474 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
17475 * localedata/tst-langinfo.c (map): Add tests for the new constants
17476 ALTMON_1 .. ALTMON_12.
17477 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
17478 and pl_PL.UTF-8.
17479 * time/strftime_l.c (f_altmonth): New macro.
17480 (__strftime_internal): Handle %OB format.
17481 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
17482 (__strptime_internal): Handle %OB format.
17483 * time/tst-strptime.c (day_tests): Add tests to parse different forms
17484 of month names including the new %OB format specifier.
17485
17486 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17487
17488 [BZ #22685]
17489 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
17490 from ABORT_TRANSACTION.
17491 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
17492 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
17493 ABORT_TRANSACTION_IMPL): Likewise.
17494 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
17495 Linux code, but remove the code that aborts transactions.
17496
17497 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
17498
17499 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
17500
17501 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
17502
17503 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
17504 in date: "2004-14-09" should be "2004-09-14".
17505 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
17506 "2003-15-09" should be "2003-09-15".
17507
17508 2018-01-18 Arjun Shankar <arjun@redhat.com>
17509
17510 [BZ #22343]
17511 [BZ #22774]
17512 CVE-2018-6485
17513 CVE-2018-6551
17514 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
17515 after padding.
17516 (_int_memalign): check for integer overflow before calling
17517 _int_malloc.
17518 * malloc/tst-malloc-too-large.c: New test.
17519 * malloc/Makefile: Add tst-malloc-too-large.
17520
17521 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
17522
17523 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
17524 in date: "2017-24-07" should be "2017-07-24".
17525 * localedata/locales/mai_IN: Likewise.
17526 * localedata/locales/mai_NP: Likewise.
17527
17528 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
17529
17530 * po/ru.po: Update translations.
17531
17532 2018-01-17 Joseph Myers <joseph@codesourcery.com>
17533
17534 [BZ #22719]
17535 * sysdeps/hppa/backtrace.c: New file.
17536
17537 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
17538
17539 [BZ #22715]
17540 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
17541 align La_x86_64_retval to VEC_SIZE.
17542
17543 2018-01-16 Joseph Myers <joseph@codesourcery.com>
17544
17545 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
17546 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
17547
17548 2018-01-16 Florian Weimer <fweimer@redhat.com>
17549
17550 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
17551 Move tst-thread-exit-clobber ...
17552 [$(CXX)] (tests-unsupported): ... to here.
17553
17554 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17555
17556 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
17557 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
17558 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17559 (_dl_aarch64_cap_flags): Update.
17560 (_DL_HWCAP_COUNT): Update.
17561
17562 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17563
17564 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
17565 (_DL_HWCAP_LAST): Remove.
17566 (_DL_HWCAP_COUNT): Move to ...
17567 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17568 (_DL_HWCAP_COUNT): ... here.
17569
17570 2018-01-16 Florian Weimer <fweimer@redhat.com>
17571
17572 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
17573 mode with GNU extensions.
17574
17575 2018-01-15 Alan Hayward <alan.hayward@arm.com>
17576
17577 * elf/elf.h (NT_ARM_SVE): Define.
17578
17579 2018-01-15 Florian Weimer <fweimer@redhat.com>
17580
17581 [BZ #22636]
17582 * nptl/tst-minstack-throw.cc: New file.
17583 * nptl/Makefile (tests): Add tst-minstack-throw.
17584 (LDLIBS-tst-minstack-throw): Link with libstdc++.
17585 [!CXX] (tests-unsupported): Add tst-minstack-throw.
17586
17587 2018-01-15 Joseph Myers <joseph@codesourcery.com>
17588
17589 * scripts/build-many-glibcs.py (Context.checkout): Default
17590 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
17591 version to 1.1.0.
17592
17593 2018-01-13 Carlos O'Donell <carlos@redhat.com>
17594
17595 [BZ #22707]
17596 * elf/elf.h (DF_1_STUB): Define.
17597 (DF_1_PIE): Define.
17598
17599 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17600
17601 [BZ #22697]
17602 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
17603 Do not add 0.5 to integer or out-of-range arguments.
17604
17605 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17606
17607 * po/bg.po: Update translations.
17608 * po/cs.po: Likewise.
17609 * po/de.po: Likewise.
17610 * po/ko.po: Likewise.
17611 * po/pl.po: Likewise.
17612 * po/sv.po: Likewise.
17613 * po/uk.po: Likewise.
17614 * po/vi.po: Likewise.
17615
17616 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17617
17618 * aarch64/start.S (_start): Use __wrap_main.
17619 (__wrap_main): New local symbol.
17620
17621 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17622
17623 [BZ #22679]
17624 CVE-2018-1000001
17625 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
17626 generic_getcwd if the path returned by getcwd syscall is not absolute.
17627 * io/tst-getcwd-abspath.c: New test.
17628 * io/Makefile (tests): Add tst-getcwd-abspath.
17629
17630 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
17631
17632 * malloc/malloc.c (malloc_consolidate): Add size check.
17633
17634 2018-01-12 Florian Weimer <fweimer@redhat.com>
17635
17636 * support/write_message.c (write_message): Preserve errno.
17637 * support/check.c (print_failure): Likewise.
17638 * support/support_test_verify_impl.c (support_test_verify_impl):
17639 Likewise.
17640 * support/support_test_compare_failure.c
17641 (support_test_compare_failure): Likewise.
17642
17643 2018-01-12 Florian Weimer <fweimer@redhat.com>
17644
17645 [BZ #22701]
17646 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
17647 Prevent installation of libnsl.so.
17648 (libnsl-inhibit-o): Do not build (or install) static libraries.
17649
17650 2018-01-12 Egmont Koblinger <egmont@gmail.com>
17651
17652 [BZ #22657]
17653 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
17654 before the day number which may produce a double space.
17655 (date_fmt): Likewise.
17656
17657 2018-01-12 Joseph Myers <joseph@codesourcery.com>
17658
17659 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
17660 instead of fegetenv.
17661
17662 2018-01-11 Joseph Myers <joseph@codesourcery.com>
17663
17664 [BZ #22702]
17665 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
17666 comment to say exceptions are discarded.
17667 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
17668 __fegetenv.
17669 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
17670 be enabled.
17671
17672 2018-01-11 Florian Weimer <fweimer@redhat.com>
17673
17674 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
17675 and error message.
17676
17677 2018-01-11 Florian Weimer <fweimer@redhat.com>
17678
17679 [BZ #22636]
17680 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
17681 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
17682
17683 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17684
17685 [BZ #22693]
17686 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
17687 negative arguments in test for NaN or infinity argument.
17688
17689 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
17690
17691 * po/libc.pot: Regenerate.
17692
17693 2018-01-10 Florian Weimer <fweimer@redhat.com>
17694
17695 [BZ #22636]
17696 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
17697 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
17698
17699 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
17700
17701 * hurd/hurd/fd.h: Include <fcntl.h>
17702 (__hurd_at_flags): New function.
17703 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
17704 with call to __hurd_at_flags.
17705 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
17706 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
17707 __faccessat
17708 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
17709 (__access_noerrno): Use __faccessat_common instead of access_common.
17710 (__access): Likewise.
17711 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
17712 with a call to __faccessat.
17713 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
17714 (__faccessat_common): ... this. Move implementation of __access into it when
17715 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
17716 reauthenticate_cwdir_at helper to implement AT mechanism.
17717 (__faccessat_noerrno): New function, just calls __faccessat_common.
17718 (__faccessat): New function, just calls __faccessat_common.
17719 (faccessat): Define weak alias.
17720
17721 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17722
17723 [BZ #22691]
17724 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17725 (CFLAGS-s_fmaxmagl.c): New variable.
17726 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
17727
17728 [BZ #22690]
17729 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
17730 long int for arguments of possibly overflowing addition or
17731 subtraction.
17732 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
17733
17734 2018-01-09 Joseph Myers <joseph@codesourcery.com>
17735
17736 [BZ #22688]
17737 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17738 (CFLAGS-e_remainderl.c): New variable.
17739
17740 [BZ #22687]
17741 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
17742 variable.
17743 (CFLAGS-s_cacoshl.c): Likewise.
17744 (CFLAGS-s_casinhl.c): Likewise.
17745 (CFLAGS-s_catanl.c): Likewise.
17746 (CFLAGS-s_catanhl.c): Likewise.
17747 (CFLAGS-s_cexpl.c): Likewise.
17748 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
17749 (CFLAGS-s_csinhl.c): Likewise.
17750 (CFLAGS-s_clogl.c): Likewise.
17751 (CFLAGS-s_clog10l.c): Likewise.
17752 (CFLAGS-s_csinl.c): Likewise.
17753 (CFLAGS-s_csqrtl.c): Likewise.
17754
17755 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
17756 2017-01-09 Svante Signell <svante.signell@gmail.com>
17757
17758 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
17759 (_hurd_exec_paths): New function.
17760 * hurd/hurd.h (_hurd_exec): Deprecate function.
17761 (_hurd_exec_paths): Declare function.
17762 * hurd/Versions: Export _hurd_exec_paths.
17763 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
17764 (__execve): Use __getcwd to build absolute path, and use
17765 _hurd_exec_paths instead of _hurd_exec.
17766 * sysdeps/mach/hurd/spawni.c: Likewise.
17767 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
17768 _hurd_exec.
17769
17770 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
17771
17772 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
17773 test instead of failing in case of ENOENT returned by posix_openpt.
17774
17775 2018-01-08 Florian Weimer <fweimer@redhat.com>
17776
17777 resolv: Support binary labels in test framework.
17778 * support/resolv_test.c (struct to_be_freed): Remove.
17779 (struct compressed_name): New.
17780 (allocate_compressed_name, ascii_tolower)
17781 (compare_compressed_name): New functions.
17782 (struct resolv_response_builder): Update type of
17783 compression_offsets for use with tsearch. Rempve to_be_freed.
17784 (response_push_pointer_to_free): Remove function.
17785 (resolv_response_add_name): Rewrite using struct compressed_name
17786 and tsearch instead of hsearch_r.
17787 (response_builder_allocate): Remove initialization of
17788 compression_offsets.
17789 (response_builder_free): Update for removal of to_be_freed. Use
17790 tdestroy instead of hdestroy_r.
17791 * resolv/Makefile (tests): Add tst-resolv-binary.
17792 (tst-resolv-binary): Link with -lresolv -lpthread.
17793
17794 2018-01-08 Florian Weimer <fweimer@redhat.com>
17795
17796 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
17797 time. Pass positive flag instead of negative flag to
17798 support_test_compare_failure.
17799 (support_test_compare_failure): Change negative parameter to
17800 positive.
17801 * support/support_test_compare_failure.c (report)
17802 (support_test_compare_failure): Likewise.
17803 * support/tst-test_compare.c (return_ssize_t, return_int): New.
17804 (do_test): Check int/size_t, ssize_t/size_t comparisons.
17805
17806 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
17807
17808 [BZ #22637]
17809 * nptl/descr.h (stackblock, stackblock_size): Update comments.
17810 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
17811 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
17812 stacksize.
17813 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
17814
17815 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
17816
17817 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17818 Add s_sincosf-sse2 and s_sincosf-fma.
17819 (CFLAGS-s_sincosf-fma.c): New.
17820 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
17821 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
17822 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
17823 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
17824 __sincosf is defined.
17825
17826 2018-01-08 Florian Weimer <fweimer@redhat.com>
17827
17828 * nptl/tst-thread-exit-clobber.cc: New file.
17829 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
17830 C++11 mode.
17831 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
17832 (tests): Add tst-thread-exit-clobber.
17833 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
17834
17835 2018-01-08 Florian Weimer <fweimer@redhat.com>
17836
17837 * support/check.h (support_static_assert): Define.
17838 (TEST_COMPARE): Use it.
17839
17840 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
17841
17842 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
17843 [!__RLIM_T_MATCHES_RLIM64_T]
17844 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
17845 __getrlimit64. Add libc_hidden_weak.
17846
17847 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
17848
17849 * elf/elf.h (R_RISCV_NONE): New define.
17850 (R_RISCV_32): Likewise.
17851 (R_RISCV_64): Likewise.
17852 (R_RISCV_RELATIVE): Likewise.
17853 (R_RISCV_COPY): Likewise.
17854 (R_RISCV_JUMP_SLOT): Likewise.
17855 (R_RISCV_TLS_DTPMOD32): Likewise.
17856 (R_RISCV_TLS_DTPMOD64): Likewise.
17857 (R_RISCV_TLS_DTPREL32): Likewise.
17858 (R_RISCV_TLS_DTPREL64): Likewise.
17859 (R_RISCV_TLS_TPREL32): Likewise.
17860 (R_RISCV_TLS_TPREL64): Likewise.
17861 * Makerules (make-link-multidir): Make directories before linking into
17862 them.
17863 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
17864 define.
17865 (VDSO_HASH_LINUX_4_15): Likewise.
17866 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
17867 in subdirectories of lib.
17868 * nptl/Makefile (/librt.so): Always depend on
17869 "$(shared-thread-library)".
17870
17871 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17872
17873 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
17874 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
17875 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17876 (___tls_get_addr).
17877 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17878 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17879 "-O2 -march=i686".
17880 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17881 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17882 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17883 * sysdeps/gnu/glob-lstat-compat.c: New file.
17884 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17885 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17886
17887 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17888
17889 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17890 Reserve 16 chars to reloc_addr before calling _itoa_word.
17891
17892 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17893
17894 [BZ #22678]
17895 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17896 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
17897
17898 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
17899 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
17900
17901 * resource/tst-getrlimit.c: Add copyright header.
17902
17903 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17904 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17905
17906 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17907 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
17908 Define __GI_getrlimit64 as weak alias of __getrlimit64.
17909 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
17910 instead.
17911 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17912 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
17913 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
17914 RLIM64_INFINITY): Fix values to match the kernel ones.
17915 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
17916 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
17917 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
17918 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
17919 getrlimit64@@GLIBC_2_27.
17920 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
17921 and setrlimit64.
17922 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
17923 getrlimit, setrlimit, getrlimit64 and setrlimit64.
17924 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17925 setrlimit, getrlimit64 and setrlimit64.
17926
17927 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17928
17929 [BZ #22648]
17930 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
17931 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
17932
17933 2018-01-04 Joseph Myers <joseph@codesourcery.com>
17934
17935 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
17936 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
17937 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
17938
17939 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17940
17941 [BZ #15479]
17942 [BZ #22666]
17943 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
17944 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
17945
17946 [BZ #15479]
17947 [BZ #22665]
17948 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
17949 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
17950 * sysdeps/alpha/fpu/s_floor.c: Likewise.
17951 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
17952
17953 2018-01-04 Florian Weimer <fweimer@redhat.com>
17954
17955 [BZ #22667]
17956 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17957 Align the stack before calling exit.
17958 * stdlib/tst-makecontext-align.c: New file.
17959 * stdlib/Makefile (tests): Add tst-makecontext-align.
17960
17961 2018-01-04 Florian Weimer <fweimer@redhat.com>
17962
17963 Add support for calling dlvsym from libc.so.
17964 * include/dlfcn.h (__libc_dlvsym): Declare.
17965 * elf/Makefile (tests-static-internal): Add
17966 tst-libc_dlvsym-static.
17967 (tests-internal): Add tst-libc_dlvsym.
17968 (modules-names): Add tst-libc_dlvsym-dso.
17969 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17970 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17971 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17972 object tst-libc_dlvsym-dso.so needs to be built before running
17973 these tests.
17974 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17975 * elf/Versions: Export __libc_dlvsym.
17976 * elf/dl-libc.c (struct do_dlvsym_args): New.
17977 (do_dlvsym, __libc_dlvsym): New functions.
17978 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17979 (_dl_open_hook2): New variable.
17980 (__libc_register_dl_open_hook): Set it.
17981 * elf/tst-libc_dlvsym-dso.c: New file.
17982 * elf/tst-libc_dlvsym-static.c: Likewise.
17983 * elf/tst-libc_dlvsym.c: Likewise.
17984 * elf/tst-libc_dlvsym.h: Likewise.
17985
17986 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17987
17988 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17989 include <sys/mount.h>.
17990
17991 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17992
17993 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17994 Add __NO_MATH_ERRNO__ check.
17995
17996 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17997
17998 * sysdeps/mips/mips32/libm-test-ulps: Update.
17999 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18000
18001 2018-01-02 Florian Weimer <fweimer@redhat.com>
18002
18003 * misc/tst-pselect.c: Add copyright header.
18004
18005 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
18006
18007 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
18008 comment.
18009 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
18010 comment.
18011 (settrlimit): Rename into setrlimit.
18012 (__sttrlimit): Rename into __setrlimit.
18013
18014 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
18015 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
18016 never defined in that case.
18017
18018 2018-01-02 Joseph Myers <joseph@codesourcery.com>
18019
18020 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
18021
18022 * sysdeps/arm/libm-test-ulps: Update.
18023
18024 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
18025 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
18026
18027 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18028
18029 * NEWS: Add cosf and sincosf to list of optimized functions.
18030
18031 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
18032
18033 [BZ #22660]
18034 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
18035 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
18036 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
18037 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
18038
18039 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
18040
18041 [BZ #22433]
18042 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
18043
18044 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
18045 making a copy of it.
18046
18047 2018-01-01 Joseph Myers <joseph@codesourcery.com>
18048
18049 * manual/texinfo.tex: Update to version 2017-12-26.21 with
18050 trailing whitespace removed.
18051 * scripts/config.guess: Update to version 2018-01-01.
18052 * scripts/config.sub: Update to version 2018-01-01.
18053 * scripts/move-if-change: Update from gnulib.
18054
18055 * NEWS: Update copyright dates.
18056 * catgets/gencat.c (print_version): Likewise.
18057 * csu/version.c (banner): Likewise.
18058 * debug/catchsegv.sh: Likewise.
18059 * debug/pcprofiledump.c (print_version): Likewise.
18060 * debug/xtrace.sh (do_version): Likewise.
18061 * elf/ldconfig.c (print_version): Likewise.
18062 * elf/ldd.bash.in: Likewise.
18063 * elf/pldd.c (print_version): Likewise.
18064 * elf/sotruss.sh: Likewise.
18065 * elf/sprof.c (print_version): Likewise.
18066 * iconv/iconv_prog.c (print_version): Likewise.
18067 * iconv/iconvconfig.c (print_version): Likewise.
18068 * locale/programs/locale.c (print_version): Likewise.
18069 * locale/programs/localedef.c (print_version): Likewise.
18070 * login/programs/pt_chown.c (print_version): Likewise.
18071 * malloc/memusage.sh (do_version): Likewise.
18072 * malloc/memusagestat.c (print_version): Likewise.
18073 * malloc/mtrace.pl: Likewise.
18074 * manual/libc.texinfo: Likewise.
18075 * nptl/version.c (banner): Likewise.
18076 * nscd/nscd.c (print_version): Likewise.
18077 * nss/getent.c (print_version): Likewise.
18078 * nss/makedb.c (print_version): Likewise.
18079 * posix/getconf.c (main): Likewise.
18080 * scripts/test-installation.pl: Likewise.
18081 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
18082
18083 * All files with FSF copyright notices: Update copyright dates
18084 using scripts/update-copyrights.
18085 * locale/programs/charmap-kw.h: Regenerated.
18086 * locale/programs/locfile-kw.h: Likewise.
18087
18088 2017-12-31 Zack Weinberg <zackw@panix.com>
18089
18090 * libio/bits/libio-ldbl.h: Correct check for improper
18091 inclusion. Add own multiple include guard.
18092
18093 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
18094 Dmitry V. Levin <ldv@altlinux.org>
18095
18096 [BZ #22625]
18097 CVE-2017-16997
18098 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
18099 string token expansion. Check for NULL pointer or empty string possibly
18100 returned by expand_dynamic_string_token.
18101 (decompose_rpath): Check for empty path after dynamic string
18102 token expansion.
18103
18104 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
18105
18106 [BZ #22433]
18107 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
18108
18109 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
18110 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
18111 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
18112 and PTRACE_SYSCALL.
18113 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
18114 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18115 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18116 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18117 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18118 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18119
18120 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
18121 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18122 __ptrace_peeksiginfo_flags, ptrace): Move to ...
18123 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
18124 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18125 bits/ptrace-shared.h.
18126 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
18127 <bits/ptrace-shared.h>.
18128 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18129 __ptrace_peeksiginfo_flags, ptrace): Remove.
18130 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18131 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18132 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18133 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18134 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18135
18136 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
18137
18138 [BZ #17804]
18139 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
18140 end of the loop. Improve comments.
18141
18142 2017-12-29 Zack Weinberg <zackw@panix.com>
18143
18144 [BZ #22615]
18145 * manual/errno.texi (Checking for Errors): Explicitly say that errno
18146 might be set on success.
18147
18148 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
18149
18150 [BZ #22611]
18151 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
18152 is unchanged on success.
18153
18154 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
18155
18156 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
18157 updated.
18158 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
18159 expand_dynamic_string_token): Likewise.
18160 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
18161 is_path argument.
18162
18163 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
18164 contains ':'.
18165
18166 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
18167 is set and name contains ':', and all code depending on these checks.
18168
18169 2017-12-24 Zack Weinberg <zackw@panix.com>
18170
18171 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
18172 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
18173 respectively.
18174 * libio/libio.h: Rename the original version of this file to
18175 libio/bits/libio.h. Error out if not included by stdio.h or the
18176 stub libio.h.
18177 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
18178 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
18179 if not included by bits/libio.h or the stub _G_config.h.
18180 * sysdeps/unix/sysv/linux/_G_config.h: Move to
18181 sysdeps/unix/sysv/linux/bits. Error out if not included by
18182 bits/libio.h or the stub _G_config.h.
18183 * libio/stdio.h: Include bits/libio.h, not libio.h.
18184 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
18185 well as libio.h and _G_config.h.
18186
18187 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
18188 * libio/strfile.h, stdio-common/vfscanf.c
18189 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
18190 Include stdio.h, not _G_config.h nor libio.h.
18191 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
18192 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
18193
18194 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
18195
18196 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
18197
18198 [BZ #22347]
18199 * stdlib/getrandom.c (getrandom): Fix comment.
18200 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
18201
18202 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
18203
18204 [BZ #21161]
18205 * manual/arith.texi (strtoul): Fix a typo.
18206
18207 [BZ #22596]
18208 * manual/arith.texi (finite): Fix the description of the return
18209 value.
18210
18211 2017-12-22 Eric Blake <ebb9@byu.net>
18212
18213 Avoid gcc warnings on cygwin
18214 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18215 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18216 Avoid unused variable.
18217
18218 2017-12-22 Florian Weimer <fweimer@redhat.com>
18219
18220 * io/Makefile (routines): Add copy_file_range.
18221 (tests): Add tst-copy_file_range.
18222 (tests-static, tests-internal): Add tst-copy_file_range-compat.
18223 * io/Versions (GLIBC_2.27): Export copy_file_range.
18224 * io/copy_file_range-compat.c: New file.
18225 * io/copy_file_range.c: Likewise.
18226 * io/tst-copy_file_range-compat.c: Likewise.
18227 * io/tst-copy_file_range.c: Likewise.
18228 * manual/llio.texi (Copying File Data): New section.
18229 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
18230 * support/Makefile (libsupport-routines): Add support-xfstat,
18231 xftruncate, xlseek.
18232 * support/support-xfstat.c: New file.
18233 * support/xftruncate.c: Likewise.
18234 * support/xlseek.c: Likewise.
18235 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
18236 * sysdeps/unix/sysv/linux/**.abilist: Update.
18237 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
18238
18239 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
18240
18241 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18242 disable-multi-arch variant to aarch64-linux-gnu.
18243
18244 2017-12-20 Joseph Myers <joseph@codesourcery.com>
18245
18246 * manual/texinfo.tex: Update to version 2017-12-18.20 with
18247 trailing whitespace removed.
18248 * scripts/config.guess: Update to version 2017-12-17.
18249 * scripts/config.sub: Update to version 2017-11-23.
18250 * scripts/install-sh: Update to version 2017-09-23.17.
18251 * scripts/move-if-change: Update to version 2017-09-13 06:45.
18252
18253 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18254
18255 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
18256 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18257 * sysdeps/tile/_mcount.S (__mcount): Likewise.
18258 * sysdeps/tile/crti.S (_init, _fini): Likewise.
18259 * sysdeps/tile/crtn.S: Likewise.
18260 * sysdeps/tile/dl-start.S (_start): Likewise.
18261 * sysdeps/tile/dl-trampoline.S: Likewise.
18262 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
18263 * sysdeps/tile/start.S (_start): Likewise.
18264 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
18265 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
18266 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
18267 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
18268 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
18269 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
18270 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
18271
18272 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
18273 comment.
18274 * sysdeps/tile/preconfigure: Remove tilegx folder.
18275 * sysdeps/tile/tilegx/Implies: Move definitions to ...
18276 * sysdeps/tile/Implies: ... here.
18277 * sysdeps/tile/tilegx/Makefile: Move rules to ...
18278 * sysdeps/tile/Makefile: ... here.
18279 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
18280 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
18281 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
18282 * sysdeps/tile/bits/wordsize.h: ... here.
18283 * sysdeps/tile/tilegx/*: Move to ...
18284 * sysdeps/tile/*: ... here.
18285 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
18286 * sysdeps/tile/tilegx32/Implies: ... here.
18287 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
18288 * sysdeps/tile/tilegx64/Implies: ... here.
18289 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
18290 to ...
18291 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
18292 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
18293 * sysdeps/unix/sysv/linux/tile/*: ... here.
18294 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
18295 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
18296 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
18297 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
18298
18299 * README: Remove tilepro-*-linux-gnu from supported architecture.
18300 * scripts/build-many-glibcs.py: Likewise.
18301 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18302 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
18303 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
18304 elf_machine_matches_host, elf_machine_dynamic,
18305 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
18306 howto, elf_machine_rela): Likewise.
18307 * sysdeps/tile/dl-start.S (_start): Likewise.
18308 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
18309 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
18310 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
18311 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
18312 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
18313 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
18314 Likewise.
18315 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
18316 * sysdeps/tile/preconfigure: Likewise.
18317 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
18318 POINTER_CHK_GUARD): Likewise.
18319 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
18320 * sysdeps/tile/start.S (_start): Likewise.
18321 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
18322 Likewise.
18323 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
18324 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
18325 CMOVNEZ): Remove.
18326 * sysdeps/unix/sysv/linux/tile/bits/environments.h
18327 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
18328 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
18329 Likewise.
18330 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
18331 * sysdeps/tile/tilepro/Implies: Remove file.
18332 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
18333 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
18334 * sysdeps/tile/tilepro/memchr.c: Likewise.
18335 * sysdeps/tile/tilepro/memcpy.S: Likewise.
18336 * sysdeps/tile/tilepro/memset.c: Likewise.
18337 * sysdeps/tile/tilepro/memusage.h: Likewise.
18338 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
18339 * sysdeps/tile/tilepro/strchr.c: Likewise.
18340 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
18341 * sysdeps/tile/tilepro/strlen.c: Likewise.
18342 * sysdeps/tile/tilepro/strrchr.c: Likewise.
18343 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
18344 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
18345 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
18346 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
18347 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
18348 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
18349 Likewise.
18350 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
18351 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18352 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
18353 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
18354 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18355 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
18356 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
18357 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
18358 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
18359 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
18360 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
18361 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
18362 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
18363 tilepro mention in comment.
18364
18365 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
18366 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
18367 * nptl/pthread_join_common.c: New file: common function used on
18368 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
18369 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
18370 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
18371 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
18372 (cleanup): Move definition to pthread_join_common.c.
18373 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
18374 Remove superflous checks.
18375 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
18376 Likewise.
18377
18378 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
18379
18380 * sysdeps/aarch64/libm-test-ulps: Update.
18381
18382 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18383
18384 * sysdeps/aarch64/memset.S (MEMSET): Define.
18385
18386 2017-12-20 Florian Weimer <fweimer@redhat.com>
18387
18388 [BZ #22635]
18389 nptl: Provide full implementation of pthread_self in libc.so.
18390 * nptl/Makefile (routines): Add pthread_self.
18391 (libpthread-routines): Replace pthread_self with
18392 compat-pthread_self.
18393 * nptl/forward.c (pthread_self): Remove.
18394 * nptl/nptl-init.c (pthread_functions): Do not initialize
18395 ptr_pthread_self.
18396 * nptl/pthread_self.c (pthread_self): Remove weak alias.
18397 * nptl/compat-pthread_self.c: New file.
18398 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
18399 Remove ptr_pthread_self.
18400
18401 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
18402
18403 * posix/regcomp.c: Fix spelling in comments.
18404 * posix/regex.h: Likewise.
18405 * posix/regex_internal.c: Likewise.
18406 * posix/regexec.c: Likewise.
18407
18408 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18409
18410 [BZ #22377]
18411 * math/Makefile [C++] (tests): Add test for iseqsig.
18412 * math/math.h [C++] (iseqsig): New implementation, which does
18413 not rely on __MATH_TG/__builtin_types_compatible_p.
18414 * math/test-math-iseqsig.cc: New file.
18415 * sysdeps/powerpc/powerpc64le/Makefile
18416 (CFLAGS-test-math-iseqsig.cc): New variable.
18417
18418 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
18419
18420 * elf/dl-load.c (is_trusted_path): Remove.
18421 (fillin_rpath): Remove check_trusted argument and its use,
18422 all callers changed.
18423
18424 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18425
18426 [BZ #22630]
18427 * Makeconfig (link-pie-before-libc): Replace -pie with
18428 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
18429 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
18430 (tst-dlopen-aout-no-pie): New.
18431 (LDFLAGS-tst-prelink): Removed.
18432 (tst-prelink-no-pie): New.
18433 (LDFLAGS-tst-main1): Removed.
18434 (tst-main1-no-pie): New.
18435 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
18436 (tst-gmon-no-pie): New.
18437
18438 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18439
18440 * manual/install.texi: Document that --enable-static-pie
18441 implies PIE.
18442 * INSTALL: Regenerated.
18443
18444 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18445
18446 [BZ #21309]
18447 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
18448 unsigned.
18449
18450 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18451
18452 Revert:
18453
18454 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18455
18456 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18457
18458 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18459
18460 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18461 <errno.h>. Include "eexp.tbl".
18462 (half): New constant.
18463 (one): Likewise.
18464 (__ieee754_exp): Rewrite.
18465 (__slowexp): Remove prototype.
18466 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18467 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18468 * sysdeps/i386/fpu/slowexp.c: Likewise.
18469 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18470 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18471 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18472 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18473 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18474 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18475 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18476 comment.
18477 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18478 (CPPFLAGS-slowexp.c): Remove variable.
18479 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18480 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18481 (CFLAGS-slowexp-fma.c): Remove variable.
18482 (CFLAGS-slowexp-fma4.c): Likewise.
18483 (CFLAGS-slowexp-avx.c): Likewise.
18484 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18485 define as macro.
18486 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18487 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18488 * math/Makefile (type-double-routines): Remove slowexp.
18489 * manual/probes.texi (slowexp_p6): Remove.
18490 (slowexp_p32): Likewise.
18491
18492 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18493
18494 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
18495 arithmetic.
18496
18497 * lib/glob.c (glob): Do not pass NULL to mempcpy.
18498
18499 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18500
18501 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18502
18503 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18504
18505 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18506 <errno.h>. Include "eexp.tbl".
18507 (half): New constant.
18508 (one): Likewise.
18509 (__ieee754_exp): Rewrite.
18510 (__slowexp): Remove prototype.
18511 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18512 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18513 * sysdeps/i386/fpu/slowexp.c: Likewise.
18514 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18515 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18516 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18517 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18518 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18519 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18520 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18521 comment.
18522 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18523 (CPPFLAGS-slowexp.c): Remove variable.
18524 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18525 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18526 (CFLAGS-slowexp-fma.c): Remove variable.
18527 (CFLAGS-slowexp-fma4.c): Likewise.
18528 (CFLAGS-slowexp-avx.c): Likewise.
18529 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18530 define as macro.
18531 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18532 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18533 * math/Makefile (type-double-routines): Remove slowexp.
18534 * manual/probes.texi (slowexp_p6): Remove.
18535 (slowexp_p32): Likewise.
18536
18537 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18538 James Clarke <jrtc27@jrtc27.com>
18539
18540 [BZ #22603]
18541 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
18542 addition.
18543
18544 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18545
18546 [BZ #22605]
18547 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
18548 code.
18549
18550 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18551
18552 [BZ #22563]
18553 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18554 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18555 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18556 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18557 to feature_1.
18558
18559 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18560
18561 [BZ #22563]
18562 * bits/types/__cancel_jmp_buf_tag.h: New file.
18563 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18564 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18565 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18566 * nptl/Makefile (headers): Add
18567 bits/types/__cancel_jmp_buf_tag.h.
18568 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18569 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18570 * sysdeps/nptl/pthread.h: Include
18571 <bits/types/__cancel_jmp_buf_tag.h>.
18572 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18573 __cancel_jmp_buf.
18574 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18575
18576 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18577
18578 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18579 --enable-static-pie variants to x86_64, x32 and i686.
18580
18581 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18582
18583 [BZ #22631]
18584 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
18585 argument for attrubutes. All callers changed.
18586 (__inline_mathop1): Likewise. All callers changed.
18587 (__inline_mathop): Likewise. All callers changed.
18588 [__USE_MISC] (scalbn): Use __inline_forward instead of
18589 __inline_forward_c.
18590 [__USE_ISOC99] (scalbln): Likewise.
18591 [__USE_ISOC99] (nearbyint): Likewise.
18592 [__USE_ISOC99] (lrint): Likewise.
18593 [__USE_MISC] (scalbnf): Likewise.
18594 [__USE_ISOC99] (scalblnf): Likewise.
18595 [__USE_ISOC99] (nearbyintf): Likewise.
18596 [__USE_ISOC99] (lrintf): Likewise.
18597 [__USE_MISC] (scalbnl): Likewise.
18598 [__USE_ISOC99] (scalblnl): Likewise.
18599 [__USE_ISOC99] (nearbyintl): Likewise.
18600 [__USE_ISOC99] (lrintl): Likewise.
18601 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
18602 __inline_mathop and __m81_defun changed.
18603
18604 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
18605 CPU or FPU for ARM hard-float configurations.
18606
18607 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18608
18609 * nptl/tst-attr3.c: Include <libc-diag.h>.
18610 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
18611
18612 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
18613
18614 * string/tester.c (test_strncat): Also disable -Warray-bounds
18615 warnings for two tests.
18616
18617 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18618
18619 [BZ #22614]
18620 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
18621 $(cc-pie-default) == yes.
18622 * config.make.in (cc-pie-default): New.
18623 * configure.ac (libc_cv_pie_default): Renamed to ...
18624 (libc_cv_cc_pie_default): This.
18625 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
18626 * configure: Regenerated.
18627
18628 2017-12-18 Florian Weimer <fweimer@redhat.com>
18629
18630 [BZ #20204]
18631 ld.so: Harden dl-libc/libdl hooks.
18632 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
18633 (rtld_active): New function.
18634 * dlfcn/dladdr.c (__dladdr): Call it.
18635 * dlfcn/dladdr1.c (__dladdr1): Likewise.
18636 * dlfcn/dlclose.c (__dlcose): Likewise.
18637 * dlfcn/dlerror.c (__dlerror): Likewise.
18638 * dlfcn/dlinfo.c (__dlinfo): Likewise.
18639 * dlfcn/dlmopen.c (__dlmopen): Likewise.
18640 * dlfcn/dlopen.c (__dlopen): Likewise.
18641 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
18642 * dlfcn/dlsym.c (__dlsym): Likewise.
18643 * dlfcn/dlvsym.c (__dlvsym): Likewise.
18644 * libio/vtables.c (_IO_vtable_check): Likewise.
18645 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
18646 (__libc_dlclose): Likewise.
18647 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
18648 assignment.
18649
18650 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18651
18652 [BZ #22446]
18653 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
18654 buffers for readlink input and output.
18655
18656 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
18657
18658 [BZ #22624]
18659 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
18660 inhibit_stack_protector.
18661
18662 [BZ #22624]
18663 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
18664 inhibit_stack_protector.
18665
18666 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
18667
18668 [BZ #22627]
18669 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
18670 code and invocation.
18671
18672 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
18673
18674 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
18675
18676 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
18677
18678 [BZ #22505]
18679 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
18680
18681 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18682
18683 * sysdeps/s390/fpu/libm-test-ulps: Update.
18684
18685 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18686
18687 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18688
18689 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18690
18691 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
18692 constants to s_sincosf.h file.
18693 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18694 * sysdeps/ieee754/flt-32/s_sincosf.c: New
18695 implementation.
18696 * sysdeps/ieee754/flt-32/s_sincosf.h:
18697 New file.
18698
18699 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18700
18701 [BZ #14681]
18702 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
18703 before mtrace.
18704
18705 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
18706
18707 [BZ #19574]
18708 * INSTALL: Regenerated.
18709 * Makeconfig (real-static-start-installed-name): New.
18710 (pic-default): Updated for --enable-static-pie.
18711 (pie-default): New for --enable-static-pie.
18712 (default-pie-ldflag): Likewise.
18713 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
18714 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
18715 Replace $(static-start-installed-name) with
18716 $(real-static-start-installed-name).
18717 (+prectorT): Updated for --enable-static-pie.
18718 (+postctorT): Likewise.
18719 (CFLAGS-.o): Add $(pie-default).
18720 (CFLAGS-.op): Likewise.
18721 * NEWS: Mention --enable-static-pie.
18722 * config.h.in (ENABLE_STATIC_PIE): New.
18723 * configure.ac (--enable-static-pie): New configure option.
18724 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
18725 (have-static-pie): Likewise.
18726 Enable static PIE if linker supports --no-dynamic-linker.
18727 (ENABLE_STATIC_PIE): New AC_DEFINE.
18728 (enable-static-pie): New LIBC_CONFIG_VAR.
18729 * configure: Regenerated.
18730 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
18731 gr$(start-installed-name) for --enable-static-pie.
18732 (extra-objs): Likewise.
18733 (install-lib): Likewise.
18734 (extra-objs): Add static-reloc.o and static-reloc.os
18735 ($(objpfx)$(start-installed-name)): Also depend on
18736 $(objpfx)static-reloc.o.
18737 ($(objpfx)r$(start-installed-name)): New.
18738 ($(objpfx)g$(start-installed-name)): Also depend on
18739 $(objpfx)static-reloc.os.
18740 ($(objpfx)gr$(start-installed-name)): New.
18741 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
18742 in libc.a.
18743 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
18744 initimage.
18745 * csu/static-reloc.c: New file.
18746 * elf/Makefile (routines): Add dl-reloc-static-pie.
18747 (elide-routines.os): Likewise.
18748 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
18749 (tst-tls1-static-non-pie-no-pie): New.
18750 * elf/dl-reloc-static-pie.c: New file.
18751 * elf/dl-support.c (_dl_get_dl_main_map): New function.
18752 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
18753 STATIC_PIE_BOOTSTRAP.
18754 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18755 * gmon/Makefile (tests): Add tst-gmon-static-pie.
18756 (tests-static): Likewise.
18757 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
18758 (tst-gmon-static-no-pie): New.
18759 (CFLAGS-tst-gmon-static-pie.c): Likewise.
18760 (CRT-tst-gmon-static-pie): Likewise.
18761 (tst-gmon-static-pie-ENV): Likewise.
18762 (tests-special): Likewise.
18763 ($(objpfx)tst-gmon-static-pie.out): Likewise.
18764 (clean-tst-gmon-static-pie-data): Likewise.
18765 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
18766 * gmon/tst-gmon-static-pie.c: New file.
18767 * manual/install.texi: Document --enable-static-pie.
18768 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
18769 (_dl_get_dl_main_map): Likewise.
18770 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
18771 * sysdeps/x86_64/configure.ac: Likewise.
18772 * sysdeps/i386/configure: Regenerated.
18773 * sysdeps/x86_64/configure: Likewise.
18774 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
18775 (ASFLAGS-.op): Likewise.
18776
18777 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18778
18779 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
18780 * posix/tst-mmap-offset.c (fname): Use /tmp.
18781 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
18782
18783 2017-12-15 Steve Ellcey <sellcey@cavium.com>
18784
18785 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
18786
18787 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
18788
18789 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
18790 errno.
18791
18792 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18793
18794 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18795 --with-float=hard for arm-linux-gnueabihf configurations.
18796
18797 [BZ #14121]
18798 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
18799 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
18800 ($(mo-installed)): Use $(objpfx)%.mo.
18801 (realclean): Remove rule.
18802
18803 * po/Makefile (linguas): Remove rule and dependencies.
18804 (linguas.mo): Likewise.
18805 (.PHONY): Do not depend on linguas and linguas.mo.
18806 (podir): Remove variable.
18807 (pofiles): Likewise.
18808 [$(pofiles)] (%.po): Remove rule.
18809
18810 * sysdeps/sparc/sparc32/Makefile
18811 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
18812 start-of-line whitespace in argument of echo.
18813 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
18814 with whitespace. Generate __wrap_.udiv alias.
18815 * sysdeps/sparc/sparc32/rem.S: Regenerated.
18816 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
18817 * sysdeps/sparc/sparc32/udiv.S: Likewise.
18818 * sysdeps/sparc/sparc32/urem.S: Likewise.
18819
18820 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18821
18822 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
18823 for aligned inputs.
18824
18825 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
18826
18827 * benchtests/bench-strcmp.c: Print output in JSON format.
18828
18829 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
18830
18831 2017-12-14 Florian Weimer <fweimer@redhat.com>
18832
18833 [BZ #22607]
18834 CVE-2017-1000409
18835 * elf/dl-load.c (_dl_init_paths): Compute number of components in
18836 the expanded path string.
18837
18838 2017-12-14 Florian Weimer <fweimer@redhat.com>
18839
18840 [BZ #22606]
18841 CVE-2017-1000408
18842 * elf/dl-load.c (system_dirs): Update comment.
18843 (nsystem_dirs_len): Use array_length.
18844 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
18845
18846 2017-12-14 Florian Weimer <fweimer@redhat.com>
18847
18848 Simplify compiling most of support/ outside of glibc.
18849 * support/check_addrinfo.c: Include <string.h>.
18850 * support/check_dns_packet.c: Likewise.
18851 * support/check_hostent.c: Likewise.
18852 * support/support_can_chroot.c: Include <support/xunistd.h>.
18853 * support/support_format_addrinfo.c: Include <stdlib.h>
18854 * support/support_format_dns_packet.c: Include <stdbool.h>.
18855 * support/support_format_hostent.c: Include <stdlib.h>.
18856 * support/support_format_netent.c: Likewise.
18857 * support/support_write_string.c: Include <support/xunistd.h>.
18858 * support/xdlfcn.c: Include <stddef.h>.
18859
18860 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
18861
18862 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
18863
18864 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18865 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18866
18867 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18868 (sysdeps_routines): Add memset-niagara7.
18869 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
18870 Likewise.
18871 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
18872 file.
18873 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
18874 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18875 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18876 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18877 Add niagara7 option.
18878 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18879 memset.
18880
18881 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18882 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18883 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18884 Likewise.
18885 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18886 New file.
18887 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18888 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18889 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18890 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18891 and __memmove_niagara7.
18892 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18893 Add niagara7 option.
18894 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18895 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18896 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
18897 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
18898 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
18899
18900 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
18901
18902 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
18903 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
18904 * sysdeps/sparc/sparc64/memmove.S: Likewise.
18905 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
18906
18907 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
18908 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
18909 _dl_sparc_cap_flags array.
18910 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
18911
18912 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
18913
18914 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
18915 time whenever possible.
18916
18917 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18918
18919 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
18920 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
18921
18922 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18923
18924 * soft-fp/fmadf4.c: Move to ....
18925 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
18926 * soft-fp/fmasf4.c: Move to ....
18927 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
18928 * soft-fp/fmatf4.c: Move to ....
18929 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
18930 * sysdeps/ieee754/soft-fp/Makefile: New file.
18931 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
18932 * sysdeps/arm/preconfigure: Regenerated.
18933 * sysdeps/arm/nofpu/Implies: New file.
18934 * sysdeps/arm/s_fma.c: Remove file.
18935 * sysdeps/arm/s_fmaf.c: Likewise.
18936 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
18937 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
18938 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18939 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
18940 * sysdeps/microblaze/s_fma.c: Remove file.
18941 * sysdeps/microblaze/s_fmaf.c: Likewise.
18942 * sysdeps/mips/mips32/nofpu/Implies: New file.
18943 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
18944 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
18945 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
18946 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
18947 * sysdeps/mips/ieee754/s_fma.c: Remove file.
18948 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
18949 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
18950 implementation.
18951 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
18952 * sysdeps/nios2/s_fma.c: Remove file.
18953 * sysdeps/nios2/s_fmaf.c: Likewise.
18954 * sysdeps/sh/nofpu/Implies: New file.
18955 * sysdeps/sh/s_fma.c: Remove file.
18956 * sysdeps/sh/s_fmaf.c: Likewise.
18957 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18958 * sysdeps/tile/s_fma.c: Remove file.
18959 * sysdeps/tile/s_fmaf.c: Likewise.
18960
18961 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18962
18963 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18964 Add s_cosf-sse2 and s_cosf-fma.
18965 (CFLAGS-s_cosf-fma.c): New.
18966 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18967 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18968 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18969
18970 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18971
18972 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18973
18974 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18975
18976 * libio/Makefile (tests): Add tst-bz22415.
18977 (tst-bz22415-ENV): New rule.
18978 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18979 (tests-special): Add tst-bz22415-mem.out.
18980 ($(objpfx)tst-bz22415-mem.out): New rule.
18981 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18982 in case of a successful seek operation.
18983 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18984 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18985 buffer is required.
18986 * libio/tst-bz22415.c: New test.
18987
18988 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18989
18990 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18991
18992 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18993 __IPC_64 to 0 to avoid IPC_64 being set.
18994
18995 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18996
18997 [BZ #22593]
18998 * math/bits/mathcalls.h (nextafter): Remove const.
18999 (nexttoward): Likewise.
19000
19001 2017-12-12 Joseph Myers <joseph@codesourcery.com>
19002
19003 * configure.ac (--with-fp): Remove configure option.
19004 (with_fp_cond): New variable.
19005 (libc_cv_with_fp): New configure test. Use this variable instead
19006 of with_fp.
19007 * configure: Regenerated.
19008 * config.make.in (with-fp): Use @libc_cv_with_fp@.
19009 * manual/install.texi (Configuring and compiling): Remove
19010 --without-fp.
19011 * INSTALL: Regenerated.
19012 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
19013 * sysdeps/mips/preconfigure (with_fp_cond): Define.
19014 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
19015 * sysdeps/sh/preconfigure (with_fp_cond): Define.
19016 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
19017 use --without-fp to configure glibc.
19018
19019 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
19020
19021 * manual/locale.texi (nl_langinfo): Fix a typo.
19022
19023 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
19024
19025 [BZ #22588]
19026 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
19027
19028 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19029
19030 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
19031 (CFLAGS-argp-parse.c): Likewise.
19032 (CFLAGS-argp-fmtstream.c): Likewise.
19033 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
19034 (CPPFLAGS-sha512-crypt.c): Likewise.
19035 (CPPFLAGS-md5-crypt.c): Likewise.
19036 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
19037 (CFLAGS-stack_chk_fail_local.c): Likewise.
19038 (CFLAGS-backtrace.c): Likewise.
19039 (CFLAGS-sprintf_chk.c): Likewise.
19040 (CFLAGS-snprintf_chk.c): Likewise.
19041 (CFLAGS-vsprintf_chk.c): Likewise.
19042 (CFLAGS-vsnprintf_chk.c): Likewise.
19043 (CFLAGS-asprintf_chk.c): Likewise.
19044 (CFLAGS-vasprintf_chk.c): Likewise.
19045 (CFLAGS-obprintf_chk.c): Likewise.
19046 (CFLAGS-dprintf_chk.c): Likewise.
19047 (CFLAGS-vdprintf_chk.c): Likewise.
19048 (CFLAGS-printf_chk.c): Likewise.
19049 (CFLAGS-fprintf_chk.c): Likewise.
19050 (CFLAGS-vprintf_chk.c): Likewise.
19051 (CFLAGS-vfprintf_chk.c): Likewise.
19052 (CFLAGS-gets_chk.c): Likewise.
19053 (CFLAGS-fgets_chk.c): Likewise.
19054 (CFLAGS-fgets_u_chk.c): Likewise.
19055 (CFLAGS-fread_chk.c): Likewise.
19056 (CFLAGS-fread_u_chk.c): Likewise.
19057 (CFLAGS-swprintf_chk.c): Likewise.
19058 (CFLAGS-vswprintf_chk.c): Likewise.
19059 (CFLAGS-wprintf_chk.c): Likewise.
19060 (CFLAGS-fwprintf_chk.c): Likewise.
19061 (CFLAGS-vwprintf_chk.c): Likewise.
19062 (CFLAGS-vfwprintf_chk.c): Likewise.
19063 (CFLAGS-fgetws_chk.c): Likewise.
19064 (CFLAGS-fgetws_u_chk.c): Likewise.
19065 (CFLAGS-read_chk.c): Likewise.
19066 (CFLAGS-pread_chk.c): Likewise.
19067 (CFLAGS-pread64_chk.c): Likewise.
19068 (CFLAGS-recv_chk.c): Likewise.
19069 (CFLAGS-recvfrom_chk.c): Likewise.
19070 (CFLAGS-tst-longjmp_chk.c): Likewise.
19071 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
19072 (CFLAGS-tst-longjmp_chk2.c): Likewise.
19073 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
19074 (CFLAGS-tst-longjmp_chk3.c): Likewise.
19075 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
19076 (CFLAGS-tst-chk1.c): Likewise.
19077 (CFLAGS-tst-chk2.c): Likewise.
19078 (CFLAGS-tst-chk3.c): Likewise.
19079 (CFLAGS-tst-chk4.cc): Likewise.
19080 (CFLAGS-tst-chk5.cc): Likewise.
19081 (CFLAGS-tst-chk6.cc): Likewise.
19082 (CFLAGS-tst-lfschk1.c): Likewise.
19083 (CFLAGS-tst-lfschk2.c): Likewise.
19084 (CFLAGS-tst-lfschk3.c): Likewise.
19085 (CFLAGS-tst-lfschk4.cc): Likewise.
19086 (CFLAGS-tst-lfschk5.cc): Likewise.
19087 (CFLAGS-tst-lfschk6.cc): Likewise.
19088 (CFLAGS-tst-ssp-1.c): Likewise.
19089 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
19090 (CFLAGS-scandir64.c): Likewise.
19091 (CFLAGS-scandir-tail.c): Likewise.
19092 (CFLAGS-scandir64-tail.c): Likewise.
19093 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
19094 (CFLAGS-dl-tunables.c): Likewise.
19095 (CFLAGS-dl-runtime.c): Likewise.
19096 (CFLAGS-dl-lookup.c): Likewise.
19097 (CFLAGS-dl-iterate-phdr.c): Likewise.
19098 (CFLAGS-vismain.c): Likewise.
19099 (CFLAGS-tst-linkall-static.c): Likewise.
19100 (CFLAGS-tst-linkall-static.c): Likewise.
19101 (CPPFLAGS-dl-load.c): Likewise.
19102 (CFLAGS-ldconfig.c): Likewise.
19103 (CFLAGS-dl-cache.c): Likewise.
19104 (CFLAGS-cache.c): Likewise.
19105 (CFLAGS-rtld.c): Likewise.
19106 (CFLAGS-multiload.c): Likewise.
19107 (CFLAGS-filtmod1.c): Likewise.
19108 (CFLAGS-tst-align.c): Likewise.
19109 (CFLAGS-tst-align2.c): Likewise.
19110 (CFLAGS-tst-alignmod.c): Likewise.
19111 (CFLAGS-tst-alignmod2.c): Likewise.
19112 (CPPFLAGS-tst-execstack.c): Likewise.
19113 (CFLAGS-tst-ptrguard1-static.c): Likewise.
19114 (CFLAGS-tst-latepthreadmod.c): Likewise.
19115 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
19116 (CFLAGS-getgrnam_r.c): Likewise.
19117 (CFLAGS-getgrent_r.c): Likewise.
19118 (CFLAGS-getgrent.c): Likewise.
19119 (CFLAGS-fgetgrent.c): Likewise.
19120 (CFLAGS-fgetgrent_r.c): Likewise.
19121 (CFLAGS-putgrent.c): Likewise.
19122 (CFLAGS-initgroups.c): Likewise.
19123 (CFLAGS-getgrgid.c): Likewise.
19124 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
19125 (CFLAGS-getsgent.c): Likewise.
19126 (CFLAGS-fgetsgent.c): Likewise.
19127 (CFLAGS-fgetsgent_r.c): Likewise.
19128 (CFLAGS-putsgent.c): Likewise.
19129 (CFLAGS-getsgnam.c): Likewise.
19130 (CFLAGS-getsgnam_r.c): Likewise.
19131 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
19132 (CFLAGS-iconv_charmap.c): Likewise.
19133 (CFLAGS-dummy-repertoire.c): Likewise.
19134 (CFLAGS-charmap.c): Likewise.
19135 (CFLAGS-linereader.c): Likewise.
19136 (CFLAGS-simple-hash.c): Likewise.
19137 (CFLAGS-gconv_conf.c): Likewise.
19138 (CFLAGS-iconvconfig.c): Likewise.
19139 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
19140 (CFLAGS-gethstbyad.c): Likewise.
19141 (CFLAGS-gethstbynm_r.c): Likewise.
19142 (CFLAGS-gethstbynm.c): Likewise.
19143 (CFLAGS-gethstbynm2_r.c): Likewise.
19144 (CFLAGS-gethstbynm2.c): Likewise.
19145 (CFLAGS-gethstent_r.c): Likewise.
19146 (CFLAGS-gethstent.c): Likewise.
19147 (CFLAGS-rcmd.c): Likewise.
19148 (CFLAGS-getnetbynm_r.c): Likewise.
19149 (CFLAGS-getnetbynm.c): Likewise.
19150 (CFLAGS-getnetbyad_r.c): Likewise.
19151 (CFLAGS-getnetbyad.c): Likewise.
19152 (CFLAGS-getnetent_r.c): Likewise.
19153 (CFLAGS-getnetent.c): Likewise.
19154 (CFLAGS-getaliasent_r.c): Likewise.
19155 (CFLAGS-getaliasent.c): Likewise.
19156 (CFLAGS-getrpcent_r.c): Likewise.
19157 (CFLAGS-getrpcent.c): Likewise.
19158 (CFLAGS-getservent_r.c): Likewise.
19159 (CFLAGS-getservent.c): Likewise.
19160 (CFLAGS-getprtent_r.c): Likewise.
19161 (CFLAGS-getprtent.c): Likewise.
19162 (CFLAGS-either_ntoh.c): Likewise.
19163 (CFLAGS-either_hton.c): Likewise.
19164 (CFLAGS-getnetgrent.c): Likewise.
19165 (CFLAGS-getnetgrent_r.c): Likewise.
19166 (CFLAGS-tst-checks-posix.c): Likewise.
19167 (CFLAGS-tst-sockaddr.c): Likewise.
19168 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
19169 (CFLAGS-tst-translit.c): Likewise.
19170 (CFLAGS-tst-gettext2.c): Likewise.
19171 (CFLAGS-tst-codeset.c): Likewise.
19172 (CFLAGS-tst-gettext3.c): Likewise.
19173 (CFLAGS-tst-gettext4.c): Likewise.
19174 (CFLAGS-tst-gettext5.c): Likewise.
19175 (CFLAGS-tst-gettext6.c): Likewise.
19176 * io/Makefile (CFLAGS-open.c): Likewise.
19177 (CFLAGS-open64.c): Likewise.
19178 (CFLAGS-creat.c): Likewise.
19179 (CFLAGS-creat64.c): Likewise.
19180 (CFLAGS-fcntl.c): Likewise.
19181 (CFLAGS-poll.c): Likewise.
19182 (CFLAGS-ppoll.c): Likewise.
19183 (CFLAGS-lockf.c): Likewise.
19184 (CFLAGS-statfs.c): Likewise.
19185 (CFLAGS-fstatfs.c): Likewise.
19186 (CFLAGS-statvfs.c): Likewise.
19187 (CFLAGS-fstatvfs.c): Likewise.
19188 (CFLAGS-fts.c): Likewise.
19189 (CFLAGS-fts64.c): Likewise.
19190 (CFLAGS-ftw.c): Likewise.
19191 (CFLAGS-ftw64.c): Likewise.
19192 (CFLAGS-lockf.c): Likewise.
19193 (CFLAGS-posix_fallocate.c): Likewise.
19194 (CFLAGS-posix_fallocate64.c): Likewise.
19195 (CFLAGS-fallocate.c): Likewise.
19196 (CFLAGS-fallocate64.c): Likewise.
19197 (CFLAGS-read.c): Likewise.
19198 (CFLAGS-write.c): Likewise.
19199 (CFLAGS-test-stat.c): Likewise.
19200 (CFLAGS-test-lfs.c): Likewise.
19201 * libio/Makefile (CFLAGS-fileops.c): Likewise.
19202 (CFLAGS-fputc.c): Likewise.
19203 (CFLAGS-fputwc.c): Likewise.
19204 (CFLAGS-freopen64.c): Likewise.
19205 (CFLAGS-freopen.c): Likewise.
19206 (CFLAGS-fseek.c): Likewise.
19207 (CFLAGS-fseeko64.c): Likewise.
19208 (CFLAGS-fseeko.c): Likewise.
19209 (CFLAGS-ftello64.c): Likewise.
19210 (CFLAGS-ftello.c): Likewise.
19211 (CFLAGS-fwide.c): Likewise.
19212 (CFLAGS-genops.c): Likewise.
19213 (CFLAGS-getc.c): Likewise.
19214 (CFLAGS-getchar.c): Likewise.
19215 (CFLAGS-getwc.c): Likewise.
19216 (CFLAGS-getwchar.c): Likewise.
19217 (CFLAGS-iofclose.c): Likewise.
19218 (CFLAGS-iofflush.c): Likewise.
19219 (CFLAGS-iofgetpos64.c): Likewise.
19220 (CFLAGS-iofgetpos.c): Likewise.
19221 (CFLAGS-iofgets.c): Likewise.
19222 (CFLAGS-iofgetws.c): Likewise.
19223 (CFLAGS-iofputs.c): Likewise.
19224 (CFLAGS-iofputws.c): Likewise.
19225 (CFLAGS-iofread.c): Likewise.
19226 (CFLAGS-iofsetpos64.c): Likewise.
19227 (CFLAGS-iofsetpos.c): Likewise.
19228 (CFLAGS-ioftell.c): Likewise.
19229 (CFLAGS-iofwrite.c): Likewise.
19230 (CFLAGS-iogetdelim.c): Likewise.
19231 (CFLAGS-iogetline.c): Likewise.
19232 (CFLAGS-iogets.c): Likewise.
19233 (CFLAGS-iogetwline.c): Likewise.
19234 (CFLAGS-ioputs.c): Likewise.
19235 (CFLAGS-ioseekoff.c): Likewise.
19236 (CFLAGS-ioseekpos.c): Likewise.
19237 (CFLAGS-iosetbuffer.c): Likewise.
19238 (CFLAGS-iosetvbuf.c): Likewise.
19239 (CFLAGS-ioungetc.c): Likewise.
19240 (CFLAGS-ioungetwc.c): Likewise.
19241 (CFLAGS-oldfileops.c): Likewise.
19242 (CFLAGS-oldiofclose.c): Likewise.
19243 (CFLAGS-oldiofgetpos64.c): Likewise.
19244 (CFLAGS-oldiofgetpos.c): Likewise.
19245 (CFLAGS-oldiofsetpos64.c): Likewise.
19246 (CFLAGS-oldiofsetpos.c): Likewise.
19247 (CFLAGS-peekc.c): Likewise.
19248 (CFLAGS-putc.c): Likewise.
19249 (CFLAGS-putchar.c): Likewise.
19250 (CFLAGS-putwc.c): Likewise.
19251 (CFLAGS-putwchar.c): Likewise.
19252 (CFLAGS-rewind.c): Likewise.
19253 (CFLAGS-wfileops.c): Likewise.
19254 (CFLAGS-wgenops.c): Likewise.
19255 (CFLAGS-oldiofopen.c): Likewise.
19256 (CFLAGS-iofopen.c): Likewise.
19257 (CFLAGS-iofopen64.c): Likewise.
19258 (CFLAGS-oldtmpfile.c): Likewise.
19259 (CFLAGS-tst_putwc.c): Likewise.
19260 * locale/Makefile (CFLAGS-md5.c): Likewise.
19261 (CFLAGS-charmap.c): Likewise.
19262 (CFLAGS-locfile.c): Likewise.
19263 (CFLAGS-charmap-dir.c): Likewise.
19264 * login/Makefile (CFLAGS-grantpt.c): Likewise.
19265 (CFLAGS-getpt.c): Likewise.
19266 (CFLAGS-pt_chown.c): Likewise.
19267 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
19268 (CFLAGS-obstack.c): Likewise.
19269 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
19270 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
19271 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
19272 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
19273 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
19274 (CFLAGS-test-tgmath.c): Likewise.
19275 (CFLAGS-test-tgmath2.c): Likewise.
19276 (CFLAGS-test-tgmath-ret.c): Likewise.
19277 (CFLAGS-test-powl.c): Likewise.
19278 (CFLAGS-test-snan.c): Likewise.
19279 (CFLAGS-test-signgam-finite.c): Likewise.
19280 (CFLAGS-test-signgam-finite-c99.c): Likewise.
19281 (CFLAGS-test-signgam-finite-c11.c): Likewise.
19282 (CFLAGS-test-signgam-uchar.c): Likewise.
19283 (CFLAGS-test-signgam-uchar-init.c): Likewise.
19284 (CFLAGS-test-signgam-uchar-static.c): Likewise.
19285 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
19286 (CFLAGS-test-signgam-uint.c): Likewise.
19287 (CFLAGS-test-signgam-uint-init.c): Likewise.
19288 (CFLAGS-test-signgam-uint-static.c): Likewise.
19289 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
19290 (CFLAGS-test-signgam-ullong.c): Likewise.
19291 (CFLAGS-test-signgam-ullong-init.c): Likewise.
19292 (CFLAGS-test-signgam-ullong-static.c): Likewise.
19293 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
19294 (CFLAGS-test-math-cxx11.cc): Likewise.
19295 (CFLAGS-test-math-isinff.cc): Likewise.
19296 (CFLAGS-test-math-iszero.cc): Likewise.
19297 (CFLAGS-test-math-issignaling.cc): Likewise.
19298 (CFLAGS-test-math-iscanonical.cc): Likewise.
19299 (CFLAGS-test-iszero-excess-precision.c): Likewise.
19300 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
19301 (CFLAGS-test-flt-eval-method.c): Likewise.
19302 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
19303 (CFLAGS-test-finite-macros.c): Likewise.
19304 * misc/Makefile (CFLAGS-select.c): Likewise.
19305 (CFLAGS-tsearch.c): Likewise.
19306 (CFLAGS-lsearch.c): Likewise.
19307 (CFLAGS-pselect.c): Likewise.
19308 (CFLAGS-readv.c): Likewise.
19309 (CFLAGS-writev.c): Likewise.
19310 (CFLAGS-preadv.c): Likewise.
19311 (CFLAGS-preadv64.c): Likewise.
19312 (CFLAGS-pwritev.c): Likewise.
19313 (CFLAGS-pwritev64.c): Likewise.
19314 (CFLAGS-preadv2.c): Likewise.
19315 (CFLAGS-preadv64v2.c): Likewise.
19316 (CFLAGS-pwritev2.c): Likewise.
19317 (CFLAGS-pwritev64v2.c): Likewise.
19318 (CFLAGS-usleep.c): Likewise.
19319 (CFLAGS-syslog.c): Likewise.
19320 (CFLAGS-error.c): Likewise.
19321 (CFLAGS-getpass.c): Likewise.
19322 (CFLAGS-mkstemp.c): Likewise.
19323 (CFLAGS-mkstemp64.c): Likewise.
19324 (CFLAGS-getsysstats.c): Likewise.
19325 (CFLAGS-getusershell.c): Likewise.
19326 (CFLAGS-err.c): Likewise.
19327 (CFLAGS-tst-tsearch.c): Likewise.
19328 (CFLAGS-msync.c): Likewise.
19329 (CFLAGS-fdatasync.c): Likewise.
19330 (CFLAGS-fsync.c): Likewise.
19331 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
19332 (CFLAGS-unwind.c): Likewise.
19333 (CFLAGS-unwind-forcedunwind.c): Likewise.
19334 (CFLAGS-pthread_cancel.c): Likewise.
19335 (CFLAGS-pthread_setcancelstate.c): Likewise.
19336 (CFLAGS-pthread_setcanceltype.c): Likewise.
19337 (CFLAGS-cancellation.c): Likewise.
19338 (CFLAGS-libc-cancellation.c): Likewise.
19339 (CFLAGS-pthread_exit.c): Likewise.
19340 (CFLAGS-forward.c): Likewise.
19341 (CFLAGS-pthread_testcancel.c): Likewise.
19342 (CFLAGS-pthread_join.c): Likewise.
19343 (CFLAGS-pthread_timedjoin.c): Likewise.
19344 (CFLAGS-pthread_once.c): Likewise.
19345 (CFLAGS-pthread_cond_wait.c): Likewise.
19346 (CFLAGS-sem_wait.c): Likewise.
19347 (CFLAGS-sem_timedwait.c): Likewise.
19348 (CFLAGS-fcntl.c): Likewise.
19349 (CFLAGS-lockf.c): Likewise.
19350 (CFLAGS-pread.c): Likewise.
19351 (CFLAGS-pread64.c): Likewise.
19352 (CFLAGS-pwrite.c): Likewise.
19353 (CFLAGS-pwrite64.c): Likewise.
19354 (CFLAGS-wait.c): Likewise.
19355 (CFLAGS-waitpid.c): Likewise.
19356 (CFLAGS-sigwait.c): Likewise.
19357 (CFLAGS-msgrcv.c): Likewise.
19358 (CFLAGS-msgsnd.c): Likewise.
19359 (CFLAGS-tcdrain.c): Likewise.
19360 (CFLAGS-open.c): Likewise.
19361 (CFLAGS-open64.c): Likewise.
19362 (CFLAGS-pause.c): Likewise.
19363 (CFLAGS-recv.c): Likewise.
19364 (CFLAGS-send.c): Likewise.
19365 (CFLAGS-accept.c): Likewise.
19366 (CFLAGS-sendto.c): Likewise.
19367 (CFLAGS-connect.c): Likewise.
19368 (CFLAGS-recvfrom.c): Likewise.
19369 (CFLAGS-recvmsg.c): Likewise.
19370 (CFLAGS-sendmsg.c): Likewise.
19371 (CFLAGS-close.c): Likewise.
19372 (CFLAGS-read.c): Likewise.
19373 (CFLAGS-write.c): Likewise.
19374 (CFLAGS-nanosleep.c): Likewise.
19375 (CFLAGS-sigsuspend.c): Likewise.
19376 (CFLAGS-msync.c): Likewise.
19377 (CFLAGS-fdatasync.c): Likewise.
19378 (CFLAGS-fsync.c): Likewise.
19379 (CFLAGS-pt-system.c): Likewise.
19380 (CFLAGS-tst-cleanup2.c): Likewise.
19381 (CFLAGS-tst-cleanupx2.c): Likewise.
19382 (CFLAGS-flockfile.c): Likewise.
19383 (CFLAGS-ftrylockfile.c): Likewise.
19384 (CFLAGS-funlockfile.c): Likewise.
19385 (CFLAGS-tst-initializers1.c): Likewise.
19386 (CFLAGS-tst-initializers1-c89.c): Likewise.
19387 (CFLAGS-tst-initializers1-c99.c): Likewise.
19388 (CFLAGS-tst-initializers1-c11.c): Likewise.
19389 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
19390 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
19391 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
19392 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
19393 (CFLAGS-nscd_getgr_r.c): Likewise.
19394 (CFLAGS-nscd_gethst_r.c): Likewise.
19395 (CFLAGS-nscd_getai.c): Likewise.
19396 (CFLAGS-nscd_initgroups.c): Likewise.
19397 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
19398 (CFLAGS-pause.c): Likewise.
19399 (CFLAGS-pread.c): Likewise.
19400 (CFLAGS-pread64.c): Likewise.
19401 (CFLAGS-pwrite.c): Likewise.
19402 (CFLAGS-pwrite64.c): Likewise.
19403 (CFLAGS-sleep.c): Likewise.
19404 (CFLAGS-wait.c): Likewise.
19405 (CFLAGS-waitid.c): Likewise.
19406 (CFLAGS-waitpid.c): Likewise.
19407 (CFLAGS-getopt.c): Likewise.
19408 (CFLAGS-wordexp.c): Likewise.
19409 (CFLAGS-sysconf.c): Likewise.
19410 (CFLAGS-pathconf.c): Likewise.
19411 (CFLAGS-fpathconf.c): Likewise.
19412 (CFLAGS-spawn.c): Likewise.
19413 (CFLAGS-spawnp.c): Likewise.
19414 (CFLAGS-spawni.c): Likewise.
19415 (CFLAGS-glob.c): Likewise.
19416 (CFLAGS-glob64.c): Likewise.
19417 (CFLAGS-getconf.c): Likewise.
19418 (CFLAGS-nanosleep.c): Likewise.
19419 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
19420 (CFLAGS-getpwent.c): Likewise.
19421 (CFLAGS-getpw.c): Likewise.
19422 (CFLAGS-fgetpwent_r.c): Likewise.
19423 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
19424 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
19425 (CFLAGS-mq_timedreceive.c): Likewise.
19426 (CFLAGS-mq_timedsend.c): Likewise.
19427 (CFLAGS-clock_nanosleep.c): Likewise.
19428 (CFLAGS-librt-cancellation.c): Likewise.
19429 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
19430 (CFLAGS-getspent.c): Likewise.
19431 (CFLAGS-fgetspent.c): Likewise.
19432 (CFLAGS-fgetspent_r.c): Likewise.
19433 (CFLAGS-putspent.c): Likewise.
19434 (CFLAGS-getspnam.c): Likewise.
19435 (CFLAGS-getspnam_r.c): Likewise.
19436 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
19437 (CFLAGS-sigsuspend.c): Likewise.
19438 (CFLAGS-sigtimedwait.c): Likewise.
19439 (CFLAGS-sigwait.c): Likewise.
19440 (CFLAGS-sigwaitinfo.c): Likewise.
19441 (CFLAGS-sigreturn.c): Likewise.
19442 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
19443 (CFLAGS-vfwprintf.c): Likewise.
19444 (CFLAGS-tmpfile.c): Likewise.
19445 (CFLAGS-tmpfile64.c): Likewise.
19446 (CFLAGS-tempname.c): Likewise.
19447 (CFLAGS-psignal.c): Likewise.
19448 (CFLAGS-vprintf.c): Likewise.
19449 (CFLAGS-cuserid.c): Likewise.
19450 (CFLAGS-errlist.c): Likewise.
19451 (CFLAGS-siglist.c): Likewise.
19452 (CFLAGS-scanf15.c): Likewise.
19453 (CFLAGS-scanf17.c): Likewise.
19454 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
19455 (CFLAGS-msort.c): Likewise.
19456 (CFLAGS-qsort.c): Likewise.
19457 (CFLAGS-system.c): Likewise.
19458 (CFLAGS-fmtmsg.c): Likewise.
19459 (CFLAGS-strfmon.c): Likewise.
19460 (CFLAGS-strfmon_l.c): Likewise.
19461 (CFLAGS-strfromd.c): Likewise.
19462 (CFLAGS-strfromf.c): Likewise.
19463 (CFLAGS-strfroml.c): Likewise.
19464 (CFLAGS-tst-bsearch.c): Likewise.
19465 (CFLAGS-tst-qsort.c): Likewise.
19466 (CFLAGS-tst-makecontext2.c): Likewise.
19467 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
19468 (CFLAGS-xnlm_prot.c): Likewise.
19469 (CFLAGS-xrstat.c): Likewise.
19470 (CFLAGS-xyppasswd.c): Likewise.
19471 (CFLAGS-xklm_prot.c): Likewise.
19472 (CFLAGS-xrex.c): Likewise.
19473 (CFLAGS-xsm_inter.c): Likewise.
19474 (CFLAGS-xmount.c): Likewise.
19475 (CFLAGS-xrusers.c): Likewise.
19476 (CFLAGS-xspray.c): Likewise.
19477 (CFLAGS-xnfs_prot.c): Likewise.
19478 (CFLAGS-xrquota.c): Likewise.
19479 (CFLAGS-xkey_prot.c): Likewise.
19480 (CFLAGS-auth_unix.c): Likewise.
19481 (CFLAGS-key_call.c): Likewise.
19482 (CFLAGS-pmap_rmt.c): Likewise.
19483 (CFLAGS-clnt_perr.c): Likewise.
19484 (CFLAGS-openchild.c): Likewise.
19485 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
19486 (CFLAGS-msgsnd.c): Likewise.
19487 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
19488 * time/Makefile (CFLAGS-tzfile.c): Likewise.
19489 (CFLAGS-tzset.c): Likewise.
19490 (CFLAGS-getdate.c): Likewise.
19491 (CFLAGS-test_time.c): Likewise.
19492 (CPPFLAGS-tst-tzname.c): Likewise.
19493 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
19494 (CFLAGS-zic.c): Likewise.
19495 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
19496 (CFLAGS-wcswidth.c): Likewise.
19497 (CFLAGS-wcstol.c): Likewise.
19498 (CFLAGS-wcstoul.c): Likewise.
19499 (CFLAGS-wcstoll.c): Likewise.
19500 (CFLAGS-wcstoull.c): Likewise.
19501 (CFLAGS-wcstod.c): Likewise.
19502 (CFLAGS-wcstold.c): Likewise.
19503 (CFLAGS-wcstof128.c): Likewise.
19504 (CFLAGS-wcstof.c): Likewise.
19505 (CFLAGS-wcstol_l.c): Likewise.
19506 (CFLAGS-wcstoul_l.c): Likewise.
19507 (CFLAGS-wcstoll_l.c): Likewise.
19508 (CFLAGS-wcstoull_l.c): Likewise.
19509 (CFLAGS-wcstod_l.c): Likewise.
19510 (CFLAGS-wcstold_l.c): Likewise.
19511 (CFLAGS-wcstof128_l.c): Likewise.
19512 (CFLAGS-wcstof_l.c): Likewise.
19513 (CPPFLAGS-tst-wchar-h.c): Likewise.
19514 (CPPFLAGS-wcstold_l.c): Likewise.
19515
19516 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
19517
19518 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
19519
19520 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
19521 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19522
19523 * manual/tunables.texi (Hardware Capability Tunables): Document
19524 glibc.tune.cached_memopt.
19525 * sysdeps/powerpc/cpu-features.c: New file.
19526 * sysdeps/powerpc/cpu-features.h: New file.
19527 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
19528 _dl_powerpc_cpu_features.
19529 * sysdeps/powerpc/dl-tunables.list: New file.
19530 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
19531 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
19532 (INIT_ARCH): Initialize use_aligned_memopt.
19533 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
19534 IS_IN(rtld))]: Restrict dl_platform_init availability and
19535 initialize CPU features used by tunables.
19536 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
19537 Add memcpy-power8-cached.
19538 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
19539 __memcpy_power8_cached.
19540 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
19541 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
19542 New file.
19543
19544 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19545
19546 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
19547 (CFLAGS-noinl-tester.c): Likewise.
19548 (CFLAGS-tst-strlen.c): Likewise.
19549 (CFLAGS-stratcliff.c): Likewise.
19550 (CFLAGS-test-ffs.c): Likewise.
19551 (CFLAGS-tst-inlcall.c): Likewise.
19552 (CFLAGS-tst-xbzero-opt.c): Likewise.
19553 (CFLAGS-memcpy.c): Likewise.
19554 (CFLAGS-wordcopy.c): Likewise.
19555
19556 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
19557
19558 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
19559 Store r15 on stack and add cfi rule.
19560 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
19561 Likewise.
19562
19563 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
19564
19565 [BZ #22577]
19566 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
19567 call.
19568
19569 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19570
19571 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19572 Add s_sinf-sse2 and s_sinf-fma.
19573 (CFLAGS-s_sinf-fma.c): New.
19574 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
19575 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
19576 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
19577
19578 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19579
19580 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
19581
19582 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19583
19584 [BZ #22568]
19585 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
19586 part of result to imaginary part of argument if it is zero and the
19587 real part of the argument is not finite.
19588 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
19589 of result to real part of argument if it is zero and the imaginary
19590 part of the argument is not finite.
19591
19592 2017-12-07 Mike FABIAN <mfabian@redhat.com>
19593
19594 [BZ #22524]
19595 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
19596 and to the list of locales to be built for testing.
19597 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
19598 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
19599 and build the collation rules upon that.
19600
19601 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19602
19603 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
19604 * manual/math.texi (Mathematics): Document support for _Float32.
19605 * math/Makefile (test-types): Add float32.
19606 * math/Versions (GLIBC_2.27): Add _Float32 functions.
19607 * stdlib/Versions (GLIBC_2.27): Likewise.
19608 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19609 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19610 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19611 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19612 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19613 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19614 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19615 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19616 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19617 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19618 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19619 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19620 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19621 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19622 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19623 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19624 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19625 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19626 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19627 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19628 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19629 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19630 Likewise.
19631 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19632 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19633 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19634 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19635 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19636 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19637 Likewise.
19638 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19639 Likewise.
19640 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19641 Likewise.
19642 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19643 Likewise.
19644
19645 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19646 Likewise.
19647 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19648 Likewise.
19649 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19650 Likewise.
19651 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19652 Likewise.
19653 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19654 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19655 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19656 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19657 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19658 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19659 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19660 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19661 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19662 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19663 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19664 Likewise.
19665 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19666 Likewise.
19667 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19668 Likewise.
19669 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19670 Likewise.
19671 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19672 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19673 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19674 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19675 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19676 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19677 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19678 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19679
19680 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19681
19682 * stdlib/strtof.c: Include <bits/floatn.h>
19683 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
19684 and later undefine as macro. Define as weak alias if
19685 [!USE_WIDE_CHAR].
19686 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
19687 and later undefine as macro. Define as weak alias if
19688 [USE_WIDE_CHAR].
19689 * stdlib/strtof_l.c: Include <bits/floatn.h>
19690 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
19691 and later undefine as macro. Define as weak alias if
19692 [!USE_WIDE_CHAR].
19693 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
19694 and later undefine as macro. Define as weak alias if
19695 [USE_WIDE_CHAR].
19696
19697 * stdlib/strfromf.c: Include <bits/floatn.h>.
19698 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
19699 and later undefine as macro and define as weak alias.
19700
19701 * math/test-float32.h: New file.
19702
19703 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
19704 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
19705 (libm_alias_float_other_r): Create f32 alias.
19706 (libm_alias_float_r): Use semicolon before call to
19707 libm_alias_float_other_r.
19708
19709 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
19710 second argument to libm_alias_float_other.
19711 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
19712 second argument to libm_alias_float_other.
19713 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
19714 argument to libm_alias_float_other.
19715
19716 [BZ #22561]
19717 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
19718 real part of result for argument 0 + i * NaN.
19719 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
19720 results for tests of 0 + i * NaN.
19721
19722 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19723
19724 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19725
19726 2017-12-06 David S. Miller <davem@davemloft.net>
19727
19728 * sysdeps/sparc/fpu/libm-test-ulps: Update
19729 exp_{downward,towardzero,upward} ulps.
19730
19731 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19732
19733 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
19734 variables static.
19735
19736 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
19737 (Y0_2D): Likewise.
19738 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
19739 (Y0_2D): Likewise.
19740 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
19741 (Y0_2D): Likewise.
19742 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
19743 (Y0_2D): Likewise.
19744
19745 2017-12-06 Mike FABIAN <mfabian@redhat.com>
19746
19747 [BZ #22515]
19748 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
19749 and to the list of locales to be built for testing.
19750 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
19751 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
19752 and build the collation rules upon that.
19753
19754 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19755
19756 * NEWS: Add sinf to list of optimized functions.
19757
19758 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19759
19760 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
19761 (__HAVE_FLOAT32X): Likewise.
19762 * manual/math.texi (Mathematics): Document support for _Float64
19763 and _Float32x.
19764 * math/Makefile (test-types): Add float64 and float32x.
19765 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
19766 functions.
19767 * stdlib/Versions (GLIBC_2.27): Likewise.
19768 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19769 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19770 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19771 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19772 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19773 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19774 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19775 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19776 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19777 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19778 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19779 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19780 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19781 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19782 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19783 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19784 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19785 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19786 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19787 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19788 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19789 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19790 Likewise.
19791 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19792 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19793 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19794 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19795 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19796 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19797 Likewise.
19798 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19799 Likewise.
19800 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19801 Likewise.
19802 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19803 Likewise.
19804 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19805 Likewise.
19806 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19807 Likewise.
19808 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19809 Likewise.
19810 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19811 Likewise.
19812 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19813 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19814 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19815 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19816 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19817 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19818 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19819 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19820 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19821 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19822 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19823 Likewise.
19824 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19825 Likewise.
19826 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19827 Likewise.
19828 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19829 Likewise.
19830 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19831 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19832 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19833 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19834 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19835 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19836 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19837 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19838
19839 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19840
19841 * bits/floatn-common.h: Include <bits/long-double.h>.
19842 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19843 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
19844 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19845 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
19846 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19847 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
19848 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19849 (__builtin_huge_valf64): Use __builtin_huge_vall.
19850 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19851 (__builtin_inff64): Use __builtin_infl.
19852 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19853 (__builtin_nanf64): Use __builtin_nanl.
19854 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19855 (__builtin_nansf64): Use __builtin_nansl.
19856
19857 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
19858 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
19859 Carlos O'Donnell <carlos@redhat.com>
19860
19861 * elf/dl-tunables.list: Add elision parameters.
19862 * manual/tunables.texi: Add entries about elision tunable.
19863 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
19864 Add callback functions to dynamically enable/disable elision.
19865 Add multiple callbacks functions to set elision parameters.
19866 Deleted __libc_enable_secure check.
19867 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
19868 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
19869 * configure: Regenerated.
19870 * configure.ac: Option enable_lock_elision was deleted.
19871 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
19872 * config.make.in: Remove references to enable_lock_elision.
19873 * manual/install.texi: Elision configure option was removed.
19874 * INSTALL: Regenerated to remove enable_lock_elision.
19875 * nptl/Makefile:
19876 Disable elision so it can verify error case for destroying a mutex.
19877 * sysdeps/powerpc/nptl/elide.h:
19878 Cleanup ENABLE_LOCK_ELISION check.
19879 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19880 * sysdeps/s390/configure: Regenerated.
19881 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19882 * nptl/tst-mutex8.c:
19883 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19884 * sysdeps/powerpc/powerpc32/sysdep.h:
19885 Deleted all ENABLE_LOCK_ELISION checks.
19886 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19887 * sysdeps/powerpc/sysdep.h: Likewise.
19888 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19889 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19890 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19891 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19892 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19893 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19894 enable-lock-elision.
19895
19896 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19897
19898 * stdlib/strtod.c: Include <bits/floatn.h>.
19899 (BUILD_DOUBLE): New macro.
19900 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19901 (strtof64): Define and later undefine as macro. Define as weak
19902 alias if [!USE_WIDE_CHAR].
19903 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19904 (wcstof64): Define and later undefine as macro. Define as weak
19905 alias if [USE_WIDE_CHAR].
19906 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19907 (strtof32x): Define and later undefine as macro. Define as weak
19908 alias if [!USE_WIDE_CHAR].
19909 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19910 (wcstof32x): Define and later undefine as macro. Define as weak
19911 alias if [USE_WIDE_CHAR].
19912 * stdlib/strtod_l.c: Include <bits/floatn.h>.
19913 (BUILD_DOUBLE): New macro.
19914 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19915 (strtof64_l): Define and later undefine as macro. Define as weak
19916 alias if [!USE_WIDE_CHAR].
19917 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19918 (wcstof64_l): Define and later undefine as macro. Define as weak
19919 alias if [USE_WIDE_CHAR].
19920 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19921 (strtof32x_l): Define and later undefine as macro. Define as weak
19922 alias if [!USE_WIDE_CHAR].
19923 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19924 (wcstof32x_l): Define and later undefine as macro. Define as weak
19925 alias if [USE_WIDE_CHAR].
19926
19927 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19928
19929 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
19930 (reduced): Use ones as double instead of integer.
19931
19932 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
19933
19934 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
19935
19936 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19937
19938 * stdlib/strfromd.c: Include <bits/floatn.h>.
19939 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
19940 and later undefine as macro and define as weak alias.
19941 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
19942 Likewise.
19943
19944 * math/test-float32x.h: New file.
19945 * math/test-float64.h: Likewise.
19946
19947 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
19948 (libm_alias_double_other_r_f64): New macro.
19949 (libm_alias_double_other_r_f32x): Likewise.
19950 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19951 libm_alias_double_other_r_f32x.
19952 (libm_alias_double_r): Use semicolon before call to
19953 libm_alias_double_other_r.
19954 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19955 <bits/floatn.h>.
19956 (libm_alias_double_other_r_f64): New macro.
19957 (libm_alias_double_other_r_f32x): Likewise.
19958 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19959 libm_alias_double_other_r_f32x.
19960
19961 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19962
19963 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19964 int.
19965 (SINF_FUNC): Likewise. Replace floor with simple casts.
19966
19967 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19968
19969 [BZ #22517]
19970 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19971 and to the list of locales to be built for testing.
19972 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19973 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19974 and build the collation rules upon that.
19975
19976 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19977
19978 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19979 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19980 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19981 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19982 instead of __insn__xxx.
19983 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19984 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19985 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19986 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19987 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19988 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19989
19990 2017-12-05 Florian Weimer <fweimer@redhat.com>
19991
19992 Linux: Implement interfaces for memory protection keys
19993 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19994 xsignal, xsysconf.
19995 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19996 * support/xunistd.h (xsysconf): Declare.
19997 * support/xraise.c: New file.
19998 * support/xsigaction.c: Likewise.
19999 * support/xsignal.c: Likewise.
20000 * support/xsysconf.c: Likewise.
20001 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
20002 pkey_set, pkey_get, pkey_mprotect.
20003 [misc] (tests): Add tst-pkey.
20004 (tst-pkey): Link with -lpthread.
20005 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
20006 pkey_free, pkey_set, pkey_get, pkey_mprotect.
20007 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
20008 (PKEY_DISABLE_WRITE): Define.
20009 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
20010 Declare.
20011 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
20012 (SEGV_PKUERR): Add.
20013 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
20014 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
20015 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
20016 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
20017 Add.
20018 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
20019 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
20020 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
20021 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
20022 * sysdeps/unix/sysv/linux/**.abilist: Update.
20023
20024 2017-12-05 Florian Weimer <fweimer@redhat.com>
20025
20026 * support/tst-test_compare.c (subprocess): Use long long instead
20027 of long argument for consistent type width across 32-bit and
20028 64-bit architectures.
20029 (do_test): Adjust expected output.
20030
20031 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20032
20033 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
20034 (cosf): Define using libm_alias_float.
20035 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
20036 (fabsf): Define using libm_alias_float.
20037 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
20038 (fmaf): Define using libm_alias_float.
20039 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
20040 (rintf): Define using libm_alias_float.
20041 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
20042 (sinf): Define using libm_alias_float.
20043 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
20044 <libm-alias-float.h>.
20045 (modff): Define using libm_alias_float.
20046 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
20047 <libm-alias-float.h>.
20048 (logbf): Define using libm_alias_float.
20049 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
20050 <libm-alias-float.h>.
20051 (ceilf): Define using libm_alias_float.
20052 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20053 <libm-alias-float.h>.
20054 (copysignf): Define using libm_alias_float.
20055 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
20056 <libm-alias-float.h>.
20057 (floorf): Define using libm_alias_float.
20058 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
20059 <libm-alias-float.h>.
20060 (llrintf): Define using libm_alias_float.
20061 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
20062 <libm-alias-float.h>.
20063 (llroundf): Define using libm_alias_float.
20064 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20065 <libm-alias-float.h>.
20066 (lrintf): Define using libm_alias_float.
20067 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20068 <libm-alias-float.h>.
20069 (lroundf): Define using libm_alias_float.
20070 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
20071 <libm-alias-float.h>.
20072 (nearbyintf): Define using libm_alias_float.
20073 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
20074 <libm-alias-float.h>.
20075 (rintf): Define using libm_alias_float.
20076 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
20077 <libm-alias-float.h>.
20078 (roundf): Define using libm_alias_float.
20079 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
20080 <libm-alias-float.h>.
20081 (truncf): Define using libm_alias_float.
20082 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
20083 Include <libm-alias-float.h>.
20084 (ceilf): Define using libm_alias_float.
20085 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
20086 Include <libm-alias-float.h>.
20087 (copysignf): Define using libm_alias_float.
20088 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
20089 Include <libm-alias-float.h>.
20090 (floorf): Define using libm_alias_float.
20091 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
20092 Include <libm-alias-float.h>.
20093 (llrintf): Define using libm_alias_float.
20094 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
20095 Include <libm-alias-float.h>.
20096 (llroundf): Define using libm_alias_float.
20097 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
20098 Include <libm-alias-float.h>.
20099 (logbf): Define using libm_alias_float.
20100 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
20101 Include <libm-alias-float.h>.
20102 (lrintf): Define using libm_alias_float.
20103 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
20104 Include <libm-alias-float.h>.
20105 (lroundf): Define using libm_alias_float.
20106 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
20107 Include <libm-alias-float.h>.
20108 (modff): Define using libm_alias_float.
20109 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
20110 Include <libm-alias-float.h>.
20111 (roundf): Define using libm_alias_float.
20112 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
20113 Include <libm-alias-float.h>.
20114 (truncf): Define using libm_alias_float.
20115 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
20116 <libm-alias-float.h>.
20117 (llrintf): Define using libm_alias_float.
20118 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20119 <libm-alias-float.h>.
20120 (llroundf): Define using libm_alias_float.
20121 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
20122 <libm-alias-float.h>.
20123 (ceilf): Define using libm_alias_float.
20124 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
20125 <libm-alias-float.h>.
20126 (floorf): Define using libm_alias_float.
20127 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20128 <libm-alias-float.h>.
20129 (llroundf): Define using libm_alias_float.
20130 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20131 <libm-alias-float.h>.
20132 (lroundf): Define using libm_alias_float.
20133 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
20134 <libm-alias-float.h>.
20135 (roundf): Define using libm_alias_float.
20136 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
20137 <libm-alias-float.h>.
20138 (truncf): Define using libm_alias_float.
20139 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20140 <libm-alias-float.h>.
20141 (copysignf): Define using libm_alias_float.
20142 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
20143 <libm-alias-float.h>.
20144 (llrintf): Define using libm_alias_float.
20145 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20146 <libm-alias-float.h>.
20147 (llroundf): Define using libm_alias_float.
20148 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20149 <libm-alias-float.h>.
20150 (lrintf): Define using libm_alias_float.
20151 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20152 <libm-alias-float.h>.
20153 (lroundf): Define using libm_alias_float.
20154 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
20155 <libm-alias-float.h>.
20156 (ceilf): Define using libm_alias_float.
20157 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
20158 <libm-alias-float.h>.
20159 (copysignf): Define using libm_alias_float.
20160 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
20161 <libm-alias-float.h>.
20162 (cosf): Define using libm_alias_float.
20163 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
20164 <libm-alias-float.h>.
20165 (floorf): Define using libm_alias_float.
20166 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
20167 <libm-alias-float.h>.
20168 (llrintf): Define using libm_alias_float.
20169 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
20170 <libm-alias-float.h>.
20171 (llroundf): Define using libm_alias_float.
20172 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
20173 <libm-alias-float.h>.
20174 (logbf): Define using libm_alias_float.
20175 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
20176 <libm-alias-float.h>.
20177 (modff): Define using libm_alias_float.
20178 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
20179 <libm-alias-float.h>.
20180 (roundf): Define using libm_alias_float.
20181 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
20182 <libm-alias-float.h>.
20183 (sinf): Define using libm_alias_float.
20184 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
20185 <libm-alias-float.h>.
20186 (truncf): Define using libm_alias_float.
20187 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
20188 <libm-alias-float.h>.
20189 (ceilf): Define using libm_alias_float.
20190 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20191 <libm-alias-float.h>.
20192 (copysignf): Define using libm_alias_float.
20193 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
20194 <libm-alias-float.h>.
20195 (floorf): Define using libm_alias_float.
20196 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20197 <libm-alias-float.h>.
20198 (llrintf): Define using libm_alias_float.
20199 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
20200 <libm-alias-float.h>.
20201 (llroundf): Define using libm_alias_float.
20202 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
20203 <libm-alias-float.h>.
20204 (nearbyintf): Define using libm_alias_float.
20205 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
20206 <libm-alias-float.h>.
20207 (rintf): Define using libm_alias_float.
20208 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
20209 <libm-alias-float.h>.
20210 (roundf): Define using libm_alias_float.
20211 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
20212 <libm-alias-float.h>.
20213 (truncf): Define using libm_alias_float.
20214 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
20215 <libm-alias-float.h>.
20216 (ceilf): Define using libm_alias_float.
20217 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
20218 <libm-alias-float.h>.
20219 (floorf): Define using libm_alias_float.
20220 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20221 <libm-alias-float.h>.
20222 (llroundf): Define using libm_alias_float.
20223 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
20224 <libm-alias-float.h>.
20225 (roundf): Define using libm_alias_float.
20226 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
20227 <libm-alias-float.h>.
20228 (truncf): Define using libm_alias_float.
20229 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20230 <libm-alias-float.h>.
20231 (copysignf): Define using libm_alias_float.
20232 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20233 <libm-alias-float.h>.
20234 (llrintf): Define using libm_alias_float.
20235 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20236 <libm-alias-float.h>.
20237 (llroundf): Define using libm_alias_float.
20238 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
20239 <libm-alias-float.h>.
20240 (cosf): Define using libm_alias_float.
20241 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20242 <libm-alias-float.h>.
20243 (llrintf): Define using libm_alias_float.
20244 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20245 <libm-alias-float.h>.
20246 (llroundf): Define using libm_alias_float.
20247 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
20248 <libm-alias-float.h>.
20249 (sinf): Define using libm_alias_float.
20250
20251 2017-12-04 Florian Weimer <fweimer@redhat.com>
20252
20253 * support/check.h (TEST_COMPARE): Define.
20254 (support_test_compare_failure): Declare.
20255 * support/Makefile (libsupport-routines): Add
20256 support_test_compare_failure.
20257 (tests): Add tst-test_compare.
20258 * support /support_test_compare_failure.c: New file.
20259 * support/tst-test_compare.c: Likewise.
20260
20261 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20262
20263 [BZ #22527]
20264 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
20265 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
20266 available, this rewrite of the collation rules does reproduce
20267 the test file in the same order.
20268
20269 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20270
20271 [BZ #10580]
20272 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
20273 digraphs in the month and day names. Using single code points for
20274 digraphs is deprecated. While there are dedicated Unicode
20275 codepoints, for the digraphs, these are included for backwards
20276 compatibility and modern texts use a sequence of Basic Latin
20277 characters. See: https://www.unicode.org/faq/ligature_digraph.html
20278 This makes the month and day names agree exactly with CLDR now,
20279 CLDR does not use the single code points for the digraphs either.
20280
20281 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
20282
20283 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
20284
20285 2017-12-04 Joseph Myers <joseph@codesourcery.com>
20286
20287 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
20288 of floor.
20289
20290 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
20291
20292 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
20293 Define only for libc.so.
20294
20295 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
20296
20297 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
20298 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
20299 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
20300 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
20301 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
20302
20303 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20304
20305 [BZ #5997]
20306 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
20307
20308 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
20309
20310 [BZ libc/19170]
20311 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
20312 PREINIT_FUNCTION_WEAK is nonzero.
20313 (gmon_initializer): New function. Put procedure label for it in
20314 .init_array section.
20315 (_init): Don't call PREINIT_FUNCTION.
20316 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
20317 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
20318 value when map argument is null.
20319
20320 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
20321 depi instruction from PIC pc-relative sequence.
20322 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
20323 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
20324 (elf_machine_load_address): Likewise.
20325 (elf_machine_runtime_setup): Likewise.
20326
20327 2017-12-02 Joseph Myers <joseph@codesourcery.com>
20328
20329 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
20330 <libm-alias-double.h>.
20331 (logb): Define using libm_alias_double.
20332 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20333 <libm-alias-double.h>.
20334 (copysign): Define using libm_alias_double.
20335 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
20336 <libm-alias-double.h>.
20337 (llrint): Define using libm_alias_double.
20338 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
20339 <libm-alias-double.h>.
20340 (llround): Define using libm_alias_double.
20341 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20342 <libm-alias-double.h>.
20343 (lrint): Define using libm_alias_double.
20344 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20345 <libm-alias-double.h>.
20346 (lround): Define using libm_alias_double.
20347 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
20348 Include <libm-alias-double.h>.
20349 (copysign): Define using libm_alias_double.
20350 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
20351 Include <libm-alias-double.h>.
20352 (llrint): Define using libm_alias_double.
20353 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
20354 Include <libm-alias-double.h>.
20355 (llround): Define using libm_alias_double.
20356 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
20357 <libm-alias-double.h>.
20358 (logb): Define using libm_alias_double.
20359 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
20360 Include <libm-alias-double.h>.
20361 (lrint): Define using libm_alias_double.
20362 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
20363 Include <libm-alias-double.h>.
20364 (lround): Define using libm_alias_double.
20365 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
20366 <libm-alias-double.h>.
20367 (llrint): Define using libm_alias_double.
20368 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20369 <libm-alias-double.h>.
20370 (llround): Define using libm_alias_double.
20371 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20372 <libm-alias-double.h>.
20373 (llround): Define using libm_alias_double.
20374 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20375 <libm-alias-double.h>.
20376 (lround): Define using libm_alias_double.
20377 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20378 <libm-alias-double.h>.
20379 (copysign): Define using libm_alias_double.
20380 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
20381 <libm-alias-double.h>.
20382 (llrint): Define using libm_alias_double.
20383 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20384 <libm-alias-double.h>.
20385 (llround): Define using libm_alias_double.
20386 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20387 <libm-alias-double.h>.
20388 (lrint): Define using libm_alias_double.
20389 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20390 <libm-alias-double.h>.
20391 (lround): Define using libm_alias_double.
20392 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
20393 <libm-alias-double.h>.
20394 (copysign): Define using libm_alias_double.
20395 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
20396 <libm-alias-double.h>.
20397 (llrint): Define using libm_alias_double.
20398 (lrint): Likewise.
20399 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
20400 <libm-alias-double.h>.
20401 (llround): Define using libm_alias_double.
20402 (lround): Likewise.
20403 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
20404 <libm-alias-double.h>.
20405 (logb): Define using libm_alias_double.
20406 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20407 <libm-alias-double.h>.
20408 (copysign): Define using libm_alias_double.
20409 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20410 <libm-alias-double.h>.
20411 (llrint): Define using libm_alias_double.
20412 (lrint): Likewise.
20413 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
20414 <libm-alias-double.h>.
20415 (llround): Define using libm_alias_double.
20416 (lround): Likewise.
20417 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20418 <libm-alias-double.h>.
20419 (llround): Define using libm_alias_double.
20420 (lround): Likewise.
20421 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20422 <libm-alias-double.h>.
20423 (copysign): Define using libm_alias_double.
20424 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20425 <libm-alias-double.h>.
20426 (llrint): Define using libm_alias_double.
20427 (lrint): Likewise.
20428 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20429 <libm-alias-double.h>.
20430 (llround): Define using libm_alias_double.
20431 (lround): Likewise.
20432 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20433 <libm-alias-double.h>.
20434 (llrint): Define using libm_alias_double.
20435 (lrint): Likewise.
20436 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20437 <libm-alias-double.h>.
20438 (llround): Define using libm_alias_double.
20439 (lround): Likewise.
20440
20441 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20442
20443 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
20444 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
20445 compat symbol based on llround.
20446
20447 * sysdeps/powerpc/power7/fpu/s_logb.c
20448 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
20449 symbol based on __logb, not on logb.
20450 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
20451 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20452 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
20453 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20454
20455 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
20456 (rint): Define using libm_alias_double.
20457 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
20458 <libm-alias-double.h>.
20459 (modf): Define using libm_alias_double.
20460 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
20461 <libm-alias-double.h>.
20462 (ceil): Define using libm_alias_double.
20463 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
20464 <libm-alias-double.h>.
20465 (floor): Define using libm_alias_double.
20466 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
20467 <libm-alias-double.h>.
20468 (nearbyint): Define using libm_alias_double.
20469 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
20470 <libm-alias-double.h>.
20471 (rint): Define using libm_alias_double.
20472 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
20473 <libm-alias-double.h>.
20474 (round): Define using libm_alias_double.
20475 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
20476 <libm-alias-double.h>.
20477 (trunc): Define using libm_alias_double.
20478 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
20479 <libm-alias-double.h>.
20480 (ceil): Define using libm_alias_double.
20481 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
20482 Include <libm-alias-double.h>.
20483 (floor): Define using libm_alias_double.
20484 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
20485 <libm-alias-double.h>.
20486 (modf): Define using libm_alias_double.
20487 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
20488 Include <libm-alias-double.h>.
20489 (round): Define using libm_alias_double.
20490 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
20491 Include <libm-alias-double.h>.
20492 (trunc): Define using libm_alias_double.
20493 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
20494 <libm-alias-double.h>.
20495 (ceil): Define using libm_alias_double.
20496 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
20497 <libm-alias-double.h>.
20498 (floor): Define using libm_alias_double.
20499 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
20500 <libm-alias-double.h>.
20501 (round): Define using libm_alias_double.
20502 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
20503 <libm-alias-double.h>.
20504 (trunc): Define using libm_alias_double.
20505 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
20506 <libm-alias-double.h>.
20507 (ceil): Define using libm_alias_double.
20508 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
20509 <libm-alias-double.h>.
20510 (floor): Define using libm_alias_double.
20511 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
20512 <libm-alias-double.h>.
20513 (modf): Define using libm_alias_double.
20514 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
20515 <libm-alias-double.h>.
20516 (round): Define using libm_alias_double.
20517 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
20518 <libm-alias-double.h>.
20519 (trunc): Define using libm_alias_double.
20520 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
20521 <libm-alias-double.h>.
20522 (ceil): Define using libm_alias_double.
20523 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
20524 <libm-alias-double.h>.
20525 (floor): Define using libm_alias_double.
20526 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
20527 <libm-alias-double.h>.
20528 (nearbyint): Define using libm_alias_double.
20529 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
20530 <libm-alias-double.h>.
20531 (rint): Define using libm_alias_double.
20532 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
20533 <libm-alias-double.h>.
20534 (round): Define using libm_alias_double.
20535 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
20536 <libm-alias-double.h>.
20537 (trunc): Define using libm_alias_double.
20538 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
20539 <libm-alias-double.h>.
20540 (ceil): Define using libm_alias_double.
20541 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
20542 <libm-alias-double.h>.
20543 (floor): Define using libm_alias_double.
20544 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
20545 <libm-alias-double.h>.
20546 (round): Define using libm_alias_double.
20547 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
20548 <libm-alias-double.h>.
20549 (trunc): Define using libm_alias_double.
20550
20551 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
20552 (fabs): Define using libm_alias_double.
20553 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
20554 (fma): Define using libm_alias_double.
20555 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
20556 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
20557 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
20558 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
20559
20560 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20561
20562 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
20563
20564 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
20565 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
20566 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20567
20568 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
20569 due redirect macro.
20570
20571 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
20572
20573 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
20574
20575 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20576
20577 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
20578 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
20579 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
20580 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
20581
20582 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20583 (libm-sysdep_routines): Add s_nearbyintf-generic and
20584 s_nearbyint-generic.
20585 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
20586 New file.
20587 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
20588 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
20589 Likewise.
20590 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
20591 Likewise.
20592 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
20593 file.
20594 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20595 Likewise.
20596
20597 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20598 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
20599 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
20600 file.
20601 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
20602 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
20603 Likewise.
20604 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
20605 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
20606 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
20607
20608 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20609 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
20610 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
20611 file.
20612 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
20613 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
20614 Likewise.
20615 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
20616 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
20617 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
20618
20619 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20620 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
20621 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
20622 file.
20623 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
20624 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
20625 Likewise.
20626 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
20627 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
20628 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
20629
20630 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20631 (sysdep_calls): New rule.
20632 (sysdep_routines): Use sysdep_calls as base.
20633 (libm-sysdep_routines): Add generic rule for symbols shared with
20634 libc. Add s_copysign-generic and s_copysign-generic objects.
20635 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
20636 New file.
20637 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
20638 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
20639 Likewise.
20640 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
20641 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
20642 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
20643
20644 2017-12-01 Mike FABIAN <mfabian@redhat.com>
20645
20646 [BZ #22519]
20647 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
20648 the list of locales to be built for testing.
20649 * localedata/is_IS.UTF-8.in: New file.
20650 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
20651 on iso14651_t1.
20652
20653 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20654
20655 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
20656 <libm-alias-float.h>.
20657 (fabsf): Define using libm_alias_float.
20658
20659 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20660
20661 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
20662
20663 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20664
20665 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
20666 <libm-alias-float.h>.
20667 (fabsf): Define using libm_alias_float.
20668 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
20669 <libm-alias-float.h>.
20670 (lrintf): Define using libm_alias_float.
20671 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
20672 <libm-alias-float.h>.
20673 (rintf): Define using libm_alias_float.
20674
20675 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
20676 <libm-alias-double.h>.
20677 (fabs): Define using libm_alias_double.
20678 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
20679 <libm-alias-double.h>.
20680 (lrint): Define using libm_alias_double.
20681 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
20682 <libm-alias-double.h>.
20683 (rint): Define using libm_alias_double.
20684
20685 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
20686 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
20687 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
20688 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
20689 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
20690 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
20691 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
20692 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
20693 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
20694 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
20695 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
20696 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
20697 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
20698 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
20699 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
20700 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
20701 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
20702 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
20703 s_atan_template.c.
20704 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
20705 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
20706 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
20707 s_ceil_template.c.
20708 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
20709 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
20710 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
20711 s_cos_template.c.
20712 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
20713 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
20714 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
20715 s_expm1_template.c.
20716 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
20717 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
20718 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
20719 s_fabs_template.c.
20720 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
20721 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
20722 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
20723 s_floor_template.c.
20724 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
20725 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
20726 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
20727 s_frexp_template.c.
20728 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
20729 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
20730 s_lrint_template.c.
20731 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
20732 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
20733 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
20734 s_modf_template.c.
20735 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
20736 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
20737 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
20738 s_nearbyint_template.c.
20739 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
20740 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
20741 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
20742 s_remquo_template.c.
20743 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
20744 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
20745 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
20746 s_rint_template.c.
20747 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
20748 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
20749 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
20750 s_sin_template.c.
20751 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
20752 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
20753 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
20754 s_sincos_template.c.
20755 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
20756 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
20757 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
20758 s_tan_template.c.
20759 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
20760 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
20761 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
20762 s_tanh_template.c.
20763 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
20764 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
20765 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
20766 s_trunc_template.c.
20767 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
20768 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
20769 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
20770 s_atan.c instead of including s_atan.c.
20771 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
20772 s_atanf.c instead of including s_atanf.c.
20773 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
20774 s_atanl.c instead of including s_atanl.c.
20775 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
20776 instead of s_atan.c.
20777 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
20778 instead of s_atanf.c.
20779 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
20780 instead of s_atanl.c.
20781
20782 * scripts/update-copyrights: Do not handle intl/plural.c
20783 specially.
20784
20785 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
20786
20787 [BZ #22432]
20788 * configure.ac (BISON): Require to be present.
20789 * configure: Regenerated.
20790 * intl/Makefile (generated): Add plural.c.
20791 [$(BISON) != no]: Make code unconditional.
20792 (plural.c): Change rule to $(objpfx)plural.c.
20793 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
20794 * intl/plural.c: Remove.
20795 * manual/install.texi (Tools for Compilation): Document bison as
20796 required.
20797 * INSTALL: Regenerated.
20798
20799 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20800
20801 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
20802 <libm-alias-double.h>.
20803 (llrint): Define using libm_alias_double.
20804 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
20805 <libm-alias-float.h>.
20806 (llrintf): Define using libm_alias_float.
20807 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
20808 <libm-alias-ldouble.h>.
20809 (llrintl): Define using libm_alias_ldouble.
20810
20811 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
20812 declare_mgen_alias instead of weak_alias.
20813 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
20814 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
20815 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
20816
20817 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20818
20819 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20820 Add add_n-generic.
20821 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
20822 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
20823 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
20824
20825 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20826 Add submul_1-generic.
20827 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
20828 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
20829 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
20830
20831 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20832 Add addmul_1-generic.
20833 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
20834 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
20835 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
20836
20837 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20838 Add sub_n-generic.
20839 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
20840 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
20841 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
20842
20843 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20844 Add mul_1-generic.
20845 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
20846 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
20847 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
20848
20849 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20850
20851 According to CLDR, collation rules for Serbian and Bosnian
20852 should be the same as for Croatian.
20853
20854 [BZ #22534]
20855 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
20856 and to the list of locales to be built for testing.
20857 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20858 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20859 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
20860 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
20861
20862 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20863
20864 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
20865 to make test case pass.
20866 * localedata/hr_HR.UTF-8.in: Add more test strings.
20867
20868 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20869
20870 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
20871
20872 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20873
20874 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
20875 the list of locales to built for testing.
20876 * localedata/hr_HR.UTF-8.in: New file.
20877
20878 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20879
20880 [BZ #10580]
20881 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20882 iso14651_t1.
20883 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20884 CLDR (except use ligatures for the digraphs, CLDR does not use
20885 the ligatures), add first_workday, some fixes in the date and time
20886 formats.
20887 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20888 for Đ and đ.
20889 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20890 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20891 Add int_p_cs_precedes and int_n_cs_precedes.
20892 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20893 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20894 LC_MONETARY now).
20895 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20896 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
20897 name_miss.
20898 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
20899 and lang_lib. Change postal_fmt.
20900
20901 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20902
20903 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
20904 <setjmp.h>.
20905 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20906 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
20907 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20908 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
20909 * sysdeps/generic/setjmpP.h: New file.
20910 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
20911 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
20912 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
20913 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
20914 Add jmp_buf-ssp.sym.
20915 (tests): Add tst-saved_mask-1.
20916
20917 2017-11-30 Arjun Shankar <arjun@redhat.com>
20918
20919 [BZ #22375]
20920 CVE-2017-17426
20921 * malloc/malloc.c (__libc_malloc): Use checked_request2size
20922 instead of request2size.
20923
20924 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20925
20926 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
20927 (__lllrint): Remove alias.
20928 (lllrint): Likewise.
20929 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
20930 (__lllrintf): Likewise.
20931 (lllrintf): Likewise.
20932
20933 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
20934 <libm-alias-float.h>.
20935 (copysignf): Define using libm_alias_float.
20936 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
20937 <libm-alias-float.h>.
20938 (fabsf): Define using libm_alias_float.
20939 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20940 Include <libm-alias-float.h>.
20941 (copysignf): Define using libm_alias_float.
20942 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
20943 <libm-alias-float.h>.
20944 (fabsf): Define using libm_alias_float.
20945 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
20946 <libm-alias-float.h>.
20947 (fdimf): Define using libm_alias_float.
20948 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
20949 <libm-alias-float.h>.
20950 (fmaf): Define using libm_alias_float.
20951 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
20952 <libm-alias-float.h>.
20953 (llrintf): Define using libm_alias_float.
20954 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20955 Include <libm-alias-float.h>.
20956 (nearbyintf): Define using libm_alias_float.
20957 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20958 <libm-alias-float.h>.
20959 (rintf): Define using libm_alias_float.
20960 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20961 <libm-alias-float.h>.
20962 (llrintf): Define using libm_alias_float.
20963 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20964 <libm-alias-float.h>.
20965 (lrintf): Define using libm_alias_float.
20966 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20967 <libm-alias-float.h>.
20968 (nearbyintf): Define using libm_alias_float.
20969 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20970 <libm-alias-float.h>.
20971 (rintf): Define using libm_alias_float.
20972 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20973 <libm-alias-float.h>.
20974 (ceilf): Define using libm_alias_float.
20975 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20976 <libm-alias-float.h>.
20977 (floorf): Define using libm_alias_float.
20978 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20979 <libm-alias-float.h>.
20980 (fmaf): Define using libm_alias_float.
20981 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20982 <libm-alias-float.h>.
20983 (lrintf): Define using libm_alias_float.
20984 (llrintf): Likewise.
20985 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20986 <libm-alias-float.h>.
20987 (nearbyintf): Define using libm_alias_float.
20988 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20989 <libm-alias-float.h>.
20990 (rintf): Define using libm_alias_float.
20991 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20992 <libm-alias-float.h>.
20993 (truncf): Define using libm_alias_float.
20994 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20995 <libm-alias-float.h>.
20996 (copysignf): Define using libm_alias_float.
20997 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20998 <libm-alias-float.h>.
20999 (fabsf): Define using libm_alias_float.
21000 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
21001 <libm-alias-float.h>.
21002 (lrintf): Define using libm_alias_float.
21003 (llrintf): Likewise.
21004 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
21005 <libm-alias-float.h>.
21006 (nearbyintf): Define using libm_alias_float.
21007 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
21008 <libm-alias-float.h>.
21009 (rintf): Define using libm_alias_float.
21010
21011 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21012
21013 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
21014 <libm-alias-double.h>.
21015 (copysign): Define using libm_alias_double.
21016 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
21017 <libm-alias-double.h>.
21018 (fabs): Define using libm_alias_double.
21019 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
21020 Include <libm-alias-double.h>.
21021 (copysign): Define using libm_alias_double.
21022 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
21023 <libm-alias-double.h>.
21024 (fabs): Define using libm_alias_double.
21025 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
21026 <libm-alias-double.h>.
21027 (fdim): Define using libm_alias_double.
21028 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
21029 <libm-alias-double.h>.
21030 (fma): Define using libm_alias_double.
21031 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
21032 <libm-alias-double.h>.
21033 (llrint): Define using libm_alias_double.
21034 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
21035 Include <libm-alias-double.h>.
21036 (nearbyint): Define using libm_alias_double.
21037 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
21038 <libm-alias-double.h>.
21039 (rint): Define using libm_alias_double.
21040 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21041 <libm-alias-double.h>.
21042 (fabs): Define using libm_alias_double.
21043 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
21044 <libm-alias-double.h>.
21045 (llrint): Define using libm_alias_double.
21046 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
21047 <libm-alias-double.h>.
21048 (nearbyint): Define using libm_alias_double.
21049 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
21050 <libm-alias-double.h>.
21051 (rint): Define using libm_alias_double.
21052 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
21053 <libm-alias-double.h>.
21054 (ceil): Define using libm_alias_double.
21055 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
21056 <libm-alias-double.h>.
21057 (floor): Define using libm_alias_double.
21058 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
21059 <libm-alias-double.h>.
21060 (fma): Define using libm_alias_double.
21061 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
21062 <libm-alias-double.h>.
21063 (lrint): Define using libm_alias_double.
21064 (llrint): Likewise.
21065 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
21066 <libm-alias-double.h>.
21067 (nearbyint): Define using libm_alias_double.
21068 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
21069 <libm-alias-double.h>.
21070 (rint): Define using libm_alias_double.
21071 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
21072 <libm-alias-double.h>.
21073 (trunc): Define using libm_alias_double.
21074 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
21075 <libm-alias-double.h>.
21076 (copysign): Define using libm_alias_double.
21077 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
21078 <libm-alias-double.h>.
21079 (fabs): Define using libm_alias_double.
21080 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
21081 <libm-alias-double.h>.
21082 (lrint): Define using libm_alias_double.
21083 (llrint): Likewise.
21084 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
21085 <libm-alias-double.h>.
21086 (nearbyint): Define using libm_alias_double.
21087 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
21088 <libm-alias-double.h>.
21089 (rint): Define using libm_alias_double.
21090
21091 [BZ #22229]
21092 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21093 <math_ldbl_opt.h>.
21094 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
21095
21096 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
21097 SPARC --disable-multi-arch glibc variants.
21098
21099 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
21100 <libm-alias-float.h>.
21101 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21102 if [SHARED].
21103 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
21104 <libm-alias-float.h>.
21105 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21106 if [SHARED].
21107 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
21108 <libm-alias-float.h>.
21109 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21110 if [SHARED].
21111 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
21112 <libm-alias-float.h>.
21113 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21114 if [SHARED].
21115 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
21116 <libm-alias-float.h>.
21117 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21118 if [SHARED].
21119 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
21120 <libm-alias-float.h>.
21121 (ceilf): Define using libm_alias_float.
21122 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
21123 <libm-alias-float.h>.
21124 (floorf): Define using libm_alias_float.
21125 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
21126 <libm-alias-float.h>.
21127 (fmaf): Define using libm_alias_float.
21128 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
21129 <libm-alias-float.h>.
21130 (nearbyintf): Define using libm_alias_float.
21131 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
21132 <libm-alias-float.h>.
21133 (rintf): Define using libm_alias_float.
21134 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
21135 <libm-alias-float.h>.
21136 (truncf): Define using libm_alias_float.
21137 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21138 (copysignf): Define using libm_alias_float.
21139 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
21140 (cosf): Define using libm_alias_float.
21141 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21142 (fabsf): Define using libm_alias_float.
21143 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21144 (fmaxf): Define using libm_alias_float.
21145 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
21146 (fminf): Define using libm_alias_float.
21147 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21148 (llrintf): Define using libm_alias_float.
21149 [!__ILP32__] (lrintf): Likewise.
21150 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
21151 (sincosf): Define using libm_alias_float.
21152 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
21153 (sinf): Define using libm_alias_float.
21154 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21155 (lrintf): Define using libm_alias_float.
21156
21157 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
21158 <libm-alias-double.h>.
21159 (atan): Define using libm_alias_double.
21160 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
21161 <libm-alias-double.h>.
21162 (ceil): Define using libm_alias_double.
21163 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
21164 <libm-alias-double.h>.
21165 (floor): Define using libm_alias_double.
21166 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
21167 <libm-alias-double.h>.
21168 (fma): Define using libm_alias_double.
21169 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
21170 <libm-alias-double.h>.
21171 (nearbyint): Define using libm_alias_double.
21172 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
21173 <libm-alias-double.h>.
21174 (rint): Define using libm_alias_double.
21175 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
21176 <libm-alias-double.h>.
21177 (sin): Define using libm_alias_double.
21178 (cos): Likewise.
21179 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
21180 <libm-alias-double.h>.
21181 (tan): Define using libm_alias_double.
21182 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
21183 <libm-alias-double.h>.
21184 (trunc): Define using libm_alias_double.
21185 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
21186 (copysign): Define using libm_alias_double.
21187 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
21188 (fabs): Define using libm_alias_double.
21189 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
21190 (fmax): Define using libm_alias_double.
21191 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
21192 (fmin): Define using libm_alias_double.
21193 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
21194 (llrint): Define using libm_alias_double.
21195 [!__ILP32__] (lrint): Likewise.
21196 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
21197 (lrint): Define using libm_alias_double.
21198
21199 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21200
21201 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21202 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
21203 objects.
21204 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
21205 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
21206 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
21207 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
21208 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
21209 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
21210
21211 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21212 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
21213 objects.
21214 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
21215 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
21216 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
21217 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
21218 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
21219 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
21220
21221 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21222 (libm-sysdep_routines): Add s_nearbyint-generic and
21223 s_nearbyintf-generic objects.
21224 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
21225 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
21226 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
21227 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
21228 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
21229 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
21230
21231 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21232 Add s_finitef-generic and s_finite-generic objects.
21233 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
21234 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
21235 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
21236 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
21237 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
21238 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
21239
21240 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21241 Add s_isinff-generic and s_isinf-generic objects.
21242 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
21243 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
21244 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
21245 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
21246 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
21247 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
21248
21249 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21250 Add s_isnanf-generic and s_isnan-generic objects.
21251 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
21252 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
21253 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
21254 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
21255 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
21256 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
21257
21258 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
21259 macro.
21260 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
21261 rule.
21262 (sysdep_routines): Use sysdep_calls as base.
21263 (libm-sysdep_routines): Add generic rule for symbols shared with
21264 libc. Add s_signbit-generic and s_signbitf-generic objects.
21265 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
21266 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
21267 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
21268 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
21269 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
21270 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
21271
21272 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21273
21274 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
21275 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
21276 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
21277 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
21278 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
21279 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
21280 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
21281 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
21282 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
21283 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
21284 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
21285 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
21286 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
21287 libm_alias_float_r.
21288 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
21289 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
21290 (logf): Likewise.
21291 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
21292 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
21293 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
21294 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
21295 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
21296 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
21297 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
21298 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
21299 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
21300 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
21301 libm_alias_float.
21302 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
21303 (cosf): Likewise.
21304 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
21305 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
21306 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
21307 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
21308 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
21309 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
21310 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
21311 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
21312 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
21313 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
21314 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
21315 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
21316 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
21317 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
21318 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
21319 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
21320 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
21321 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
21322 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
21323 libm_alias_float.
21324 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
21325 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
21326 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
21327 * sysdeps/ia64/fpu/w_lgammaf_main.c
21328 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
21329 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
21330
21331 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21332 Alexandre Oliva <aoliva@redhat.com>
21333
21334 [BZ #17750]
21335 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
21336 * localedata/fr_CA.UTF-8.in: New file with test data for backward
21337 accents sorting.
21338 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
21339 sorting.
21340 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
21341 * localedata/locales/de_DE (LC_COLLATE): Likewise.
21342 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
21343 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
21344 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
21345 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
21346 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
21347 instead of “ifdef DIACRIT_BACKWARD”.
21348
21349 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21350
21351 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
21352 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
21353 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
21354 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
21355 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
21356 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
21357 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
21358 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
21359 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
21360 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
21361 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
21362 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
21363 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
21364 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
21365 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
21366 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
21367 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
21368 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
21369 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21370 ($(have-as-vis3) == yes): Remove conditional.
21371 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
21372 Likewise.
21373 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
21374 file.
21375 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
21376 file.
21377 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
21378 file.
21379 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
21380 file.
21381 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
21382 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
21383 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
21384 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
21385 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
21386 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
21387 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
21388 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
21389
21390 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21391
21392 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
21393 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
21394 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
21395 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
21396 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
21397 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
21398 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
21399 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
21400 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
21401 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
21402 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
21403 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
21404 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
21405 libm_alias_double_r.
21406 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
21407 (log): Likewise.
21408 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
21409 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
21410 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
21411 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
21412 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
21413 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
21414 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
21415 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
21416 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
21417 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
21418 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
21419 libm_alias_double.
21420 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
21421 (cos): Likewise.
21422 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
21423 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
21424 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
21425 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
21426 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
21427 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
21428 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
21429 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
21430 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
21431 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
21432 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
21433 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
21434 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
21435 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
21436 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
21437 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
21438 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
21439 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
21440 libm_alias_double.
21441 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
21442 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
21443 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
21444 * sysdeps/ia64/fpu/w_lgamma_main.c
21445 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
21446 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
21447
21448 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
21449
21450 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
21451 address of $global$ into %dp register earlier. Use pc-relative
21452 instruction sequence for PIC case.
21453
21454 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21455
21456 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
21457 (asinhf): Define using libm_alias_float.
21458 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
21459 (atanf): Define using libm_alias_float.
21460 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
21461 (cbrtf): Define using libm_alias_float.
21462 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
21463 (ceilf): Define using libm_alias_float.
21464 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21465 (copysignf): Define using libm_alias_float.
21466 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
21467 (expm1f): Define using libm_alias_float.
21468 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
21469 (fabsf): Define using libm_alias_float.
21470 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
21471 (floorf): Define using libm_alias_float.
21472 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21473 (fmaxf): Define using libm_alias_float.
21474 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
21475 (fminf): Define using libm_alias_float.
21476 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
21477 (frexpf): Define using libm_alias_float.
21478 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21479 (llrintf): Define using libm_alias_float.
21480 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
21481 (logbf): Define using libm_alias_float.
21482 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21483 (lrintf): Define using libm_alias_float.
21484 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
21485 (nearbyintf): Define using libm_alias_float.
21486 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
21487 (remquof): Define using libm_alias_float.
21488 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
21489 (rintf): Define using libm_alias_float.
21490 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
21491 (truncf): Define using libm_alias_float.
21492 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
21493 <libm-alias-float.h>.
21494 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21495 if [SHARED].
21496 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
21497 <libm-alias-float.h>.
21498 (expf): Define using libm_alias_float, or libm_alias_float_other
21499 if [SHARED].
21500 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
21501 <libm-alias-float.h>.
21502 (log2f): Define using libm_alias_float, or libm_alias_float_other
21503 if [SHARED].
21504 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
21505 <libm-alias-float.h>.
21506 (logf): Define using libm_alias_float, or libm_alias_float_other
21507 if [SHARED].
21508 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
21509 <libm-alias-float.h>.
21510 (powf): Define using libm_alias_float, or libm_alias_float_other
21511 if [SHARED].
21512 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
21513 <libm-alias-float.h>.
21514 (cosf): Define using libm_alias_float.
21515 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
21516 <libm-alias-float.h>.
21517 (sincosf): Define using libm_alias_float.
21518 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
21519 <libm-alias-float.h>.
21520 (sinf): Define using libm_alias_float.
21521 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21522 (fmaxf): Define using libm_alias_float.
21523 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
21524 (fminf): Define using libm_alias_float.
21525 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21526 <libm-alias-float.h>.
21527 (fmaf): Define using libm_alias_float.
21528
21529 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
21530 (asinh): Define using libm_alias_double.
21531 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
21532 (atan): Define using libm_alias_double.
21533 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
21534 (cbrt): Define using libm_alias_double.
21535 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
21536 (ceil): Define using libm_alias_double.
21537 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
21538 (copysign): Define using libm_alias_double.
21539 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
21540 (expm1): Define using libm_alias_double.
21541 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
21542 (fabs): Define using libm_alias_double.
21543 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
21544 (fdim): Define using libm_alias_double.
21545 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
21546 (floor): Define using libm_alias_double.
21547 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
21548 (fmax): Define using libm_alias_double.
21549 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
21550 (fmin): Define using libm_alias_double.
21551 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
21552 (frexp): Define using libm_alias_double.
21553 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
21554 (llrint): Define using libm_alias_double.
21555 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
21556 (logb): Define using libm_alias_double.
21557 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
21558 (lrint): Define using libm_alias_double.
21559 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
21560 (nearbyint): Define using libm_alias_double.
21561 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
21562 (remquo): Define using libm_alias_double.
21563 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
21564 (rint): Define using libm_alias_double.
21565 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
21566 (trunc): Define using libm_alias_double.
21567 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
21568 (fmax): Define using libm_alias_double.
21569 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
21570 (fmin): Define using libm_alias_double.
21571 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
21572 (fma): Define using libm_alias_double.
21573
21574 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
21575
21576 [BZ #22370]
21577 * elf/dl-hwcaps.c (ROUND): Removed.
21578 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
21579 and ELF_NOTE_NEXT_OFFSET.
21580 * elf/dl-load.c (ROUND): Removed.
21581 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21582 * elf/readelflib.c (ROUND): Removed.
21583 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21584 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
21585 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
21586 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
21587
21588 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21589
21590 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21591 [!__fmaf] (fmaf): Define using libm_alias_float.
21592
21593 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
21594 [!__fma] (fma): Define using libm_alias_double.
21595 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
21596
21597 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21598
21599 [BZ #22336]
21600 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
21601 and implement the collation rules for cs from CLDR on top of that.
21602 * Makefile: Add cs_CZ.UTF-8 to test-input.
21603 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
21604
21605 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
21606
21607 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
21608
21609 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21610 Icarus Sparry <icarus.w.sparry@intel.com>
21611
21612 * benchtests/Makefile:Add BENCHSET to allow subsets of
21613 benchmarks to be run.
21614 * benchtests/README: Add documentation for: Running subsets of
21615 benchmarks.
21616
21617 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21618
21619 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
21620 range of tests names.
21621
21622 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
21623 result from property and remove "max", min" and "mean" from
21624 required properties based on benchtests/bench-skeleton.c.
21625
21626 2017-11-28 Florian Weimer <fweimer@redhat.com>
21627
21628 [BZ #20826]
21629 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
21630 due to Internet requirement.
21631 * posix/Makefile (tests): Remove tst-getaddrinfo4,
21632 tst-getaddrinfo5.
21633 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
21634
21635 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21636
21637 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21638 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
21639 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21640 (sysdep_routines): Add memset-ultra1.
21641 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
21642 file.
21643 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
21644 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
21645 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
21646 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
21647 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
21648 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
21649 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
21650 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21651
21652 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
21653 file.
21654 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
21655 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
21656 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
21657 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
21658 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
21659 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
21660 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
21661 macro.
21662 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21663 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
21664 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21665 (sysdep_routines): Add memcpy-ultra1.
21666 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
21667 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
21668
21669 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21670
21671 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
21672 (cfloat_versions): Take function argument without trailing 'f'.
21673 Call libm_alias_float_other.
21674 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
21675 * sysdeps/alpha/fpu/cargf.c: Likewise.
21676 * sysdeps/alpha/fpu/cimagf.c: Likewise.
21677 * sysdeps/alpha/fpu/conjf.c: Likewise.
21678 * sysdeps/alpha/fpu/crealf.c: Likewise.
21679 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
21680 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
21681 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
21682 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
21683 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
21684 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
21685 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
21686 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
21687 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
21688 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
21689 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
21690 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
21691 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
21692 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
21693 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
21694 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
21695 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
21696 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
21697 (clog10f): Use libm_alias_float_other.
21698 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21699 (ceilf): Define using libm_alias_float.
21700 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
21701 (copysignf): Define using libm_alias_float.
21702 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21703 (fabsf): Define using libm_alias_float.
21704 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
21705 (floorf): Define using libm_alias_float.
21706 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
21707 (fmaxf): Define using libm_alias_float.
21708 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
21709 (fminf): Define using libm_alias_float.
21710 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21711 (lrintf): Define using libm_alias_float.
21712 (llrintf): Likewise.
21713 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21714 (lroundf): Define using libm_alias_float.
21715 (llroundf): Likewise.
21716 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
21717 (rintf): Define using libm_alias_float.
21718 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
21719 (truncf): Define using libm_alias_float.
21720
21721 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21722 (ceilf): Define using libm_alias_float.
21723 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
21724 (floorf): Define using libm_alias_float.
21725 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21726 (fmaf): Define using libm_alias_float.
21727 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
21728 (fmaxf): Define using libm_alias_float.
21729 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
21730 (fminf): Define using libm_alias_float.
21731 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
21732 (llrintf): Define using libm_alias_float.
21733 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
21734 (llroundf): Define using libm_alias_float.
21735 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21736 (lrintf): Define using libm_alias_float.
21737 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21738 (lroundf): Define using libm_alias_float.
21739 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
21740 <libm-alias-float.h>.
21741 (nearbyintf): Define using libm_alias_float.
21742 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
21743 (rintf): Define using libm_alias_float.
21744 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
21745 (roundf): Define using libm_alias_float.
21746 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
21747 (truncf): Define using libm_alias_float.
21748
21749 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
21750 (ceil): Define using libm_alias_double.
21751 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
21752 (copysign): Define using libm_alias_double.
21753 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
21754 (fabs): Define using libm_alias_double.
21755 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
21756 (floor): Define using libm_alias_double.
21757 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
21758 (fmax): Define using libm_alias_double.
21759 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
21760 (fmin): Define using libm_alias_double.
21761 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
21762 (lrint): Define using libm_alias_double.
21763 (llrint): Likewise.
21764 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
21765 (lround): Define using libm_alias_double.
21766 (llround): Likewise.
21767 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
21768 (rint): Define using libm_alias_double.
21769 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
21770 (trunc): Define using libm_alias_double.
21771
21772 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
21773 (libm_alias_double_r): Add semicolon after weak_alias call.
21774
21775 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21776
21777 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
21778 (ceil): Define using libm_alias_double.
21779 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
21780 (floor): Define using libm_alias_double.
21781 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
21782 (fma): Define using libm_alias_double.
21783 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
21784 (fmax): Define using libm_alias_double.
21785 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
21786 (fmin): Define using libm_alias_double.
21787 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
21788 (llrint): Define using libm_alias_double.
21789 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
21790 (llround): Define using libm_alias_double.
21791 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
21792 (lrint): Define using libm_alias_double.
21793 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
21794 (lround): Define using libm_alias_double.
21795 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
21796 (nearbyint): Define using libm_alias_double.
21797 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
21798 (rint): Define using libm_alias_double.
21799 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
21800 (round): Define using libm_alias_double.
21801 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
21802 (trunc): Define using libm_alias_double.
21803
21804 2017-11-27 Florian Weimer <fweimer@redhat.com>
21805
21806 * sysdeps/unix/sysv/linux/mlock2.c: New file.
21807 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
21808 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
21809 (tests): Add tst-mlock2.
21810 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
21811 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
21812 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
21813 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
21814 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
21815 for mlock. Document mlock2.
21816
21817 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21818
21819 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
21820 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
21821 Likewise.
21822 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
21823 Likewise.
21824 * sysdeps/x86/Makeconfig: New file.
21825 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
21826 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21827 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
21828 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21829 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21830 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21831 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
21832 Likewise.
21833 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21834 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21835 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21836 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21837 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21838 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21839 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21840 * manual/math.texi (Mathematics): Document support for _Float64x.
21841 * math/Versions (GLIBC_2.27): Add _Float64x functions.
21842 * stdlib/Versions (GLIBC_2.27): Likewise.
21843 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21844 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21845 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21846 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21847 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21848 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21849 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21850 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21851 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21852 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21853 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21854 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21855 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21856 Likewise.
21857 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21858 Likewise.
21859 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21860 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21861 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21862 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21863 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21864 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21865 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21866 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21867 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21868 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21869 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21870 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21871 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21872 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21873
21874 2017-11-27 Andreas Schwab <schwab@suse.de>
21875
21876 * elf/Makefile (dl-routines): Add dl-sort-maps.
21877 * elf/dl-sort-maps.c: New file.
21878 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21879 (_dl_sort_maps): Declare.
21880 * elf/dl-fini.c (_dl_sort_fini): Remove.
21881 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21882 * elf/dl-close.c (_dl_close_worker): Likewise.
21883 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21884 open-coding it.
21885 * elf/dl-open.c (dl_open_worker): Likewise.
21886
21887 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21888
21889 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21890 using libm_alias_float128.
21891 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21892 Likewise.
21893 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21894 Likewise.
21895 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21896 (setpayloadsigf128): Likewise.
21897 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
21898 Likewise.
21899 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
21900 Likewise.
21901
21902 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
21903 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
21904 -mfloat128 to CFLAGS.
21905 ($(foreach
21906 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
21907 Likewise.
21908 (CFLAGS-libm-test-support-float64x.c): New variable.
21909 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
21910 $(f128-loader-link) to gnulib-tests.
21911
21912 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
21913 (libm_alias_float128_other_r): If
21914 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
21915 alias.
21916 (libm_alias_float128_r): Add semicolon after weak_alias call.
21917 * sysdeps/generic/libm-alias-ldouble.h
21918 (libm_alias_ldouble_other_r_f128): New macro.
21919 (libm_alias_ldouble_other_r_f64x): Likewise.
21920 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21921 and libm_alias_ldouble_other_r_f64x.
21922 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
21923 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21924 (libm_alias_ldouble_other_r_f128): New macro.
21925 (libm_alias_ldouble_other_r_f64x): Likewise.
21926 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21927 and libm_alias_ldouble_other_r_f64x.
21928
21929 * stdlib/strfroml.c: Always include <stdlib.h>.
21930 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
21931 undefine as macro and define as weak alias.
21932 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
21933 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
21934 <stdlib.h>.
21935 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
21936 Define and later undefine as macro and define as weak alias.
21937
21938 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21939 Define and later undefine as macro. Define as weak alias if
21940 [!USE_WIDE_CHAR].
21941 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
21942 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21943 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
21944 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21945 Define and later undefine as macro. Define as weak alias if
21946 [!USE_WIDE_CHAR].
21947 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
21948 Define and later undefine as macro. Define as weak alias if
21949 [USE_WIDE_CHAR].
21950 * sysdeps/ieee754/float128/strtof128_l.c
21951 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
21952 Define and later undefine as macro. Define as weak alias if
21953 [!USE_WIDE_CHAR].
21954 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21955 Define and later undefine as macro. Define as weak alias if
21956 [USE_WIDE_CHAR].
21957 * sysdeps/ieee754/ldbl-128/strtold_l.c
21958 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21959 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21960 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21961 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21962 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21963 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21964 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21965 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21966 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21967 * sysdeps/ieee754/ldbl-96/strtold_l.c
21968 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21969 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21970 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21971 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21972
21973 * math/test-float64x.h: New file.
21974 * math/Makefile (type-float64x-yes): New variable.
21975 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21976
21977 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21978 function-like macro.
21979 (min_of_type_): Likewise.
21980 (min_of_type_l): Likewise.
21981 (min_of_type_f128): Likewise.
21982 (min_of_type): Pass () as last argument of __MATH_TG.
21983
21984 * stdlib/tst-strtod-round-skeleton.c
21985 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21986 headers.
21987
21988 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21989 for combinations of long double with _Float64 and _Float64x.
21990
21991 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21992 (__DECL_SIMD_cosf32): Likewise.
21993 (__DECL_SIMD_cosf64): Likewise.
21994 (__DECL_SIMD_cosf32x): Likewise.
21995 (__DECL_SIMD_cosf64x): Likewise.
21996 (__DECL_SIMD_cosf128x): Likewise.
21997 (__DECL_SIMD_sinf16): Likewise.
21998 (__DECL_SIMD_sinf32): Likewise.
21999 (__DECL_SIMD_sinf64): Likewise.
22000 (__DECL_SIMD_sinf32x): Likewise.
22001 (__DECL_SIMD_sinf64x): Likewise.
22002 (__DECL_SIMD_sinf128x): Likewise.
22003 (__DECL_SIMD_sincosf16): Likewise.
22004 (__DECL_SIMD_sincosf32): Likewise.
22005 (__DECL_SIMD_sincosf64): Likewise.
22006 (__DECL_SIMD_sincosf32x): Likewise.
22007 (__DECL_SIMD_sincosf64x): Likewise.
22008 (__DECL_SIMD_sincosf128x): Likewise.
22009 (__DECL_SIMD_logf16): Likewise.
22010 (__DECL_SIMD_logf32): Likewise.
22011 (__DECL_SIMD_logf64): Likewise.
22012 (__DECL_SIMD_logf32x): Likewise.
22013 (__DECL_SIMD_logf64x): Likewise.
22014 (__DECL_SIMD_logf128x): Likewise.
22015 (__DECL_SIMD_expf16): Likewise.
22016 (__DECL_SIMD_expf32): Likewise.
22017 (__DECL_SIMD_expf64): Likewise.
22018 (__DECL_SIMD_expf32x): Likewise.
22019 (__DECL_SIMD_expf64x): Likewise.
22020 (__DECL_SIMD_expf128x): Likewise.
22021 (__DECL_SIMD_powf16): Likewise.
22022 (__DECL_SIMD_powf32): Likewise.
22023 (__DECL_SIMD_powf64): Likewise.
22024 (__DECL_SIMD_powf32x): Likewise.
22025 (__DECL_SIMD_powf64x): Likewise.
22026 (__DECL_SIMD_powf128x): Likewise.
22027
22028 * stdlib/Versions (libc): Move entries for wcstof128 and
22029 wcstof128_l to ....
22030 * wcsmbs/Versions (libc): ... here.
22031 Include <float128-abi.h>.
22032
22033 2017-11-24 Florian Weimer <fweimer@redhat.com>
22034
22035 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22036 bits/mman-shared.h.
22037 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
22038 <bits/mman-shared.h>.
22039 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
22040 to ...
22041 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
22042 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
22043 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
22044 <bits/mman-shared.h>.
22045
22046 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22047
22048 [BZ #22457]
22049 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
22050 posix_memalign/free.
22051 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
22052
22053 2017-11-22 Mike FABIAN <mfabian@redhat.com>
22054
22055 [BZ #22469]
22056 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
22057 and implement the collation rules for pl from CLDR on top of that.
22058 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
22059 of locales to be built for testing.
22060 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
22061
22062 2017-11-23 Joseph Myers <joseph@codesourcery.com>
22063
22064 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
22065 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
22066 libm_alias_ldouble_other.
22067 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
22068 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
22069 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
22070 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
22071 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
22072 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
22073 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
22074 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
22075 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
22076 libm_alias_ldouble_r.
22077 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
22078 libm_alias_ldouble_other.
22079 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
22080 (log10l): Likewise.
22081 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
22082 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
22083 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
22084 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
22085 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
22086 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
22087 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
22088 (atan2l): Likewise.
22089 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
22090 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
22091 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
22092 libm_alias_ldouble.
22093 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
22094 (cosl): Likewise.
22095 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
22096 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
22097 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
22098 (expl): Likewise.
22099 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
22100 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
22101 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
22102 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
22103 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
22104 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
22105 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
22106 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
22107 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
22108 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
22109 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
22110 libm_alias_ldouble.
22111 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
22112 libm_alias_ldouble_other.
22113 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
22114 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
22115 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
22116 libm_alias_ldouble.
22117 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
22118 libm_alias_ldouble_other.
22119 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
22120 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
22121 * sysdeps/ia64/fpu/w_lgammal_main.c
22122 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
22123 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
22124
22125 2017-11-23 Florian Weimer <fweimer@redhat.com>
22126
22127 * malloc/malloc.c (tcache_thread_shutdown): Rename from
22128 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
22129 alike. Remove freeres marker.
22130 * malloc/arena.c (arena_thread_freeres): Call
22131 tcache_thread_shutdown.
22132
22133 2017-11-23 Florian Weimer <fweimer@redhat.com>
22134
22135 [BZ #22459]
22136 Export nscd hash function as __nss_hash.
22137 * include/nss.h (__nss_hash): Declare.
22138 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
22139 symbol.
22140 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
22141 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
22142 of __nscd_hash.
22143 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
22144 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
22145 * nss/Makefiles (routines): Add nss_hash.
22146 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
22147 * nss/nss_hash.c: Rename from nis/nis_hash.c.
22148 (__nss_hash): Rename from __nis_hash. Define hidden alias.
22149 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
22150
22151 2017-11-23 Florian Weimer <fweimer@redhat.com>
22152
22153 [BZ #22478]
22154 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
22155 Return error code, not -1.
22156 * signal/tst-sigwait-eintr.c: New file.
22157 * signal/Makefile (tests): Add tst-sigwait-eintr.
22158
22159 2017-11-23 Florian Weimer <fweimer@redhat.com>
22160
22161 Linux: Add memfd_create system call wrapper
22162 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
22163 tst-memfd_create.
22164 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
22165 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
22166 [__USE_GNU] (memfd_create): Declare.
22167 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
22168 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
22169 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
22170 * sysdeps/unix/sysv/linux/**.abilist: Update.
22171 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
22172
22173 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22174
22175 * localedata/gen-locale.sh: Fix typo in variable name.
22176
22177 * resolv/res_debug.c (p_secstodate): Condition definition on
22178 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
22179 directly as __p_secstodate, and as a compat symbol. Do not use
22180 libresolv_hidden_def.
22181 * resolv/resolv.h (p_secstodate): Remove macro and function
22182 declaration.
22183 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
22184 using p_secstodate.
22185 * include/resolv.h (__p_secstodate): Do not use
22186 libresolv_hidden_proto.
22187 * resolv/Makefile (tests): Move tst-p_secstodate to ....
22188 (tests-internal): ... here.
22189 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
22190 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
22191 and declare and use __p_secstodate and use compat_symbol_reference
22192 in that case.
22193 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
22194 implementation returning 77.
22195
22196 [BZ #22463]
22197 * resolv/res_debug.c: Include <libc-diag.h>.
22198 (p_secstodate): Assert time_t at least as wide as u_long. On
22199 overflow, use integer seconds since the epoch as output, or use
22200 "<overflow>" as output and set errno to EOVERFLOW if integer
22201 seconds since the epoch would be 14 or more characters.
22202 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
22203 for sprintf call.
22204 * resolv/tst-p_secstodate.c: New file.
22205 * resolv/Makefile (tests): Add tst-p_secstodate.
22206 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
22207
22208 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
22209 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
22210 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
22211
22212 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
22213
22214 * posix/regcomp.c (init_word_char): Add comments.
22215
22216 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22217
22218 [BZ #22447]
22219 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
22220 strlen to compute length of ut_user and set trailing NUL byte of
22221 result explicitly.
22222
22223 2017-11-21 Mike FABIAN <mfabian@redhat.com>
22224
22225 [BZ #15537]
22226 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
22227 using “copy "iso14651_t1"” and then implementing the
22228 collation rules for lv from CLDR on top of that.
22229 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
22230 of locales to be built for testing.
22231 * lv_LV.UTF-8.in: New file with test data to test the Latvian
22232 sorting.
22233
22234 2017-11-21 Joseph Myers <joseph@codesourcery.com>
22235
22236 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22237 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
22238 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
22239 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
22240 [__USE_MISC] (MADV_HWPOISON): New macro.
22241 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
22242
22243 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22244
22245 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
22246 -Wmissing-braces on GCC 4.9.
22247
22248 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22249
22250 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
22251 * sysdeps/s390/s390-32/start.S (_start): Likewise
22252 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
22253 (thread_start): Likewise.
22254 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
22255 (thread_start): Likewise.
22256 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
22257 (__makecontext_ret): Likewise.
22258 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
22259 (__makecontext_ret): Likewise.
22260
22261 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22262
22263 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
22264 __wcschrnul): Remove attribute_hidden.
22265
22266 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
22267
22268 regex: don't assume uint64_t or uint32_t
22269 This avoids -Werror=overflow errors for 32-bit systems in
22270 the 64-bit case. Problem reported by Joseph Myers in:
22271 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
22272 Also, when this code is used in Gnulib it ports to platforms
22273 that lack uint64_t and uint32_t. The C standard doesn't guarantee
22274 them, and on some 32-bit compilers there is no uint64_t.
22275 Problem reported by Gianluigi Tiesi in:
22276 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
22277 * posix/regcomp.c (init_word_char): Don't assume that the types
22278 uint64_t and uint32_t exist. Adapted from Gnulib patch
22279 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
22280 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
22281
22282 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
22283
22284 * sysdeps/aarch64/memset-reg.h: New file.
22285 * sysdeps/aarch64/memset.S: Use it.
22286 (__memset): Rename to MEMSET macro.
22287 [ZVA_MACRO]: Use zva_macro.
22288 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
22289 Add memset_generic and memset_falkor.
22290 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
22291 (__libc_ifunc_impl_list): Add memset ifuncs.
22292 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
22293 local variable zva_size.
22294 * sysdeps/aarch64/multiarch/memset.c: New file.
22295 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
22296 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
22297 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
22298 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
22299 (DCZID_DZP_MASK): New macro.
22300 (DCZID_BS_MASK): Likewise.
22301 (init_cpu_features): Read and set zva_size.
22302 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
22303 (struct cpu_features): New member zva_size.
22304
22305 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
22306 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
22307 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
22308
22309 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
22310 backwards. Fix timing computation.
22311 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
22312 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
22313 on memset by N at a time. Fix timing computation.
22314
22315 2017-11-20 Florian Weimer <fweimer@redhat.com>
22316
22317 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
22318 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
22319
22320 2017-11-19 Florian Weimer <fweimer@redhat.com>
22321
22322 manual: Document mprotect
22323 * manual/memory.texi (Memory Protection): New section.
22324 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
22325 documentation of PROT_* flags and reference the Memory Protection
22326 section instead.
22327
22328 2017-11-19 Florian Weimer <fweimer@redhat.com>
22329
22330 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
22331 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
22332 (Scatter-Gather): ... to here. Remove misleading comment.
22333
22334 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
22335
22336 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
22337 style.
22338
22339 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
22340 when /proc/<pid>/setgroups does not exist.
22341
22342 2017-11-18 Florian Weimer <fweimer@redhat.com>
22343
22344 * sysdeps/unix/sysv/linux/tst-ttyname.c
22345 (become_root_in_mount_ns): Remove.
22346 (do_in_chroot_1): Call support_enter_mount_namespace.
22347 (do_in_chroot_2): Likewise.
22348 (do_test): Call support_become_root early.
22349
22350 2017-11-18 Florian Weimer <fweimer@redhat.com>
22351
22352 * support/namespace.h (support_enter_mount_namespace): Declare.
22353 * support/support_enter_mount_namespace.c: New file.
22354 * support/Makefile (libsupport-routines): Add
22355 support_enter_mount_namespace.
22356
22357 2017-11-18 Florian Weimer <fweimer@redhat.com>
22358
22359 * support/temp_file.c (support_create_temp_directory): Use
22360 test_dir and do not rely on the presence of the XXXXXX suffix.
22361 * support/temp_file.h (support_create_temp_directory): Update
22362 comment.
22363 * support/tst-xreadlink.c (do_test): Adjust.
22364 * support/support_chroot.c (support_chroot_create): Likewise.
22365
22366 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22367
22368 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
22369 macro.
22370 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
22371 htm-no-suspend.
22372
22373 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22374
22375 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22376 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22377 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22378 (ceill): Define using libm_alias_ldouble.
22379 * sysdeps/x86_64/fpu/s_copysignl.S: Include
22380 <libm-alias-ldouble.h>.
22381 (copysignl): Define using libm_alias_ldouble.
22382 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22383 (fabsl): Define using libm_alias_ldouble.
22384 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22385 (floorl): Define using libm_alias_ldouble.
22386 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22387 (fmaxl): Define using libm_alias_ldouble.
22388 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22389 (fminl): Define using libm_alias_ldouble.
22390 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22391 (llrintl): Define using libm_alias_ldouble.
22392 (lrintl): Likewise.
22393 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
22394 <libm-alias-ldouble.h>.
22395 (nearbyintl): Define using libm_alias_ldouble.
22396 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22397 (truncl): Define using libm_alias_ldouble.
22398 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
22399 <libm-alias-ldouble.h>.
22400 (lrintl): Define using libm_alias_ldouble.
22401
22402 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22403 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22404 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
22405 (asinhl): Define using libm_alias_ldouble.
22406 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
22407 (atanl): Define using libm_alias_ldouble.
22408 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
22409 (cbrtl): Define using libm_alias_ldouble.
22410 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22411 (ceill): Define using libm_alias_ldouble.
22412 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
22413 (copysignl): Define using libm_alias_ldouble.
22414 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22415 (fabsl): Define using libm_alias_ldouble.
22416 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22417 (floorl): Define using libm_alias_ldouble.
22418 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22419 (fmaxl): Define using libm_alias_ldouble.
22420 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22421 (fminl): Define using libm_alias_ldouble.
22422 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
22423 (frexpl): Define using libm_alias_ldouble.
22424 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22425 (llrintl): Define using libm_alias_ldouble.
22426 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
22427 (logbl): Define using libm_alias_ldouble.
22428 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
22429 (lrintl): Define using libm_alias_ldouble.
22430 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
22431 (nearbyintl): Define using libm_alias_ldouble.
22432 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
22433 (nextafterl): Define using libm_alias_ldouble.
22434 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
22435 (remquol): Define using libm_alias_ldouble.
22436 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
22437 (rintl): Define using libm_alias_ldouble.
22438 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22439 (truncl): Define using libm_alias_ldouble.
22440 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22441 (fmaxl): Define using libm_alias_ldouble.
22442 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22443 (fminl): Define using libm_alias_ldouble.
22444
22445 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
22446 to C syntax instead of availability and properties of types.
22447 * bits/floatn.h [!__ASSEMBLER]: Likewise.
22448 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
22449 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
22450 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
22451 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
22452 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
22453
22454 2017-11-17 Florian Weimer <fweimer@redhat.com>
22455
22456 support_become_root: Enable file creation in namespaces.
22457 * support/support_become_root.c (setup_mapping): New function.
22458 (support_become_root): Call it.
22459
22460 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22461
22462 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
22463 macro.
22464
22465 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22466
22467 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
22468 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
22469
22470 2017-11-16 Joseph Myers <joseph@codesourcery.com>
22471
22472 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
22473
22474 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22475 version to 4.14.
22476
22477 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
22478
22479 * INSTALL: Fix botched up regeneration.
22480
22481 * NEWS: Update sourceare link to https.
22482 * configure.ac: Likewise.
22483 * crypt/md5test-giant.c: Likewise.
22484 * dlfcn/bug-atexit1.c: Likewise.
22485 * dlfcn/bug-atexit2.c: Likewise.
22486 * localedata/README: Likewise.
22487 * malloc/tst-mallocfork.c: Likewise.
22488 * manual/install.texi: Likewise.
22489 * nptl/tst-pthread-getattr.c: Likewise.
22490 * stdio-common/tst-fgets.c: Likewise.
22491 * stdio-common/tst-fwrite.c: Likewise.
22492 * sunrpc/Makefile: Likewise.
22493 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
22494 * wcsmbs/tst-mbrtowc2.c: Likewise.
22495 * configure: Regenerate.
22496 * INSTALL: Regenerate.
22497
22498 2017-11-15 Martin Sebor <msebor@redhat.com>
22499
22500 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
22501 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
22502 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
22503
22504 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22505
22506 [BZ #22145]
22507 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
22508 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
22509
22510 [BZ #22145]
22511 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
22512 Defer is_pty check until end of the function.
22513 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
22514
22515 [BZ #22145]
22516 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
22517 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
22518 (ttyname): Likewise.
22519 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
22520 (__ttyname_r): Likewise.
22521
22522 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
22523 int to bool.
22524
22525 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
22526
22527 * manual/terminal.texi (Is It a Terminal):
22528 Mention ENODEV for ttyname and ttyname_r.
22529
22530 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22531
22532 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
22533 constant and macro.
22534
22535 * sysdeps/unix/sysv/linux/bits/mman-linux.h
22536 [__USE_MISC] (MADV_WIPEONFORK): New macro.
22537 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22538 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22539 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
22540 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22541
22542 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22543
22544 * signal/sigrelse.c (sigrelse): Optimize implementation.
22545
22546 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
22547 (__sigpause): Rely on __sigsuspend to implement single thread
22548 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
22549
22550 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22551
22552 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22553 kernel version to 4.14.
22554
22555 2017-11-15 Steve Ellcey <sellcey@cavium.com>
22556
22557 [BZ #22442]
22558 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
22559 Check if ifname is too long.
22560
22561 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22562
22563 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
22564
22565 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22566
22567 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
22568 was accidentally lost.
22569
22570 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22571
22572 * localedata/locales/az_IR: Add standard copyright header.
22573
22574 2017-11-15 Florian Weimer <fweimer@redhat.com>
22575
22576 [BZ #22439]
22577 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
22578 not just the top one. Output a new "subheaps" statistic.
22579
22580 2017-11-15 Florian Weimer <fweimer@redhat.com>
22581
22582 [BZ #22408]
22583 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
22584 under the per-arena lock.
22585 * malloc/Makefile (tests): Add tst-malloc_info.
22586 (tst-malloc_info): Link with libpthread.
22587 * malloc/tst-malloc_info.c: New file.
22588
22589 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22590
22591 [BZ #21660]
22592 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
22593 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
22594 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
22595 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
22596 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
22597 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
22598 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
22599 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
22600 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
22601 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
22602 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
22603 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
22604 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
22605 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
22606 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
22607 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
22608 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
22609 (__floating_type): Likewise.
22610 (__real_integer_type): Likewise.
22611 (__complex_integer_type): Likewise.
22612 (__expr_is_real): Likewise.
22613 (__tgmath_real_type_sub): Likewise.
22614 (__tgmath_real_type): Likewise.
22615 (__tgmath_complex_type_sub): Likewise.
22616 (__tgmath_complex_type): Likewise.
22617 (__TGMATH_F128): Likewise.
22618 (__TGMATH_CF128): Likewise.
22619 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
22620 new macros.
22621 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
22622 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
22623 Likewise.
22624 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
22625 Likewise.
22626 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
22627 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
22628 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
22629 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
22630 Likewise.
22631 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
22632 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
22633 Likewise.
22634 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
22635 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
22636 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
22637 Likewise.
22638 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
22639 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
22640 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
22641 (cimag): Likewise.
22642 (creal): Likewise.
22643
22644 2017-11-14 Joseph Myers <joseph@codesourcery.com>
22645
22646 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
22647 for stpncpy calls for GCC 8.
22648 (test_strncat): Disable -Wstringop-truncation warning for strncat
22649 calls for GCC 8. Disable -Wstringop-overflow= warning for one
22650 strncat call for GCC 7.
22651 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
22652 calls for GCC 8.
22653 (test_memcmp): Use memcpy instead of strncpy for calls not copying
22654 trailing NUL.
22655
22656 * string/bug-strncat1.c: Include <libc-diag.h>.
22657 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
22658
22659 2017-11-13 Claude Paroz <claude@2xlibre.net>
22660
22661 [BZ #22387]
22662 * localedata/locales/aa_DJ: Improved readibility by replacing
22663 <Uxxxx> sequences in the ASCII printable range by their ASCII
22664 character equivalents.
22665 * localedata/locales/aa_ER: Likewise.
22666 * localedata/locales/aa_ER@saaho: Likewise.
22667 * localedata/locales/aa_ET: Likewise.
22668 * localedata/locales/af_ZA: Likewise.
22669 * localedata/locales/agr_PE: Likewise.
22670 * localedata/locales/ak_GH: Likewise.
22671 * localedata/locales/am_ET: Likewise.
22672 * localedata/locales/anp_IN: Likewise.
22673 * localedata/locales/ar_AE: Likewise.
22674 * localedata/locales/ar_BH: Likewise.
22675 * localedata/locales/ar_DZ: Likewise.
22676 * localedata/locales/ar_EG: Likewise.
22677 * localedata/locales/ar_IN: Likewise.
22678 * localedata/locales/ar_IQ: Likewise.
22679 * localedata/locales/ar_JO: Likewise.
22680 * localedata/locales/ar_KW: Likewise.
22681 * localedata/locales/ar_LB: Likewise.
22682 * localedata/locales/ar_LY: Likewise.
22683 * localedata/locales/ar_MA: Likewise.
22684 * localedata/locales/ar_OM: Likewise.
22685 * localedata/locales/ar_QA: Likewise.
22686 * localedata/locales/ar_SA: Likewise.
22687 * localedata/locales/ar_SD: Likewise.
22688 * localedata/locales/ar_SS: Likewise.
22689 * localedata/locales/ar_SY: Likewise.
22690 * localedata/locales/ar_TN: Likewise.
22691 * localedata/locales/ar_YE: Likewise.
22692 * localedata/locales/as_IN: Likewise.
22693 * localedata/locales/ast_ES: Likewise.
22694 * localedata/locales/ayc_PE: Likewise.
22695 * localedata/locales/az_AZ: Likewise.
22696 * localedata/locales/az_IR: Likewise.
22697 * localedata/locales/be_BY: Likewise.
22698 * localedata/locales/be_BY@latin: Likewise.
22699 * localedata/locales/bem_ZM: Likewise.
22700 * localedata/locales/ber_DZ: Likewise.
22701 * localedata/locales/ber_MA: Likewise.
22702 * localedata/locales/bg_BG: Likewise.
22703 * localedata/locales/bhb_IN: Likewise.
22704 * localedata/locales/bho_IN: Likewise.
22705 * localedata/locales/bi_VU: Likewise.
22706 * localedata/locales/bn_BD: Likewise.
22707 * localedata/locales/bn_IN: Likewise.
22708 * localedata/locales/bo_CN: Likewise.
22709 * localedata/locales/bo_IN: Likewise.
22710 * localedata/locales/br_FR: Likewise.
22711 * localedata/locales/brx_IN: Likewise.
22712 * localedata/locales/bs_BA: Likewise.
22713 * localedata/locales/byn_ER: Likewise.
22714 * localedata/locales/ca_AD: Likewise.
22715 * localedata/locales/ca_ES: Likewise.
22716 * localedata/locales/ca_FR: Likewise.
22717 * localedata/locales/ca_IT: Likewise.
22718 * localedata/locales/ce_RU: Likewise.
22719 * localedata/locales/chr_US: Likewise.
22720 * localedata/locales/cmn_TW: Likewise.
22721 * localedata/locales/crh_UA: Likewise.
22722 * localedata/locales/cs_CZ: Likewise.
22723 * localedata/locales/csb_PL: Likewise.
22724 * localedata/locales/cv_RU: Likewise.
22725 * localedata/locales/cy_GB: Likewise.
22726 * localedata/locales/da_DK: Likewise.
22727 * localedata/locales/de_AT: Likewise.
22728 * localedata/locales/de_BE: Likewise.
22729 * localedata/locales/de_CH: Likewise.
22730 * localedata/locales/de_DE: Likewise.
22731 * localedata/locales/de_IT: Likewise.
22732 * localedata/locales/de_LI: Likewise.
22733 * localedata/locales/de_LU: Likewise.
22734 * localedata/locales/doi_IN: Likewise.
22735 * localedata/locales/dv_MV: Likewise.
22736 * localedata/locales/dz_BT: Likewise.
22737 * localedata/locales/el_CY: Likewise.
22738 * localedata/locales/el_GR: Likewise.
22739 * localedata/locales/en_AG: Likewise.
22740 * localedata/locales/en_AU: Likewise.
22741 * localedata/locales/en_BW: Likewise.
22742 * localedata/locales/en_CA: Likewise.
22743 * localedata/locales/en_DK: Likewise.
22744 * localedata/locales/en_GB: Likewise.
22745 * localedata/locales/en_HK: Likewise.
22746 * localedata/locales/en_IE: Likewise.
22747 * localedata/locales/en_IL: Likewise.
22748 * localedata/locales/en_IN: Likewise.
22749 * localedata/locales/en_NG: Likewise.
22750 * localedata/locales/en_NZ: Likewise.
22751 * localedata/locales/en_PH: Likewise.
22752 * localedata/locales/en_SG: Likewise.
22753 * localedata/locales/en_US: Likewise.
22754 * localedata/locales/en_ZA: Likewise.
22755 * localedata/locales/en_ZM: Likewise.
22756 * localedata/locales/en_ZW: Likewise.
22757 * localedata/locales/eo: Likewise.
22758 * localedata/locales/es_AR: Likewise.
22759 * localedata/locales/es_BO: Likewise.
22760 * localedata/locales/es_CL: Likewise.
22761 * localedata/locales/es_CO: Likewise.
22762 * localedata/locales/es_CR: Likewise.
22763 * localedata/locales/es_CU: Likewise.
22764 * localedata/locales/es_DO: Likewise.
22765 * localedata/locales/es_EC: Likewise.
22766 * localedata/locales/es_ES: Likewise.
22767 * localedata/locales/es_GT: Likewise.
22768 * localedata/locales/es_HN: Likewise.
22769 * localedata/locales/es_MX: Likewise.
22770 * localedata/locales/es_NI: Likewise.
22771 * localedata/locales/es_PA: Likewise.
22772 * localedata/locales/es_PE: Likewise.
22773 * localedata/locales/es_PR: Likewise.
22774 * localedata/locales/es_PY: Likewise.
22775 * localedata/locales/es_SV: Likewise.
22776 * localedata/locales/es_US: Likewise.
22777 * localedata/locales/es_UY: Likewise.
22778 * localedata/locales/es_VE: Likewise.
22779 * localedata/locales/et_EE: Likewise.
22780 * localedata/locales/eu_ES: Likewise.
22781 * localedata/locales/eu_ES@euro: Likewise.
22782 * localedata/locales/fa_IR: Likewise.
22783 * localedata/locales/ff_SN: Likewise.
22784 * localedata/locales/fi_FI: Likewise.
22785 * localedata/locales/fil_PH: Likewise.
22786 * localedata/locales/fo_FO: Likewise.
22787 * localedata/locales/fr_BE: Likewise.
22788 * localedata/locales/fr_CA: Likewise.
22789 * localedata/locales/fr_CH: Likewise.
22790 * localedata/locales/fr_FR: Likewise.
22791 * localedata/locales/fr_LU: Likewise.
22792 * localedata/locales/fur_IT: Likewise.
22793 * localedata/locales/fy_DE: Likewise.
22794 * localedata/locales/fy_NL: Likewise.
22795 * localedata/locales/ga_IE: Likewise.
22796 * localedata/locales/gd_GB: Likewise.
22797 * localedata/locales/gez_ER: Likewise.
22798 * localedata/locales/gez_ET: Likewise.
22799 * localedata/locales/gl_ES: Likewise.
22800 * localedata/locales/gu_IN: Likewise.
22801 * localedata/locales/gv_GB: Likewise.
22802 * localedata/locales/ha_NG: Likewise.
22803 * localedata/locales/hak_TW: Likewise.
22804 * localedata/locales/he_IL: Likewise.
22805 * localedata/locales/hi_IN: Likewise.
22806 * localedata/locales/hif_FJ: Likewise.
22807 * localedata/locales/hne_IN: Likewise.
22808 * localedata/locales/hr_HR: Likewise.
22809 * localedata/locales/hsb_DE: Likewise.
22810 * localedata/locales/ht_HT: Likewise.
22811 * localedata/locales/hu_HU: Likewise.
22812 * localedata/locales/hy_AM: Likewise.
22813 * localedata/locales/i18n: Likewise.
22814 * localedata/locales/ia_FR: Likewise.
22815 * localedata/locales/id_ID: Likewise.
22816 * localedata/locales/ig_NG: Likewise.
22817 * localedata/locales/ik_CA: Likewise.
22818 * localedata/locales/is_IS: Likewise.
22819 * localedata/locales/it_CH: Likewise.
22820 * localedata/locales/it_IT: Likewise.
22821 * localedata/locales/iu_CA: Likewise.
22822 * localedata/locales/ja_JP: Likewise.
22823 * localedata/locales/ka_GE: Likewise.
22824 * localedata/locales/kk_KZ: Likewise.
22825 * localedata/locales/kl_GL: Likewise.
22826 * localedata/locales/kn_IN: Likewise.
22827 * localedata/locales/ko_KR: Likewise.
22828 * localedata/locales/kok_IN: Likewise.
22829 * localedata/locales/ks_IN: Likewise.
22830 * localedata/locales/ks_IN@devanagari: Likewise.
22831 * localedata/locales/ku_TR: Likewise.
22832 * localedata/locales/kw_GB: Likewise.
22833 * localedata/locales/ky_KG: Likewise.
22834 * localedata/locales/lb_LU: Likewise.
22835 * localedata/locales/lg_UG: Likewise.
22836 * localedata/locales/li_BE: Likewise.
22837 * localedata/locales/li_NL: Likewise.
22838 * localedata/locales/lij_IT: Likewise.
22839 * localedata/locales/ln_CD: Likewise.
22840 * localedata/locales/lo_LA: Likewise.
22841 * localedata/locales/lt_LT: Likewise.
22842 * localedata/locales/lv_LV: Likewise.
22843 * localedata/locales/lzh_TW: Likewise.
22844 * localedata/locales/mag_IN: Likewise.
22845 * localedata/locales/mai_IN: Likewise.
22846 * localedata/locales/mg_MG: Likewise.
22847 * localedata/locales/mhr_RU: Likewise.
22848 * localedata/locales/mi_NZ: Likewise.
22849 * localedata/locales/mk_MK: Likewise.
22850 * localedata/locales/ml_IN: Likewise.
22851 * localedata/locales/mn_MN: Likewise.
22852 * localedata/locales/mni_IN: Likewise.
22853 * localedata/locales/mr_IN: Likewise.
22854 * localedata/locales/ms_MY: Likewise.
22855 * localedata/locales/mt_MT: Likewise.
22856 * localedata/locales/my_MM: Likewise.
22857 * localedata/locales/nan_TW: Likewise.
22858 * localedata/locales/nan_TW@latin: Likewise.
22859 * localedata/locales/nb_NO: Likewise.
22860 * localedata/locales/nds_DE: Likewise.
22861 * localedata/locales/nds_NL: Likewise.
22862 * localedata/locales/ne_NP: Likewise.
22863 * localedata/locales/nhn_MX: Likewise.
22864 * localedata/locales/niu_NU: Likewise.
22865 * localedata/locales/niu_NZ: Likewise.
22866 * localedata/locales/nl_AW: Likewise.
22867 * localedata/locales/nl_BE: Likewise.
22868 * localedata/locales/nl_NL: Likewise.
22869 * localedata/locales/nn_NO: Likewise.
22870 * localedata/locales/nr_ZA: Likewise.
22871 * localedata/locales/nso_ZA: Likewise.
22872 * localedata/locales/oc_FR: Likewise.
22873 * localedata/locales/om_ET: Likewise.
22874 * localedata/locales/om_KE: Likewise.
22875 * localedata/locales/or_IN: Likewise.
22876 * localedata/locales/os_RU: Likewise.
22877 * localedata/locales/pa_IN: Likewise.
22878 * localedata/locales/pa_PK: Likewise.
22879 * localedata/locales/pap_AW: Likewise.
22880 * localedata/locales/pap_CW: Likewise.
22881 * localedata/locales/pl_PL: Likewise.
22882 * localedata/locales/ps_AF: Likewise.
22883 * localedata/locales/pt_BR: Likewise.
22884 * localedata/locales/pt_PT: Likewise.
22885 * localedata/locales/quz_PE: Likewise.
22886 * localedata/locales/raj_IN: Likewise.
22887 * localedata/locales/ro_RO: Likewise.
22888 * localedata/locales/ru_RU: Likewise.
22889 * localedata/locales/ru_UA: Likewise.
22890 * localedata/locales/rw_RW: Likewise.
22891 * localedata/locales/sa_IN: Likewise.
22892 * localedata/locales/sat_IN: Likewise.
22893 * localedata/locales/sc_IT: Likewise.
22894 * localedata/locales/sd_IN: Likewise.
22895 * localedata/locales/sd_IN@devanagari: Likewise.
22896 * localedata/locales/se_NO: Likewise.
22897 * localedata/locales/sgs_LT: Likewise.
22898 * localedata/locales/shs_CA: Likewise.
22899 * localedata/locales/si_LK: Likewise.
22900 * localedata/locales/sid_ET: Likewise.
22901 * localedata/locales/sk_SK: Likewise.
22902 * localedata/locales/sl_SI: Likewise.
22903 * localedata/locales/sm_WS: Likewise.
22904 * localedata/locales/so_DJ: Likewise.
22905 * localedata/locales/so_ET: Likewise.
22906 * localedata/locales/so_KE: Likewise.
22907 * localedata/locales/so_SO: Likewise.
22908 * localedata/locales/sq_AL: Likewise.
22909 * localedata/locales/sq_MK: Likewise.
22910 * localedata/locales/sr_ME: Likewise.
22911 * localedata/locales/sr_RS: Likewise.
22912 * localedata/locales/sr_RS@latin: Likewise.
22913 * localedata/locales/ss_ZA: Likewise.
22914 * localedata/locales/st_ZA: Likewise.
22915 * localedata/locales/sv_FI: Likewise.
22916 * localedata/locales/sv_SE: Likewise.
22917 * localedata/locales/sw_KE: Likewise.
22918 * localedata/locales/sw_TZ: Likewise.
22919 * localedata/locales/szl_PL: Likewise.
22920 * localedata/locales/ta_IN: Likewise.
22921 * localedata/locales/ta_LK: Likewise.
22922 * localedata/locales/tcy_IN: Likewise.
22923 * localedata/locales/te_IN: Likewise.
22924 * localedata/locales/tg_TJ: Likewise.
22925 * localedata/locales/th_TH: Likewise.
22926 * localedata/locales/the_NP: Likewise.
22927 * localedata/locales/ti_ER: Likewise.
22928 * localedata/locales/ti_ET: Likewise.
22929 * localedata/locales/tig_ER: Likewise.
22930 * localedata/locales/tk_TM: Likewise.
22931 * localedata/locales/tl_PH: Likewise.
22932 * localedata/locales/tn_ZA: Likewise.
22933 * localedata/locales/to_TO: Likewise.
22934 * localedata/locales/tpi_PG: Likewise.
22935 * localedata/locales/tr_CY: Likewise.
22936 * localedata/locales/tr_TR: Likewise.
22937 * localedata/locales/ts_ZA: Likewise.
22938 * localedata/locales/tt_RU: Likewise.
22939 * localedata/locales/tt_RU@iqtelif: Likewise.
22940 * localedata/locales/ug_CN: Likewise.
22941 * localedata/locales/uk_UA: Likewise.
22942 * localedata/locales/unm_US: Likewise.
22943 * localedata/locales/ur_IN: Likewise.
22944 * localedata/locales/ur_PK: Likewise.
22945 * localedata/locales/uz_UZ: Likewise.
22946 * localedata/locales/uz_UZ@cyrillic: Likewise.
22947 * localedata/locales/ve_ZA: Likewise.
22948 * localedata/locales/vi_VN: Likewise.
22949 * localedata/locales/wa_BE: Likewise.
22950 * localedata/locales/wae_CH: Likewise.
22951 * localedata/locales/wal_ET: Likewise.
22952 * localedata/locales/wo_SN: Likewise.
22953 * localedata/locales/xh_ZA: Likewise.
22954 * localedata/locales/yi_US: Likewise.
22955 * localedata/locales/yo_NG: Likewise.
22956 * localedata/locales/yue_HK: Likewise.
22957 * localedata/locales/yuw_PG: Likewise.
22958 * localedata/locales/zh_CN: Likewise.
22959 * localedata/locales/zh_HK: Likewise.
22960 * localedata/locales/zh_SG: Likewise.
22961 * localedata/locales/zh_TW: Likewise.
22962 * localedata/locales/zu_ZA: Likewise.
22963
22964 2017-11-13 Florian Weimer <fweimer@redhat.com>
22965
22966 * support/next_to_fault.h, support/next_to_fault.c: New files.
22967 * support/Makefile (libsupport-routines): Add next_to_fault.
22968 * resolv/tst-inet_pton.c (struct next_to_fault)
22969 (next_to_fault_allocate, next_to_fault_free): Remove.
22970 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22971
22972 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22973
22974 * elf/dl-support.c: Include <dl-procruntime.c>.
22975 * include/link.h: Include <link_map.h>.
22976 * sysdeps/generic/dl-procruntime.c: New file.
22977 * sysdeps/generic/link_map.h: Likewise.
22978 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22979 the writable ld.so namespace.
22980
22981 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22982
22983 timezone: pacify GCC -Wstringop-truncation
22984 Problem reported by Martin Sebor in:
22985 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22986 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22987
22988 2017-11-12 Florian Weimer <fweimer@redhat.com>
22989
22990 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22991 tst-xreadlink.
22992 (tests): Add tst-xreadlink.
22993 * support/support.h (xstrndup): Declare.
22994 * support/xunistd.h (xunlink, xreadlink): Declare.
22995 * support/temp_file.h (support_create_temp_directory): Declare.
22996 * support/temp_file.c (support_create_temp_directory): New function.
22997 * support/support_chroot.c (support_chroot_create): Use it.
22998 * support/xreadlink.c: New file.
22999 * support/xstrndup.c: Likewise.
23000 * support/xunlink.c: Likewise.
23001 * support/tst-xreadlink.c: Likewise.
23002
23003 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
23004
23005 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
23006
23007 2017-11-11 Florian Weimer <fweimer@redhat.com>
23008
23009 [BZ #22409]
23010 [BZ #22412]
23011 * resolv/res_comp.c (printable_string, binary_hnok)
23012 (binary_leading_dash): New functions.
23013 (res_hnok): Reimplement using these functions and ns_name_pton.
23014 (res_ownok): Likewise.
23015 (res_mailok): Reimplement using printable_string, ns_name_pton and
23016 binary_hnok.
23017 (res_dnok): Reimplement using printable_string and ns_name_pton.
23018 * resolv/tst-res_hnok.c (tests): Add additional tests.
23019 (LETTERDIGITS, PRINTABLE): Define.
23020 (do_test): Adjust one_char results.
23021
23022 2017-11-11 Florian Weimer <fweimer@redhat.com>
23023
23024 [BZ #22413]
23025 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
23026 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
23027
23028 2017-11-11 Florian Weimer <fweimer@redhat.com>
23029
23030 * resolv/tst-ns_name_pton.c: New file.
23031 * resolv/Makefile (tests): Add tst-ns_name_pton.
23032 (tst-ns_name_pton): Link against libresolv.
23033
23034 2017-11-11 Florian Weimer <fweimer@redhat.com>
23035
23036 * resolv/tst-res_hnok.c: New file.
23037 * resolv/Makefile (tests): Add tst-res_hnok.
23038 (tst-res_hnok): Link against libresolv.
23039
23040 2017-11-11 Florian Weimer <fweimer@redhat.com>
23041
23042 * resolv/tst-resolv-network.c: Use test framework instead explicit
23043 main function.
23044
23045 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
23046
23047 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
23048 <jmp_buf-macros.h>.
23049 [!_ISOMAC] (STR_HELPER): New.
23050 [!_ISOMAC] (STR): Likewise.
23051 [!_ISOMAC] (TEST_SIZE): Likewise.
23052 [!_ISOMAC] (TEST_ALIGN): Likewise.
23053 [!_ISOMAC] (TEST_OFFSET): Likewise.
23054 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
23055 field offsets of jmp_buf as well as sigjmp_buf.
23056 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
23057 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
23058 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
23059 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
23060 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
23061 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
23062 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
23063 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
23064 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
23065 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
23066 Likewise.
23067 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
23068 Likewise.
23069 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
23070 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
23071 Likewise.
23072 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
23073 Likewise.
23074 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
23075 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
23076 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
23077 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
23078 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
23079 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
23080 Likewise.
23081 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
23082 Likewise.
23083 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
23084 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
23085 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
23086
23087 2017-11-07 Joseph Myers <joseph@codesourcery.com>
23088
23089 * include/float.h
23090 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23091 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
23092 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23093 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
23094 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23095 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
23096 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23097 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
23098 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23099 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
23100 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23101 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
23102 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23103 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
23104 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23105 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
23106 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23107 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
23108 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23109 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
23110 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23111 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
23112 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23113 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
23114 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23115 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
23116 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23117 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
23118 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23119 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
23120 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23121 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
23122 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23123 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
23124 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23125 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
23126 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23127 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
23128 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23129 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
23130 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23131 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
23132 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23133 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
23134 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23135 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
23136 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23137 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
23138 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23139 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
23140 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23141 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
23142 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23143 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
23144 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23145 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
23146 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23147 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
23148 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23149 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
23150 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23151 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
23152 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23153 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
23154 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23155 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
23156 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23157 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
23158 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23159 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
23160 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23161 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
23162 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23163 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
23164 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23165 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
23166 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23167 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
23168 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23169 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
23170 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23171 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
23172 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23173 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
23174 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23175 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
23176 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23177 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
23178
23179 * stdlib/tst-strtod.h (F16): New macro.
23180 (F32): Likewise.
23181 (F64): Likewise.
23182 (F32X): Likewise.
23183 (F64X): Likewise.
23184 (F128X): Likewise.
23185 (IF_FLOAT16): Likewise.
23186 (IF_FLOAT32): Likewise.
23187 (IF_FLOAT64): Likewise.
23188 (IF_FLOAT32X): Likewise.
23189 (IF_FLOAT64X): Likewise.
23190 (IF_FLOAT128X): Likewise.
23191 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
23192 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
23193 (STRTOD_TEST_FOREACH): Likewise.
23194 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
23195 (CHOOSE_f64): Likewise.
23196 (CHOOSE_f32x): Likewise.
23197 (CHOOSE_f64x): Likewise.
23198
23199 2017-11-07 Andreas Schwab <schwab@suse.de>
23200
23201 * nptl/Makefile (tests-internal): Remove tst-typesizes.
23202
23203 2017-11-07 Mike FABIAN <mfabian@redhat.com>
23204
23205 [BZ #22403]
23206 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
23207 to be escaped.
23208 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
23209 to be escaped.
23210
23211 2017-11-07 Claude Paroz <claude@2xlibre.net>
23212
23213 [BZ #22403]
23214 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
23215 to be escaped.
23216 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
23217 to be escaped.
23218 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
23219 to be escaped.
23220
23221 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23222
23223 [BZ #22298]
23224 * nptl/allocatestack.c (allocate_stack): Check if
23225 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
23226 __PTHREAD_MUTEX_HAVE_PREV is defined.
23227 * nptl/descr.h (pthread): Likewise.
23228 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
23229 Likewise.
23230 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
23231 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
23232 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
23233 * sysdeps/nptl/bits/thread-shared-types.h
23234 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23235 defines.
23236 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
23237 of __WORDSIZE for internal layout.
23238 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
23239 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
23240 instead of __WORDSIZE whether to use an union for __spins and __list
23241 fields.
23242 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
23243 case.
23244 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
23245 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23246 defines.
23247 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
23248 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23249 Likewise.
23250 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
23251 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23252 Likewise.
23253 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
23254 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23255 Likewise.
23256 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
23257 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23258 Likewise.
23259 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
23260 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23261 Likewise.
23262 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
23263 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23264 Likewise.
23265 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
23266 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23267 Likewise.
23268 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
23269 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23270 Likewise.
23271 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
23272 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23273 Likewise.
23274 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
23275 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23276 Likewise.
23277 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
23278 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23279 Likewise.
23280 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
23281 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23282 Likewise.
23283 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
23284 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23285 Likewise.
23286 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
23287 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23288 Likewise.
23289
23290 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
23291 New macros.
23292 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
23293 checks for expected input type size.
23294 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
23295 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
23296 Likewise.
23297 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
23298 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
23299 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23300 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
23301 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
23302 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
23303 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
23304 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
23305 superflous runtime assert check.
23306 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
23307 Likewise.
23308 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
23309 Likewise.
23310 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
23311 Likewise.
23312 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
23313 Likewise.
23314 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
23315 Likewise.
23316 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
23317 Likewise.
23318 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
23319 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
23320 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
23321 Likewise.
23322 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
23323 Likewise.
23324 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
23325 Likewise.
23326 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
23327 Likewise.
23328 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
23329 Likewise.
23330 * nptl/pthread_attr_setinheritsched.c
23331 (__pthread_attr_setinheritsched): Likewise.
23332 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
23333 Likewise.
23334 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
23335 Likewise.
23336 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
23337 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
23338 __old_pthread_attr_setstack): Likewise.
23339 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
23340 Likewise.
23341 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
23342 Likewise.
23343 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
23344 Likewise.
23345 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
23346 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
23347 Likewise.
23348 * nptl/tst-typesizes.c: Remove file.
23349
23350 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
23351 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
23352 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
23353 checks for internal pthread_mutex_t offsets.
23354 * sysdeps/aarch64/nptl/pthread-offsets.h
23355 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
23356 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
23357 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
23358 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
23359 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
23360 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
23361 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
23362 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
23363 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
23364 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
23365 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
23366 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
23367 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
23368 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
23369 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
23370 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
23371 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
23372 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
23373
23374 2017-11-07 Florian Weimer <fweimer@redhat.com>
23375
23376 * bits/mman-linux.h: Move ...
23377 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
23378 comment.
23379 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
23380 outdated comment.
23381
23382 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23383
23384 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
23385 Redefine STRNLEN as __strnlen_power8.
23386
23387 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23388
23389 * signal/sighold.c (sighold): Optimize implementation.
23390
23391 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
23392 __NR_rt_sigqueueinfo.
23393
23394 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23395 __sigtimedwait.
23396 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
23397 assume __NR_rt_sigtimedwait.
23398 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
23399 and add LIBC_CANCEL_HANDLED for cancellation marking.
23400 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23401
23402 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23403 (sysdeps_routines): Add memchr_noneon.
23404 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
23405 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
23406 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
23407 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
23408 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
23409 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
23410 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
23411
23412 * sysdeps/arm/arm-ifunc.h: New file.
23413 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
23414 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
23415 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
23416 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
23417 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
23418 (__memcpy_neon): Avoid create hidden alias.
23419 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
23420 (__memcpy_vfp): Likewise.
23421 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23422 (sysdep_routines): Add memcpy_arm.
23423 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
23424
23425 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
23426
23427 [BZ #22362]
23428 * Makerules (make-link-multidir): New.
23429 * config.make.in (multidir): New.
23430 * configure.ac (libc_cv_multidir): New. AC_SUBST.
23431 * configure: Regenerated.
23432 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
23433 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
23434 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
23435 New target.
23436
23437 2017-11-06 Joseph Myers <joseph@codesourcery.com>
23438
23439 [BZ #22402]
23440 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
23441 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
23442
23443 2017-11-04 Mike FABIAN <mfabian@redhat.com>
23444
23445 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
23446 to be escaped.
23447
23448 2017-11-04 Florian Weimer <fweimer@redhat.com>
23449
23450 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
23451
23452 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23453
23454 * math/math.h [__HAVE_DISTINCT_FLOAT16
23455 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23456 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23457 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23458 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
23459 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
23460 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
23461 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23462 (__MATH_TG_F32): New macro.
23463 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23464 (__MATH_TG_F64X): Likewise.
23465 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23466 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
23467
23468 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
23469
23470 * po/de.po: Update translations.
23471 * po/ru.po: Likewise.
23472
23473 2017-11-03 Florian Weimer <fweimer@redhat.com>
23474
23475 * manual/filesys.texi (Hard Links): Document linkat.
23476
23477 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23478
23479 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
23480 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23481 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23482 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23483 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23484 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23485 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
23486 the same as _Float128.
23487 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23488 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23489 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
23490
23491 * stdlib/stdlib.h
23492 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
23493 Declare.
23494 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
23495 Likewise.
23496 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
23497 Likewise.
23498 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23499 (strtof32x): Likewise.
23500 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23501 (strtof64x): Likewise.
23502 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23503 (strtof128x): Likewise.
23504 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23505 (strfromf16): Likewise.
23506 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23507 (strfromf32): Likewise.
23508 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23509 (strfromf64): Likewise.
23510 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23511 (strfromf32x): Likewise.
23512 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23513 (strfromf64x): Likewise.
23514 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23515 (strfromf128x): Likewise.
23516 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
23517 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
23518 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
23519 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
23520 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
23521 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
23522
23523 2017-11-03 Richard Henderson <rth@twiddle.net>
23524
23525 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
23526
23527 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23528
23529 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
23530
23531 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23532
23533 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
23534 DT_TLSDESC_GOT initialization.
23535 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
23536 (_dl_tlsdesc_resolve_hold): Likewise.
23537 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
23538 (_dl_tlsdesc_resolve_hold): Likewise.
23539 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
23540 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23541
23542 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23543
23544 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
23545
23546 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23547
23548 [BZ #18572]
23549 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
23550 non-lazily for R_ARM_TLS_DESC.
23551
23552 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23553
23554 [BZ #17078]
23555 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
23556 R_ARM_TLS_DESC case.
23557 (elf_machine_lazy_rel): Remove the prelink check.
23558
23559 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23560
23561 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
23562 DT_TLSDESC_GOT initialization.
23563 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
23564 (_dl_tlsdesc_resolve_rela): Likewise.
23565 (_dl_tlsdesc_resolve_hold): Likewise.
23566 (_dl_tlsdesc_undefweak): Remove ldar.
23567 (_dl_tlsdesc_dynamic): Likewise.
23568 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
23569 (_dl_tlsdesc_resolve_rela): Likewise.
23570 (_dl_tlsdesc_resolve_hold): Likewise.
23571 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
23572 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23573 (_dl_tlsdesc_resolve_rela): Likewise.
23574 (_dl_tlsdesc_resolve_hold): Likewise.
23575
23576 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23577
23578 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
23579 binding and initialization non-lazily for R_AARCH64_TLSDESC.
23580
23581 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23582
23583 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
23584 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
23585
23586 2017-11-02 Joseph Myers <joseph@codesourcery.com>
23587
23588 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
23589 Declare.
23590 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
23591 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
23592 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
23593 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
23594 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
23595 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
23596 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
23597 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
23598 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
23599 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
23600 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
23601
23602 2017-11-02 Mike FABIAN <mfabian@redhat.com>
23603
23604 [BZ #22382]
23605 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
23606 * localedata/locales/tpi_PG: Add standard header.
23607
23608 2017-11-02 Florian Weimer <fweimer@redhat.com>
23609
23610 test-errno-linux: quotactl can fail with EPERM in containers.
23611 * sysdeps/unix/sysv/linux/test-errno-linux.c
23612 (LIST, LIST_FORWARD): New macros.
23613 (check_error_in_list): New function.
23614 (test_wrp_rv): Accept list of permitted error codes.
23615 (test_wrp_rv2): Remove.
23616 (test_wrp): Call test_wrp_rv with list of error codes.
23617 (test_wrp2): Accept list of error codes.
23618 (do_test): Adjust. Allow EPERM for quotactl.
23619
23620 2017-11-02 Florian Weimer <fweimer@redhat.com>
23621
23622 * stdio-common/bug16.c (do_test): Use array_length.
23623 * stdio-common/errlist.c (_sys_nerr): Likewise.
23624 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
23625 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
23626 * stdio-common/psiginfo.c (psiginfo): Use array_length.
23627 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
23628 (do_test): Use array_length.
23629 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
23630 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
23631 * stdio-common/tst-printf-round.c (do_test): Likewise.
23632 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
23633 (CHECK): Use array_length.
23634 * stdio-common/tstdiomisc.c (t3, F): Likewise.
23635 * stdio-common/tstscanf.c (main): Likewise.
23636 * stdio-common/vfprintf.c (process_string_arg): Likewise.
23637
23638 2017-11-02 Florian Weimer <fweimer@redhat.com>
23639
23640 Add array_length and array_end macros.
23641 * include/array_length.h: New file.
23642
23643 2017-11-02 Florian Weimer <fweimer@redhat.com>
23644
23645 [BZ #22332]
23646 * posix/tst-glob-tilde.c (do_noescape): New variable.
23647 (one_test): Process it.
23648 (do_test): Set do_noescape. Add unescaping test case.
23649
23650 2017-11-01 Joseph Myers <joseph@codesourcery.com>
23651
23652 * math/complex.h
23653 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
23654 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
23655 with appropriate macros defined and undefined.
23656 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
23657 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23658 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
23659 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23660 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
23661 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23662 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
23663 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23664 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
23665 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23666
23667 * math/complex.h
23668 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
23669 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
23670 that for long double. Do not condition define and undefine of
23671 _Mdouble_complex_ on [__CFLOAT128].
23672
23673 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
23674
23675 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23676 of <sysdeps/generic/sysdep.h>.
23677 (ALIGNARG): Removed.
23678 (ASM_SIZE_DIRECTIVE): Likewise.
23679 (ENTRY): Likewise.
23680 (END): Likewise.
23681 (ENTRY_CHK): Likewise.
23682 (END_CHK): Likewise.
23683 (syscall_error): Likewise.
23684 (mcount): Likewise.
23685 (PSEUDO_END): Likewise.
23686 (L): Likewise.
23687 (atom_text_section): Likewise.
23688 * sysdeps/x86/sysdep.h: New file.
23689 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23690 of <sysdeps/generic/sysdep.h>.
23691 (ALIGNARG): Removed.
23692 (ASM_SIZE_DIRECTIVE): Likewise.
23693 (ENTRY): Likewise.
23694 (END): Likewise.
23695 (ENTRY_CHK): Likewise.
23696 (END_CHK): Likewise.
23697 (syscall_error): Likewise.
23698 (mcount): Likewise.
23699 (PSEUDO_END): Likewise.
23700 (L): Likewise.
23701 (atom_text_section): Likewise.
23702
23703 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
23704
23705 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
23706 category of LC_CTYPE set to "i18n:2012".
23707 * localedata/locales/i18n_ctype: Regenerate.
23708
23709 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
23710
23711 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
23712 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
23713 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
23714 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
23715
23716 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
23717 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
23718 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
23719 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
23720
23721 2017-10-31 Joseph Myers <joseph@codesourcery.com>
23722
23723 * math/complex.h
23724 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
23725 New macro.
23726 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
23727 Likewise.
23728 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
23729 Likewise.
23730 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23731 (CMPLXF32X): Likewise.
23732 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23733 (CMPLXF64X): Likewise.
23734 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23735 (CMPLXF128X): Likewise.
23736
23737 * math/math.h
23738 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
23739 (__MATH_EVAL_FMT2): Define to add 0.0f.
23740
23741 2017-10-31 Alan Modra <amodra@gmail.com>
23742
23743 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
23744 include sysdep.h.
23745 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
23746 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
23747 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
23748 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
23749 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
23750 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
23751 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
23752 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
23753 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
23754 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
23755 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
23756 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
23757 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
23758 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
23759 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
23760 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
23761 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
23762 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
23763 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
23764 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
23765 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
23766 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
23767 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
23768 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
23769 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23770 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
23771 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
23772 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
23773 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
23774 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
23775 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
23776 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
23777 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
23778 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
23779 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
23780 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
23781 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
23782 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
23783 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
23784 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
23785 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
23786 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
23787 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
23788 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
23789 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
23790 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
23791 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
23792 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
23793 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23794 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23795 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
23796 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
23797 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
23798 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
23799 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23800 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
23801 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
23802 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
23803 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23804 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23805 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23806 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
23807 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
23808 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
23809 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
23810 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
23811 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
23812 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
23813 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
23814
23815 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
23816 include sysdep.h and math_ldbl_opt.h.
23817
23818 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
23819 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
23820 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
23821 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
23822 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
23823 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
23824 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
23825 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
23826 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
23827 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
23828 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
23829 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
23830 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
23831 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
23832 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
23833 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
23834 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
23835 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
23836 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
23837 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
23838 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
23839 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
23840 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
23841 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
23842 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
23843 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
23844
23845 2017-10-31 Alan Modra <amodra@gmail.com>
23846
23847 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
23848 string/strncase_l.c, not string/strncase.c.
23849 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
23850 (libc_hidden_def): Redefine.
23851
23852 2017-10-31 Alan Modra <amodra@gmail.com>
23853
23854 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
23855 (__STRCMP, STRCMP, __strcasecmp_l): Define.
23856 (__strcasecmp): Don't define.
23857
23858 2017-10-31 Alan Modra <amodra@gmail.com>
23859
23860 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
23861 IS_IN (libc).
23862 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23863 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23864 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23865
23866 2017-10-31 Alan Modra <amodra@gmail.com>
23867
23868 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
23869 USE_AS_STPNCPY.
23870
23871 2017-10-31 Alan Modra <amodra@gmail.com>
23872
23873 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
23874 Redefine only when SHARED.
23875
23876 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23877
23878 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23879 Include <bits/math-finite.h> with appropriate macros defined and
23880 undefined.
23881 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23882 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23883 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23884 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23885 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23886
23887 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23888 [!_Mlong_double_] (_Mlong_double_): Likewise.
23889 [!_Mfloat16_] (_Mfloat16_): Likewise.
23890 [!_Mfloat32_] (_Mfloat32_): Likewise.
23891 [!_Mfloat64_] (_Mfloat64_): Likewise.
23892 [!_Mfloat128_] (_Mfloat128_): Likewise.
23893 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23894 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23895 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23896 (_Mdouble_): Define without indirection through those macros.
23897 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
23898 [!_Mfloat128_] (_Mfloat128_): Likewise.
23899 [_Mlong_double_] (_Mlong_double_): Likewise.
23900 (_Mdouble_): Define without indirection through those macros.
23901 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
23902 not add -D_Mlong_double_=double.
23903 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
23904 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
23905
23906 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23907
23908 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
23909
23910 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23911
23912 * sysdeps/x86/libc-start.c: Reformat.
23913
23914 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23915
23916 [BZ #22353]
23917 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
23918 (1): Renamed to ...
23919 (L(Src0)): This.
23920 (L(Src1)): New.
23921 (L(Src2)): Likewise.
23922 (L(1)): Renamed to ...
23923 (L(Src3)): This.
23924
23925 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23926
23927 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
23928 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
23929 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
23930 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
23931 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
23932 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
23933 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
23934 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
23935 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23936 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
23937 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
23938 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
23939 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
23940 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
23941 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
23942 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
23943 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
23944 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
23945 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
23946 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
23947 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
23948 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
23949 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
23950 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
23951 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
23952 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23953 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23954 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23955 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23956 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23957 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23958 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23959 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23960 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23961 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23962 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23963 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23964 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23965 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23966 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23967 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23968 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23969 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23970 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23971 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23972 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23973 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23974 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23975 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23976 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23977 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23978 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23979 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23980 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23981 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23982 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23983 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23984 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23985 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23986 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23987 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23988 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23989 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23990 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23991 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23992 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23993
23994 2017-10-30 Florian Weimer <fweimer@redhat.com>
23995
23996 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23997 always defined.
23998 * io/tst-mkdirat.c (do_test): Likewise.
23999 * io/tst-mkfifoat.c (do_test): Likewise.
24000 * io/tst-mknodat.c (do_test): Likewise.
24001 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
24002 * locale/programs/locale.c (select_dirs): Likewise.
24003 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
24004 * posix/bug-glob2.c (my_readdir): Likewise.
24005 * posix/tst-dir.c (main): Likewise.
24006 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
24007 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
24008
24009 2017-10-30 Florian Weimer <fweimer@redhat.com>
24010
24011 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
24012 just __USE_GNU.
24013
24014 2017-10-30 Florian Weimer <fweimer@redhat.com>
24015
24016 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
24017 Convert to support/test-driver.c.
24018 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
24019 New macro parameters.
24020 (PRINTF): Remove macro. Use test_verbose conditionals instead.
24021 * posix/tst-gnuglob.c: New file.
24022 * posix/tst-gnuglob64.c: Likewise.
24023 * posix/Makefile (tests): Add tst-gnuglob64.
24024
24025 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
24026
24027 [BZ #19485]
24028 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
24029 and use a better translation for March in “mon”.
24030 * localedata/locales/csb_PL: Use more ASCII to improve the
24031 readability of the source.
24032
24033 2017-10-30 Mike FABIAN <mfabian@redhat.com>
24034
24035 [BZ #13953]
24036 * localedata/locales/km_KH: Use ASCII as much
24037 as possible for better readability of the source and
24038 remove useless comments.
24039 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
24040 was commented out and apparently wrong anyway because it was
24041 using Lao characters. If Buddhist era should be used
24042 for km_KH, a native speaker should write the correct formaat
24043 for Khmer.
24044 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
24045 (According to CLDR, the first weekday for Cambodia is Sunday).
24046 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
24047 (These were using Lao characters which must be wrong. If we get
24048 the correct data from a native speaker, we could add it back, until
24049 then it is better not to have name_mr and name_mrs at all than
24050 having it wrong).
24051
24052 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
24053
24054 * locale/loadlocale.c: Correct size of
24055 _nl_value_type_LC_<category> arrays.
24056
24057 2017-10-27 Joseph Myers <joseph@codesourcery.com>
24058
24059 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
24060 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
24061 with appropriate macros defined and undefined.
24062 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
24063 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
24064 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
24065 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
24066 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
24067
24068 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
24069
24070 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
24071 "-O2 -march=i586".
24072
24073 2017-10-27 Mike FABIAN <mfabian@redhat.com>
24074
24075 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
24076 with lowercase letters to make it agree with CLDR.
24077
24078 2017-10-27 Mike FABIAN <mfabian@redhat.com>
24079
24080 [BZ #15260]
24081 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
24082 first letters of yesstr and nostr in yesexpr and noexpr,
24083 not for the full words.
24084 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24085 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
24086 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
24087 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
24088 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
24089 first letters of yesstr and nostr in yesexpr and noexpr,
24090 until now only English was matched in yesexpr and noexpr.
24091 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
24092 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
24093 fil but not for tl. As tl and fil are very similar, using fil
24094 is probably better than using English.
24095
24096 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
24097
24098 [BZ #21706]
24099 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
24100 in yesstr and nostr.
24101
24102 2017-10-26 Joseph Myers <joseph@codesourcery.com>
24103
24104 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24105 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
24106 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
24107 Likewise.
24108 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
24109 Likewise.
24110 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
24111 Likewise.
24112 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
24113 Likewise.
24114 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24115 (SNANF128X): Likewise.
24116
24117 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24118 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
24119 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24120 (HUGE_VAL_F32): Likewise.
24121 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24122 (HUGE_VAL_F64): Likewise.
24123 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24124 (HUGE_VAL_F32X): Likewise.
24125 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24126 (HUGE_VAL_F64X): Likewise.
24127 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24128 (HUGE_VAL_F128X): Likewise.
24129
24130 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
24131
24132 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
24133 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
24134 for the br_FR locale.
24135
24136 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
24137
24138 [BZ #21706]
24139 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
24140
24141 2017-10-25 Carlos O'Donell <carlos@redhat.com>
24142
24143 * locale/programs/record-status.h: Define globals, and function
24144 prototypes. Move function bodies...
24145 * locale/programs/record-status.c: ... to here. New file.
24146 * iconv/Makefile (iconv_prog-modules): Add record-status.
24147 * locale/Makefile (lib-modules): Likewise.
24148 * iconv/iconv_prog.c: Remove verbose.
24149 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
24150 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
24151 record a warning about ASCII compatibility.
24152 * locale/programs/ld-monetary.c (monetary_finish): If
24153 warn_int_curr_symbol is true then record a warning about the symbol
24154 not being in our ISO 4217 list.
24155 * locale/programs/locale.c: Include record-status.h. Remove verbose.
24156 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
24157 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
24158 (OPT_NO_WARN): Define.
24159 (OPT_WARN): Define.
24160 (options): Add entry for --no-warnings, and --warnings.
24161 (set_warnings): New function to enable/disable warnings.
24162 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
24163 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
24164 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
24165 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
24166 Pass flags to generate_locale.
24167 (generate_locale): Accept new flag argument and pass it to localedef
24168 invocation.
24169 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
24170 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
24171
24172 * localedata/Makefile (test-input-data): Use full file name.
24173 * localedata/da_DK.in: Rename to...
24174 * localedata/da_DK.ISO-8859-1.in: ...this.
24175 * localedata/de_DE.in: Rename to...
24176 * localedata/de_DE.ISO-8859-1.in: ...this.
24177 * localedata/en_US.in: Rename to...
24178 * localedata/en_US.ISO-8859-1.in: ...this.
24179 * localedata/fr_FR.in: Rename to...
24180 * localedata/fr_FR.UTF-8.in: ... this.
24181 * localedata/hr_HR.in: Rename to...
24182 * localedata/hr_HR.ISO-8859-2.in: ...this.
24183 * localedata/hu_HU.in: Rename to...
24184 * localedata/hu_HU.UTF-8.in: ...this.
24185 * localedata/si_LK.in: Rename to...
24186 * localedata/si_LK.UTF-8.in: ...this.
24187 * localedata/sv_SE.in: Rename to...
24188 * localedata/sv_SE.ISO-8859-1.in: ...this.
24189 * localedata/tr_TR.in: Rename to...
24190 * localedata/tr_TR.UTF-8.in: ...this.
24191 * localedata/uk_UA.in: Rename to...
24192 * localedata/uk_UA.UTF-8.in: ...this.
24193 * localedata/sort-test.sh: Test file is locale name with the
24194 suffix.
24195
24196 * localedata/unicode-gen/Makefile (check_i18n): Rename to
24197 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
24198 file.
24199 * localedata/locales/i18n_ctype: Regenerate.
24200 * localedata/locales/tr_TR: Likewise.
24201 * localedata/locales/translit_circle: Likewise.
24202 * localedata/locales/translit_cjk_compat: Likewise.
24203 * localedata/locales/translit_combining: Likewise.
24204 * localedata/locales/translit_compat: Likewise.
24205 * localedata/locales/translit_font: Likewise.
24206 * localedata/locales/translit_fraction: Likewise.
24207
24208 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24209
24210 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
24211 lxvd2x/stxvd2x with lvx/stvx.
24212 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
24213
24214 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
24215
24216 * include/alloc_buffer.h: Replace "if if " with "if " in
24217 comments.
24218 * sysdeps/mips/memcpy.S: Likkewise.
24219 * sysdeps/mips/memset.S: Likewise.
24220 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
24221 Likewise.
24222 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
24223 Likewise.
24224 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
24225 Likewise.
24226
24227 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24228
24229 [BZ #15261]
24230 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
24231 yesexpr and noexpr.
24232 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24233 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24234 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24235 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24236 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24237 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24238 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24239
24240 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24241
24242 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
24243 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24244 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24245 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24246 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24247 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
24248 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24249 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24250 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24251 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24252 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24253 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24254
24255 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24256
24257 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
24258 as possible for better readability of the source.
24259 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
24260 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
24261 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
24262 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
24263 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
24264 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
24265 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
24266 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
24267 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24268 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
24269 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
24270 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
24271 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
24272 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
24273 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
24274 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
24275 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
24276 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
24277 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
24278 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
24279 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
24280 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
24281 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
24282 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
24283 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
24284 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
24285 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
24286 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
24287 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
24288 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
24289 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
24290 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24291 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
24292 * localedata/locales/en_US (LC_MESSAGES): Likewise.
24293 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
24294 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
24295 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
24296 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
24297 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
24298 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
24299 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
24300 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
24301 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
24302 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
24303 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
24304 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
24305 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
24306 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
24307 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
24308 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
24309 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
24310 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
24311 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
24312 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24313 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24314 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
24315 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
24316 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24317 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
24318 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
24319 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
24320 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
24321 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
24322 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
24323 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
24324 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
24325 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
24326 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
24327 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
24328 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
24329 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
24330 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
24331 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
24332 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
24333 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24334 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
24335 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
24336 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
24337 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
24338 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
24339 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
24340 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
24341 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
24342 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24343 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
24344 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
24345 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
24346 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24347 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
24348 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
24349 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
24350 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
24351 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24352 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
24353 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
24354 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24355 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
24356 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24357 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
24358 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
24359 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
24360 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
24361 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
24362 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
24363 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
24364 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
24365 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
24366 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
24367 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
24368 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
24369 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
24370 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
24371 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24372 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
24373 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
24374 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
24375 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
24376 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
24377 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
24378 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
24379 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
24380 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
24381 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
24382 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
24383 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
24384 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
24385 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
24386 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
24387 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
24388 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
24389 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
24390 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
24391 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
24392 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
24393 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
24394 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
24395 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
24396 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
24397 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
24398 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
24399 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
24400 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
24401 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
24402 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
24403 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
24404 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24405 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
24406 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
24407 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
24408 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
24409 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
24410 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
24411 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
24412 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
24413 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24414 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
24415 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
24416 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
24417 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
24418 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
24419 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
24420 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
24421 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
24422 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
24423 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
24424 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24425 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
24426 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
24427 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
24428 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
24429 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24430 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24431 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24432 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
24433
24434 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24435
24436 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
24437 (Use first letters of yesstr and nostr correctly instead of using
24438 full words).
24439
24440 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24441
24442 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
24443 (Use first letters of yesstr and nostr correctly).
24444
24445 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24446
24447 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
24448 also check for the first characters of yesstr and nostr.
24449 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
24450 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
24451
24452 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24453
24454 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
24455 also check for Chinese characters.
24456
24457 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24458
24459 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
24460 match also for the contents of yesstr and nostr. As the first letter
24461 of yesstr and nostr is equal, checking only for the first letter
24462 is not enough.
24463
24464 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24465
24466 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
24467 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
24468
24469 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24470
24471 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
24472 of main contributor.
24473
24474 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24475
24476 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
24477 instead of using English.
24478
24479 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24480
24481 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
24482 by including the first letters of nostr and yesexpr in the regexp.
24483 Also make it more readable by using ASCII where possible.
24484
24485 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24486
24487 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
24488 the first letter of nostr in the regexp. It agrees with CLDR now.
24489 Also make it more readable by using ASCII where possible.
24490
24491 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24492
24493 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
24494 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
24495 these strings contain a U+17D6 (which somewhat looks like a colon)
24496 instead of a real colon to separate the full words for “yes”
24497 and “no” from the single letter responses.
24498
24499 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24500
24501 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
24502 it agree with CLDR (include the first letter of yesstr).
24503 Also make it more readable by using ASCII where possible.
24504
24505 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24506
24507 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
24508 and improve yesexpr and noexpr. The yesstr and nostr apparently
24509 came from CLDR. And CLDR has a bug there: these strings contain
24510 a U+0903 (which looks like a colon) instead of a real colon
24511 to separate the full words for “yes” and “no” from the single
24512 letter responses.
24513
24514 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24515
24516 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
24517 letters of the full yesstr and nostr in yesexpr and noexpr.
24518
24519 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24520
24521 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
24522 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
24523 * localedata/locales/an_ES: Make source more readable by using ASCII
24524 where possible.
24525
24526 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24527
24528 [BZ #20952]
24529 * localedata/locales/yuw_PG: New file.
24530 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
24531 * locale/iso-639.def: Add Yau (Uruwa).
24532
24533 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24534
24535 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
24536
24537 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24538
24539 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
24540 (__libc_realloc): Likewise.
24541 (_mid_memalign): Likewise.
24542 (__libc_calloc): Likewise.
24543
24544 2017-10-23 Mike FABIAN <mfabian@redhat.com>
24545
24546 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
24547 by adding the generic +1 and -0 as in all other locales.
24548 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
24549 day names and make it more readable by using ASCII where possible.
24550
24551 2017-10-24 Joseph Myers <joseph@codesourcery.com>
24552
24553 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
24554 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
24555
24556 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24557
24558 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
24559 WNOHANG in waitpid call.
24560
24561 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
24562
24563 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
24564 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
24565
24566 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
24567 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
24568 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
24569 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
24570 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
24571 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
24572 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
24573 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
24574 variables.
24575
24576 2017-10-23 Michael Collison <michael.collison@arm.com>
24577
24578 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
24579 with __builtin_sqrt.
24580 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
24581 with __builtin_sqrtf.
24582 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
24583 with __builtin_ceil.
24584 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
24585 with __builtin_ceilf.
24586 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
24587 with __builtin_floor.
24588 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
24589 with __builtin_floorf.
24590 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
24591 with __builtin_fma.
24592 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
24593 with __builtin_fmaf.
24594 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
24595 with __builtin_fmax.
24596 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
24597 with __builtin_fmaxf.
24598 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
24599 with __builtin_fmin.
24600 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
24601 with __builtin_fminf.
24602 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
24603 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
24604 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
24605 with builtin_rint and conversion to int.
24606 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
24607 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
24608 with builtin_llround.
24609 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
24610 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
24611 with builtin_rint and conversion to long int.
24612 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
24613 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
24614 with builtin_lround.
24615 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
24616 with builtin_lroundf.
24617 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
24618 statements with __builtin_nearbyint.
24619 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
24620 statements with __builtin_nearbyintf.
24621 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
24622 with __builtin_rint.
24623 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
24624 with __builtin_rintf.
24625 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
24626 with __builtin_round.
24627 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
24628 with __builtin_roundf.
24629 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
24630 with __builtin_trunc.
24631 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
24632 with __builtin_truncf.
24633 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
24634 and s_l[l]round[f].c too.
24635
24636 2017-10-23 Alan Modra <amodra@gmail.com>
24637
24638 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
24639 Adjust stack after restoring regs. Add missing LR cfi_restore.
24640
24641 2017-10-23 Alan Modra <amodra@gmail.com>
24642
24643 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
24644 Move LR save and frame setup/teardown and LR restore to
24645 immediately around memset call. Provide cfi.
24646
24647 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24648
24649 * sysdeps/i386/fpu/e_powf.S: Removed.
24650 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
24651 * sysdeps/i386/fpu/w_powf.c: Likewise.
24652 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
24653 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24654 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24655 Add e_powf-sse2.
24656 (CFLAGS-e_powf-sse2.c): New.
24657 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
24658 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
24659
24660 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24661
24662 * sysdeps/i386/fpu/e_log2f.S: Removed.
24663 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
24664 * sysdeps/i386/fpu/w_log2f.c: Likewise.
24665 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
24666 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24667 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24668 Add e_log2f-sse2.
24669 (CFLAGS-e_log2f-sse2.c): New.
24670 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
24671 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
24672
24673 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24674
24675 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24676 Add e_powf-fma.
24677 (CFLAGS-e_powf-fma.c): New.
24678 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
24679 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
24680
24681 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24682
24683 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24684 Add e_log2f-fma.
24685 (CFLAGS-e_log2f-fma.c): New.
24686 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
24687 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
24688
24689 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24690
24691 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24692 Add e_logf-fma.
24693 (CFLAGS-e_logf-fma.c): New.
24694 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
24695 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
24696
24697 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24698
24699 * sysdeps/i386/fpu/e_logf.S: Removed.
24700 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
24701 * sysdeps/i386/fpu/w_logf.c: Likewise.
24702 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
24703 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
24704 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24705 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24706 Add e_logf-sse2.
24707 (CFLAGS-e_logf-sse2.c): New.
24708 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
24709 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
24710
24711 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24712
24713 * sysdeps/i386/fpu/e_exp2f.S: Removed.
24714 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
24715 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
24716 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24717 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24718 Add e_exp2f-sse2.
24719 (CFLAGS-e_exp2f-sse2.c): New.
24720 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
24721 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
24722
24723 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24724
24725 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24726 Add e_exp2f-fma.
24727 (CFLAGS-e_exp2f-fma.c): New.
24728 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
24729 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
24730
24731 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24732
24733 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
24734 * sysdeps/i386/fpu/e_expf.S: Likewise.
24735 * sysdeps/i386/fpu/math_errf.c: Likewise.
24736 * sysdeps/i386/fpu/w_expf.c: Likewise.
24737 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
24738 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
24739 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
24740 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
24741 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24742 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24743 Remove e_expf-ia32.
24744 (CFLAGS-e_expf-sse2.c): New.
24745 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
24746 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
24747
24748 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24749
24750 * sysdeps/x86_64/fpu/e_expf.S: Removed.
24751 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
24752 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
24753 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
24754 e_expf.c.
24755 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
24756 New.
24757 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
24758 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
24759 Renamed to ...
24760 (__redirect_expf): This.
24761 (SYMBOL_NAME): Changed to expf.
24762 (__ieee754_expf): Renamed to ...
24763 (__expf): This.
24764 (__GI___expf): This.
24765 (__ieee754_expf): Add strong_alias.
24766 (__expf_finite): Likewise.
24767 (__expf): New.
24768 Include <sysdeps/ieee754/flt-32/e_expf.c>.
24769
24770 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
24771
24772 [BZ #22332]
24773 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
24774 unescaping.
24775
24776 2017-10-21 Florian Weimer <fweimer@redhat.com>
24777
24778 * posix/Makefile (tests): Add tst-glob-tilde.
24779 (tests-special): Add tst-glob-tilde-mem.out
24780 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
24781 (tst-glob-tilde-mem.out): Add mtrace check.
24782 * posix/tst-glob-tilde.c: New file.
24783
24784 2017-10-20 Joseph Myers <joseph@codesourcery.com>
24785
24786 * bits/floatn-common.h: New file.
24787 * math/Makefile (headers): Add bits/floatn-common.h.
24788 * bits/floatn.h: Include <bits/floatn-common.h>.
24789 * sysdeps/ia64/bits/floatn.h: Likewise.
24790 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24791 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
24792 * sysdeps/powerpc/bits/floatn.h: Likewise.
24793 * sysdeps/x86/bits/floatn.h: Likewise.
24794
24795 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24796
24797 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
24798 indicates whether compiler emits an warning for alias for
24799 functions with incompatible types.
24800
24801 [BZ #22273]
24802 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
24803 the auxiliary process is terminated by a signal before calling _exit
24804 or execve.
24805
24806 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24807
24808 [BZ #21265]
24809 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
24810 New.
24811 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
24812 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
24813 and bit_arch_XSAVEC_Usable if needed.
24814 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
24815 and bit_arch_Use_dl_runtime_resolve_opt.
24816 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
24817 Removed.
24818 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
24819 (bit_arch_Prefer_No_AVX512): Updated.
24820 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
24821 (bit_arch_XSAVEC_Usable): New.
24822 (STATE_SAVE_OFFSET): Likewise.
24823 (STATE_SAVE_MASK): Likewise.
24824 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
24825 (cpu_features): Add xsave_state_size and xsave_state_full_size.
24826 (index_arch_Use_dl_runtime_resolve_opt): Removed.
24827 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
24828 (index_arch_XSAVEC_Usable): New.
24829 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24830 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
24831 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
24832 is enabled.
24833 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
24834 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
24835 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
24836 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
24837 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
24838 _dl_runtime_resolve_xsavec.
24839 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
24840 Removed.
24841 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
24842 instead of VEC_SIZE.
24843 (REGISTER_SAVE_BND0): Removed.
24844 (REGISTER_SAVE_BND1): Likewise.
24845 (REGISTER_SAVE_BND3): Likewise.
24846 (REGISTER_SAVE_RAX): Always defined to 0.
24847 (VMOV): Removed.
24848 (_dl_runtime_resolve_avx): Likewise.
24849 (_dl_runtime_resolve_avx_slow): Likewise.
24850 (_dl_runtime_resolve_avx_opt): Likewise.
24851 (_dl_runtime_resolve_avx512): Likewise.
24852 (_dl_runtime_resolve_avx512_opt): Likewise.
24853 (_dl_runtime_resolve_sse): Likewise.
24854 (_dl_runtime_resolve_sse_vex): Likewise.
24855 (USE_FXSAVE): New.
24856 (_dl_runtime_resolve_fxsave): Likewise.
24857 (USE_XSAVE): Likewise.
24858 (_dl_runtime_resolve_xsave): Likewise.
24859 (USE_XSAVEC): Likewise.
24860 (_dl_runtime_resolve_xsavec): Likewise.
24861 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
24862 Removed.
24863 (_dl_runtime_resolve_avx512_opt): Likewise.
24864 (_dl_runtime_resolve_avx): Likewise.
24865 (_dl_runtime_resolve_avx_opt): Likewise.
24866 (_dl_runtime_resolve_sse): Likewise.
24867 (_dl_runtime_resolve_sse_vex): Likewise.
24868 (_dl_runtime_resolve_fxsave): New.
24869 (_dl_runtime_resolve_xsave): Likewise.
24870 (_dl_runtime_resolve_xsavec): Likewise.
24871
24872 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
24873
24874 [BZ #22320]
24875 CVE-2017-15670
24876 * posix/glob.c (__glob): Fix one-byte overflow.
24877
24878 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24879
24880 * malloc/malloc.c (sysdep-cancel.h): Add include.
24881
24882 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24883
24884 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24885
24886 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24887
24888 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24889 (tests): Remove $(objpfx)ga_test depdendency.
24890 * resolv/ga_test.c: Remove file.
24891
24892 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24893
24894 [BZ #18812]
24895 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24896 * localedata/locales/kab_DZ: New file.
24897
24898 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24899
24900 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
24901 _dl_relocate_static_pie instead of _dl_start to compute load
24902 address in static PIE.
24903
24904 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24905
24906 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
24907
24908 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24909
24910 [BZ #13605]
24911 * localedata/SUPPORTED: Add shn_MM/UTF-8.
24912 * localedata/locales/shn_MM: New file.
24913
24914 2017-10-20 Florian Weimer <fweimer@redhat.com>
24915
24916 [BZ #22321]
24917 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
24918 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
24919 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
24920 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
24921 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
24922 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
24923
24924 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24925
24926 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
24927
24928 2017-10-19 Joseph Myers <joseph@codesourcery.com>
24929
24930 * sysdeps/mips/ieee754/bits/floatn.h: New file.
24931
24932 [BZ #22322]
24933 * sysdeps/mips/bits/long-double.h: Move to ....
24934 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
24935
24936 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
24937
24938 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
24939
24940 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
24941 H.J. Lu <hongjiu.lu@intel.com>
24942
24943 [BZ #22299]
24944 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
24945 GLRO(dl_platform) to NULL.
24946 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
24947 (modules-names): Add tst-platformmod-1 and
24948 x86_64/tst-platformmod-2.
24949 (CFLAGS-tst-platform-1.c): New.
24950 (CFLAGS-tst-platformmod-1.c): Likewise.
24951 (CFLAGS-tst-platformmod-2.c): Likewise.
24952 (LDFLAGS-tst-platformmod-2.so): Likewise.
24953 ($(objpfx)tst-platform-1): Likewise.
24954 ($(objpfx)tst-platform-1.out): Likewise.
24955 (tst-platform-1-ENV): Likewise.
24956 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24957 * sysdeps/x86_64/tst-platform-1.c: New file.
24958 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24959 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24960
24961 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24962
24963 [BZ #13994]
24964 * locale/iso-639.def: Add Karbi.
24965 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24966 * localedata/locales/mjw_IN: New file.
24967
24968 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24969
24970 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24971 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24972 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24973 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24974 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24975 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24976 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24977 <bits/floatn.h>.
24978 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24979 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24980 * manual/math.texi (Mathematics): Document additional architecture
24981 support for _Float128.
24982 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24983 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24984 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24985 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24986 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24987 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24988 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24989 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24990 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24991 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24992 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24993 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24994 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24995 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24996 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24997
24998 2017-10-18 Renlin Li <renlin.li@arm.com>
24999
25000 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
25001 _DYNAMIC symbol to calculate load address.
25002
25003 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
25004
25005 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
25006 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
25007 summary bits.
25008 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
25009 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
25010
25011 2017-10-18 Mike FABIAN <mfabian@redhat.com>
25012
25013 [BZ #16777]
25014 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
25015 and improve readability by using more ASCII.
25016 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
25017 and improve readability by using more ASCII.
25018
25019 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
25020
25021 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
25022 not all targets support atomics on bool.
25023
25024 2017-10-17 Joseph Myers <joseph@codesourcery.com>
25025
25026 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
25027 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
25028 __f128.
25029 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25030 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
25031 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25032 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
25033 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25034 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
25035
25036 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25037
25038 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
25039 defines.
25040
25041 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25042
25043 [BZ #22159]
25044 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
25045 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
25046 (do_check_remalloced_chunk): Fix build bug.
25047 (do_check_malloc_state): Add assert that checks arena->top.
25048 (malloc_consolidate): Remove initialization.
25049 (int_mallinfo): Remove call to malloc_consolidate.
25050 (__libc_mallopt): Clarify why malloc_consolidate is needed.
25051
25052 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25053
25054 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
25055 (have_fastchunks): Remove.
25056 (clear_fastchunks): Remove.
25057 (set_fastchunks): Remove.
25058 (malloc_state): Add have_fastchunks.
25059 (malloc_init_state): Use have_fastchunks.
25060 (do_check_malloc_state): Remove incorrect invariant checks.
25061 (_int_malloc): Use have_fastchunks.
25062 (_int_free): Likewise.
25063 (malloc_consolidate): Likewise.
25064
25065 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25066
25067 * malloc/malloc.c (tcache_put): Inline.
25068 (tcache_get): Inline.
25069
25070 2017-10-17 Jordi Mallach <jordi@gnu.org>
25071
25072 Aurelien Jarno <aurelien@aurel32.net>
25073 [BZ #2522]
25074 * localedata/locales/ca_ES@valencia: New file.
25075 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
25076
25077 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
25078
25079 [BZ #22296]
25080 * math/math.h: Let signbit use the builtin in C++ mode with gcc
25081 < 6.x
25082
25083 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25084
25085 * scripts/build-many-glibcs.py (Context.add_all_configs):
25086 Add arm-linux-gnueabihf multiarch extra_glibcs.
25087
25088 * sysdeps/generic/ifunc-init.h: New file.
25089 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
25090
25091 2017-10-17 Mike FABIAN <mfabian@redhat.com>
25092
25093 [BZ #22019]
25094 * localedata/locales/el_GR: Set n_cs_precedes to 0.
25095 * localedata/locales/el_CY: copy "el_GR" because it is identical.
25096 * stdlib/tst-strfmon_l.c: adapt test case.
25097
25098 2017-10-16 Joseph Myers <joseph@codesourcery.com>
25099
25100 * sysdeps/generic/float128-abi.h: New file.
25101 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
25102 non-__prefixed symbols to ....
25103 * math/Versions: ... here. Include <float128-abi.h>.
25104 * stdlib/Versions ... and here. Include <float128-abi.h>
25105
25106 2017-10-16 Florian Weimer <fweimer@redhat.com>
25107
25108 * version.h (VERSION): Switch to ".9000" as the development
25109 version suffix.
25110
25111 2017-10-16 Florian Weimer <fweimer@redhat.com>
25112
25113 [BZ #22050]
25114 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
25115 compat_symbol_reference to access non-default version.
25116
25117 2017-10-16 Florian Weimer <fweimer@redhat.com>
25118
25119 * malloc/Makefile (others-extras): Set to mcheck-init.o.
25120
25121 2017-10-16 Carlos O'Donell <carlos@redhat.com>
25122
25123 * include/shlib-compat.h (compat_symbol_reference): Update
25124 comment.
25125
25126 2017-10-16 Joseph Myers <joseph@codesourcery.com>
25127
25128 * math/Makefile (test-types): Add
25129 $(type-float128-$(float128-alias-fcts)).
25130 * math/test-float128.h (TYPE_STR): Define conditional on
25131 [FLT128_MANT_DIG == LDBL_MANT_DIG].
25132 (ULP_IDX): Likewise.
25133 (ULP_I_IDX): Likewise.
25134
25135 * stdlib/strtold.c: Include <bits/floatn.h>
25136 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
25137 and later undefine as macro. Define as weak alias if
25138 [!USE_WIDE_CHAR].
25139 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
25140 and later undefine as macro. Define as weak alias if
25141 [USE_WIDE_CHAR].
25142 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
25143 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
25144 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
25145 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25146 Define and later undefine as macro. Define as weak alias if
25147 [USE_WIDE_CHAR].
25148 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
25149 <bits/floatn.h>.
25150 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
25151 Define and later undefine as macro. Define as weak alias if
25152 [!USE_WIDE_CHAR].
25153 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25154 Define and later undefine as macro. Define as weak alias if
25155 [USE_WIDE_CHAR].
25156
25157 2017-10-15 Carlos O'Donell <carlos@redhat.com>
25158
25159 * localedata/collate-test.c (allocate_arrays): Don't use \n in
25160 record_verbose messages.
25161
25162 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
25163
25164 [BZ #22052]
25165 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
25166 to silence -O3 -Wall warning with GCC 7.
25167
25168 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
25169
25170 * Makeconfig (+link-static-before-libc): Use the first of
25171 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
25172 * gmon/Makefile (tests): Add tst-gmon-static.
25173 (tests-static): Likewise.
25174 (CFLAGS-tst-gmon-static.c): New.
25175 (CRT-tst-gmon-static): Likewise.
25176 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
25177 (tst-gmon-static-ENV): Likewise.
25178 (tests-special): Likewise.
25179 ($(objpfx)tst-gmon-static.out): Likewise.
25180 (clean-tst-gmon-static-data): Likewise.
25181 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
25182 * gmon/tst-gmon-static-gprof.sh: New file.
25183 * gmon/tst-gmon-static.c: Likewise.
25184
25185 2017-10-13 Carlos O'Donell <carlos@redhat.com>
25186
25187 [BZ #22295]
25188 * locale/programs/linereader.c (get_string): Don't warn on
25189 non-symbolic character.
25190
25191 [BZ #22294]
25192 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
25193 int_curr_symbol.
25194
25195 [BZ #22292]
25196 * locale/programs/record-status.h: New file
25197 * locale/programs/locale.c: Add comment.
25198 * locale/programs/charmap-dir.c: Don't include error.h.
25199 (charmap_opendir): Use record_error.
25200 * locale/programs/charmap.c: Don't include error.h.
25201 (charmap_read): Use record_error, and record_warning.
25202 (parse_charmap): Likewise.
25203 * locale/programs/ld-address.c: Don't include error.h.
25204 (address_finish): Use record_error, and record_warning.
25205 * locale/programs/ld-collate.c: Don't include error.h.
25206 (collate_finish): Use record_error, and record_error_at_line.
25207 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
25208 (ctype_class_new): Likewise.
25209 (ctype_map_new): Likewise.
25210 (set_one_default): Likewise.
25211 (set_class_defaults): Likewise.
25212 (translit_flatten): Likewise.
25213 (allocate_arrays): Use record_error, and record_verbose.
25214 * locale/programs/ld-identification.c: Don't include error.h.
25215 (indentation_finish): Use record_error and record_warning.
25216 * locale/programs/ld-measurement.c: Don't include error.h.
25217 (measurement_finish): Use record_error.
25218 * locale/programs/ld-messages.c
25219 (message_finish): Likewise.
25220 * locale/programs/ld-monetary.c
25221 (monetary_finish): Likewise.
25222 * locale/programs/ld-name.c (name_finish): Use record_error
25223 and record_warning.
25224 * locale/programs/ld-numeric.c
25225 (numeric_finish): Use record_error.
25226 * locale/programs/ld-paper.c: Don't include error.h.
25227 (paper_finish): Use record_error.
25228 * locale/programs/ld-telephone.c: Don't include error.h.
25229 (telephone_finish): Use record_error.
25230 * locale/programs/ld-time.c (time_finish): Likewise.
25231 * locale/programs/linereader.h (lr_error): Make inline func.
25232 * locale/programs/localedef.c: Define recorded_warning_count,
25233 and recorded_error_count.
25234 (main): Use record_error. Use recorded_error_count and
25235 recorded_warning_count to issue correct error returns.
25236 (add_to_readlist): Use record_error.
25237 (find_locale): Likewise.
25238 (load_locale): Likewise.
25239 * locale/programs/localedef.h: Remove be_quiet
25240 and WITH_CUR_LOCALE.
25241 * locale/programs/locarchive.c (compare_from_file): Use
25242 record_error.
25243 * locale/programs/locfile.c (write_locale_data): Use
25244 record_error.
25245 * locale/programs/repertoire.c: Dont include error.h.
25246 (repertoire_complain): Use record_error.
25247 * localedata/tst-fmon.sh: Expect failures from localedef.
25248 * localedata/tst-locale.sh: Likewise.
25249 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
25250
25251 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
25252 (REPORTS): Likewise.
25253 (check): Likewise.
25254 (i18n): Rename to...
25255 (i18n_ctype): ...this.
25256 (i18n-report): Rename to...
25257 (i18n_ctype-report): ...this.
25258 * localedata/locales/i18n_ctype: Regenerate.
25259 * localedata/locales/i18n: copy i18n_ctype.
25260
25261 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25262
25263 * stdlib/strfroml.c: Include <bits/floatn.h>.
25264 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
25265 Define before include of <stdlib.h> and undefine afterwards, then
25266 define as weak alias.
25267
25268 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
25269 Undefine and restore default definition. Use
25270 libm_alias_ldouble_other.
25271
25272 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
25273
25274 [BZ #22153]
25275 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
25276 in coredumps.
25277
25278 2017-10-13 James Clarke <jrtc27@jrtc27.com>
25279
25280 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
25281 Assign sym_map to be map for local symbols, as TLS relocations
25282 use sym_map to determine whether the symbol is defined and to
25283 extract the TLS information.
25284 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
25285 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
25286
25287 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
25288
25289 [BZ #22189]
25290 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
25291 (math_force_eval): Add powerpc version.
25292
25293 [BZ #22142]
25294 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
25295 -DBL_MAX.
25296 (do_test): Likewise.
25297 * stdio-common/tst-printf.sh: Likewise.
25298 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
25299 ifdef clause in order to set the carry bit right. Replace r0 by
25300 0 without changing the behavior.
25301
25302 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25303
25304 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
25305 <libm-alias-ldouble.h>.
25306 (fabsl): Define using libm_alias_ldouble.
25307 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
25308 <libm-alias-ldouble.h>.
25309 (fabsl): Define using libm_alias_ldouble.
25310
25311 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
25312 Remove conditional code.
25313
25314 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
25315 Rename to __clog10_internal_l.
25316 (__clog10_internal_l): Define aliases using
25317 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
25318 with __clog10.
25319
25320 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25321
25322 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
25323 * benchtests/sincosf-inputs: New file.
25324 * benchtests/cosf-inputs: New file.
25325 * benchtests/sinf-inputs: New file.
25326
25327 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
25328
25329 * posix/tst-spawn.c (do_test): Wait for both children.
25330
25331 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
25332
25333 [BZ #22284]
25334 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
25335 tests-pie): Add tst-gmon-pie.
25336 (CFLAGS-tst-gmon-pie.c): New.
25337 (CRT-tst-gmon-pie): Likewise.
25338 (tst-gmon-pie-ENV): Likewise.
25339 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
25340 ($(objpfx)tst-gmon-pie.out): Likewise.
25341 (clean-tst-gmon-pie-data): Likewise.
25342 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
25343 * gmon/gmon.c [PIC]: Include <link.h>.
25344 [PIC] (callback): New function.
25345 (write_hist): Add an argument for load address. Subtract load
25346 address from PCs.
25347 (write_call_graph): Likewise.
25348 (write_gmon): Call __dl_iterate_phdr to get load address, pass
25349 it to write_hist and write_call_graph.
25350 * gmon/tst-gmon-pie.c: New file.
25351
25352 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25353
25354 * math/Makefile (test-types-basic): New variable.
25355 (test-types): Likewise.
25356 (libm-test-support): Use $(test-types) instead of $(types).
25357 (libm-tests-base-normal): Likewise.
25358 (libm-tests-base-finite): Likewise.
25359 (libm-tests-base-inline): Likewise.
25360 (generated): Likewise.
25361 ($(objpfx)libm-test-support-$(t).c): Likewise.
25362 (libm-tests-for-type iterator): Likewise.
25363 (libm-test-support iterator): Likewise.
25364 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
25365 (ulp_idx): Use ULP_IDX.
25366 * math/test-ldouble.h: Include <float.h>.
25367 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
25368 (ULP_IDX): New macro.
25369 (ULP_I_IDX): Likewise.
25370 * math/test-double.h (ULP_IDX): Likewise.
25371 (ULP_I_IDX): Likewise.
25372 * math/test-float.h (ULP_IDX): Likewise.
25373 (ULP_I_IDX): Likewise.
25374 * math/test-float128.h (ULP_IDX): Likewise.
25375 (ULP_I_IDX): Likewise.
25376
25377 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25378
25379 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
25380 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
25381 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
25382 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
25383 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
25384 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
25385 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
25386 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
25387 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
25388 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
25389 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
25390 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
25391 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
25392 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25393 (SINGLE_THREAD_BY_GLOBAL): Define.
25394 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25395 Likewise.
25396 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25397 Likewise.
25398 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25399 Likewise.
25400 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25401 Likewise.
25402 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
25403 (SINGLE_THREAD_BY_GLOBAL): Likewise.
25404 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25405 Likewise.
25406
25407 2017-10-11 Andreas Schwab <schwab@suse.de>
25408
25409 * nis/Makefile (aux): Remove.
25410 * nscd/Makefile (aux): Add nscd_hash.
25411 (nscd-modules): Likewise.
25412 ($(objpfx)nscd): Don't depend on libnsl.
25413 * nscd/nscd_hash.c: New file.
25414 * nscd/nscd_hash.h: Likewise.
25415 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
25416 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
25417 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
25418 instead of <nis/rpcsvc/nis.h>.
25419 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
25420
25421 2017-10-11 Florian Weimer <fweimer@redhat.com>
25422
25423 [BZ #22078]
25424 Avoid large NSS buffers with many addresses, aliases.
25425 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
25426 using dynarrays and struct alloc_buffer.
25427 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
25428 (tst-nss-files-hosts-multi): Link with -ldl.
25429 * nss/tst-nss-files-hosts-multi.c: New file.
25430
25431 2017-10-11 Florian Weimer <fweimer@redhat.com>
25432
25433 [BZ #18023]
25434 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
25435 scratch_buffer. Eliminate gotos.
25436
25437 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25438
25439 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
25440 libm_alias_ldouble_other.
25441 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
25442 undefine and redefine.
25443 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
25444 (exp10l): Do not define here.
25445 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
25446 (weak_alias): Undefine and redefine.
25447 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
25448 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
25449 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
25450 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
25451
25452 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
25453 [!__fma] (fma): Define using libm_alias_double.
25454 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
25455 [!__fmaf] (fmaf): Define using libm_alias_float.
25456 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
25457 (fmal): Define using libm_alias_ldouble.
25458
25459 2017-10-10 Joseph Myers <joseph@codesourcery.com>
25460
25461 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
25462 New macro.
25463 (libm_alias_double_other): Likewise.
25464 (libm_alias_double_r): Use libm_alias_double_other_r.
25465 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
25466 New macro.
25467 (libm_alias_float_other): Likewise.
25468 (libm_alias_float_r): Use libm_alias_float_other_r.
25469 * sysdeps/generic/libm-alias-float128.h
25470 (libm_alias_float128_other_r): New macro.
25471 (libm_alias_float128_other): Likewise.
25472 (libm_alias_float128_r): Use libm_alias_float128_other_r.
25473 * sysdeps/generic/libm-alias-ldouble.h
25474 (libm_alias_ldouble_other_r): New macro.
25475 (libm_alias_ldouble_other): Likewise.
25476 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25477 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
25478 (libm_alias_double_other_r): New macro.
25479 (libm_alias_double_other): Likewise.
25480 (libm_alias_double_r): Use libm_alias_double_other_r.
25481 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
25482 (libm_alias_ldouble_other_r): New macro.
25483 (libm_alias_ldouble_other): Likewise.
25484 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25485 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
25486 [!USE_AS_COMPAT]: Use libm_alias_double_other.
25487 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
25488 [!USE_AS_COMPAT]: Use libm_alias_float_other.
25489 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
25490 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
25491 * math/w_exp2f.c: Use libm_alias_float_other.
25492 * math/w_expf.c: Likewise.
25493 * math/w_log2f.c: Likewise.
25494 * math/w_logf.c: Likewise.
25495 * math/w_powf.c: Likewise.
25496 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
25497 [!__exp2f]: Use libm_alias_float_other.
25498 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
25499 [!__expf]: Use libm_alias_float_other.
25500 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
25501 [!__log2f]: Use libm_alias_float_other.
25502 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
25503 [!__logf]: Use libm_alias_float_other.
25504 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
25505 [!__powf]: Use libm_alias_float_other.
25506
25507 2017-10-10 Florian Weimer <fweimer@redhat.com>
25508
25509 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
25510 function.
25511 (_nss_files_gethostbyname3_r): Call it.
25512
25513 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25514
25515 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
25516 error. Remove default definition of declare_mgen_alias.
25517 [!declare_mgen_alias_r]: Likewise.
25518 * sysdeps/generic/math-type-macros-double.h
25519 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
25520 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
25521 (declare_mgen_alias_r): Likewise.
25522 * sysdeps/generic/math-type-macros-float128.h
25523 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25524 * sysdeps/generic/math-type-macros-ldouble.h
25525 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25526 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
25527 macro.
25528 (declare_mgen_alias_r_s): Likewise.
25529 (declare_mgen_alias_r): Likewise.
25530 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
25531 (lgamma_r): Define using libm_alias_double_r.
25532 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
25533 (lgammaf_r): Define using libm_alias_float_r.
25534 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
25535 (lgammal_r): Define using libm_alias_ldouble_r.
25536 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
25537 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25538
25539 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25540
25541 * lib/glob.c (__glob_pattern_type): Remove now-spurious
25542 extern declaration.
25543
25544 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25545
25546 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
25547
25548 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
25549
25550 [BZ #21326]
25551 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
25552 [__cplusplus >= 201103] (__USE_ISOC99): Define.
25553 * math/Makefile (test-math-cxx11): New test.
25554 * math/test-math-cxx11.cc: New file.
25555
25556 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
25557
25558 * login/openpty.c (openpty): Close slave pty file descriptor on error.
25559
25560 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
25561 call to allocate the slave pty file descriptor.
25562
25563 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25564
25565 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
25566 [!__fma] (fma): Define using libm_alias_double.
25567 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
25568 [!__fma] (fma): Define using libm_alias_double.
25569
25570 * sysdeps/ieee754/float128/float128_private.h: Include
25571 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
25572 (libm_alias_ldouble_r): Undefine and redefine.
25573 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
25574 <libm-alias-ldouble.h>.
25575 (asinhl): Define using libm_alias_ldouble.
25576 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
25577 <libm-alias-ldouble.h>.
25578 (atanl): Define using libm_alias_ldouble.
25579 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
25580 <libm-alias-ldouble.h>.
25581 (cbrtl): Define using libm_alias_ldouble.
25582 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
25583 <libm-alias-ldouble.h>.
25584 (ceill): Define using libm_alias_ldouble.
25585 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
25586 <libm-alias-ldouble.h>.
25587 (copysignl): Define using libm_alias_ldouble.
25588 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
25589 <libm-alias-ldouble.h>.
25590 (cosl): Define using libm_alias_ldouble.
25591 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
25592 <libm-alias-ldouble.h>.
25593 (erfl): Define using libm_alias_ldouble.
25594 (erfcl): Likewise.
25595 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
25596 <libm-alias-ldouble.h>.
25597 (expm1l): Define using libm_alias_ldouble.
25598 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
25599 <libm-alias-ldouble.h>.
25600 (fabsl): Define using libm_alias_ldouble.
25601 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
25602 <libm-alias-ldouble.h>.
25603 (floorl): Define using libm_alias_ldouble.
25604 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
25605 <libm-alias-ldouble.h>.
25606 (fmal): Define using libm_alias_ldouble.
25607 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
25608 <libm-alias-ldouble.h>.
25609 (frexpl): Define using libm_alias_ldouble.
25610 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
25611 libm_alias_ldouble.
25612 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
25613 <libm-alias-ldouble.h>.
25614 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
25615 libm_alias_ldouble.
25616 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
25617 <libm-alias-ldouble.h>.
25618 (getpayloadl): Define using libm_alias_ldouble.
25619 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
25620 <libm-alias-ldouble.h>.
25621 (llrintl): Define using libm_alias_ldouble.
25622 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
25623 <libm-alias-ldouble.h>.
25624 (llroundl): Define using libm_alias_ldouble.
25625 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
25626 <libm-alias-ldouble.h>.
25627 (logbl): Define using libm_alias_ldouble.
25628 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
25629 <libm-alias-ldouble.h>.
25630 (lrintl): Define using libm_alias_ldouble.
25631 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
25632 <libm-alias-ldouble.h>.
25633 (lroundl): Define using libm_alias_ldouble.
25634 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
25635 <libm-alias-ldouble.h>.
25636 (modfl): Define using libm_alias_ldouble.
25637 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
25638 <libm-alias-ldouble.h>.
25639 (nearbyintl): Define using libm_alias_ldouble.
25640 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
25641 <libm-alias-ldouble.h>.
25642 (nextafterl): Define using libm_alias_ldouble.
25643 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
25644 <libm-alias-ldouble.h>.
25645 (nextupl): Define using libm_alias_ldouble.
25646 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
25647 <libm-alias-ldouble.h>.
25648 (remquol): Define using libm_alias_ldouble.
25649 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
25650 <libm-alias-ldouble.h>.
25651 (rintl): Define using libm_alias_ldouble.
25652 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
25653 <libm-alias-ldouble.h>.
25654 (roundevenl): Define using libm_alias_ldouble.
25655 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
25656 <libm-alias-ldouble.h>.
25657 (roundl): Define using libm_alias_ldouble.
25658 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
25659 using libm_alias_ldouble.
25660 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
25661 <libm-alias-ldouble.h>.
25662 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
25663 Define using libm_alias_ldouble.
25664 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
25665 <libm-alias-ldouble.h>.
25666 (sincosl): Define using libm_alias_ldouble.
25667 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
25668 <libm-alias-ldouble.h>.
25669 (sinl): Define using libm_alias_ldouble.
25670 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
25671 <libm-alias-ldouble.h>.
25672 (tanhl): Define using libm_alias_ldouble.
25673 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
25674 <libm-alias-ldouble.h>.
25675 (tanl): Define using libm_alias_ldouble.
25676 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
25677 <libm-alias-ldouble.h>.
25678 (totalorderl): Define using libm_alias_ldouble.
25679 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
25680 <libm-alias-ldouble.h>.
25681 (totalordermagl): Define using libm_alias_ldouble.
25682 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
25683 <libm-alias-ldouble.h>.
25684 (truncl): Define using libm_alias_ldouble.
25685 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
25686 libm_alias_ldouble.
25687 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
25688 libm_alias_ldouble.
25689 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
25690 <libm-alias-ldouble.h>.
25691 (weak_alias): Do not undefine and redefine.
25692 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25693 (copysignl): Define with long_double_symbol only if [IS_IN
25694 (libc)].
25695 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
25696 <libm-alias-ldouble.h>.
25697 (weak_alias): Do not undefine and redefine.
25698 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25699 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
25700 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
25701 <libm-alias-ldouble.h>.
25702 (weak_alias): Do not undefine and redefine.
25703 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25704 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
25705 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
25706 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
25707 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
25708 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
25709 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
25710 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
25711 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
25712 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
25713 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
25714 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
25715 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
25716 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
25717 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
25718 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
25719 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
25720 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
25721 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
25722 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
25723 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
25724 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
25725 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
25726 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
25727 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
25728 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
25729
25730 2017-10-06 Carlos O'Donell <carlos@redhat.com>
25731
25732 [BZ #22111]
25733 * malloc/malloc.c (tcache_shutting_down): Use bool type.
25734 (tcache_thread_freeres): Set tcache_shutting_down before
25735 freeing the tcache.
25736 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
25737 * malloc/tst-malloc-tcache-leak.c: New file.
25738
25739 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25740
25741 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
25742 back to powerpc32 file.
25743 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25744 (memrchr): Add __memrchr_power8 to ifunc list.
25745 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
25746 extra bytes for unaligned inputs.
25747
25748 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25749
25750 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
25751 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
25752 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
25753 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
25754 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
25755
25756 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25757
25758 * sysdeps/arm/libm-test-ulps: Update.
25759
25760 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
25761 <libm-alias-ldouble.h>.
25762 (asinhl): Define using libm_alias_ldouble.
25763 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
25764 <libm-alias-ldouble.h>.
25765 (cbrtl): Define using libm_alias_ldouble.
25766 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
25767 <libm-alias-ldouble.h>.
25768 (copysignl): Define using libm_alias_ldouble.
25769 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
25770 <libm-alias-ldouble.h>.
25771 (cosl): Define using libm_alias_ldouble.
25772 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
25773 <libm-alias-ldouble.h>.
25774 (erfl): Define using libm_alias_ldouble.
25775 (erfcl): Likewise.
25776 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
25777 <libm-alias-ldouble.h>.
25778 (fmal): Define using libm_alias_ldouble.
25779 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
25780 <libm-alias-ldouble.h>.
25781 (frexpl): Define using libm_alias_ldouble.
25782 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
25783 libm_alias_ldouble.
25784 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
25785 <libm-alias-ldouble.h>.
25786 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
25787 libm_alias_ldouble.
25788 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
25789 <libm-alias-ldouble.h>.
25790 (getpayloadl): Define using libm_alias_ldouble.
25791 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
25792 <libm-alias-ldouble.h>.
25793 (llrintl): Define using libm_alias_ldouble.
25794 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
25795 <libm-alias-ldouble.h>.
25796 (llroundl): Define using libm_alias_ldouble.
25797 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
25798 <libm-alias-ldouble.h>.
25799 (lrintl): Define using libm_alias_ldouble.
25800 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
25801 <libm-alias-ldouble.h>.
25802 (lroundl): Define using libm_alias_ldouble.
25803 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
25804 <libm-alias-ldouble.h>.
25805 (modfl): Define using libm_alias_ldouble.
25806 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
25807 <libm-alias-ldouble.h>.
25808 (nextupl): Define using libm_alias_ldouble.
25809 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
25810 <libm-alias-ldouble.h>.
25811 (remquol): Define using libm_alias_ldouble.
25812 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
25813 <libm-alias-ldouble.h>.
25814 (roundevenl): Define using libm_alias_ldouble.
25815 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
25816 <libm-alias-ldouble.h>.
25817 (roundl): Define using libm_alias_ldouble.
25818 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
25819 using libm_alias_ldouble.
25820 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
25821 <libm-alias-ldouble.h>.
25822 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
25823 <libm-alias-ldouble.h>.
25824 (setpayloadsigl): Define using libm_alias_ldouble.
25825 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
25826 <libm-alias-ldouble.h>.
25827 (sincosl): Define using libm_alias_ldouble.
25828 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
25829 <libm-alias-ldouble.h>.
25830 (sinl): Define using libm_alias_ldouble.
25831 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
25832 <libm-alias-ldouble.h>.
25833 (tanhl): Define using libm_alias_ldouble.
25834 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
25835 <libm-alias-ldouble.h>.
25836 (tanl): Define using libm_alias_ldouble.
25837 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
25838 <libm-alias-ldouble.h>.
25839 (totalorderl): Define using libm_alias_ldouble.
25840 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
25841 <libm-alias-ldouble.h>.
25842 (totalordermagl): Define using libm_alias_ldouble.
25843 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
25844 libm_alias_ldouble.
25845 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
25846 libm_alias_ldouble.
25847
25848 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
25849
25850 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
25851 memmove_falkor.
25852 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25853 (__libc_ifunc_impl_list): Likewise.
25854 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
25855 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
25856
25857 * benchtests/bench-memmove-walk.c: New file.
25858 * benchtests/Makefile (string-benchset): Add it.
25859
25860 * benchtests/bench-memset-walk.c: New file.
25861 * benchtests/Makefile (string-benchset): Add it.
25862
25863 * benchtests/bench-memcpy-walk.c: New file.
25864 * benchtests/Makefile (string-benchset): Add it.
25865
25866 2017-10-05 Florian Weimer <fweimer@redhat.com>
25867
25868 nscd: Eliminate compilation time dependency in the build output.
25869 * nscd/nscd_stat.c (STATDATA_VERSION)
25870 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
25871 (STATDATA_VERSION_FULL): New macro definitions.
25872 (compilation): Remove.
25873 (struct statdata): Adjust version member.
25874 (send_stats): Set version from STATDATA_VERSION_FULL.
25875 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25876
25877 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25878
25879 * configure.ac (--enable-add-ons): Remove option.
25880 (machine): Do not mention add-ons in comment.
25881 (LIBC_PRECONFIGURE): Likewise.
25882 (add_ons): Remove variable and sanity checks and logic to locate
25883 add-ons.
25884 (add_ons_automatic): Remove variable.
25885 (configured_add_ons): Likewise.
25886 (add_ons_sfx): Likewise.
25887 (add_ons_pfx): Likewise.
25888 (add_on_subdirs): Likewise.
25889 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25890 consideration of add-ons in Implies handling.
25891 (sysdeps_add_ons): Likewise.
25892 * configure: Regenerated.
25893 * libidn/configure.ac: Remove.
25894 * libidn/configure: Likewise.
25895 * sysdeps/unix/inet/configure.ac: New file.
25896 * sysdeps/unix/inet/configure: New generated file.
25897 * sysdeps/unix/inet/Subdirs: Add libidn.
25898 * Makeconfig (sysdeps-srcdirs): Remove variable.
25899 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
25900 ($(common-objpfx)config.status): Do not depend on add-on files.
25901 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
25902 comment.
25903 (all-subdirs): Do not include $(add-on-subdirs).
25904 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
25905 * config.make.in (add-ons): Remove variable.
25906 (add-on-subdirs): Likewise.
25907 (sysdeps-add-ons): Likewise.
25908 * manual/Makefile (add-chapters): Remove.
25909 ($(objpfx)texis): Do not depend on $(add-chapters).
25910 (nonexamples): Do not handle $(add-chapters).
25911 (examples): Do not handle $(add-ons).
25912 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
25913 libc-texinfo.sh.
25914 * manual/install.texi (Installation): Do not mention add-ons.
25915 (--enable-add-ons): Do not document configure option.
25916 * INSTALL: Regenerated.
25917 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
25918 * manual/maint.texi (Hierarchy Conventions): Do not mention
25919 add-ons.
25920 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
25921 --enable-add-ons.
25922 * scripts/gen-sorted.awk: Do not handle Subdirs files from
25923 add-ons.
25924 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25925 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
25926
25927 2017-10-05 Andreas Schwab <schwab@suse.de>
25928
25929 [BZ #15142]
25930 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
25931 (_IO_flush_all_lockp): Always lock list_all_lock.
25932 (_IO_flush_all_linebuffered): Likewise.
25933 (_IO_unbuffer_all): Likewise.
25934
25935 2017-10-05 Florian Weimer <fweimer@redhat.com>
25936
25937 [BZ #15436]
25938 Do not flush stdio streams on abort.
25939 * stdlib/abort.c (fflush): Remove macro definition.
25940 (abort): Remove stages related to stdio flushing.
25941
25942 2017-10-05 Florian Weimer <fweimer@redhat.com>
25943
25944 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
25945
25946 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
25947
25948 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
25949
25950 2017-10-05 Florian Weimer <fweimer@redhat.com>
25951
25952 * support/support_format_hostent.c (support_format_hostent): Add
25953 more error information for NETDB_INTERNAL.
25954
25955 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25956
25957 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25958 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25959 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25960 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25961 AC_DEFINE if multi-arch is enabled.
25962 * sysdeps/i386/configure: Regenerated.
25963
25964 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25965
25966 * Makeconfig (+link-static-before-libc): Use
25967 $(DEFAULT-LDFLAGS-$(@F)).
25968 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25969 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25970 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25971
25972 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25973
25974 * elf/Makefile (tests): Add tst-main1.
25975 (modules-names): Add tst-main1mod.
25976 ($(objpfx)tst-main1): New.
25977 (CRT-tst-main1): Likewise.
25978 (LDFLAGS-tst-main1): Likewise.
25979 (LDLIBS-tst-main1): Likewise.
25980 (tst-main1mod.so-no-z-defs): Likewise.
25981 * elf/tst-main1.c: New file.
25982 * elf/tst-main1mod.c: Likewise.
25983
25984 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25985
25986 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25987
25988 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25989
25990 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25991 (fma): Define using libm_alias_double.
25992 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25993 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25994 <math_ldbl_opt.h>.
25995 (fmal): Do not define as compat symbol here.
25996 * sysdeps/alpha/fpu/s_fma.c: New file.
25997
25998 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25999
26000 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
26001
26002 2017-10-04 Joseph Myers <joseph@codesourcery.com>
26003
26004 [BZ #22229]
26005 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
26006 <math_ldbl_opt.h>
26007 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
26008 and libc.
26009 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
26010 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26011 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
26012 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
26013 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
26014 Include <math_ldbl_opt.h>
26015 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
26016 and libc.
26017 (compat_symbol): Undefine and redefine.
26018 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
26019 <math_ldbl_opt.h>
26020 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26021 (compat_symbol): Undefine and redefine.
26022 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
26023 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
26024 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
26025 GLIBC_2_1 for libm.
26026 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
26027 GLIBC_2.0 copysignl symbol.
26028 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
26029 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
26030
26031 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
26032
26033 2017-10-04 Florian Weimer <fweimer@redhat.com>
26034
26035 * scripts/check-local-headers.sh: Ignore nspr4 header file
26036 directory in addition to nspr.
26037
26038 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
26039
26040 [BZ #17956]
26041 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
26042 * configure: Regenerate.
26043 * crypt/Makefile (nss-cpp-flags): New variable.
26044 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
26045 (CPPFLAGS-md5-crypt.c): Use it.
26046 * scripts/check-local-headers.sh: Ignore nspr header file
26047 directory.
26048
26049 2017-10-04 Andreas Schwab <schwab@suse.de>
26050
26051 * nis/Makefile (services): Remove compat.
26052 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
26053 ($(objpfx)libnss_compat.so): Remove rule.
26054 * nis/Versions (libnss_compat): Remove.
26055 * nss/Makefile (services): Add compat.
26056 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
26057 * nss/Versions (libnss_compat): Define.
26058 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
26059 Don't include <rpc/types.h>. Replace bool_t by bool.
26060 * nss/nss_compat/compat-initgroups.c: Likewise.
26061 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
26062 instead of <rpcsrv/ypclnt.h>.
26063 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
26064 yp_get_default_domain.
26065 * nss/nss_compat/compat-pwd.c: Likewise.
26066 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
26067 yp_get_default_domain.
26068 * nss/nss_compat/nisdomain.c: New file.
26069 * nss/nss_compat/nisdomain.h: Likewise.
26070
26071 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26072
26073 [BZ #22244]
26074 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
26075 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
26076
26077 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26078
26079 [BZ #22243]
26080 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
26081 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
26082
26083 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26084
26085 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
26086 "movl main@GOTOFF(%ebx), %eax".
26087
26088 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26089
26090 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
26091 allow undefined _DYNAMIC in PIE libc.a.
26092 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26093 Likewse.
26094
26095 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26096
26097 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
26098 check _DYNAMIC.
26099
26100 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26101
26102 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
26103 check _DYNAMIC.
26104
26105 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26106
26107 * math/test-math-iscanonical.cc (error): Replace bool with int.
26108
26109 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26110
26111 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
26112 (modf): Define using libm_alias_double, only if [!__modf].
26113 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
26114 <libm-alias-double.h>.
26115 (modf): Define using libm_alias_double, only if [!__modf].
26116 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
26117 compat symbol here.
26118 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
26119 (weak_alias): Do not undefine and redefine.
26120 (strong_alias): Likewise.
26121 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
26122 (weak_alias): Likewise.
26123 (strong_alias): Likewise.
26124
26125 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
26126 (logb): Define using libm_alias_double, only if [!__logb].
26127 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
26128 <libm-alias-double.h>.
26129 (logb): Define using libm_alias_double, only if [!__logb].
26130 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
26131 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
26132 (weak_alias): Do not undefine and redefine.
26133 (strong_alias): Likewise.
26134 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
26135 (weak_alias): Likewise.
26136 (strong_alias): Likewise.
26137
26138 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26139
26140 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
26141 Check SHARED instead PIC.
26142
26143 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26144
26145 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
26146 [!__fmaf] (fmaf): Define using libm_alias_float.
26147
26148 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
26149 (frexp): Define using libm_alias_double.
26150 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
26151 <libm-alias-double.h>.
26152 (frexp): Define using libm_alias_double.
26153 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
26154 compat symbol here.
26155
26156 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26157
26158 [BZ #22235]
26159 * math/math.h: Trivial fix for unbalanced parentheses in comment.
26160 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
26161 (CFLAGS-test-math-iscanonical.cc): New variable.
26162 * math/test-math-iscanonical.cc: New file.
26163 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
26164 Provide a C++ implementation based on function overloading,
26165 rather than using __MATH_TG, which uses C-only builtins.
26166 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
26167 Likewise.
26168 * sysdeps/powerpc/powerpc64le/Makefile
26169 (CFLAGS-test-math-iscanonical.cc): New variable.
26170
26171 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26172
26173 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
26174 (ceil): Define using libm_alias_double.
26175 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
26176 (floor): Define using libm_alias_double.
26177 * sysdeps/ieee754/dbl-64/s_llround.c: Include
26178 <libm-alias-double.h>.
26179 (llround): Define using libm_alias_double.
26180 * sysdeps/ieee754/dbl-64/s_lround.c: Include
26181 <libm-alias-double.h>.
26182 (lround): Define using libm_alias_double.
26183 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
26184 <libm-alias-double.h>.
26185 (nearbyint): Define using libm_alias_double.
26186 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
26187 <libm-alias-double.h>.
26188 (remquo): Define using libm_alias_double.
26189 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
26190 (rint): Define using libm_alias_double.
26191 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
26192 (round): Define using libm_alias_double.
26193 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
26194 (trunc): Define using libm_alias_double.
26195 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
26196 <libm-alias-double.h>.
26197 (ceil): Define using libm_alias_double.
26198 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
26199 <libm-alias-double.h>.
26200 (floor): Define using libm_alias_double.
26201 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
26202 <libm-alias-double.h>.
26203 (llround): Define using libm_alias_double.
26204 [_LP64] (lround): Likewise.
26205 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
26206 <libm-alias-double.h>.
26207 [!_LP64] (lround): Define using libm_alias_double.
26208 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
26209 <libm-alias-double.h>.
26210 (nearbyint): Define using libm_alias_double.
26211 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
26212 <libm-alias-double.h>.
26213 (remquo): Define using libm_alias_double.
26214 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
26215 <libm-alias-double.h>.
26216 (rint): Define using libm_alias_double.
26217 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
26218 <libm-alias-double.h>.
26219 (round): Define using libm_alias_double.
26220 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
26221 <libm-alias-double.h>.
26222 (trunc): Define using libm_alias_double.
26223 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
26224 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
26225 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
26226 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
26227 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
26228 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
26229 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
26230 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
26231 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
26232
26233 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26234
26235 * math/w_remainder.c: New file.
26236 * math/w_remainderf.c: New file.
26237 * math/w_remainderl.c: New file.
26238
26239 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26240
26241 * elf/rtld.c (BOOTSTRAP_MAP): New.
26242 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
26243 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26244 Likewise.
26245 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26246 Likewise.
26247 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26248 Likewise.
26249
26250 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
26251
26252 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
26253 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
26254 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
26255 rtld_hidden_data_ver): Define to empty.
26256 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
26257 __assert_perror_fail): Likewise.
26258 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26259 (__rewinddir): Likewise.
26260 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26261 (__profile_frequency): Likewise.
26262 * include/setjmp.h (__sigsetjmp): Likewise.
26263 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
26264 __libc_sigaction): Likewise.
26265 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
26266 not set hidden attribute.
26267 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
26268 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
26269 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
26270 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
26271 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
26272 __fxstatat64): Likewise.
26273 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26274 (__uname): Likewise.
26275 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26276 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
26277 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
26278 (NO_RTLD_HIDDEN): Set.
26279 * sysdeps/mach/hurd/configure: Refresh.
26280 * config.h.in: Refresh.
26281
26282 2017-10-02 Joseph Myers <joseph@codesourcery.com>
26283
26284 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
26285 (atan): Define using libm_alias_double.
26286 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
26287 (tan): Define using libm_alias_double.
26288 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
26289 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
26290
26291 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
26292 define as weak alias of __atan. Do not define any aliases if
26293 [__atan].
26294 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
26295 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
26296 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
26297 as weak alias of __tan. Do not define any aliases if [__tan].
26298 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
26299 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
26300 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
26301 __atan.
26302 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
26303 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
26304 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
26305 and define as weak alias of __atan.
26306 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
26307 __atan.
26308 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
26309 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
26310 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
26311 define as weak alias of __tan.
26312
26313 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26314
26315 * math/w_lgamma.c: New file.
26316 * math/w_lgammaf.c: New file.
26317 * math/w_lgammal.c: New file.
26318
26319 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26320
26321 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
26322 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
26323 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
26324 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
26325 * sysdeps/ieee754/flt-32/w_logf.c: New file.
26326 * sysdeps/ieee754/flt-32/w_powf.c: New file.
26327 * sysdeps/i386/fpu/w_log2f.c: New file.
26328 * sysdeps/i386/fpu/w_logf.c: New file.
26329 * sysdeps/i386/fpu/w_powf.c: New file.
26330 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
26331 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
26332 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
26333
26334 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26335 H.J. Lu <hongjiu.lu@intel.com>
26336
26337 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
26338 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
26339 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
26340 * sysdeps/ieee754/flt-32/w_expf.c: New file.
26341 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
26342 the new expf code.
26343 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
26344 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
26345 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
26346 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
26347 * sysdeps/i386/fpu/w_exp2f.c: New file.
26348 * sysdeps/i386/fpu/w_expf.c: New file.
26349 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
26350 * sysdeps/x86_64/fpu/w_expf.c: New file.
26351
26352 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26353
26354 * math/Versions (logf): New libm symbol at GLIBC_2.27.
26355 (log2f): Likewise.
26356 (powf): Likewise.
26357 * math/w_log2f.c: New file.
26358 * math/w_logf.c: New file.
26359 * math/w_powf.c: New file.
26360 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
26361 * math/w_logf_compat.c (__logf_compat): Likewise.
26362 * math/w_powf_compat.c (__powf_compat): Likewise.
26363 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
26364 * sysdeps/ia64/fpu/e_logf.S: Likewise.
26365 * sysdeps/ia64/fpu/e_powf.S: Likewise.
26366 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26367 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26368 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26369 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26370 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26371 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26372 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26373 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26374 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26375 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26376 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26377 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26378 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26379 Likewise.
26380 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26381 Likewise.
26382 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26383 Likewise.
26384 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26385 Likewise.
26386 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26387 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26388 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26389 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26390 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26391 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26392 Likewise.
26393 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26394 Likewise.
26395 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26396 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26397 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26398
26399 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26400
26401 * sysdeps/powerpc/powerpc64/multiarch/Makefile
26402 (sysdep_routines): Add memrchr_power8.
26403 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26404 (memrchr): Add __memrchr_power8 to list of memrchr functions.
26405 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
26406 New file.
26407 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26408 (memrchr): Add __memrchr_power8 to ifunc list.
26409 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
26410
26411 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26412
26413 [BZ #18822]
26414 * sysdeps/unix/sysv/linux/posix_fadvise64.c
26415 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
26416 libc_hidden_def.
26417 * sysdeps/unix/sysv/linux/posix_fallocate64.c
26418 (__posix_fallocate64_l64): Likewise.
26419
26420 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26421
26422 [BZ #18822]
26423 * sysdeps/unix/sysv/linux/sched_setaffinity.c
26424 (__sched_setaffinity_new): Add libc_hidden_proto and
26425 libc_hidden_def.
26426
26427 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26428
26429 [BZ #18822]
26430 * include/glob.h (__glob64): Add libc_hidden_proto.
26431 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
26432 libc_hidden_def.
26433
26434 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26435
26436 [BZ #18822]
26437 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
26438 attribute_hidden.
26439
26440 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26441
26442 [BZ #18822]
26443 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
26444
26445 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26446
26447 [BZ #18822]
26448 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
26449 libc_hidden_def.
26450
26451 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26452
26453 [BZ #18822]
26454 * csu/version.c (__libc_print_version): Add attribute_hidden.
26455
26456 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26457
26458 [BZ #18822]
26459 * include/libc-internal.h (__init_misc): Add attribute_hidden.
26460
26461 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26462
26463 [BZ #18822]
26464 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
26465
26466 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26467
26468 [BZ #18822]
26469 * nscd/nscd_helper.c (__nis_hash): New prototype.
26470
26471 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26472
26473 [BZ #18822]
26474 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
26475 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
26476 libc_hidden_def.
26477 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
26478 * termios/tcgetattr.c (__tcgetattr): Likewise.
26479
26480 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26481
26482 [BZ #18822]
26483 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
26484 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
26485 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
26486 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
26487 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
26488
26489 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26490
26491 [BZ #18822]
26492 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
26493
26494 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26495
26496 [BZ #18822]
26497 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
26498 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
26499
26500 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26501
26502 [BZ #18822]
26503 * intl/hash-string.h (__hash_string): Add attribute_hidden.
26504
26505 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26506
26507 [BZ #18822]
26508 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
26509 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
26510
26511 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26512
26513 [BZ #18822]
26514 * include/ifreq.h: New file.
26515 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
26516 (__ifreq): Likewise.
26517 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
26518 (__ifreq): Likewise.
26519
26520 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26521
26522 [BZ #18822]
26523 * include/idna.h: New file.
26524 * inet/getnameinfo.c: Include <idna.h> instead of
26525 <libidn/idna.h>.
26526 (__idna_to_unicode_lzlz): Removed.
26527 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
26528 <libidn/idna.h>.
26529 (__idna_to_ascii_lz): Removed.
26530 (__idna_to_unicode_lzlz): Likewise.
26531
26532 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26533
26534 [BZ #18822]
26535 * include/plural-exp.h: New file.
26536 * intl/plural-exp.c: Include <plural-exp.h> instead of
26537 "plural-exp.h".
26538
26539 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26540
26541 [BZ #18822]
26542 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
26543 "getsourcefilter.h".
26544 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
26545 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
26546 "getsourcefilter.h".
26547 (__get_sol): Removed.
26548
26549 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26550
26551 [BZ #18822]
26552 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
26553 to ...
26554 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
26555
26556 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26557
26558 [BZ #18822]
26559 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
26560 attribute_hidden.
26561
26562 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26563
26564 [BZ #18822]
26565 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
26566
26567 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26568
26569 [BZ #18822]
26570 * include/search.h (__tdestroy): Add libc_hidden_proto.
26571 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
26572
26573 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26574
26575 [BZ #18822]
26576 * include/assert.h (__assert_fail_base): Add attribute_hidden.
26577
26578 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26579
26580 [BZ #18822]
26581 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
26582 attribute_hidden.
26583
26584 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26585
26586 [BZ #18822]
26587 * include/signal.h (__kill): Add libc_hidden_proto.
26588 (__sigblock): Likewise.
26589 (__sigprocmask): Likewise.
26590 (__sigaltstack): Likewise.
26591 * signal/kill.c (__kill): Add libc_hidden_def.
26592 * signal/sigblock.c (__sigblock): Likewise.
26593 * signal/sigprocmask.c (__sigprocmask): Likewise.
26594 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
26595 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
26596 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
26597 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
26598 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
26599 Likewise.
26600 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
26601 Likewise.
26602 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
26603 (__sigprocmask): Likewise.
26604 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
26605 Likewise.
26606 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
26607 (__sigprocmask): Likewise.
26608 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
26609 Likewise.
26610
26611 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26612
26613 [BZ #18822]
26614 * include/string.h (__strsep): Add libc_hidden_proto.
26615 * string/strsep.c (__strsep): Add libc_hidden_def.
26616
26617 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26618
26619 [BZ #18822]
26620 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
26621 attribute_hidden.
26622 (__spawni): Likewise.
26623
26624 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26625
26626 [BZ #18822]
26627 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
26628 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
26629 libc_hidden_def.
26630
26631 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26632
26633 [BZ #18822]
26634 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
26635
26636 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26637
26638 [BZ #18822]
26639 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
26640 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
26641 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
26642 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
26643 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
26644 Likewise.
26645 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
26646 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
26647
26648 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26649
26650 [BZ #18822]
26651 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
26652 (__dcigettext): Likewise.
26653
26654 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26655
26656 [BZ #18822]
26657 * include/sys/sysinfo.h (__get_nprocs_conf): Add
26658 libc_hidden_proto.
26659 (__get_nprocs): Likewise.
26660 (__get_phys_pages): Likewise.
26661 (__get_avphys_pages): Likewise.
26662 (__get_child_max): Add attribute_hidden.
26663 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
26664 (__get_nprocs): Likewise.
26665 (__get_phys_pages): Likewise.
26666 (__get_avphys_pages): Likewise.
26667 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
26668 libc_hidden_def.
26669 (__get_nprocs): Likewise.
26670 (__get_phys_pages): Likewise.
26671 (__get_avphys_pages): Likewise.
26672 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
26673 libc_hidden_def.
26674 (__get_nprocs_conf): Likewise.
26675 (__get_phys_pages): Likewise.
26676 (__get_avphys_pages): Likewise.
26677
26678 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26679
26680 [BZ #18822]
26681 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
26682 attribute_hidden.
26683 (__netlink_close): Likewise.
26684 (__netlink_free_handle): Likewise.
26685 (__netlink_request): Likewise.
26686
26687 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26688
26689 [BZ #18822]
26690 * include/rpc/rpc.h (__rpc_thread_variables): Add
26691 attribute_hidden.
26692 (__rpc_thread_svc_cleanup): Likewise.
26693 (__rpc_thread_clnt_cleanup): Likewise.
26694 (__rpc_thread_key_cleanup): Likewise.
26695
26696 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26697
26698 [BZ #18822]
26699 * include/sys/uio.h (__readv): Add libc_hidden_proto.
26700 (__writev): Likewise.
26701 * misc/readv.c (__readv): Add libc_hidden_def.
26702 * misc/writev.c (__writev): Likewise.
26703 * sysdeps/posix/readv.c (__readv): Likewise.
26704 * sysdeps/posix/writev.c (__writev): Likewise.
26705 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
26706 (__readv): Likewise.
26707 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
26708 (__writev): Likewise.
26709
26710 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26711
26712 [BZ #18822]
26713 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
26714 (__regcomp): Add libc_hidden_proto.
26715 (__regexec): Likewise.
26716 (__regfree): Likewise.
26717 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
26718 (__regfree): Likewise.
26719 * posix/regexec.c (__regexec): Likewise.
26720
26721 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26722
26723 [BZ #18822]
26724 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
26725 (__getutent): Likewise.
26726 (__getutid): Likewise.
26727 (__getutline): Likewise.
26728 (__pututline): Likewise.
26729 (__getutent_r): Likewise.
26730 (__getutid_r): Likewise.
26731 (__getutline_r): Likewise.
26732 (__utmpname): Add attribute_hidden.
26733 (__setutent): Likewise.
26734 (__endutent): Likewise.
26735 * login/getutent.c (__getutent): Add libc_hidden_def.
26736 * login/getutent_r.c (__getutent_r): Likewise.
26737 (__pututline): Likewise.
26738 * login/getutid.c (__getutid): Likewise.
26739 * login/getutid_r.c (__getutid_r): Likewise.
26740 * login/getutline.c (__getutline): Likewise.
26741 * login/getutline_r.c (__getutline_r): Likewise.
26742 * login/updwtmp.c (__updwtmp): Likewise.
26743
26744 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26745
26746 [BZ #18822]
26747 * include/dirent.h (__opendir): Always add attribute_hidden.
26748 (__fdopendir): Likewise.
26749 (__closedir): Likewise.
26750 (__readdir): Likewise.
26751 (__readdir64): Add libc_hidden_proto.
26752 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
26753 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
26754 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
26755 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
26756 New alias.
26757
26758 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26759
26760 [BZ #18822]
26761 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
26762 * include/netdb.h (__gethostbyaddr_r): Likewise.
26763 (__gethostbyname_r): Likewise.
26764 (__gethostbyname2_r): Likewise.
26765 (__getnetbyaddr_r): Likewise.
26766 (__getnetbyname_r): Likewise.
26767 (__getservbyname_r): Likewise.
26768 (__getservbyport_r): Likewise.
26769 (__getprotobyname_r): Likewise.
26770 (__getprotobynumber_r): Likewise.
26771 (__getnetgrent_r): Likewise.
26772 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
26773 (__getrpcbynumber_r): Likewise.
26774 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
26775
26776 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26777
26778 [BZ #18822]
26779 * include/stdio.h (__fcloseall): Add attribute_hidden.
26780 (__getline): Likewise.
26781 (__path_search): Likewise.
26782 (__gen_tempname): Likewise.
26783 (__libc_message): Likewise.
26784 (__flockfile): Likewise.
26785 (__funlockfile): Likewise.
26786 (__fxprintf): Likewise.
26787 (__fxprintf_nocancel): Likewise.
26788
26789 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26790
26791 [BZ #18822]
26792 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
26793 (__sgetsgent_r): Likewise.
26794
26795 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26796
26797 [BZ #18822]
26798 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
26799 (__statfs64): Likewise.
26800 (__fstatfs64): Likewise.
26801 * include/sys/statvfs.h (__statvfs64): Likewise.
26802 (__fstatvfs64): Likewise.
26803 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
26804 (__statfs_filesize_max): Likewise.
26805 (__statfs_symlinks): Likewise.
26806 (__statfs_chown_restricted): Likewise.
26807
26808 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26809
26810 [BZ #18822]
26811 * include/time.h (__tzstring): Add attribute_hidden.
26812 (__tzfile_read): Likewise.
26813 (__tzfile_compute): Likewise.
26814 (__tzfile_default): Likewise.
26815 (__tzset_parse_tz): Likewise.
26816 (__offtime): Likewise.
26817 (__asctime_r): Likewise.
26818 (__tzset): Likewise.
26819 (__tz_convert): Likewise.
26820 (__getdate_r): Likewise.
26821 (__getclktck): Likewise.
26822
26823 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26824
26825 [BZ #18822]
26826 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
26827 (__nscd_unmap): Likewise.
26828 (__nscd_cache_search): Likewise.
26829 (__nscd_get_nl_timestamp): Likewise.
26830 (__nscd_getpwnam_r): Likewise.
26831 (__nscd_getpwuid_r): Likewise.
26832 (__nscd_getgrnam_r): Likewise.
26833 (__nscd_getgrgid_r): Likewise.
26834 (__nscd_gethostbyname_r): Likewise.
26835 (__nscd_gethostbyname2_r): Likewise.
26836 (__nscd_gethostbyaddr_r): Likewise.
26837 (__nscd_getai): Likewise.
26838 (__nscd_getgrouplist): Likewise.
26839 (__nscd_getservbyname_r): Likewise.
26840 (__nscd_getservbyport_r): Likewise.
26841 (__nscd_innetgr): Likewise.
26842 (__nscd_setnetgrent): Likewise.
26843
26844 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26845
26846 [BZ #18822]
26847 * include/gmp.h: Declare internal functions only if _ISOMAC is
26848 undefined.
26849 (__mpn_extract_double): Add attribute_hidden.
26850 (__mpn_extract_long_double): Likewise.
26851 (__mpn_extract_float128): Likewise.
26852 (__mpn_construct_float): Likewise.
26853 (__mpn_construct_double): Likewise.
26854 (__mpn_construct_long_double): Likewise.
26855 (__mpn_construct_float128): Likewise.
26856 (mpn_add_1): Likewise.
26857 (mpn_addmul_1): Likewise.
26858 (mpn_add_n): Likewise.
26859 (mpn_cmp): Likewise.
26860 (mpn_divrem): Likewise.
26861 (mpn_lshift): Likewise.
26862 (mpn_mul): Likewise.
26863 (mpn_mul_1): Likewise.
26864 (mpn_rshift): Likewise.
26865 (mpn_sub_1): Likewise.
26866 (mpn_submul_1): Likewise.
26867 (mpn_sub_n): Likewise.
26868
26869 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26870
26871 [BZ #18822]
26872 * include/wchar.h (__wcsnlen): Add attribute_hidden.
26873 (__wcscat): Likewise.
26874 (__btowc): Likewise.
26875 (__wcrtomb): Likewise.
26876 (__mbsrtowcs): Likewise.
26877 (__wcsrtombs): Likewise.
26878 (__mbsnrtowcs): Likewise.
26879 (__wcsnrtombs): Likewise.
26880 (__wcsncpy): Likewise.
26881 (__wcpncpy): Likewise.
26882 (__wmemcpy): Likewise.
26883 (__wmempcpy): Likewise.
26884 (__wmemmove): Likewise.
26885 (__wcschrnul): Likewise.
26886 (__vfwscanf): Likewise.
26887 (__vswprintf): Likewise.
26888 (__fwprintf): Likewise.
26889 (__vfwprintf): Likewise.
26890
26891 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26892
26893 [BZ #18822]
26894 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26895 (__getgrgid_r): Likewise.
26896 (__getgrnam_r): Likewise.
26897 * include/pwd.h (__getpwuid_r): Likewise.
26898 (__getpwnam_r): Likewise.
26899 (__fgetpwent_r): Likewise.
26900 * include/shadow.h (__getspnam_r): Likewise.
26901 (__sgetspent_r): Likewise.
26902 (__fgetspent_r): Likewise.
26903
26904 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26905
26906 [BZ #18822]
26907 * include/unistd.h (__access): Add attribute_hidden.
26908 (__lseek64): Likewise.
26909 (__libc_pread64): Likewise.
26910 (__pipe2): Likewise.
26911 (__sleep): Likewise.
26912 (__chdir): Likewise.
26913 (__fchdir): Likewise.
26914 (__getcwd): Likewise.
26915 (__rmdir): Likewise.
26916 (__execvpe): Likewise.
26917 (__execve): Likewise.
26918 (__setsid): Likewise.
26919 (__getuid): Likewise.
26920 (__geteuid): Likewise.
26921 (__getgid): Likewise.
26922 (__getegid): Likewise.
26923 (__getgroups): Likewise.
26924 (__group_member): Likewise.
26925 (__ttyname_r): Likewise.
26926 (__isatty): Likewise.
26927 (__readlink): Likewise.
26928 (__unlink): Likewise.
26929 (__gethostname): Likewise.
26930 (__profil): Likewise.
26931 (__getdtablesize): Likewise.
26932 (__brk): Likewise.
26933 (__ftruncate): Likewise.
26934 (__ftruncate64): Likewise.
26935
26936 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26937
26938 [BZ #18822]
26939 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
26940 * argp/argp-fs-xinl.c: Likewise.
26941 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
26942 * argp/argp-parse.c: Include <argp.h>.
26943 * argp/argp-xinl.c: Likewise.
26944 * include/argp-fmtstream.h: New file.
26945 * include/argp.h (__argp_error): Add attribute_hidden.
26946 (__argp_failure): Likewise.
26947 (__argp_input): Likewise.
26948 (__argp_state_help): Likewise.
26949
26950 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26951
26952 [BZ #18822]
26953 * include/wchar.h (____wcstof_l_internal): New prototype.
26954 (____wcstod_l_internal): Likewise.
26955 (____wcstold_l_internal): Likewise.
26956 (____wcstol_l_internal): Likewise.
26957 (____wcstoul_l_internal): Likewise.
26958 (____wcstoll_l_internal): Likewise.
26959 (____wcstoull_l_internal): Likewise.
26960 (____wcstof128_l_internal): Likewise.
26961 * sysdeps/ieee754/float128/wcstof128.c
26962 (____wcstof128_l_internal): Removed.
26963 * sysdeps/ieee754/float128/wcstof128_l.c
26964 (____wcstof128_l_internal): Likewise.
26965 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26966 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26967 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26968 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26969 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26970 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26971 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26972 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26973 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26974 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26975
26976 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26977
26978 [BZ #18822]
26979 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26980 instead of <sys/statvfs.h>.
26981 (__internal_statvfs): Removed.
26982 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26983 instead of <sys/statvfs.h>.
26984 (__internal_statvfs64): Removed.
26985 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26986 "internal_statvfs.h" instead of <sys/statvfs.h>.
26987 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26988 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26989 instead of <sys/statvfs.h>.
26990 (__internal_statvfs): Removed.
26991 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26992 instead of <sys/statvfs.h>.
26993 (__internal_statvfs64): Removed.
26994
26995 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26996
26997 [BZ #18822]
26998 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26999 (__gconv_close): Likewise.
27000 (__gconv): Likewise.
27001 (__gconv_find_transform): Likewise.
27002 (__gconv_lookup_cache): Likewise.
27003 (__gconv_compare_alias_cache): Likewise.
27004 (__gconv_load_cache): Likewise.
27005 (__gconv_get_path): Likewise.
27006 (__gconv_close_transform): Likewise.
27007 (__gconv_release_cache): Likewise.
27008 (__gconv_find_shlib): Likewise.
27009 (__gconv_release_shlib): Likewise.
27010 (__gconv_get_builtin_trans): Likewise.
27011 (__gconv_compare_alias): Likewise.
27012 * include/dlfcn.h (_dlerror_run): Likewise.
27013 * include/stdio.h (__fortify_fail_abort): Likewise.
27014 * include/time.h (__tz_compute): Likewise.
27015 (__strptime_internal): Likewise.
27016 * intl/gettextP.h (_nl_find_domain): Likewise.
27017 (_nl_load_domain): Likewise.
27018 (_nl_find_msg): Likewise.
27019 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
27020 (EXTRACT_PLURAL_EXPRESSION): Likewise.
27021 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
27022 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
27023 (__gai_find_request): Likewise.
27024 (__gai_remove_request): Likewise.
27025 (__gai_notify): Likewise.
27026 (__gai_notify_only): Likewise.
27027 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
27028 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
27029 (_dl_non_dynamic_init): Likewise.
27030 (_dl_aux_init): Likewise.
27031 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
27032 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
27033 Likewise.
27034 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
27035 (__wcsmbs_clone_conv): Likewise.
27036 (__wcsmbs_named_conv): Likewise.
27037
27038 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27039
27040 [BZ #18822]
27041 * include/stdlib.h (__random): Add attribute_hidden.
27042 (__random_r): Likewise.
27043 (__srandom_r): Likewise.
27044 (__initstate_r): Likewise.
27045 (__setstate_r): Likewise.
27046 (__erand48_r): Likewise.
27047 (__nrand48_r): Likewise.
27048 (__jrand48_r): Likewise.
27049 (__srand48_r): Likewise.
27050 (__seed48_r): Likewise.
27051 (__lcong48_r): Likewise.
27052 (__drand48_iterate): Likewise.
27053 (__setenv): Likewise.
27054 (__unsetenv): Likewise.
27055 (__clearenv): Likewise.
27056 (__ptsname_r): Likewise.
27057 (__posix_openpt): Likewise.
27058 (__add_to_environ): Likewise.
27059 (__realpath): Add libc_hidden_proto.
27060 (__ecvt_r): Likewise.
27061 (__fcvt_r): Likewise.
27062 (__qecvt_r): Likewise.
27063 (__qfcvt_r): Likewise.
27064 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
27065 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
27066
27067 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27068
27069 [BZ #18822]
27070 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
27071 * include/time.h (__mktime_internal): Likewise.
27072 * libio/iolibio.h (__fopen_internal): Likewise.
27073
27074 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
27075
27076 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
27077 pointer in frame.
27078 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
27079 Correct offset used to restore PIC register.
27080
27081 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
27082
27083 [BZ libc/22165]
27084 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
27085 code to load address of __getcontext_ret when generating PIC code.
27086
27087 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
27088
27089 * elf/Makefile (tests-static-internal): Add
27090 tst-tls1-static-non-pie.
27091 (LDFLAGS-tst-tls1-static-non-pie): New.
27092 * elf/tst-tls1-static-non-pie.c: New file.
27093
27094 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27095
27096 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
27097 (asinh): Define using libm_alias_double.
27098 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
27099 (cbrt): Define using libm_alias_double.
27100 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
27101 <libm-alias-double.h>.
27102 (copysign): Define using libm_alias_double.
27103 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
27104 (erf): Define using libm_alias_double.
27105 (erfc): Likewise.
27106 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
27107 (expm1): Define using libm_alias_double.
27108 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
27109 (fabs): Define using libm_alias_double.
27110 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
27111 libm_alias_double.
27112 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
27113 <libm-alias-double.h>.
27114 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
27115 libm_alias_double.
27116 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
27117 <libm-alias-double.h>.
27118 (getpayload): Define using libm_alias_double.
27119 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
27120 <libm-alias-double.h>.
27121 (llrint): Define using libm_alias_double.
27122 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
27123 (lrint): Define using libm_alias_double.
27124 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
27125 <libm-alias-double.h>.
27126 (nextup): Define using libm_alias_double.
27127 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
27128 <libm-alias-double.h>.
27129 (roundeven): Define using libm_alias_double.
27130 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
27131 libm_alias_double.
27132 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
27133 <libm-alias-double.h>.
27134 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
27135 using libm_alias_double.
27136 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
27137 (cos): Define using libm_alias_double.
27138 (sin): Likewise.
27139 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
27140 <libm-alias-double.h>.
27141 (sincos): Define using libm_alias_double.
27142 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
27143 (tanh): Define using libm_alias_double.
27144 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
27145 <libm-alias-double.h>.
27146 (totalorder): Define using libm_alias_double.
27147 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
27148 <libm-alias-double.h>.
27149 (totalordermag): Define using libm_alias_double.
27150 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
27151 libm_alias_double.
27152 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
27153 libm_alias_double.
27154 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
27155 <libm-alias-double.h>.
27156 (getpayload): Define using libm_alias_double.
27157 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
27158 <libm-alias-double.h>.
27159 (roundeven): Define using libm_alias_double.
27160 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
27161 <libm-alias-double.h>.
27162 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
27163 <libm-alias-double.h>.
27164 (totalorder): Define using libm_alias_double.
27165 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
27166 <libm-alias-double.h>.
27167 (totalordermag): Define using libm_alias_double.
27168 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
27169 libc compat symbol here.
27170 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
27171 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
27172 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
27173 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
27174 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
27175 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
27176 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
27177 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
27178 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
27179 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
27180
27181 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27182
27183 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
27184 _dl_relocate_static_pie instead of _dl_start to compute load
27185 address in static PIE. Return 0 if _DYNAMIC is undefined for
27186 static executable.
27187
27188 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27189
27190 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
27191 _DYNAMIC is undefined for static executable.
27192
27193 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27194
27195 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
27196
27197 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27198
27199 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27200
27201 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27202
27203 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
27204 (__ieee754_lgamma_r): Use fabs rather than __fabs.
27205 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
27206 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
27207 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
27208 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
27209 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
27210 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
27211 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
27212 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27213 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
27214 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
27215 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27216 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27217 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
27218 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
27219 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
27220
27221 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27222
27223 * math/bits/cmathcalls.h (cimag): Remove inline.
27224 (creal): Remove inline.
27225 (conj): Remove inline.
27226
27227 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27228
27229 * math/Makefile (type-float-routines): Add e_powf_log2_data.
27230 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
27231 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
27232 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
27233 (issignalingf_inline): Likewise.
27234 (POWF_LOG2_TABLE_BITS): Likewise.
27235 (POWF_LOG2_POLY_ORDER): Likewise.
27236 (POWF_SCALE_BITS): Likewise.
27237 (POWF_SCALE): Likewise.
27238 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
27239 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
27240 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
27241
27242 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27243
27244 * math/Makefile (type-float-routines): Add e_log2f_data.
27245 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
27246 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
27247 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
27248 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
27249 * sysdeps/i386/fpu/e_log2f_data.c: New file.
27250 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
27251 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
27252
27253 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27254
27255 * math/Makefile (type-float-routines): Add e_logf_data.
27256 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
27257 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
27258 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
27259 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
27260 * sysdeps/i386/fpu/e_logf_data.c: New file.
27261 * sysdeps/ia64/fpu/e_logf_data.c: New file.
27262 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
27263
27264 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
27265
27266 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
27267 undefined _DYNAMIC in PIE libc.a.
27268 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27269 Likewse.
27270
27271 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27272
27273 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
27274 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
27275 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
27276 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
27277 (__signbit): Remove.
27278 (__signbitl): Remove.
27279 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
27280 (__signbit): Remove.
27281 (__signbitl): Remove.
27282 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
27283 (__signbit): Remove.
27284 (__signbitl): Remove.
27285 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
27286 (__signbit): Remove.
27287 (__signbitl): Remove.
27288 * sysdeps/tile/bits/mathinline.h: Delete file.
27289 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
27290 (__signbit): Remove.
27291 (__signbitl): Remove.
27292
27293 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27294
27295 * math/math.h: Improve handling of C99 isgreater macros.
27296 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
27297 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
27298 * sysdeps/powerpc/bits/mathinline.h: Likewise.
27299 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
27300 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
27301
27302 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
27303
27304 * sysdeps/aarch64/libm-test-ulps: Update.
27305
27306 2017-09-28 Joseph Myers <joseph@codesourcery.com>
27307
27308 [BZ #22225]
27309 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
27310 math_opt_barrier on argument when doing arithmetic on it.
27311 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
27312 Likewise. Use math_force_eval not math_opt_barrier after
27313 arithmetic.
27314 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
27315 math_opt_barrier on argument when doing arithmetic on it.
27316 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
27317 Likewise.
27318
27319 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
27320
27321 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
27322 libc_hidden_def.
27323 (__freeifaddrs): Likewise.
27324
27325 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
27326
27327 * include/dirent.h (__dirfd): New declaration.
27328 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
27329 alias.
27330 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
27331 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
27332 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
27333 * include/unistd.h (__revoke): New declaration.
27334 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
27335 alias.
27336 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
27337 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
27338 revoke.
27339 * include/dirent.h (__seekdir): New declaration.
27340 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
27341 redefine as weak alias.
27342 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
27343 of seekdir.
27344 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
27345 and use libc_hidden_def on them.
27346 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
27347 them.
27348 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
27349 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
27350 instead of getifaddrs and freeifaddrs.
27351
27352 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27353
27354 [BZ #18822]
27355 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
27356 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
27357 (__dso_handle): Remove declaration.
27358 * dlfcn/tstatexit.c (__dso_handle): Removed.
27359 (main): Don't check __dso_handle.
27360 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
27361 (main): Don't check __dso_handle.
27362 * include/dso_handle.h: New file.
27363 * malloc/mtrace.c: Include <dso_handle.h>.
27364 (mtrace): Pass __dso_handle directly.
27365 * nptl/pthread_atfork.c: Include <dso_handle.h>.
27366 (__dso_handle): Remove declaration.
27367 (__pthread_atfork): Pass __dso_handle directly.
27368 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
27369 (__dso_handle): Removed.
27370 * posix/wordexp-test.c: Include <dso_handle.h>.
27371 (__dso_handle): Remove declaration.
27372 (__app_register_atfork): Pass __dso_handle directly.
27373 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
27374 (__dso_handle): Remove declaration.
27375 (at_quick_exit): Pass __dso_handle directly.
27376 * stdlib/atexit.c: Include <dso_handle.h>.
27377 (__dso_handle): Remove declaration.
27378 (atexit): Pass __dso_handle directly.
27379 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
27380 (__dso_handle): Removed.
27381
27382 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27383
27384 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
27385 using VDSO.
27386
27387 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
27388
27389 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
27390 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
27391 values to correct default value for given type.
27392
27393 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27394
27395 [BZ #22101]
27396 * elf/Makefile (tests): Add tst-debug1.
27397 ($(objpfx)tst-debug1): New.
27398 ($(objpfx)tst-debug1.out): Likewise.
27399 ($(objpfx)tst-debug1mod1.so): Likewise.
27400 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
27401 with p_filesz == 0.
27402 * elf/tst-debug1.c: New file.
27403
27404 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27405
27406 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
27407 Define using __ifunc.
27408
27409 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27410
27411 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
27412 exp2f() values.
27413
27414 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27415
27416 [BZ #22156]
27417 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
27418
27419 2017-09-26 Florian Weimer <fweimer@redhat.com>
27420
27421 * resolv/Makefile (tests-internal): Fix typo in comment.
27422
27423 2017-09-26 Florian Weimer <fweimer@redhat.com>
27424
27425 * resolv/nss_dns/dns-host.c: Fix typo in comment.
27426
27427 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27428
27429 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
27430 Use an union instead of a max_align_t array for __space,
27431 so that __space is the same size on all platforms.
27432 * malloc/scratch_buffer_grow_preserve.c
27433 (__libc_scratch_buffer_grow_preserve): Likewise.
27434
27435 [BZ #22183]
27436 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
27437 version to 2.
27438 * posix/Makefile (routines): Add glob-lstat-compat and
27439 glob64-lstat-compat.
27440 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
27441 * posix/glob-lstat-compat.c: New file.
27442 * posix/glob64-lstat-compat.c: Likewise.
27443 * posix/tst-glob_lstat_compat.c: Likewise.
27444 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
27445 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
27446 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
27447 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
27448 Likewise.
27449 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
27450 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27451 * posix/glob.c (glob_lstat): New function.
27452 (glob): Rename to __glob and add versioned symbol to 2.27.
27453 (glob_in_dir): Use glob_lstat.
27454 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
27455 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
27456 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
27457 2.27.
27458 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
27459 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
27460 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
27461 gl_lstat on glob call.
27462 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
27463 and glob64 symbols.
27464 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27465 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
27466 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27467 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27468 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
27469 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
27470 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
27471 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
27472 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
27473 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27474 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27475 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
27476 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
27477 Likewise.
27478 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
27479 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
27480 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27481 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27482 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
27483 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27484 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27485 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
27486 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
27487 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
27488 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27489 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27490
27491 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
27492
27493 * configure.ac (AS): Require binutils 2.25 or later.
27494 * configure: Regenerated.
27495
27496 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
27497
27498 [BZ #22207]
27499 * stdlib/test-atexit-race-common.c (do_test): Minimize required
27500 VM size.
27501
27502 2017-09-25 DJ Delorie <dj@redhat.com>
27503
27504 [BZ #22161]
27505 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
27506 resetting timeout.
27507
27508 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
27509
27510 * sysdeps/ieee754/dbl-64/sincos32.h
27511 [SINCCOS32_H]: Remove define.
27512 [SINCOS32_H]: Define.
27513
27514 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27515
27516 * math/Versions (expf): New libm symbol at GLIBC_2.27.
27517 (exp2f): Likewise.
27518 * math/w_exp2f.c: New file.
27519 * math/w_expf.c: New file.
27520 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
27521 * math/w_expf_compat.c (__expf_compat): Likewise.
27522 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
27523 * sysdeps/ia64/fpu/e_expf.S: Likewise.
27524 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27525 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27526 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27527 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27528 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27529 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27530 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27531 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27532 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27533 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27534 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27535 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27536 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27537 Likewise.
27538 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27539 Likewise.
27540 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27541 Likewise.
27542 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27543 Likewise.
27544 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27545 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27546 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27547 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27548 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27549 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27550 Likewise.
27551 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27552 Likewise.
27553 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27554 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27555 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27556
27557 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27558
27559 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
27560 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
27561 (roundtoint, converttoint): Likewise.
27562 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
27563 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
27564 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
27565 * sysdeps/ieee754/flt-32/math_config.h: New file.
27566 * sysdeps/ieee754/flt-32/math_errf.c: New file.
27567 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
27568 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
27569 * sysdeps/i386/fpu/math_errf.c: New file.
27570 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
27571 * sysdeps/ia64/fpu/math_errf.c: New file.
27572 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
27573 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
27574
27575 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27576
27577 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
27578 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
27579 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
27580 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
27581 to make sure that these symbols are defined.
27582 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
27583 of <limits.h>
27584 (__need_NULL): Do not define.
27585 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
27586 alignment.
27587 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
27588 CMGROUP_MAX, cmsgcred): Do not define.
27589 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
27590 NULL.
27591 * bits/socket.h: Likewise.
27592 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
27593 __gettimeofday instead of gettimeofday.
27594 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
27595 instead of settimeofday.
27596
27597 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27598
27599 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
27600 (asinhf): Define using libm_alias_float.
27601 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
27602 (atanf): Define using libm_alias_float.
27603 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
27604 (cbrtf): Define using libm_alias_float.
27605 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
27606 (ceilf): Define using libm_alias_float.
27607 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
27608 <libm-alias-float.h>.
27609 (copysignf): Define using libm_alias_float.
27610 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
27611 (cosf): Define using libm_alias_float.
27612 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
27613 (erff): Define using libm_alias_float.
27614 (erfcf): Likewise.
27615 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
27616 (expm1f): Define using libm_alias_float.
27617 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
27618 (fabsf): Define using libm_alias_float.
27619 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
27620 (floorf): Define using libm_alias_float.
27621 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
27622 (frexpf): Define using libm_alias_float.
27623 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
27624 libm_alias_float.
27625 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
27626 <libm-alias-float.h>.
27627 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
27628 libm_alias_float.
27629 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
27630 <libm-alias-float.h>.
27631 (getpayloadf): Define using libm_alias_float.
27632 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
27633 <libm-alias-float.h>.
27634 (llrintf): Define using libm_alias_float.
27635 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
27636 <libm-alias-float.h>.
27637 (llroundf): Define using libm_alias_float.
27638 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
27639 (logbf): Define using libm_alias_float.
27640 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
27641 (lrintf): Define using libm_alias_float.
27642 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
27643 (lroundf): Define using libm_alias_float.
27644 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
27645 (modff): Define using libm_alias_float.
27646 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
27647 <libm-alias-float.h>.
27648 (nearbyintf): Define using libm_alias_float.
27649 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
27650 <libm-alias-float.h>.
27651 (nextafterf): Define using libm_alias_float.
27652 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
27653 <libm-alias-float.h>.
27654 (nextupf): Define using libm_alias_float.
27655 * sysdeps/ieee754/flt-32/s_remquof.c: Include
27656 <libm-alias-float.h>.
27657 (remquof): Define using libm_alias_float.
27658 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
27659 (rintf): Define using libm_alias_float.
27660 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
27661 <libm-alias-float.h>.
27662 (roundevenf): Define using libm_alias_float.
27663 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
27664 (roundf): Define using libm_alias_float.
27665 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
27666 using libm_alias_float.
27667 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
27668 <libm-alias-float.h>.
27669 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
27670 Define using libm_alias_float.
27671 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
27672 <libm-alias-float.h>.
27673 (sincosf): Define using libm_alias_float.
27674 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
27675 (sinf): Define using libm_alias_float.
27676 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
27677 (tanf): Define using libm_alias_float.
27678 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
27679 (tanhf): Define using libm_alias_float.
27680 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
27681 <libm-alias-float.h>.
27682 (totalorderf): Define using libm_alias_float.
27683 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
27684 <libm-alias-float.h>.
27685 (totalordermagf): Define using libm_alias_float.
27686 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
27687 (truncf): Define using libm_alias_float.
27688 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
27689 libm_alias_float.
27690 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
27691 libm_alias_float.
27692
27693 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27694
27695 [BZ #22146]
27696 math/math.h: Let fpclassify use the builtin in C++ mode, even
27697 when optimazing for size.
27698
27699 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27700
27701 * csu/Makefile (generated): Do not add version-info.h.
27702 (before-compile): Likewise.
27703 (all-Banner-files): Remove variable.
27704 ($(objpfx)version-info.h): Remove rule.
27705 * csu/version.c (banner): Do not include "version-info.h".
27706 * libidn/Banner: Remove.
27707 * manual/contrib.texi (Simon Josefsson): New entry.
27708
27709 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27710
27711 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
27712 Remove conditionals on LDBL_MANT_DIG.
27713 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27714 (__ieee754_lgammal_r): Likewise.
27715
27716 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27717
27718 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
27719 _Float128 and L().
27720 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
27721 _Float128 and L(). Replace _Float128 with long double and L(x)
27722 with xL, throughout the file.
27723 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27724 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27725 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27726 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27727
27728 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27729
27730 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
27731 sysdeps/ieee754/ldbl-128ibm.
27732 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
27733 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
27734 of including it. Keep _Float128 and L() intact. These will be
27735 reviewed by a separate patch.
27736 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27737 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27738 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27739 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27740
27741 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27742
27743 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
27744 (__finitef128): Define to __redirect___finitef128.
27745 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
27746 (__isinff128): Define to __redirect___isinff128.
27747 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
27748 (__isnanf128): Define to __redirect___isnanf128.
27749
27750 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27751
27752 * sysdeps/powerpc/powerpc64le/Makefile
27753 (CFLAGS-tst-strtod-nan-locale.c): New variable.
27754 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
27755
27756 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
27757 Carlos O'Donell <carlos@redhat.com>
27758
27759 [BZ #22180]
27760 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
27761 * stdlib/test-dlclose-exit-race.c: New file.
27762 * stdlib/test-dlclose-exit-race-helper.c: New file.
27763 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
27764
27765 2017-09-21 Joseph Myers <joseph@codesourcery.com>
27766
27767 * crypt/Banner: Remove file.
27768 * nptl/Banner: Likewise.
27769 * resolv/Banner: Likewise.
27770 * soft-fp/Banner: Likewise.
27771 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
27772 ($(objpfx)version.d): Remove dependency on banner.h.
27773 ($(objpfx)version.os): Likewise.
27774 * nptl/version.c (banner): Do not include banner.h.
27775 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
27776 Jelinek and BIND code.
27777
27778 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27779 Carlos O'Donell <carlos@redhat.com>
27780
27781 * support/xdlfcn.h: New file.
27782 * support/xdlfcn.c: New file.
27783 * support/Makefile (libsupport-routines): Add xdlfcn.
27784 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
27785
27786 2017-09-20 Joseph Myers <joseph@codesourcery.com>
27787
27788 [BZ #20142]
27789 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27790 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
27791 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
27792 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
27793 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
27794 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
27795 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
27796 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
27797
27798 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27799 Ricky Zhou <rickyz@google.com>
27800 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
27801
27802 [BZ #14333]
27803 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
27804 Remove atomics.
27805 (__new_exitfn): Fail registration when we finished at_exit processing.
27806 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
27807 * stdlib/on_exit.c (__on_exit): Likewise.
27808 * stdlib/exit.c (__exit_funcs_done): New variable.
27809 (__run_exit_handlers): Use __exit_funcs_lock.
27810 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
27811 declarations.
27812 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
27813 (test-cxa_atexit-race, test-on_exit-race): New tests.
27814 * stdlib/test-atexit-race-common.c: New file.
27815 * stdlib/test-atexit-race.c: New file.
27816 * stdlib/test-at_quick_exit-race.c: New file.
27817 * stdlib/test-cxa_atexit-race.c: New file.
27818 * stdlib/test-on_exit-race.c: New file.
27819
27820 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
27821
27822 * benchtests/Makefile: Add exp2f and log2f benchmarks.
27823 * benchtests/exp2f-inputs: Copy of expf-inputs.
27824 * benchtests/log2f-inputs: Copy of logf-inputs.
27825
27826 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27827
27828 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
27829 Explicitly take address of first element of array arguments in
27830 call to INLINE_SYSCALL.
27831
27832 2017-09-19 Andreas Schwab <schwab@suse.de>
27833
27834 [BZ #22134]
27835 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
27836 execveat first.
27837 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
27838 unimplemented.
27839 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
27840 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
27841 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
27842 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
27843 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27844 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27845 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
27846 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27847 * posix/Makefile (tests): Add tst-fexecve.
27848 * posix/tst-fexecve.c: New file.
27849
27850 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27851
27852 * benchtests/Makefile: Add logf benchmark.
27853 * benchtests/logf-inputs: Add reduced trace from wrf_r.
27854
27855 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27856
27857 * benchtests/Makefile: Add expf benchmark.
27858 * benchtests/expf-inputs: Add reduced trace from wrf_r.
27859
27860 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27861
27862 * csu/Makefile: Add -funwind-tables to libc-start.c.
27863 * debug/Makefile: Add -funwind-tables to backtrace.c.
27864 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
27865 * sysdeps/arm/Makefile: Likewise.
27866 * sysdeps/i386/Makefile: Likewise.
27867 * sysdeps/m68k/Makefile: Likewise.
27868 * sysdeps/mips/Makefile: Likewise.
27869 * sysdeps/nios2/Makefile: Likewise.
27870 * sysdeps/sh/Makefile: Likewise.
27871 * sysdeps/sparc/Makefile: Likewise.
27872
27873 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27874
27875 * benchtests/Makefile (bench-math): Add trunc and truncf.
27876 (CFLAGS-bench-trunc.c): New variable.
27877 (CFLAGS-bench-truncf.c): Likewise.
27878 * benchtests/trunc-inputs: New file.
27879 * benchtests/truncf-inputs: Likewise.
27880
27881 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27882
27883 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27884
27885 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27886
27887 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27888 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27889 redefine.
27890 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27891 (exp10l): Define as weak alias.
27892 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27893 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27894 and redefine.
27895 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27896 (remainderl): Define as weak alias.
27897
27898 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
27899 (fmal): Define using libm_alias_ldouble.
27900 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
27901 (acoshl): Define using libm_alias_ldouble.
27902 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
27903 (acosl): Define using libm_alias_ldouble.
27904 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
27905 (asinl): Define using libm_alias_ldouble.
27906 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
27907 (atan2l): Define using libm_alias_ldouble.
27908 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
27909 (atanhl): Define using libm_alias_ldouble.
27910 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
27911 (coshl): Define using libm_alias_ldouble.
27912 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
27913 (exp10l): Define using libm_alias_ldouble.
27914 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
27915 (exp2l): Define using libm_alias_ldouble.
27916 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
27917 (expl): Define using libm_alias_ldouble.
27918 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
27919 (fmodl): Define using libm_alias_ldouble.
27920 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
27921 (hypotl): Define using libm_alias_ldouble.
27922 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
27923 (j0l): Define using libm_alias_ldouble.
27924 (y0l): Likewise.
27925 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
27926 (j1l): Define using libm_alias_ldouble.
27927 (y1l): Likewise.
27928 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
27929 (jnl): Define using libm_alias_ldouble.
27930 (ynl): Likewise.
27931 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
27932 (log10l): Define using libm_alias_ldouble.
27933 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
27934 (log2l): Define using libm_alias_ldouble.
27935 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
27936 (logl): Define using libm_alias_ldouble.
27937 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
27938 (powl): Define using libm_alias_ldouble.
27939 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
27940 (remainderl): Define using libm_alias_ldouble.
27941 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
27942 (sinhl): Define using libm_alias_ldouble.
27943 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
27944 (sqrtl): Define using libm_alias_ldouble.
27945 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
27946 (tgammal): Define using libm_alias_ldouble.
27947 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
27948 (exp10l): Do not use long_double_symbol here.
27949 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27950 [LIBM_SVID_COMPAT] (remainderl): Likewise.
27951 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
27952 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27953 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27954 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27955 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27956 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27957 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27958 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27959 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27960 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27961 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27962 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27963 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27964 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27965 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27966 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27967 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27968 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27969 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27970 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27971
27972 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27973
27974 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27975 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27976
27977 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27978
27979 * io/read.c (read): Add libc_hidden_weak.
27980 * sysdeps/mach/hurd/read.c (read): Likewise.
27981 * io/write.c (write): Likewise.
27982 * sysdeps/mach/hurd/write.c (write): Likewise.
27983 * io/pread64.c (__pread64): Likewise.
27984 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27985 * posix/pread64.c (__pread64): Add libc_hidden_def.
27986
27987 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27988
27989 * benchtests/scripts/compare_strings.py: New option -g.
27990 (draw_graph): Print a message that a graph is being generated.
27991 (process_results): Generate graph only if -g is passed.
27992 (main): Process option -g.
27993
27994 * benchtests/scripts/compare_strings.py (process_results):
27995 Better spacing for output.
27996
27997 * benchtests/scripts/compare_strings.py: Use argparse.
27998 * benchtests/README: Document existence of compare_strings.py.
27999
28000 2017-09-15 Joseph Myers <joseph@codesourcery.com>
28001
28002 * math/s_fma.c: Include <libm-alias-double.h>.
28003 (fma): Define using libm_alias_double.
28004 * math/s_nextafter.c: Include <libm-alias-double.h>.
28005 (nextafter): Define using libm_alias_double.
28006 * math/w_acos_compat.c: Include <libm-alias-double.h>.
28007 (acos): Define using libm_alias_double.
28008 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
28009 (aocsh): Define using libm_alias_double.
28010 * math/w_asin_compat.c: Include <libm-alias-double.h>.
28011 (asin): Define using libm_alias_double.
28012 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
28013 (atan2): Define using libm_alias_double.
28014 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
28015 (atanh): Define using libm_alias_double.
28016 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
28017 (cosh): Define using libm_alias_double.
28018 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
28019 (exp10): Define using libm_alias_double.
28020 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
28021 (exp2): Define using libm_alias_double.
28022 * math/w_exp_compat.c: Include <libm-alias-double.h>.
28023 (exp): Define using libm_alias_double.
28024 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
28025 (fmod): Define using libm_alias_double.
28026 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
28027 (hypot): Define using libm_alias_double.
28028 * math/w_j0_compat.c: Include <libm-alias-double.h>.
28029 (j0): Define using libm_alias_double.
28030 (y0): Likewise.
28031 * math/w_j1_compat.c: Include <libm-alias-double.h>.
28032 (j1): Define using libm_alias_double.
28033 (y1): Likewise.
28034 * math/w_jn_compat.c: Include <libm-alias-double.h>.
28035 (jn): Define using libm_alias_double.
28036 (yn): Likewise.
28037 * math/w_log10_compat.c: Include <libm-alias-double.h>.
28038 (log10): Define using libm_alias_double.
28039 * math/w_log2_compat.c: Include <libm-alias-double.h>.
28040 (log2): Define using libm_alias_double.
28041 * math/w_log_compat.c: Include <libm-alias-double.h>.
28042 (log): Define using libm_alias_double.
28043 * math/w_pow_compat.c: Include <libm-alias-double.h>.
28044 (pow): Define using libm_alias_double.
28045 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
28046 (remainder): Define using libm_alias_double.
28047 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
28048 (sinh): Define using libm_alias_double.
28049 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
28050 (sqrt): Define using libm_alias_double.
28051 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
28052 (tgamma): Define using libm_alias_double.
28053 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
28054 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
28055 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
28056 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
28057 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
28058 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
28059 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
28060 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
28061 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
28062 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
28063 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
28064 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
28065 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
28066 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
28067 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
28068 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
28069 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
28070 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
28071 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
28072 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
28073 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
28074 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
28075 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
28076 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
28077 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
28078
28079 * math/e_acoshl.c: Remove.
28080 * math/e_acosl.c: Likewise.
28081 * math/e_asinl.c: Likewise.
28082 * math/e_atan2l.c: Likewise.
28083 * math/e_atanhl.c: Likewise.
28084 * math/e_coshl.c: Likewise.
28085 * math/e_expl.c: Likewise.
28086 * math/e_fmodl.c: Likewise.
28087 * math/e_gammal_r.c: Likewise.
28088 * math/e_hypotl.c: Likewise.
28089 * math/e_j0l.c: Likewise.
28090 * math/e_j1l.c: Likewise.
28091 * math/e_jnl.c: Likewise.
28092 * math/e_lgammal_r.c: Likewise.
28093 * math/e_log10l.c: Likewise.
28094 * math/e_log2l.c: Likewise.
28095 * math/e_logl.c: Likewise.
28096 * math/e_powl.c: Likewise.
28097 * math/e_rem_pio2l.c: Likewise.
28098 * math/e_sinhl.c: Likewise.
28099 * math/e_sqrtf128.c: Likewise.
28100 * math/e_sqrtl.c: Likewise.
28101 * math/k_cosl.c: Likewise.
28102 * math/k_sinl.c: Likewise.
28103 * math/k_tanl.c: Likewise.
28104 * math/s_asinhl.c: Likewise.
28105 * math/s_atanl.c: Likewise.
28106 * math/s_cbrtl.c: Likewise.
28107 * math/s_erfl.c: Likewise.
28108 * math/s_expm1l.c: Likewise.
28109 * math/s_log1pl.c: Likewise.
28110 * math/s_tanhl.c: Likewise.
28111
28112 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
28113
28114 [BZ #21745]
28115 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
28116 [$(subdir) = math] (sysdep_calls): New variable. Has the
28117 previous contents of sysdep_routines, but re-sorted..
28118 [$(subdir) = math] (sysdep_routines): Re-use the contents from
28119 sysdep_calls.
28120 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
28121 defined in sysdep_calls and replace by the respective m_* names.
28122 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
28123 (compat_symbol): Undefine to avoid duplicated compat symbols in
28124 libc.
28125
28126 2017-09-15 Joseph Myers <joseph@codesourcery.com>
28127
28128 * math/s_fmaf.c: Include <libm-alias-float.h>.
28129 (fmaf): Define using libm_alias_float.
28130 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
28131 (acosf): Define using libm_alias_float.
28132 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
28133 (acoshf): Define using libm_alias_float.
28134 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
28135 (asinf): Define using libm_alias_float.
28136 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
28137 (atan2f): Define using libm_alias_float.
28138 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
28139 (atanhf): Define using libm_alias_float.
28140 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
28141 (coshf): Define using libm_alias_float.
28142 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
28143 (exp10f): Define using libm_alias_float.
28144 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
28145 (fmodf): Define using libm_alias_float.
28146 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
28147 (hypotf): Define using libm_alias_float.
28148 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
28149 (j0f): Define using libm_alias_float.
28150 (y0f): Likewise.
28151 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
28152 (j1f): Define using libm_alias_float.
28153 (y1f): Likewise.
28154 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
28155 (jnf): Define using libm_alias_float.
28156 (ynf): Likewise.
28157 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
28158 (log10f): Define using libm_alias_float.
28159 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
28160 (log2f): Define using libm_alias_float.
28161 * math/w_logf_compat.c: Include <libm-alias-float.h>.
28162 (logf): Define using libm_alias_float.
28163 * math/w_powf_compat.c: Include <libm-alias-float.h>.
28164 (powf): Define using libm_alias_float.
28165 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
28166 (remainderf): Define using libm_alias_float.
28167 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
28168 (sinhf): Define using libm_alias_float.
28169 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
28170 (sqrtf): Define using libm_alias_float.
28171 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
28172 (tgammaf): Define using libm_alias_float.
28173
28174 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28175
28176 * include/math.h (roundeven): Change hidden_proto call to
28177 __roundeven.
28178 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
28179 alias.
28180 [NO_LONG_DOUBLE] (__j0l): New strong alias.
28181 (y0): Rename to __y0 and define as weak alias.
28182 [NO_LONG_DOUBLE] (__y0l): New strong alias.
28183 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
28184 alias.
28185 (y0f): Rename to __y0f and define as weak alias.
28186 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
28187 alias.
28188 [NO_LONG_DOUBLE] (__j1l): New strong alias.
28189 (y1): Rename to __y1 and define as weak alias.
28190 [NO_LONG_DOUBLE] (__y1l): New strong alias.
28191 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
28192 alias.
28193 (y1f): Rename to __y1f and define as weak alias.
28194 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
28195 alias.
28196 [NO_LONG_DOUBLE] (__jnl): New strong alias.
28197 (yn): Rename to __yn and define as weak alias.
28198 [NO_LONG_DOUBLE] (__ynl): New strong alias.
28199 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
28200 alias.
28201 (ynf): Rename to __ynf and define as weak alias.
28202 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
28203 (fromfp): Define as weak alias.
28204 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
28205 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
28206 (fromfpx): Define as weak alias.
28207 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
28208 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
28209 __getpayload and define as weak alias.
28210 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28211 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
28212 __roundeven and define as weak alias.
28213 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28214 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
28215 __setpayload.
28216 (setpayload): Define as weak alias.
28217 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
28218 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
28219 __setpayloadsig.
28220 (setpayloadsig): Define as weak alias.
28221 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
28222 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
28223 __totalorder and define as weak alias.
28224 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28225 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
28226 to __totalordermag and define as weak alias.
28227 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28228 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
28229 (ufromfp): Define as weak alias.
28230 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
28231 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
28232 __ufromfpx.
28233 (ufromfpx): Define as weak alias.
28234 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
28235 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
28236 Rename to __getpayload and define as weak alias.
28237 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28238 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
28239 Rename to __roundeven and define as weak alias.
28240 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28241 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
28242 Rename to __totalorder and define as weak alias.
28243 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28244 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
28245 (totalordermag): Rename to __totalordermag and define as weak
28246 alias.
28247 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28248 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
28249 macro.
28250 (__roundevenl): Likewise.
28251 (__totalorderl): Likewise.
28252 (__totalordermagl): Likewise
28253 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
28254 __fromfpf128.
28255 (fromfpf128): Define as weak alias.
28256 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
28257 __fromfpxf128.
28258 (fromfpxf128): Define as weak alias.
28259 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
28260 __setpayloadf128.
28261 (setpayloadf128): Define as weak alias.
28262 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
28263 __setpayloadsigf128.
28264 (setpayloadsigf128): Define as weak alias.
28265 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
28266 __ufromfpf128.
28267 (ufromfpf128): Define as weak alias.
28268 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
28269 __ufromfpxf128.
28270 (ufromfpxf128): Define as weak alias.
28271 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
28272 (fromfpf): Define as weak alias.
28273 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
28274 __fromfpxf.
28275 (fromfpxf): Define as weak alias.
28276 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
28277 __getpayloadf and define as weak alias.
28278 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
28279 __roundevenf and define as weak alias.
28280 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
28281 __setpayloadf.
28282 (setpayloadf): Define as weak alias.
28283 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
28284 __setpayloadsigf.
28285 (setpayloadsigf): Define as weak alias.
28286 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
28287 __totalorderf and define as weak alias.
28288 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
28289 Rename to __totalordermagf and define as weak alias.
28290 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
28291 __ufromfpf.
28292 (ufromfpf): Define as weak alias.
28293 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
28294 __ufromfpxf.
28295 (ufromfpxf): Define as weak alias.
28296 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
28297 __fromfpl.
28298 (fromfpl): Define as weak alias.
28299 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
28300 __fromfpxl.
28301 (fromfpxl): Define as weak alias.
28302 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
28303 to __getpayloadl and define as weak alias.
28304 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
28305 __roundevenl and define as weak alias.
28306 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
28307 __setpayloadl.
28308 (setpayloadl): Define as weak alias.
28309 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
28310 __setpayloadsigl.
28311 (setpayloadsigl): Define as weak alias.
28312 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
28313 to __totalorderl and define as weak alias.
28314 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
28315 Rename to __totalordermagl and define as weak alias.
28316 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
28317 __ufromfpl.
28318 (ufromfpl): Define as weak alias.
28319 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
28320 __ufromfpxl.
28321 (ufromfpxl): Define as weak alias.
28322 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
28323 __fromfpl.
28324 (fromfpl): Define as weak alias.
28325 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
28326 __fromfpxl.
28327 (fromfpxl): Define as weak alias.
28328 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
28329 Rename to __getpayloadl and define as weak alias.
28330 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
28331 to __roundevenl and define as weak alias. Call __roundeven
28332 instead of roundeven.
28333 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
28334 __setpayloadl.
28335 (setpayloadl): Define as weak alias.
28336 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
28337 __setpayloadsigl.
28338 (setpayloadsigl): Define as weak alias.
28339 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
28340 Rename to __totalorderl and define as weak alias.
28341 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
28342 Rename to __totalordermagl and define as weak alias.
28343 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
28344 __ufromfpl.
28345 (ufromfpl): Define as weak alias.
28346 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
28347 __ufromfpxl.
28348 (ufromfpxl): Define as weak alias.
28349 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
28350 __fromfpl.
28351 (fromfpl): Define as weak alias.
28352 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
28353 __fromfpxl.
28354 (fromfpxl): Define as weak alias.
28355 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
28356 __getpayloadl and define as weak alias.
28357 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
28358 __roundevenl and define as weak alias.
28359 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
28360 __setpayloadl.
28361 (setpayloadl): Define as weak alias.
28362 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
28363 __setpayloadsigl.
28364 (setpayloadsigl): Define as weak alias.
28365 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
28366 __totalorderl and define as weak alias.
28367 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
28368 Rename to __totalordermagl and define as weak alias.
28369 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
28370 __ufromfpl.
28371 (ufromfpl): Define as weak alias.
28372 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
28373 __ufromfpxl.
28374 (ufromfpxl): Define as weak alias.
28375
28376 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
28377
28378 * benchtests/bench-string.h (realloc_bufs): New function.
28379 (test_init): Call it.
28380 * benchtests/bench-memset-large.c (do_test): Likewise.
28381 * benchtests/bench-memset.c (do_test): Likewise.
28382
28383 * benchtests/bench-memset-large.c: Print output in JSON
28384 format.
28385 * benchtests/bench-memset.c: Likewise.
28386
28387 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28388
28389 [BZ #21084]
28390 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
28391 * iconvdata/Makefile: Add IBM858.
28392 * iconvdata/gconv-modules: Likewise.
28393 * iconvdata/tst-tables.sh: Likewise.
28394 * iconvdata/ibm858.c: New file.
28395 * localedata/charmaps/IBM858: Likewise.
28396
28397 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
28398
28399 [BZ #22023]
28400 * locales/niu_NZ (LC_TIME): copy "niu_NU".
28401 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
28402
28403 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28404
28405 [BZ #22112]
28406 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
28407 and add tel_int_fmt.
28408
28409 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28410
28411 * sysdeps/generic/libm-alias-float128.h: New file.
28412 * sysdeps/generic/math-type-macros-float128.h: Include
28413 <libm-alias-float128.h>.
28414 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28415
28416 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28417
28418 * sysdeps/generic/libm-alias-ldouble.h: New file.
28419 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
28420 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
28421 * sysdeps/generic/math-type-macros-ldouble.h: Include
28422 <libm-alias-ldouble.h>.
28423 [!declare_mgen_alias] (declare_mgen_alias): Define to use
28424 libm_alias_ldouble.
28425
28426 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
28427
28428 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
28429 * math/w_exp_compat.c: ... here.
28430 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
28431 * math/w_expf_compat.c: ... here.
28432 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
28433 * math/w_expl_compat.c: ... here.
28434 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
28435 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
28436 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
28437 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28438
28439 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28440
28441 * math/w_scalbln_template.c (strong_alias): Do not undefine and
28442 redefine.
28443 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
28444 macro.
28445 (ldexpl): Only define as compat symbol for libc, not libm.
28446 (scalbnl): Define as compat symbol for libc here.
28447 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
28448 define for [IS_IN (libc)].
28449 (__ldexpl_2): Remove alias.
28450 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
28451 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
28452 name in long_double_symbol call.
28453 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
28454 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
28455 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
28456 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
28457 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
28458 Remove macro.
28459 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
28460 Define as compat symbol.
28461
28462 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28463
28464 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
28465 * sysdeps/unix/sysv/linux/alpha/Makefile
28466 [$(subdir) = csu] (sysdep_routines): Remove rule.
28467
28468 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28469
28470 * sysdeps/generic/libm-alias-double.h: New file.
28471 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
28472 * sysdeps/generic/math-type-macros-double.h: Include
28473 <libm-alias-double.h>.
28474 [declare_mgen_alias] (declare_mgen_alias): Define to use
28475 libm_alias_double.
28476 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
28477 (M_LIBM_NEED_COMPAT): Remove macro.
28478 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
28479 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
28480 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
28481 code.
28482 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28483 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28484 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28485 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28486 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28487 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28488 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28489 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28490 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28491 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28492 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28493 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28494 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28495 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28496 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28497 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28498 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28499 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28500 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28501 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28502 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28503 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28504 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28505 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28506 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28507 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28508 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28509 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
28510 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
28511 macro.
28512 (declare_mgen_alias): New macro.
28513 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
28514 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
28515 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
28516 (M_LIBM_NEED_COMPAT): Remove macro.
28517 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
28518 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
28519 <first-versions.h>.
28520 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
28521 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
28522
28523 2017-09-12 Joseph Myers <joseph@codesourcery.com>
28524
28525 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
28526 (declare_mgen_alias_2): Remove.
28527 * sysdeps/generic/math-type-macros-double.h
28528 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
28529 Likewise.
28530 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
28531 alias.
28532 (ldexp): Define with declare_mgen_alias.
28533 (scalbn): Likewise.
28534
28535 2017-09-12 Steve Ellcey <sellcey@cavium.com>
28536
28537 * grp/initgroups.c: Include config.h.
28538 (DEFAULT_CONFIG): New macro.
28539 (internal_getgrouplist): Use DEFAULT_CONFIG.
28540 * nscd/initgrcache.c (addinitgroupsX): Likewise.
28541 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
28542 (DEFAULT_DEFCONFIG): New macro.
28543 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
28544 * nss/grp-lookup.c: Include config.h
28545 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
28546 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
28547 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
28548 * manual/nss.texi: Update default values section.
28549
28550 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
28551
28552 [BZ #21967]
28553 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
28554 New.
28555 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
28556 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
28557 Handle MathVec_Prefer_No_AVX512.
28558 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
28559 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
28560 is set.
28561
28562 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
28563
28564 * posix/sched_primax.c (__sched_get_priority_max): Add
28565 libc_hidden_def.
28566 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
28567 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28568 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28569 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
28570 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
28571 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
28572 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
28573 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
28574 Add aliases.
28575
28576 2017-09-11 Joseph Myers <joseph@codesourcery.com>
28577
28578 * sysdeps/generic/libm-alias-float.h: New file.
28579 * sysdeps/generic/math-type-macros-float.h: Include
28580 <libm-alias-float.h>.
28581 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28582
28583 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
28584
28585 [BZ #22093]
28586 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
28587 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
28588 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
28589 (HWCAP_IMPORTANT): Likewise.
28590 (HWCAP_X86_64): New enum.
28591 (HWCAP_X86_AVX512_1): Updated.
28592 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
28593 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
28594 (modules-names): Add x86_64/tst-x86_64mod-1.
28595 (LDFLAGS-tst-x86_64mod-1.so): New.
28596 ($(objpfx)tst-x86_64-1): Likewise.
28597 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
28598 (tst-x86_64-1-clean): Likewise.
28599 * sysdeps/x86_64/tst-x86_64-1.c: New file.
28600 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
28601
28602 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
28603
28604 * po/sv.po: Update translations.
28605 * po/fr.po: Likewise.
28606
28607 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
28608
28609 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
28610 seconds.
28611 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
28612 seconds.
28613 * elf/rtld-Rules: Fix $(error) use.
28614
28615 2017-09-09 Mike FABIAN <mfabian@redhat.com>
28616
28617 [BZ #14925]
28618 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
28619 * locale/iso-639.def: Change “Bengali” to “Bangla”.
28620 * localedata/locales/bn_BD: “Bengali” was still used in some
28621 comments. Change it to “Bangla”.
28622
28623 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
28624
28625 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
28626
28627 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28628
28629 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
28630 thunderx2t99p1 to list of cpu names.
28631 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
28632 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
28633
28634 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28635
28636 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
28637 Use strcmp instead of tunable_is_name.
28638
28639 2017-09-08 Joseph Myers <joseph@codesourcery.com>
28640
28641 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28642 (F_GET_RW_HINT): New macro.
28643 [__USE_GNU] (F_SET_RW_HINT): Likewise.
28644 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
28645 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
28646 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
28647 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
28648 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
28649 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
28650 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
28651 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
28652
28653 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28654 (F_ADD_SEALS): New macro.
28655 [__USE_GNU] (F_GET_SEALS): Likewise.
28656 [__USE_GNU] (F_SEAL_SEAL): Likewise.
28657 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
28658 [__USE_GNU] (F_SEAL_GROW): Likewise.
28659 [__USE_GNU] (F_SEAL_WRITE): Likewise.
28660
28661 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28662
28663 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
28664 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
28665 * posix/glob_internal.h (__glob_pattern_type):
28666 * posix/glob.c (glob):
28667 * posix/glob_pattern_p.c (__glob_pattern_p):
28668 Use them.
28669
28670 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
28671 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
28672 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
28673 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
28674 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28675 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
28676 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
28677 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
28678 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28679 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
28680 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28681 * sysdeps/wordsize-64/glob.c: Likewise.
28682 * sysdeps/wordsize-64/glob64.c: Likewise.
28683 * sysdeps/wordsize-64/globfree.c: Likewise.
28684 * sysdeps/wordsize-64/globfree64.c: Likewise.
28685 * sysdeps/unix/sysv/linux/glob.c: New file.
28686 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
28687 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
28688 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
28689 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28690 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
28691 adds !GLOB_NO_OLD_VERSION as an extra condition.
28692 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
28693 using relative path instead of absolute one.
28694 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
28695 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
28696 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
28697 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
28698 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
28699 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
28700
28701 [BZ #1062]
28702 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
28703 (glob): Use the same scratch buffer for both getlogin_r and
28704 getpwnam_r. Don’t require preallocation of the login name. This
28705 simplifies storage allocation, and corrects the handling of
28706 long login names.
28707
28708 [BZ #1062]
28709 * posix/glob.c (glob): Port recent patches to platforms
28710 lacking getpwnam_r.
28711 (glob): Fix longstanding misuse of errno after getpwnam_r, which
28712 returns an error number rather than setting errno.
28713
28714 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
28715 instead of GCC extension.
28716 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
28717 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
28718 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
28719
28720 [BZ #866]
28721 [BZ #1062]
28722 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
28723 * posix/bug-glob1.c: Remove file.
28724 * posix/tst-glob_symlinks.c: New file.
28725 * posix/glob.c (__lstat64): New macro.
28726 (is_dir): New function.
28727 (glob, glob_in_dir): Match symlinks even if they are dangling.
28728 (link_stat, link_exists_p): Remove. All uses removed.
28729
28730 [BZ #1062]
28731 [BZ #19971]
28732 * posix/glob.c (struct readdir_result): Remove skip_entry member.
28733 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
28734 All uses removed.
28735
28736 [BZ #1062]
28737 CVE-2017-15671
28738 * posix/Makefile (routines): Add globfree, globfree64, and
28739 glob_pattern_p.
28740 * posix/flexmember.h: New file.
28741 * posix/glob_internal.h: Likewise.
28742 * posix/glob_pattern_p.c: Likewise.
28743 * posix/globfree.c: Likewise.
28744 * posix/globfree64.c: Likewise.
28745 * sysdeps/gnu/globfree64.c: Likewise.
28746 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
28747 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28748 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
28749 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28750 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28751 * sysdeps/wordsize-64/globfree.c: Likewise.
28752 * sysdeps/wordsize-64/globfree64.c: Likewise.
28753 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
28754 [NDEBUG): Remove comments.
28755 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
28756 (dirent_type): New type. Use uint_fast8_t not
28757 uint8_t, as C99 does not require uint8_t.
28758 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
28759 (struct readdir_result): Use dirent_type. Do not define skip_entry
28760 unless it is needed; this saves a byte on platforms lacking d_ino.
28761 (readdir_result_type, readdir_result_skip_entry):
28762 New functions, replacing ...
28763 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
28764 these functions, which were removed. This makes the callers
28765 easier to read. All callers changed.
28766 (D_INO_TO_RESULT): Now empty if there is no d_ino.
28767 (size_add_wrapv, glob_use_alloca): New static functions.
28768 (glob, glob_in_dir): Check for size_t overflow in several places,
28769 and fix some size_t checks that were not quite right.
28770 Remove old code using SHELL since Bash no longer
28771 uses this.
28772 (glob, prefix_array): Separate MS code better.
28773 (glob_in_dir): Remove old Amiga and VMS code.
28774 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
28775 separate files.
28776 (glob_in_dir): Do not rely on undefined behavior in accessing
28777 struct members beyond their bounds. Use a flexible array member
28778 instead
28779 (link_stat): Rename from link_exists2_p and return -1/0 instead of
28780 0/1. Caller changed.
28781 (glob): Fix memory leaks.
28782 * posix/glob64 (globfree64): Move to separate file.
28783 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
28784 (globfree64): Remove hidden alias.
28785 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
28786 oldglob.
28787 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
28788 separate file.
28789 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
28790 define.
28791 Move compat code to separate file.
28792 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
28793 separate file.
28794
28795 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
28796
28797 * resolv/tst-resolv-qtypes.c (domain): Changed to
28798 "const char domain[] =".
28799
28800 2017-09-07 Joseph Myers <joseph@codesourcery.com>
28801
28802 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
28803 version to 3.1.6.
28804
28805 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
28806 (TCP_MD5SIG_EXT): Likewise.
28807 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
28808 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
28809 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
28810
28811 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
28812
28813 2017-09-07 Mike FABIAN <mfabian@redhat.com>
28814
28815 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
28816
28817 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
28818
28819 [BZ #22100]
28820 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
28821
28822 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
28823
28824 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
28825 before assuming that the file is empty. Avoid testing buffer content
28826 when nread == 0.
28827
28828 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28829
28830 [BZ #18858]
28831 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28832 Remove define.
28833 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
28834 Likewise.
28835 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
28836 Likewise.
28837 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
28838 Likewise.
28839 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28840 Likewise.
28841 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
28842 Likewise.
28843 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
28844 Likewise.
28845
28846 2017-09-06 Florian Weimer <fweimer@redhat.com>
28847
28848 * malloc/dynarray_emplace_enlarge.c
28849 (__libc_dynarray_emplace_enlarge): Add missing else.
28850
28851 2017-09-06 Florian Weimer <fweimer@redhat.com>
28852
28853 [BZ #22096]
28854 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
28855 case of failure to obtain the global conf object.
28856
28857 2017-09-06 Florian Weimer <fweimer@redhat.com>
28858
28859 [BZ #22095]
28860 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
28861 dynarray allocation failure.
28862
28863 2017-09-06 Florian Weimer <fweimer@redhat.com>
28864
28865 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
28866 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
28867 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
28868 New functions.
28869 (response): Call them. Add 'p', '6' flag processing.
28870 (test_reverse): New function.
28871 (test_get2_any): Call it.
28872 (test_no_inet6): Add 'p' test.
28873 (test_inet6): Likewise.
28874
28875 2017-09-06 Florian Weimer <fweimer@redhat.com>
28876
28877 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28878 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28879 the QNAME.
28880 (test_gai): Adjust query names. Add additional tests.
28881 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28882 test_get2. Adjust query names. Add additional tests.
28883 (test_no_inet6): New function, extracted from threadfunc.
28884 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28885 Add additional tests.
28886
28887 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28888
28889 [BZ #22070]
28890 * localedata/unicode-gen/utf8_gen.py: Set the width for
28891 characters with Prepended_Concatenation_Mark property to 1
28892 * localedata/charmaps/UTF-8: Updated using the improved script.
28893
28894 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28895
28896 [BZ #21750]
28897 * localedata/unicode-gen/utf8_gen.py: Improve the script to
28898 use the range notation for all ranges of neighbouring characters
28899 with the same width.
28900
28901 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28902
28903 * sysdeps/generic/math-type-macros-double.h: Include
28904 <math-svid-compat.h>.
28905 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28906 * sysdeps/generic/math-type-macros-float.h: Include
28907 <math-svid-compat.h>.
28908 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28909 * sysdeps/generic/math-type-macros-ldouble.h: Include
28910 <math-svid-compat.h>.
28911 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28912 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
28913 condition.
28914 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
28915 * math/w_acosf_compat.c: Likewise.
28916 * math/w_acosh_compat.c: Likewise.
28917 * math/w_acoshf_compat.c: Likewise.
28918 * math/w_acoshl_compat.c: Likewise.
28919 * math/w_acosl_compat.c: Likewise.
28920 * math/w_asin_compat.c: Likewise.
28921 * math/w_asinf_compat.c: Likewise.
28922 * math/w_asinl_compat.c: Likewise.
28923 * math/w_atan2_compat.c: Likewise.
28924 * math/w_atan2f_compat.c: Likewise.
28925 * math/w_atan2l_compat.c: Likewise.
28926 * math/w_atanh_compat.c: Likewise.
28927 * math/w_atanhf_compat.c: Likewise.
28928 * math/w_atanhl_compat.c: Likewise.
28929 * math/w_cosh_compat.c: Likewise.
28930 * math/w_coshf_compat.c: Likewise.
28931 * math/w_coshl_compat.c: Likewise.
28932 * math/w_exp10_compat.c: Likewise.
28933 * math/w_exp10f_compat.c: Likewise.
28934 * math/w_exp10l_compat.c: Likewise.
28935 * math/w_exp2_compat.c: Likewise.
28936 * math/w_exp2f_compat.c: Likewise.
28937 * math/w_exp2l_compat.c: Likewise.
28938 * math/w_fmod_compat.c: Likewise.
28939 * math/w_fmodf_compat.c: Likewise.
28940 * math/w_fmodl_compat.c: Likewise.
28941 * math/w_hypot_compat.c: Likewise.
28942 * math/w_hypotf_compat.c: Likewise.
28943 * math/w_hypotl_compat.c: Likewise.
28944 * math/w_j0_compat.c: Likewise.
28945 * math/w_j0f_compat.c: Likewise.
28946 * math/w_j0l_compat.c: Likewise.
28947 * math/w_j1_compat.c: Likewise.
28948 * math/w_j1f_compat.c: Likewise.
28949 * math/w_j1l_compat.c: Likewise.
28950 * math/w_jn_compat.c: Likewise.
28951 * math/w_jnf_compat.c: Likewise.
28952 * math/w_jnl_compat.c: Likewise.
28953 * math/w_lgamma_r_compat.c: Likewise.
28954 * math/w_lgammaf_r_compat.c: Likewise.
28955 * math/w_lgammal_r_compat.c: Likewise.
28956 * math/w_log10_compat.c: Likewise.
28957 * math/w_log10f_compat.c: Likewise.
28958 * math/w_log10l_compat.c: Likewise.
28959 * math/w_log2_compat.c: Likewise.
28960 * math/w_log2f_compat.c: Likewise.
28961 * math/w_log2l_compat.c: Likewise.
28962 * math/w_log_compat.c: Likewise.
28963 * math/w_logf_compat.c: Likewise.
28964 * math/w_logl_compat.c: Likewise.
28965 * math/w_pow_compat.c: Likewise.
28966 * math/w_powf_compat.c: Likewise.
28967 * math/w_powl_compat.c: Likewise.
28968 * math/w_remainder_compat.c: Likewise.
28969 * math/w_remainderf_compat.c: Likewise.
28970 * math/w_remainderl_compat.c: Likewise.
28971 * math/w_sinh_compat.c: Likewise.
28972 * math/w_sinhf_compat.c: Likewise.
28973 * math/w_sinhl_compat.c: Likewise.
28974 * math/w_sqrt_compat.c: Likewise.
28975 * math/w_sqrtf_compat.c: Likewise.
28976 * math/w_sqrtl_compat.c: Likewise.
28977 * math/w_tgamma_compat.c: Likewise.
28978 * math/w_tgammaf_compat.c: Likewise.
28979 * math/w_tgammal_compat.c: Likewise.
28980 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28981 [LIBM_SVID_COMPAT].
28982 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28983 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28984 [LIBM_SVID_COMPAT].
28985 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28986 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28987 [LIBM_SVID_COMPAT].
28988 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28989 * sysdeps/i386/fpu/w_sqrt.c: New file.
28990 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28991 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28992 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28993 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28994 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28995 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28996 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28997 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28998 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28999 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
29000 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
29001 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
29002 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
29003 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
29004 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
29005 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
29006 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
29007 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
29008 * sysdeps/ia64/fpu/w_exp.c: Likewise.
29009 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
29010 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
29011 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
29012 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
29013 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
29014 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
29015 * sysdeps/ia64/fpu/w_expf.c: Likewise.
29016 * sysdeps/ia64/fpu/w_expl.c: Likewise.
29017 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
29018 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
29019 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
29020 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
29021 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
29022 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
29023 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
29024 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
29025 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
29026 * sysdeps/ia64/fpu/w_log.c: Likewise.
29027 * sysdeps/ia64/fpu/w_log10.c: Likewise.
29028 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
29029 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
29030 * sysdeps/ia64/fpu/w_log2.c: Likewise.
29031 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
29032 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
29033 * sysdeps/ia64/fpu/w_logf.c: Likewise.
29034 * sysdeps/ia64/fpu/w_logl.c: Likewise.
29035 * sysdeps/ia64/fpu/w_pow.c: Likewise.
29036 * sysdeps/ia64/fpu/w_powf.c: Likewise.
29037 * sysdeps/ia64/fpu/w_powl.c: Likewise.
29038 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
29039 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
29040 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
29041 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
29042 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
29043 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
29044 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
29045 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
29046 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
29047 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
29048 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
29049 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
29050 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
29051 [LIBM_SVID_COMPAT].
29052 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
29053 * sysdeps/ieee754/k_standard.c: Likewise.
29054 * sysdeps/ieee754/k_standardf.c: Likewise.
29055 * sysdeps/ieee754/k_standardl.c: Likewise.
29056 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
29057 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
29058 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
29059 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
29060 long_double_symbol call on [LIBM_SVID_COMPAT].
29061 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
29062 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
29063 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
29064 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
29065 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
29066 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
29067 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
29068 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
29069 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
29070 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
29071 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
29072 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
29073 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
29074 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
29075 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
29076 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
29077 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
29078 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29079 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29080 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29081 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
29082 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
29083
29084 2017-09-05 Steve Ellcey <sellcey@cavium.com>
29085
29086 * include/shlib-compat.h (TEST_COMPAT): New Macro.
29087 * malloc/tst-mallocstate.c: Convert from test-skeleton
29088 to test-driver. Ifdef code using TEST_COMPAT macro.
29089 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
29090 * math/test-matherr.c: Likewise.
29091
29092 2017-09-05 Joseph Myers <joseph@codesourcery.com>
29093
29094 [BZ #22086]
29095 * debug/pcprofiledump.c (main): Use byte-swapped mask when
29096 comparing word with byte-swapped constant.
29097
29098 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
29099
29100 [BZ #20498]
29101 * locale/iso-639.def: add Miskito.
29102 * localedata/SUPPORTED: Add miq_NI/UTF-8.
29103 * localedata/locales/miq_NI: New file.
29104
29105 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
29106
29107 [BZ #18822]
29108 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
29109 (__mkdir): Likewise.
29110 * io/chmod.c (__chmod): Add libc_hidden_def.
29111 * io/mkdir.c (__mkdir): Likewise.
29112 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
29113 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
29114 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
29115 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
29116
29117 2017-09-04 Joseph Myers <joseph@codesourcery.com>
29118
29119 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
29120 version to 4.13.
29121
29122 [BZ #22082]
29123 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
29124 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
29125
29126 2017-09-04 Florian Weimer <fweimer@redhat.com>
29127
29128 * math/math.h: Issue warning if log is defined.
29129
29130 2017-09-04 Joseph Myers <joseph@codesourcery.com>
29131
29132 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
29133 kernel version to 4.13.
29134
29135 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
29136
29137 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
29138 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
29139 parameter.
29140 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
29141 just <bits/types.h>.
29142 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
29143 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
29144 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
29145 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
29146 * misc/preadv2.c: Include <errno.h>.
29147 * misc/preadv64v2.c: Include <errno.h>.
29148 * misc/pwritev2.c: Include <errno.h>.
29149 * misc/pwritev64v2.c: Include <errno.h>.
29150 * sysdeps/posix/preadv2.c: Include <errno.h>.
29151 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
29152 Fix <unistd.h> inclusion.
29153 * sysdeps/posix/pwritev2.c: Include <errno.h>.
29154 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
29155 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
29156 __strtoul_internal): New functions.
29157 * sysdeps/posix/pause.c: Include <sigsetops.h>.
29158 * sysdeps/posix/system.c: Include <sigsetops.h>.
29159 * sysdeps/mach/hurd/i386/Makefile
29160 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
29161 [$(subdir) = csu] (sysdep-only-routines): Likewise.
29162 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
29163 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
29164 __feraiseexcept_renamed to feraiseexcept instead of
29165 __GI_feraiseexcept.
29166 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
29167 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
29168 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
29169 RWF_NOWAIT): Define to 0 if undefined already.
29170 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
29171 boils down to 0.
29172 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
29173 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
29174
29175 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29176
29177 * manual/math.texi (pow10): Do not document.
29178 (pow10f): Likewise.
29179 (pow10l): Likewise.
29180 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
29181 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
29182 * math/libm-test-exp10.inc (pow10_test): Remove.
29183 (do_test): Do not call pow10.
29184 * math/w_exp10_compat.c (pow10): Make into compat symbol.
29185 [NO_LONG_DOUBLE] (pow10l): Likewise.
29186 * math/w_exp10f_compat.c (pow10f): Likewise.
29187 * math/w_exp10l_compat.c (pow10l): Likewise.
29188 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
29189 (pow10): Make into compat symbol.
29190 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
29191 (pow10f): Make into compat symbol.
29192 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
29193 (pow10l): Make into compat symbol.
29194 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
29195 pow10.
29196 (CFLAGS-nldbl-pow10.c): Remove variable..
29197 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
29198 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
29199 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
29200 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
29201 Undefine and redefine.
29202 (pow10l): Make into compat symbol.
29203 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
29204 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
29205 * sysdeps/arm/libm-test-ulps: Likewise.
29206 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
29207 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
29208 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29209 * sysdeps/microblaze/libm-test-ulps: Likewise.
29210 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
29211 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29212 * sysdeps/nios2/libm-test-ulps: Likewise.
29213 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29214 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
29215 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
29216 * sysdeps/sh/libm-test-ulps: Likewise.
29217 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
29218 * sysdeps/tile/libm-test-ulps: Likewise.
29219 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29220
29221 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29222
29223 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
29224
29225 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29226
29227 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
29228 "../ChangeLog.old/ChangeLog.8".
29229 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
29230 "../ChangeLog.old/ChangeLog.14".
29231
29232 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29233
29234 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
29235 Threads Library.
29236
29237 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29238
29239 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
29240
29241 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29242
29243 * csu/version.c (banner): Remove "by Roland McGrath et al.".
29244 * nptl/Banner: Remove "by Ulrich Drepper et al.".
29245
29246 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29247
29248 * stdlib/tst-atexit-common.c (do_test): Test support for at least
29249 32 atexit handlers.
29250
29251 2017-09-01 Zack Weinberg <zackw@panix.com>
29252
29253 * math/math.h (HUGE_VAL): Improve commentary.
29254
29255 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29256 Andreas Schwab <schwab@suse.de>
29257
29258 [BZ #21530]
29259 * include/stdio.h (__gen_tempfd): New function.
29260 * stdio-common/Makefile (routines): Add gentempfd.
29261 * stdio-common/gentempfd.c: New file.
29262 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
29263 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
29264 unnamed file first.
29265
29266 2017-09-01 Florian Weimer <fweimer@redhat.com>
29267
29268 [BZ #21915]
29269 [BZ #21922]
29270 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
29271 result to determine success or failure, not the errno value.
29272 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
29273 (tst-nss-files-hosts-erange): Link with -ldl.
29274 * nss/tst-nss-files-hosts-erange.c: New file.
29275 * nss/tst-resolv-basic.c (response): Handle nodata.example.
29276 (do_test): Add NO_DATA tests.
29277 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
29278 (do_test): Call it.
29279
29280 2017-09-01 Florian Weimer <fweimer@redhat.com>
29281
29282 [BZ #21922]
29283 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
29284 coming from gethostbyname2_r.
29285
29286 2017-09-01 Florian Weimer <fweimer@redhat.com>
29287
29288 * support/namespace.h (struct support_chroot_configuration): Add
29289 hosts, host_conf.
29290 (struct support_chroot): Add path_hosts, path_host_conf.
29291 * support/support_chroot.c (write_file): New function.
29292 (support_chroot_create): Call it to process /etc/resolv.conf,
29293 /etc/hosts, /etc/host.conf.
29294 (support_chroot_free): Update.
29295
29296 2017-09-01 Florian Weimer <fweimer@redhat.com>
29297
29298 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
29299 status indicates it is set.
29300
29301 2017-09-01 Florian Weimer <fweimer@redhat.com>
29302
29303 [BZ #20532]
29304 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
29305 function lookup failures more reliable.
29306
29307 2017-09-01 Florian Weimer <fweimer@redhat.com>
29308
29309 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
29310 (getcanonname): Likewise.
29311 (gaih_inet): Likewise.
29312
29313 2017-09-01 Florian Weimer <fweimer@redhat.com>
29314
29315 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
29316 (getcanonname): Likewise.
29317 (gaih_inet): Likewise.
29318
29319 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29320 Richard Henderson <rth@twiddle.net>
29321
29322 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
29323 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
29324 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
29325 (IREG_SIZE, OREG_SIZE): New macros.
29326 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
29327 (IREG_SIZE, OREG_SIZE): New macros.
29328 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
29329 (IREG_SIZE): New macro.
29330 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
29331 (IREG_SIZE): New macro.
29332 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
29333 New includes.
29334 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
29335 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29336 (__CONCATX): Handle exceptions correctly on large values that may
29337 set FE_INVALID.
29338 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
29339 Initialize if not already set.
29340 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29341
29342 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29343
29344 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
29345 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
29346 Likewise.
29347 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
29348 Likewise.
29349 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
29350 Likewise.
29351 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
29352 Likewise.
29353 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
29354 Likewise.
29355 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
29356 Likewise.
29357 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
29358 Likewise.
29359 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
29360 (NO_CANCELLATION): Likewise.
29361 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
29362 Likewise.
29363 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
29364 Likewise.
29365 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
29366 Likewise.
29367 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
29368 (NO_CANCELLATION): Likewise.
29369 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
29370 (NO_CANCELLATION): Likewise.
29371 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
29372 Likewise
29373 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
29374 Likewise.
29375 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
29376 Likewise.
29377 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
29378 Likewise.
29379 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
29380 hidden prototype.
29381 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
29382 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
29383
29384 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29385
29386 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
29387 in resolver call.
29388
29389 2017-08-31 Florian Weimer <fweimer@redhat.com>
29390
29391 * include/libc-symbols.h (internal_function): Remove.
29392
29393 2017-08-31 Florian Weimer <fweimer@redhat.com>
29394
29395 * stdlib/fmtmsg.c (internal_addseverity): Remove
29396 internal_function.
29397
29398 2017-08-31 Florian Weimer <fweimer@redhat.com>
29399
29400 * stdio-common/printf_fp.c (group_number): Remove
29401 internal_function.
29402 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
29403
29404 2017-08-31 Florian Weimer <fweimer@redhat.com>
29405
29406 * posix/fnmatch.c (internal_function): Remove definition.
29407 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
29408 * posix/regcomp.c (peek_token, init_word_char)
29409 (duplicate_node_closure, fetch_token, peek_token)
29410 (peek_token_bracket, build_range_exp, build_collating_symbol):
29411 Likewise.
29412 * posix/regex_internal.c (re_string_construct_common)
29413 (create_ci_newstate, create_cd_newstate, re_string_allocate)
29414 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
29415 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
29416 (re_string_translate_buffer, re_string_reconstruct)
29417 (re_string_peek_byte_case, re_string_fetch_byte_case)
29418 (re_string_destruct, re_string_context_at, re_node_set_alloc)
29419 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
29420 (re_node_set_add_intersect, re_node_set_init_union)
29421 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
29422 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
29423 (re_dfa_add_node, calc_state_hash, re_acquire_state)
29424 (re_acquire_state_context): Likewise.
29425 * posix/regex_internal.h (internal_function): Remove definition.
29426 (re_string_realloc_buffers, build_wcs_buffer)
29427 (build_wcs_upper_buffer, build_upper_buffer)
29428 (re_string_translate_buffer, re_string_context_at)
29429 (re_string_char_size_at, re_string_wchar_at)
29430 (re_string_elem_size_at): Likewise.
29431 * posix/regexec.c (match_ctx_init, match_ctx_clean)
29432 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
29433 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
29434 (re_search_internal, re_search_2_stub, re_search_stub)
29435 (re_copy_regs, prune_impossible_nodes, check_matching)
29436 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
29437 (free_fail_stack_return, sift_states_iter_mb)
29438 (sift_states_backward, build_sifted_states)
29439 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
29440 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
29441 (check_subexp_limits, sift_states_bkref, merge_state_array)
29442 (find_recover_state, transit_state, merge_state_with_log)
29443 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
29444 (transit_state_mb, transit_state_bkref, get_subexp)
29445 (get_subexp_sub, find_subexp_node, check_arrival)
29446 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
29447 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
29448 (check_node_accept_bytes, find_collation_sequence_value)
29449 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
29450 (acquire_init_state_context, check_halt_node_context)
29451 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
29452 (sub_epsilon_src_nodes): Likewise.
29453 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
29454 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
29455 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
29456 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
29457 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
29458 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
29459 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
29460 * sysdeps/posix/ttyname.c (getttyname): Likewise.
29461 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
29462 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
29463 (PREADV): Likewise.
29464 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
29465 (PREADV): Likewise.
29466 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
29467 (PWRITEV): Likewise.
29468 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
29469 (PWRITEV): Likewise.
29470 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
29471 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
29472
29473 2017-08-31 Florian Weimer <fweimer@redhat.com>
29474
29475 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
29476 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
29477 Remove internal_function.
29478 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
29479 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
29480 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
29481 (__deallocate_stack, __libc_pthread_init)
29482 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
29483 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
29484 (__libc_disable_asynccancel, __librt_disable_asynccancel):
29485 Likewise.
29486 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
29487 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
29488 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
29489 Likewise.
29490 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
29491 (__pthread_mutex_unlock_usercnt): Likewise.
29492
29493 2017-08-31 Florian Weimer <fweimer@redhat.com>
29494
29495 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
29496 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
29497 (fts_safe_changedir): Remove internal_function.
29498 * io/ftw.c (internal_function): Remove definition.
29499 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
29500
29501 2017-08-31 Florian Weimer <fweimer@redhat.com>
29502
29503 * inet/deadline.c (__deadline_current_time)
29504 (__deadline_from_timeval, __deadline_to_ms): Remove
29505 internal_function.
29506 * inet/getnameinfo.c (nrl_domainname): Likewise.
29507 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
29508 * inet/inet6_option.c (add_pad): Likewise.
29509 * inet/net-internal.h (__deadline_current_time)
29510 (__deadline_from_timeval, __deadline_to_ms): Likewise.
29511 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
29512 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
29513 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
29514
29515 2017-08-31 Joseph Myers <joseph@codesourcery.com>
29516
29517 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
29518 include <bits/nan.h>.
29519 * math/Makefile (headers): Remove bits/nan.h.
29520 * bits/nan.h: Remove.
29521 * sysdeps/ieee754/bits/nan.h: Likewise.
29522 * sysdeps/mips/bits/nan.h: Likewise.
29523
29524 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
29525 not include <bits/inf.h>.
29526 * math/Makefile (headers): Remove bits/inf.h.
29527 * bits/inf.h: Remove.
29528 * sysdeps/ieee754/bits/inf.h: Likewise.
29529
29530 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
29531 bits/huge_vall.h or bits/huge_val_flt128.h.
29532 (HUGE_VAL): Define directly here.
29533 [__USE_ISOC99] (HUGE_VALF): Likewise.
29534 [__USE_ISOC99] (HUGE_VALL): Likewise.
29535 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29536 (HUGE_VAL_F128): Likewise.
29537 * math/Makefile (headers): Remove bits/huge_val.h,
29538 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
29539 * bits/huge_val.h: Remove.
29540 * bits/huge_val_flt128.h: Likewise.
29541 * bits/huge_valf.h: Likewise.
29542 * bits/huge_vall.h: Likewise.
29543 * sysdeps/ia64/bits/huge_vall.h: Likewise.
29544 * sysdeps/ieee754/bits/huge_val.h: Likewise.
29545 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
29546 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
29547 * sysdeps/sh/bits/huge_val.h: Likewise.
29548 * sysdeps/sparc/bits/huge_vall.h: Likewise.
29549 * sysdeps/x86/bits/huge_vall.h: Likewise.
29550
29551 2017-08-31 Florian Weimer <fweimer@redhat.com>
29552
29553 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
29554 internal_function.
29555 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
29556 Likewise.
29557 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
29558 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
29559 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
29560 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
29561 * elf/dl-fini.c (_dl_sort_fini): Likewise.
29562 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
29563 * elf/dl-libc.c (dlerror_run): Likewise.
29564 * elf/dl-load.c (add_name_to_object, decompose_rpath)
29565 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
29566 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
29567 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
29568 Likewise.
29569 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
29570 (_dl_higher_prime_number, _dl_strtoul): Likewise.
29571 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
29572 * elf/dl-profile.c (_dl_start_profile): Likewise.
29573 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
29574 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
29575 Likewise.
29576 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
29577 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
29578 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
29579 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
29580 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
29581 (_dl_allocate_tls_storage): Likewise.
29582 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
29583 (_dl_check_all_versions): Likewise.
29584 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
29585 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
29586 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
29587 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29588 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
29589 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
29590 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
29591 internal_function from __dl_start.
29592 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
29593 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
29594 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
29595 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
29596 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
29597 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
29598 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
29599 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
29600 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
29601 (_dl_next_ld_env_entry, _dl_important_hwcaps)
29602 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
29603 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
29604 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
29605 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
29606 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
29607 Likewise.
29608 (struct rtld_global_ro): Remove internal_function from the
29609 _dl_lookup_symbol_x member.
29610 (_dl_symbol_value): Remove. No longer defined anywhere.
29611 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
29612 internal_function.
29613 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29614 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
29615 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
29616 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
29617 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
29618 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
29619 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
29620 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
29621 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
29622 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
29623 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29624 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
29625
29626 2017-08-31 Florian Weimer <fweimer@redhat.com>
29627
29628 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
29629 Remove internal_function.
29630 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29631 Likewise.
29632 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29633 Likewise.
29634
29635 2017-08-31 Florian Weimer <fweimer@redhat.com>
29636
29637 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
29638 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
29639 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
29640
29641 2017-08-31 Florian Weimer <fweimer@redhat.com>
29642
29643 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
29644 (__gai_enqueue_request): Remove internal_function.
29645 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
29646 (__gai_remove_request, __gai_notify, __gai_notify_only)
29647 (__gai_sigqueue): Likewise.
29648 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
29649 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
29650 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
29651 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
29652 Likewise.
29653
29654 2017-08-31 Florian Weimer <fweimer@redhat.com>
29655
29656 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
29657 * include/dirent.h (__opendirat, __getdents, __getdents64)
29658 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
29659 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
29660 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
29661 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29662 Likewise.
29663 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
29664
29665 2017-08-31 Florian Weimer <fweimer@redhat.com>
29666
29667 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
29668 internal_function.
29669 (GETCWD_RETURN_TYPE): Likewise.
29670
29671 2017-08-31 Florian Weimer <fweimer@redhat.com>
29672
29673 * include/time.h (__tz_compute, __strptime_internal): Remove
29674 internal_function.
29675 * time/strptime_l.c (__strptime_internal): Likewise.
29676 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
29677
29678 2017-08-31 Florian Weimer <fweimer@redhat.com>
29679
29680 * iconv/gconv.c (__gconv): Remove internal_function.
29681 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
29682 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
29683 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
29684 (__gconv_release_cache): Likewise.
29685 * iconv/gconv_close.c (__gconv_close): Likewise.
29686 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
29687 (read_conf_file, __gconv_get_path): Likewise.
29688 * iconv/gconv_db.c (derivation_lookup, add_derivation)
29689 (__gconv_release_step, gen_steps, increment_counter)
29690 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
29691 (__gconv_close_transform, free_modules_db): Likewise.
29692 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
29693 Likewise.
29694 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
29695 (__gconv_find_transform, __gconv_lookup_cache)
29696 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
29697 (__gconv_close_transform, __gconv_release_cache)
29698 (__gconv_loaded_object, __gconv_release_shlib)
29699 (__gconv_compare_alias): Likewise.
29700 * iconv/gconv_open.c (__gconv_open): Likewise.
29701 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
29702 * iconv/iconvconfig.c (add_module): Likewise.
29703 * intl/dcigettext.c (plural_lookup, guess_category_value)
29704 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
29705 * intl/eval-plural.h (plural_eval): Likewise.
29706 * intl/finddomain.c (_nl_find_domain): Likewise.
29707 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
29708 (_nl_load_domain, _nl_find_msg): Likewise.
29709 (internal_function): Remove definition.
29710 * intl/loadinfo.h (internal_function): Likewise.
29711 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
29712 internal_function.
29713 * intl/localealias.c (internal_function): Remove definition.
29714 (read_alias_file): Remove internal_function.
29715 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
29716 * intl/plural-exp.h (internal_function): Remove definition.
29717 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
29718 internal_function.
29719 * intl/plural.c: Regenerate.
29720 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
29721 * locale/coll-lookup.c (__collidx_table_lookup)
29722 (__collseq_table_lookup): Likewise.
29723 * locale/coll-lookup.h (__collidx_table_lookup)
29724 (__collseq_table_lookup): Likewise.
29725 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
29726 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
29727 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
29728 (_nl_unload_locale): Likewise.
29729 * locale/localeinfo.h (struct __locale_data): Remove
29730 internal_function from cleanup member.
29731 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
29732 (_nl_remove_locale, _nl_load_locale_from_archive)
29733 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
29734 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
29735 (_nl_cleanup_time): Remove internal_function.
29736 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
29737 (_nl_parse_alt_digit): Likewise.
29738 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
29739 (_nl_select_era_entry): Likewise.
29740 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
29741 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29742 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29743 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29744 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29745
29746 2017-08-31 Florian Weimer <fweimer@redhat.com>
29747
29748 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
29749 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29750 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
29751 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
29752 Likewise.
29753 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
29754 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
29755 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
29756 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
29757 Likewise.
29758 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
29759
29760 2017-08-31 Florian Weimer <fweimer@redhat.com>
29761
29762 * misc/getttyent.c (skip, value): Remove internal_function.
29763 * misc/syslog.c (openlog_internal): Likewise.
29764 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
29765
29766 2017-08-31 Florian Weimer <fweimer@redhat.com>
29767
29768 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
29769 (__nss_rewrite_field): Remove internal_function.
29770 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
29771 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
29772 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
29773 * nss/nsswitch.c (nss_parse_file, nss_getline)
29774 (nss_parse_service_list, nss_new_service): Likewise.
29775 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
29776 * nss/valid_field.c (__nss_valid_field): Likewise.
29777 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
29778
29779 2017-08-31 Florian Weimer <fweimer@redhat.com>
29780
29781 * malloc/arena.c (__malloc_fork_lock_parent)
29782 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
29783 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
29784 internal_function from defintions.
29785 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
29786 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
29787 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
29788 internal_function from declarations.
29789 * malloc/malloc.c (internal_function): Do not define.
29790 (mem2mem_check): Remove internal_function from declaration.
29791 (munmap_chunk, mremap_chunk): Remove internal_function.
29792 * malloc/mtrace.c (tr_where): Likewise.
29793
29794 2017-08-31 Florian Weimer <fweimer@redhat.com>
29795
29796 * include/rpc/pmap_clnt.h (__get_socket): Remove
29797 internal_function.
29798 * sunrpc/auth_des.c (synchronize): Likewise.
29799 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
29800 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
29801 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
29802 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
29803 (key_call): Likewise.
29804 * sunrpc/pm_getport.c (__get_socket): Likewise.
29805 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
29806 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
29807 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
29808 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
29809 (invalidate): Likewise.
29810 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
29811 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
29812 (set_input_fragment, get_input_bytes): Likewise.
29813
29814 2017-08-31 Florian Weimer <fweimer@redhat.com>
29815
29816 * malloc/malloc.c (_int_free): Remove locked variable and related
29817 asserts.
29818
29819 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
29820
29821 [BZ #22051]
29822 * Makerules (build-module-helper-objlist): Filter out
29823 $(elf-objpfx)sofini.os.
29824 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
29825 needed.
29826
29827 2017-08-31 Florian Weimer <fweimer@redhat.com>
29828
29829 * libio/fcloseall.c: Assume weak_alias is defined.
29830 * libio/feof.c: Likewise.
29831 * libio/fileno.c: Likewise.
29832 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
29833 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29834 definitions.
29835 (_IO_file_open): Call __open directly.
29836 (_IO_new_file_sync): Assume ESPIPE is defined.
29837 (_IO_file_seekoff_maybe_mmap): Call __read directly.
29838 (_IO_new_file_write): Call __write directly.
29839 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
29840 * libio/ftello64.c (__ftello64): Assume EIO is defined.
29841 * libio/genops.c: Assume _LIBC is defined.
29842 (save_for_backup): Remove internal_function.
29843 * libio/getc.c: Assume weak_alias is defined.
29844 * libio/getwc.c: Likewise.
29845 * libio/iofclose.c: Assume _LIBC is defined.
29846 * libio/iofdopen.c: Likewise.
29847 (_IO_fcntl): Remove macro definition.
29848 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
29849 Call __fcntl directly.
29850 * libio/iofflush.c: Assume weak_alias is defined.
29851 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
29852 defined.
29853 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
29854 * libio/iofgets.c: Likewise.
29855 * libio/iofopen.c: Assume _LIBC is defined.
29856 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
29857 * libio/iofputs.c: Assume weak_alias is defined.
29858 * libio/iofread.c: Likewise.
29859 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
29860 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
29861 * libio/ioftell.c: Assume weak_alias is defined.
29862 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
29863 * libio/iofwide.c: Assume _LIBC is defined.
29864 (_IO_fwide): Drop SHARED conditional because it is implied by
29865 SHLIB_COMPAT.
29866 * libio/iofwrite.c: Assume weak_alias is defined.
29867 * libio/iogetdelim.c: Likewise.
29868 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
29869 * libio/iogetwline.c (wmemcpy): Remove macro definition.
29870 (_IO_getwline): Call __wmemcpy directly.
29871 * libio/iopopen.c: Assume _LIBC is defined.
29872 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29873 (_IO_close): Remove macro definitions.
29874 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
29875 _exit directly.
29876 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29877 directly.
29878 * libio/ioputs.c: Assume weak_alias is defined.
29879 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29880 * libio/iosetbuffer.c: Assume weak_alias is defined.
29881 * libio/iosetvbuf.c: Likewise.
29882 * libio/ioungetc.c: Likewise.
29883 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29884 libc_hidden_def, libc_hidden_weak, NULL are defined.
29885 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29886 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29887 defined.
29888 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29889 definitions.
29890 (_IO_old_file_init_internal): Drop SHARED conditional because it
29891 is implied by SHLIB_COMPAT.
29892 (_IO_old_file_fopen): Call __open directly.
29893 (_IO_old_file_sync): Assume ESPIPE is defined.
29894 (_IO_old_file_write): Call __write directly.
29895 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29896 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
29897 Call __fcntl directly.
29898 * libio/oldiofgetpos.c: Assume weak_alias is defined.
29899 (_IO_old_fgetpos): Assume EIO is defined.
29900 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
29901 (_IO_old_fgetpos64): Assume EIO is defined.
29902 * libio/oldiofsetpos.c: Assume weak_alias is defined.
29903 (_IO_old_fsetpos): Assume EIO is defined.
29904 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
29905 (_IO_old_fsetpos64): Assume EIO is defined.
29906 * libio/oldiopopen.c: Assume _LIBC is defined.
29907 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29908 (_IO_close): Remove macro definitions.
29909 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
29910 directly.
29911 (_IO_old_proc_close): Call __close, __waitpid directly.
29912 * libio/put.c: Assume weak_alias is defined.
29913 * libio/stdfiles.c: Assume _LIBC is defined.
29914 * libio/stdio.c: Likewise.
29915 * libio/wfileops.c: Likewise.
29916 (_IO_wfile_sync): Assume ESPIPE is defined.
29917 * libio/wgenops.c: Assume _LIBC is defined.
29918 (save_for_wbackup): Remove internal_function.
29919
29920 2017-08-31 Florian Weimer <fweimer@redhat.com>
29921
29922 * malloc/malloc.c (top_check): Change return type to void. Remove
29923 internal_function.
29924 * malloc/hooks.c (top_check): Likewise.
29925 (malloc_check, realloc_check, memalign_check): Adjust.
29926
29927 2017-08-30 Joseph Myers <joseph@codesourcery.com>
29928
29929 [BZ #21457]
29930 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29931 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
29932 sigcontext and namespace requirements.
29933 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29934 * sysdeps/m68k/sys/ucontext.h: Likewise.
29935 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
29936 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
29937 <bits/sigcontext.h>.
29938 (__ctx): Define earlier.
29939 (mcontext_t): Define structure contents rather than using struct
29940 sigcontext.
29941 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
29942 __glibc_reserved1 instead of __reserved.
29943 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
29944 <bits/sigcontext.h>.
29945 (__ctx): Define earlier.
29946 (mcontext_t): Define structure contents rather than using struct
29947 sigcontext.
29948 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
29949 mcontext_t instead of struct sigcontext.
29950 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
29951 <bits/sigcontext.h>.
29952 (__ctx): Define earlier.
29953 (mcontext_t): Define structure contents rather than using struct
29954 sigcontext.
29955 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
29956 <bits/sigcontext.h>.
29957 (__ctx): Define earlier.
29958 (mcontext_t): Define structure contents rather than using struct
29959 sigcontext.
29960 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29961 mcontext_t instead of struct sigcontext.
29962 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29963 mcontext_t instead of struct sigcontext.
29964 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29965 <bits/sigcontext.h>.
29966 (__ctx): New macro.
29967 (struct __ia64_fpreg_mcontext): New type.
29968 (mcontext_t): Define structure contents rather than using struct
29969 sigcontext.
29970 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29971 (uc_sigmask): Define using __ctx.
29972 (uc_stack): Likewise.
29973 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29974 <bits/sigcontext.h>.
29975 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29976 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29977 <bits/sigcontext.h>.
29978 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29979 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29980 <bits/sigcontext.h>.
29981 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29982 <bits/sigcontext.h>.
29983 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29984 <bits/sigcontext.h>.
29985 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29986 <bits/sigcontext.h>.
29987 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29988 <bits/sigcontext.h>.
29989 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29990 <bits/sigcontext.h>.
29991 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29992 <bits/sigcontext.h>.
29993 (__ctx): Define earlier.
29994 (mcontext_t): Define structure contents rather than using struct
29995 sigcontext.
29996 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29997 <bits/sigcontext.h>. Include <bits/types.h>.
29998 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29999 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
30000 (test-xfail-XPG42/ucontext.h/conform): Likewise.
30001 (test-xfail-UNIX98/signal.h/conform): Likewise.
30002 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
30003 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
30004 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
30005 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
30006 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
30007 (test-xfail-POSIX2008/signal.h/conform): Likewise.
30008 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
30009 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
30010 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
30011
30012 2017-08-30 Florian Weimer <fweimer@redhat.com>
30013
30014 * malloc/dynarray_emplace_enlarge.c
30015 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
30016 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
30017 * malloc/tst-dynarray.c (test_long_overflow): New function.
30018 (do_test): Call it.
30019
30020 2017-08-30 Florian Weimer <fweimer@redhat.com>
30021
30022 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
30023 (set_arena_corrupt): Remove definitions.
30024 (mtrim): Do not check for corrupt arena.
30025 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
30026 Likewise.
30027
30028 2017-08-30 Florian Weimer <fweimer@redhat.com>
30029
30030 [BZ #21754]
30031 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
30032 check_action.
30033 (ptmalloc_init): Do not set or use check_action.
30034 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
30035 call to malloc_printerr. Remove return statement.
30036 (free_check): Likewise. Remove arena unlock.
30037 (top_check): Update comment. Adjust call to malloc_printerr.
30038 Remove heap repair code.
30039 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
30040 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
30041 (sysmalloc): Adjust call to malloc_printerr.
30042 (munmap_chunk, __libc_realloc): Likewise. Remove return
30043 statement.
30044 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
30045 Remove errout label and corresponding gotos.
30046 (_int_free): Likewise. Remove arena unlock.
30047 (do_set_mallopt_check): Do not set check_action.
30048 (malloc_printerr): Adjust parameter list. Do not mark arena as
30049 corrupt.
30050 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
30051 comment.
30052 * manual/probes.texi (Memory Allocation Probes): Remove
30053 memory_mallopt_check_action.
30054
30055 2017-08-30 Steve Ellcey <sellcey@cavium.com>
30056
30057 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
30058 Use pointer to uint64_t instead of long int for sp.
30059
30060 2017-08-30 Florian Weimer <fweimer@redhat.com>
30061
30062 [BZ #21754]
30063 * malloc/malloc.c (malloc_printerr): Always terminate the process,
30064 without printing a backtrace. Do not leak any information in the
30065 error message.
30066 * manual/memory.texi (Heap Consistency Checking): Update.
30067 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
30068
30069 2017-08-30 Florian Weimer <fweimer@redhat.com>
30070
30071 Do not scale NPTL tests with available number of CPUs.
30072 * nptl/tst-cond16.c (count): Set to constant value of 8.
30073 * nptl/tst-cond18.c (count): Likewise.
30074
30075 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30076
30077 [BZ #22035]
30078 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
30079 Define to take a second argument that is a macro that
30080 concatentates a suffix, not the suffix itself.
30081 (__CONCAT_d): New macro.
30082 (__CONCAT_f): Likewise.
30083 (__CONCAT_l): Likewise.
30084
30085 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
30086
30087 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
30088 by child.
30089
30090 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30091 Aurelien Jarno <aurelien@aurel32.net>
30092 Maciej W. Rozycki <macro@imgtec.com>
30093
30094 [BZ #21956]
30095 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
30096 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
30097 `mips16-syscall6' and `mips16-syscall7'.
30098 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
30099 (CFLAGS-mips16-syscall7.c): Remove.
30100 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
30101 Remove `__mips16_syscall5', `__mips16_syscall6' and
30102 `__mips16_syscall7'.
30103 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
30104 (__mips16_syscall0): Rename `__mips16_syscall_return' to
30105 `__mips_syscall_return'.
30106 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
30107 (__mips16_syscall1): Likewise.
30108 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
30109 (__mips16_syscall2): Likewise.
30110 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
30111 (__mips16_syscall3): Likewise.
30112 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
30113 (__mips16_syscall4): Likewise.
30114 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
30115 Remove.
30116 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
30117 Remove.
30118 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
30119 Remove.
30120 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
30121 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
30122 `__mips16_syscall5'. Remove prototype.
30123 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
30124 `__mips16_syscall6'. Remove prototype.
30125 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
30126 `__mips16_syscall7'. Remove prototype.
30127 (__nomips16, __mips16_syscall_return): Move to...
30128 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
30129 (__nomips16, __mips_syscall_return): ... here.
30130 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
30131 `__mips16_syscall_return' to `__mips_syscall_return'.
30132 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
30133 `internal_syscall##nr'.
30134 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
30135 `internal_syscall##nr'.
30136 (FORCE_FRAME_POINTER): Remove.
30137 (__mips_syscall5): New prototype.
30138 (internal_syscall5): Rewrite to call `__mips_syscall5'.
30139 (__mips_syscall6): New prototype.
30140 (internal_syscall6): Rewrite to call `__mips_syscall6'.
30141 (__mips_syscall7): New prototype.
30142 (internal_syscall7): Rewrite to call `__mips_syscall7'.
30143 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
30144 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
30145 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
30146 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
30147 (sysdep_routines): Add libc-do-syscall.
30148 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
30149 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
30150
30151 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30152
30153 [BZ #21672]
30154 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
30155 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
30156 (advise_stack_range): New function.
30157 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
30158 stack non required to advise_stack_range at allocatestack.c
30159
30160 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
30161
30162 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
30163
30164 2017-08-29 Florian Weimer <fweimer@redhat.com>
30165
30166 [BZ #22026]
30167 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
30168 __end_fct. Mangle __end_fct after setting it to NULL.
30169 * iconv/Makefile (tests): Add tst-gconv-init-failure.
30170 (modules-names, modules-names-tests): Add
30171 tst-gconv-init-failure-mod.
30172 (gconv-modules): New target.
30173 (tst-gconv-init-failure-mod.so): Link against libsupport.
30174 (tst-gconv-init-failure): Depend on gconv-modules,
30175 tst-gconv-init-failure-mod.so.
30176 * iconv/tst-gconv-init-failure-mod.c: New file.
30177 * iconv/tst-gconv-init-failure.c: Likewise.
30178 * iconv/test-gconv-modules: Likewise.
30179
30180 2017-08-29 Florian Weimer <fweimer@redhat.com>
30181
30182 [BZ #22025]
30183 * iconv/gconv_db.c (free_derivation): Remove redundant
30184 parentheses.
30185 (gen_steps): Unconditionally mangle __btowc_fct after
30186 initialization.
30187 (increment_counter): Likewise. Do not call init_fct for internal
30188 modules.
30189
30190 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30191
30192 [BZ #22028]
30193 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30194 (_MSUF_): Remove macro.
30195 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
30196 Likewise.
30197 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30198 (__REDIRFROM_X): New macro.
30199 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
30200 Likewise.
30201 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
30202 (__REDIRTO_X): Likewise.
30203 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
30204 arguments.
30205 (__MATH_REDIRCALL_2): Likewise.
30206 (__MATH_REDIRCALL_INTERNAL): Likewise.
30207 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30208 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
30209 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
30210 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30211 * math/test-finite-macros.c: New file.
30212 * math/Makefile (tests): Add test-finite-macros.
30213 (CFLAGS-test-finite-macros.c): New variable.
30214
30215 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
30216 Jeff Law <law@redhat.com>
30217
30218 [BZ #22025]
30219 Mangle NULL pointers in iconv/gconv.
30220 * iconv/gconv_cache.c (find_module): Demangle init_fct before
30221 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
30222 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
30223 is non-NULL before demangling the end_fct. Check for NULL
30224 end_fct after demangling.
30225 (__gconv_release_step): Demangle the end_fct before checking
30226 it for NULL. Remove assert on __shlibc_handle != NULL.
30227 (gen_steps): Don't check btowc_fct for NULL before mangling.
30228 Demangle init_fct before checking for NULL.
30229 (increment_counter): Likewise.
30230 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
30231 end_fct for NULL before mangling.
30232 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
30233 for NULL.
30234
30235 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
30236
30237 [BZ #21971]
30238 * locale/iso-639.def: add Morisyen.
30239
30240 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30241
30242 [BZ #21930]
30243 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
30244 (iszero): New C++ implementation that does not use
30245 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
30246 signaling nans are enabled, since __builtin_types_compatible_p
30247 is a C-only feature.
30248 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
30249 defined, include ieee754_float128.h for access to the union and
30250 member ieee854_float128.ieee.
30251 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
30252 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
30253 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30254 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
30255 options of test-math-zero on powerpc64le.
30256
30257 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
30258
30259 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30260 Change double to float.
30261
30262 2017-08-28 Joseph Myers <joseph@codesourcery.com>
30263
30264 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
30265 unconditional.
30266 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
30267 conditional code; define contents only for [LIBM_SVID_COMPAT].
30268
30269 2017-08-28 Florian Weimer <fweimer@redhat.com>
30270
30271 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
30272 (abi-lp64_be-options): Remove.
30273 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
30274 (abi-hard-options): Likewise.
30275 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
30276 (abi-o32_hard-options, abi-o32_soft_2008-options)
30277 (abi-o32_hard_2008-options, abi-n32_soft-options)
30278 (abi-n32_hard-options, abi-n32_soft_2008-options)
30279 (abi-n32_hard_2008-options, abi-n64_soft-options)
30280 (abi-n64_hard-options, abi-n64_soft_2008-options)
30281 (abi-n64_hard_2008-options): Likewise.
30282 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
30283 (abi-64-v1-options, abi-64-v2-options): Likewise.
30284 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
30285 (abi-64-options): Likewise.
30286 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
30287 (abi-64-options): Likewise.
30288 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
30289 (abi-64-options): Likewise.
30290 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
30291 (abi-64-options, abi-x32-options): Likewise.
30292
30293 2017-08-28 Florian Weimer <fweimer@redhat.com>
30294
30295 Store supported list of SYS_* system calls in the source tree.
30296 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
30297 (bits/syscall.h): Generate from list file.
30298 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
30299 [$(subdir) = misc] (tests): Add tst-syscall-list.
30300 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
30301 [$(subdir) = misc] (tst-syscall-list-macros.list)
30302 [$(subdir) = misc] (tst-syscall-list-nr.list)
30303 (tst-syscall-list-sys.list): Helper targets for new
30304 tst-syscall-list test.
30305 [$(subdir) = misc] (tst-syscall-list.out): Run test script
30306 tst-syscall-list.sh.
30307 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
30308 target. Do not include bits/syscall.d.
30309 [$(subdir) = misc] (generated): Do not update.
30310 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
30311 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
30312 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
30313 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
30314
30315 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
30316
30317 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
30318 (tst-cxa_atexit, tst-on_exit): Likewise.
30319 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
30320 tst-cxa_atexit, and tst-on_exit.
30321 * stdlib/tst-atexit-common.c: New file.
30322 * stdlib/tst-atexit.c: New file.
30323 * stdlib/tst-at_quick_exit.c: New file.
30324 * stdlib/tst-cxa_atexit.c: New file.
30325 * stdlib/tst-on_exit.c: New file.
30326
30327 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
30328
30329 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
30330 * mach/stack_chk_fail_local.c: New file.
30331 * hurd/stack_chk_fail_local.c: New file.
30332 * mach/Machrules ($(interface-library)-routines): Add
30333 stack_chk_fail_local.
30334 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
30335 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
30336 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
30337 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
30338 * hurd/Makefile (CFLAGS-hurdstartup.o,
30339 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
30340
30341 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
30342
30343 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
30344 (index_cpu_*, index_arch_*): Removed.
30345
30346 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
30347
30348 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
30349 Use uint64_t instead of unsigned long.
30350
30351 2017-08-25 Joseph Myers <joseph@codesourcery.com>
30352
30353 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
30354 [__HAVE_DISTINCT_FLOAT128].
30355
30356 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
30357 of <bits/math-finite.h>.
30358 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
30359 inclusion of <bits/math-finite.h>.
30360 * math/bits/math-finite.h (__REDIRTO_X): Do not define
30361 conditionally on [__MATH_DECLARING_LDOUBLE && defined
30362 __NO_LONG_DOUBLE_MATH].
30363 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
30364 (__MATH_REDIRCALL_2): Likewise.
30365 (__MATH_REDIRCALL_INTERNAL): Likewise.
30366 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30367 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
30368 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30369
30370 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
30371 Remove file.
30372 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
30373 Likewise.
30374 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
30375 Likewise.
30376 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
30377 Likewise.
30378 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
30379 Likewise.
30380 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
30381 Likewise.
30382 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30383 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30384 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30385 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30386 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
30387 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
30388 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
30389 w_sqrtf_compat-ppc32.
30390
30391 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30392
30393 * math/math.h [defined __cplusplus] (issignaling): In the long
30394 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
30395 is not defined. Call __issignaling, otherwise.
30396
30397 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30398
30399 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
30400 syscall definitions and replace __builtin_expect with __glibc_likely.
30401 * sysdeps/unix/syscall-template.S: Update comment about cancellable
30402 syscall.
30403 (SYSCALL_CANCELLABLE): Removedefinition
30404 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
30405 definition.
30406 (PSEUDO_END): Likewise.
30407 [IS_IN (libpthread)] (CENABLE): Likewise.
30408 [IS_IN (libpthread)] (CDISABLE): Likewise.
30409 [IS_IN (libc)] (CENABLE): Likewise.
30410 [IS_IN (libc)] (CENABLE): Likewise.
30411 [IS_IN (librt)] (CDISABLE): Likewise.
30412 [IS_IN (librt)] (CDISABLE): Likewise.
30413 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30414 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
30415 definition.
30416 (PSEUDO_END): Likewise.
30417 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
30418 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
30419 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30420 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30421 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30422 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30423 (CENABLE): Likewise.
30424 (CDISABLE): Likewise.
30425 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30426 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
30427 defintion.
30428 (PSEUDO_END): Likewise.
30429 [IS_IN (libpthread)] (CENABLE): Likewise.
30430 [IS_IN (libpthread)] (CDISABLE): Likewise.
30431 [IS_IN (libc)] (CENABLE): Likewise.
30432 [IS_IN (libc)] (CENABLE): Likewise.
30433 [IS_IN (librt)] (CDISABLE): Likewise.
30434 [IS_IN (librt)] (CDISABLE): Likewise.
30435 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30436 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
30437 definition.
30438 (PSEUDO_END): Likewise.
30439 [IS_IN (libpthread)] (CENABLE): Likewise.
30440 [IS_IN (libpthread)] (CDISABLE): Likewise.
30441 [IS_IN (libc)] (CENABLE): Likewise.
30442 [IS_IN (libc)] (CENABLE): Likewise.
30443 [IS_IN (librt)] (CDISABLE): Likewise.
30444 [IS_IN (librt)] (CDISABLE): Likewise.
30445 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30446 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
30447 definition.
30448 (PSEUDO_END): Likewise.
30449 [IS_IN (libpthread)] (CENABLE): Likewise.
30450 [IS_IN (libpthread)] (CDISABLE): Likewise.
30451 [IS_IN (libc)] (CENABLE): Likewise.
30452 [IS_IN (libc)] (CENABLE): Likewise.
30453 [IS_IN (librt)] (CDISABLE): Likewise.
30454 [IS_IN (librt)] (CDISABLE): Likewise.
30455 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30456 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
30457 definition.
30458 (PSEUDO_END): Likewise.
30459 [IS_IN (libpthread)] (CENABLE): Likewise.
30460 [IS_IN (libpthread)] (CDISABLE): Likewise.
30461 [IS_IN (libc)] (CENABLE): Likewise.
30462 [IS_IN (libc)] (CENABLE): Likewise.
30463 [IS_IN (librt)] (CDISABLE): Likewise.
30464 [IS_IN (librt)] (CDISABLE): Likewise.
30465 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30466 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
30467 definition.
30468 (PSEUDO_END): Likewise.
30469 [IS_IN (libpthread)] (CENABLE): Likewise.
30470 [IS_IN (libpthread)] (CDISABLE): Likewise.
30471 [IS_IN (libc)] (CENABLE): Likewise.
30472 [IS_IN (libc)] (CENABLE): Likewise.
30473 [IS_IN (librt)] (CDISABLE): Likewise.
30474 [IS_IN (librt)] (CDISABLE): Likewise.
30475 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30476 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
30477 definition.
30478 (PSEUDO_END): Likewise.
30479 [IS_IN (libpthread)] (CENABLE): Likewise.
30480 [IS_IN (libpthread)] (CDISABLE): Likewise.
30481 [IS_IN (libc)] (CENABLE): Likewise.
30482 [IS_IN (libc)] (CENABLE): Likewise.
30483 [IS_IN (librt)] (CDISABLE): Likewise.
30484 [IS_IN (librt)] (CDISABLE): Likewise.
30485 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30486 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
30487 Remove definition.
30488 (PSEUDO_END): Likewise.
30489 [IS_IN (libpthread)] (CENABLE): Likewise.
30490 [IS_IN (libpthread)] (CDISABLE): Likewise.
30491 [IS_IN (libc)] (CENABLE): Likewise.
30492 [IS_IN (libc)] (CENABLE): Likewise.
30493 [IS_IN (librt)] (CDISABLE): Likewise.
30494 [IS_IN (librt)] (CDISABLE): Likewise.
30495 (SINGLE_THREAD_P): Likewise.
30496 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
30497 definition.
30498 (PSEUDO_END): Likewise.
30499 [IS_IN (libpthread)] (CENABLE): Likewise.
30500 [IS_IN (libpthread)] (CDISABLE): Likewise.
30501 [IS_IN (libc)] (CENABLE): Likewise.
30502 [IS_IN (libc)] (CENABLE): Likewise.
30503 [IS_IN (librt)] (CDISABLE): Likewise.
30504 [IS_IN (librt)] (CDISABLE): Likewise.
30505 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30506 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
30507 definition.
30508 (PSEUDO_END): Likewise.
30509 [IS_IN (libpthread)] (CENABLE): Likewise.
30510 [IS_IN (libpthread)] (CDISABLE): Likewise.
30511 [IS_IN (libc)] (CENABLE): Likewise.
30512 [IS_IN (libc)] (CENABLE): Likewise.
30513 [IS_IN (librt)] (CDISABLE): Likewise.
30514 [IS_IN (librt)] (CDISABLE): Likewise.
30515 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30516 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
30517 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30518 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
30519 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
30520 definition.
30521 (PSEUDO_END): Likewise.
30522 [IS_IN (libpthread)] (CENABLE): Likewise.
30523 [IS_IN (libpthread)] (CDISABLE): Likewise.
30524 [IS_IN (libc)] (CENABLE): Likewise.
30525 [IS_IN (libc)] (CENABLE): Likewise.
30526 [IS_IN (librt)] (CDISABLE): Likewise.
30527 [IS_IN (librt)] (CDISABLE): Likewise.
30528 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30529 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
30530 definition.
30531 (PSEUDO_END): Likewise.
30532 [IS_IN (libpthread)] (CENABLE): Likewise.
30533 [IS_IN (libpthread)] (CDISABLE): Likewise.
30534 [IS_IN (libc)] (CENABLE): Likewise.
30535 [IS_IN (libc)] (CENABLE): Likewise.
30536 [IS_IN (librt)] (CDISABLE): Likewise.
30537 [IS_IN (librt)] (CDISABLE): Likewise.
30538 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30539 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
30540 definition.
30541 (PSEUDO_END): Likewise.
30542 [IS_IN (libpthread)] (CENABLE): Likewise.
30543 [IS_IN (libpthread)] (CDISABLE): Likewise.
30544 [IS_IN (libc)] (CENABLE): Likewise.
30545 [IS_IN (libc)] (CENABLE): Likewise.
30546 [IS_IN (librt)] (CDISABLE): Likewise.
30547 [IS_IN (librt)] (CDISABLE): Likewise.
30548 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30549 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
30550 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30551 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
30552 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
30553 definition.
30554 (PSEUDO_END): Likewise.
30555 [IS_IN (libpthread)] (CENABLE): Likewise.
30556 [IS_IN (libpthread)] (CDISABLE): Likewise.
30557 [IS_IN (libc)] (CENABLE): Likewise.
30558 [IS_IN (libc)] (CENABLE): Likewise.
30559 [IS_IN (librt)] (CDISABLE): Likewise.
30560 [IS_IN (librt)] (CDISABLE): Likewise.
30561 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30562 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
30563 definition.
30564 (PSEUDO_END): Likewise.
30565 [IS_IN (libpthread)] (CENABLE): Likewise.
30566 [IS_IN (libpthread)] (CDISABLE): Likewise.
30567 [IS_IN (libc)] (CENABLE): Likewise.
30568 [IS_IN (libc)] (CENABLE): Likewise.
30569 [IS_IN (librt)] (CDISABLE): Likewise.
30570 [IS_IN (librt)] (CDISABLE): Likewise.
30571 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30572
30573 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
30574
30575 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
30576
30577 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30578
30579 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30580
30581 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30582
30583 [BZ #21982]
30584 * string/stratcliff.c (do_test): Declare size, nchars, inner,
30585 middle and outer with size_t instead of int. Repleace %d and
30586 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
30587 "MAX (outer, nchars - 64)" to support unsigned outer and
30588 nchars. Also exit loop when outer == 0.
30589
30590 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30591
30592 * include/fcntl.h (__fcntl_nocancel): Remove definition.
30593 * include/signal.h (__sigsuspend_nocancel): Likewise.
30594 * include/time.h (__nanosleep_nocancel): Likewise.
30595 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
30596 * login/utmp_file.c: Include non cancellable syscall header.
30597 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
30598 prototype.
30599
30600 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30601
30602 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
30603 .byte sequences with AVX512F instructions.
30604 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
30605 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
30606 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
30607 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
30608 Likewise.
30609 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
30610 Likewise.
30611
30612 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
30613 Steve Ellcey <sellcey@cavium.com>
30614
30615 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
30616 Use PTR_REG macro in cmp instruction.
30617
30618 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30619
30620 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
30621 Change the return type of the ifunc resolver to match the return
30622 type of the target function.
30623
30624 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30625
30626 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
30627 (preadv64): Likewise.
30628 (pwrite64(: Likewise.
30629 (pwritev64): Likewise.
30630
30631 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
30632 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
30633 (LOAD_ARGS_0): Likewise.
30634 (LOAD_ARGS_1): Likewise.
30635 (LOAD_ARGS_2): Likewise.
30636 (LOAD_ARGS_3): Likewise.
30637 (LOAD_ARGS_4): Likewise.
30638 (LOAD_ARGS_5): Likewise.
30639 (LOAD_ARGS_6): Likewise.
30640 (LOAD_REGS_0): Likewise.
30641 (LOAD_REGS_1): Likewise.
30642 (LOAD_REGS_2): Likewise.
30643 (LOAD_REGS_3): Likewise.
30644 (LOAD_REGS_4): Likewise.
30645 (LOAD_REGS_5): Likewise.
30646 (LOAD_REGS_6): Likewise.
30647 (ASM_ARGS_0): Likewise.
30648 (ASM_ARGS_1): Likewise.
30649 (ASM_ARGS_2): Likewise.
30650 (ASM_ARGS_3): Likewise.
30651 (ASM_ARGS_4): Likewise.
30652 (ASM_ARGS_5): Likewise.
30653 (ASM_ARGS_6): Likewise.
30654 (LOAD_ARGS_TYPES_1): Likewise.
30655 (LOAD_ARGS_TYPES_2): Likewise.
30656 (LOAD_ARGS_TYPES_3): Likewise.
30657 (LOAD_ARGS_TYPES_4): Likewise.
30658 (LOAD_ARGS_TYPES_5): Likewise.
30659 (LOAD_ARGS_TYPES_6): Likewise.
30660 (LOAD_REGS_TYPES_1): Likewise.
30661 (LOAD_REGS_TYPES_2): Likewise.
30662 (LOAD_REGS_TYPES_3): Likewise.
30663 (LOAD_REGS_TYPES_4): Likewise.
30664 (LOAD_REGS_TYPES_5): Likewise.
30665 (LOAD_REGS_TYPES_6): Likewise.
30666 (TYPEFY): New define.
30667 (ARGIFY): Likewise.
30668 (internal_syscall0): Likewise.
30669 (internal_syscall1): Likewise.
30670 (internal_syscall2): Likewise.
30671 (internal_syscall3): Likewise.
30672 (internal_syscall4): Likewise.
30673 (internal_syscall5): Likewise.
30674 (internal_syscall6): Likewise.
30675 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
30676 (INTERNAL_SYSCALL_NCS): Remove define.
30677 (internal_syscall1): Add define.
30678
30679 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30680
30681 * math/w_remainder_compat.c: Remove duplicate inclusion of
30682 math-svid-compat.h.
30683 * math/w_remainderf_compat.c: Likewise.
30684 * math/w_remainderl_compat.c: Likewise.
30685
30686 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30687
30688 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30689
30690 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30691
30692 [BZ #21684]
30693 * math/tgmath.h (__floating_type): Simplify definitions.
30694 (__real_integer_type): New macro.
30695 (__complex_integer_type): Likewise.
30696 (__expr_is_real): Likewise.
30697 (__tgmath_real_type_sub): Update comment to describe handling of
30698 complex types.
30699 (__tgmath_complex_type_sub): New macro.
30700 (__tgmath_complex_type): Likewise.
30701 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30702 (__TGMATH_CF128): Use __expr_is_real.
30703 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
30704 __expr_is_real.
30705 (__TGMATH_BINARY_REAL_IMAG): Likewise.
30706 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
30707 * math/gen-tgmath-tests.py (Type.create_type): Create complex
30708 integer types.
30709
30710 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30711
30712 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
30713 macro.
30714 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
30715 alias.
30716 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
30717 Likewise.
30718
30719 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
30720 nanosleep_not_cancel with __nanosleep_nocancel.
30721 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
30722 (__nanosleep_nocancel): New macro.
30723 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
30724 function.
30725 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
30726 macro.
30727 (__nanosleep_nocancel): New prototype.
30728
30729 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
30730 pause_not_cancel with __pause_nocancel.
30731 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
30732 (__pause_nocancel): New macro.
30733 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
30734 macro.
30735 (__pause_nocancel): New prototype.
30736 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
30737
30738 2017-08-22 Martin Sebor <msebor@redhat.com>
30739
30740 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
30741 to return a pointer to the same type as the target function.
30742
30743 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30744
30745 [BZ #18822]
30746 [BZ #21986]
30747 * include/printf.h (__printf_fphex): Add attribute_hidden.
30748 (__guess_grouping): New prototype.
30749 * stdio-common/printf_fp.c (__guess_grouping): Removed.
30750 * stdio-common/reg-printf.c (__register_printf_specifier): Add
30751 libc_hidden_proto and libc_hidden_def.
30752 * stdlib/strfmon_l.c (__guess_grouping): Removed.
30753 (__vstrfmon_l): Remove the third argument passed to
30754 __guess_grouping.
30755
30756 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30757
30758 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
30759 definition for issignaling that does not rely on __MATH_TG,
30760 since __MATH_TG uses __builtin_types_compatible_p, which is only
30761 available in C mode.
30762 (CFLAGS-test-math-issignaling.cc): New variable.
30763 * math/Makefile [CXX] (tests): Add test-math-issignaling.
30764 * math/test-math-issignaling.cc: New test for C++ implementation
30765 of type-generic issignaling.
30766 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30767 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
30768 options of test-math-issignaling on powerpc64le.
30769
30770 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30771
30772 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30773 building libc.a.
30774 (hidden_proto): Likewise.
30775 (hidden_tls_proto): Likewise.
30776 (__hidden_proto): Likewise.
30777
30778 2017-08-22 Florian Weimer <fweimer@redhat.com>
30779
30780 math: Statically link tests of internal functionality.
30781 * math/Makefile (tests): Remove atest-exp, atest-sincos,
30782 atest-exp2.
30783 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
30784 (gmp-objs): Remove assignment.
30785 (atest-exp, atest-sincos, atest-exp2): Remove targets.
30786
30787 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30788
30789 [BZ #21987]
30790 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
30791 and copy to ...
30792 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
30793 ... here.
30794 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
30795 ... and here.
30796
30797 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
30798 variable definitions above inclusion of ../Rules.
30799
30800 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30801
30802 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
30803 case calling __builtin_unreachable.
30804
30805 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30806
30807 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
30808 __waitpid_nocancel.
30809 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
30810 (__waitpid_nocancel): New macro.
30811 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
30812 macro.
30813 (__waitpid_nocancel): Replace macro with a function.
30814 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
30815 function.
30816
30817 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
30818 __fcntl_nocancel.
30819 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
30820 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
30821
30822 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
30823 __writev_nocancel_nostatus.
30824 (write_call_graph): Likewise.
30825 (write_bb_counts): Likewise.
30826 * resolv/herror.c (herror): Likewise.
30827 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
30828 macro.
30829 (__writev_nocancel_nostatus): New macro.
30830 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
30831 Remove macro.
30832 (__writev_nocancel_nostatus): New function.
30833
30834 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30835
30836 Revert:
30837 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30838
30839 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30840 building libc.a.
30841 (hidden_proto): Likewise.
30842 (hidden_tls_proto): Likewise.
30843 (__hidden_proto): Likewise.
30844
30845 [BZ #21973]
30846 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
30847 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30848 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30849 Likewise.
30850 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
30851 Likewise.
30852 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30853 Likewise.
30854 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
30855 Likewise.
30856 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
30857 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30858 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30859 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30860 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30861 GLIBC_2.0 sqrtl symbol.
30862
30863 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
30864 [__USE_MISC] (_LIB_VERSION): Likewise.
30865 [__USE_MISC] (struct exception): Likewise.
30866 [__USE_MISC] (matherr): Likewise.
30867 [__USE_MISC] (DOMAIN): Likewise.
30868 [__USE_MISC] (SING): Likewise.
30869 [__USE_MISC] (OVERFLOW): Likewise.
30870 [__USE_MISC] (UNDERFLOW): Likewise.
30871 [__USE_MISC] (TLOSS): Likewise.
30872 [__USE_MISC] (PLOSS): Likewise.
30873 [__USE_MISC] (HUGE): Likewise.
30874 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
30875 * math/math-svid-compat.h: New file.
30876 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30877 and matherrl.
30878 * include/math.h [!_ISOMAC] (__matherr): Remove.
30879 * manual/arith.texi (FP Exceptions): Do not document matherr.
30880 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30881 (tests-internal): New variable.
30882 (install-lib): Do not add libieee.a.
30883 (non-lib.a): Likewise.
30884 (extra-objs): Do not add libieee.a and ieee-math.o.
30885 (CPPFLAGS-s_lib_version.c): Remove variable.
30886 ($(objpfx)libieee.a): Remove rule.
30887 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30888 * math/ieee-math.c: Remove.
30889 * math/libm-test-support.c (matherr): Remove.
30890 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30891 and license notices. Include <math-svid-compat.h> and
30892 <shlib-compat.h>.
30893 (matherr): Undefine as macro. Use compat_symbol_reference.
30894 (_LIB_VERSION): Likewise.
30895 * math/test-matherr-2.c: New file.
30896 * math/test-matherr-3.c: Likewise.
30897 * sysdeps/generic/math_private.h (__kernel_standard): Remove
30898 declaration.
30899 (__kernel_standard_f): Likewise.
30900 (__kernel_standard_l): Likewise.
30901 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
30902 <math_private.h>. Include <math-svid-compat.h>.
30903 (_LIB_VERSION): Undefine as macro.
30904 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
30905 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
30906 [LIBM_SVID_COMPAT], use compat_symbol.
30907 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
30908 <math_private.h>. Include <math-svid-compat.h>.
30909 (matherr): Undefine as macro.
30910 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
30911 compat_symbol.
30912 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
30913 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
30914 compat_symbol_reference.
30915 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
30916 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
30917 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
30918 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
30919 (MATHERR_D): Remove declaration.
30920 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
30921 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
30922 [LIBM_BUILD] (pmatherrf): Likewise.
30923 [LIBM_BUILD] (pmatherr): Likewise.
30924 [LIBM_BUILD] (pmatherrl): Likewise.
30925 (DOMAIN): Likewise.
30926 (SING): Likewise.
30927 (OVERFLOW): Likewise.
30928 (UNDERFLOW): Likewise.
30929 (TLOSS): Likewise.
30930 (PLOSS): Likewise.
30931 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
30932 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
30933 compat_symbol.
30934 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
30935 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
30936 compat_symbol.
30937 * math/lgamma-compat.h: Include <math-svid-compat.h>.
30938 * math/w_acos_compat.c: Likewise.
30939 * math/w_acosf_compat.c: Likewise.
30940 * math/w_acosh_compat.c: Likewise.
30941 * math/w_acoshf_compat.c: Likewise.
30942 * math/w_acoshl_compat.c: Likewise.
30943 * math/w_acosl_compat.c: Likewise.
30944 * math/w_asin_compat.c: Likewise.
30945 * math/w_asinf_compat.c: Likewise.
30946 * math/w_asinl_compat.c: Likewise.
30947 * math/w_atan2_compat.c: Likewise.
30948 * math/w_atan2f_compat.c: Likewise.
30949 * math/w_atan2l_compat.c: Likewise.
30950 * math/w_atanh_compat.c: Likewise.
30951 * math/w_atanhf_compat.c: Likewise.
30952 * math/w_atanhl_compat.c: Likewise.
30953 * math/w_cosh_compat.c: Likewise.
30954 * math/w_coshf_compat.c: Likewise.
30955 * math/w_coshl_compat.c: Likewise.
30956 * math/w_exp10_compat.c: Likewise.
30957 * math/w_exp10f_compat.c: Likewise.
30958 * math/w_exp10l_compat.c: Likewise.
30959 * math/w_exp2_compat.c: Likewise.
30960 * math/w_exp2f_compat.c: Likewise.
30961 * math/w_exp2l_compat.c: Likewise.
30962 * math/w_fmod_compat.c: Likewise.
30963 * math/w_fmodf_compat.c: Likewise.
30964 * math/w_fmodl_compat.c: Likewise.
30965 * math/w_hypot_compat.c: Likewise.
30966 * math/w_hypotf_compat.c: Likewise.
30967 * math/w_hypotl_compat.c: Likewise.
30968 * math/w_j0_compat.c: Likewise.
30969 * math/w_j0f_compat.c: Likewise.
30970 * math/w_j0l_compat.c: Likewise.
30971 * math/w_j1_compat.c: Likewise.
30972 * math/w_j1f_compat.c: Likewise.
30973 * math/w_j1l_compat.c: Likewise.
30974 * math/w_jn_compat.c: Likewise.
30975 * math/w_jnf_compat.c: Likewise.
30976 * math/w_jnl_compat.c: Likewise.
30977 * math/w_lgamma_main.c: Likewise.
30978 * math/w_lgamma_r_compat.c: Likewise.
30979 * math/w_lgammaf_main.c: Likewise.
30980 * math/w_lgammaf_r_compat.c: Likewise.
30981 * math/w_lgammal_main.c: Likewise.
30982 * math/w_lgammal_r_compat.c: Likewise.
30983 * math/w_log10_compat.c: Likewise.
30984 * math/w_log10f_compat.c: Likewise.
30985 * math/w_log10l_compat.c: Likewise.
30986 * math/w_log2_compat.c: Likewise.
30987 * math/w_log2f_compat.c: Likewise.
30988 * math/w_log2l_compat.c: Likewise.
30989 * math/w_log_compat.c: Likewise.
30990 * math/w_logf_compat.c: Likewise.
30991 * math/w_logl_compat.c: Likewise.
30992 * math/w_pow_compat.c: Likewise.
30993 * math/w_powf_compat.c: Likewise.
30994 * math/w_powl_compat.c: Likewise.
30995 * math/w_remainder_compat.c: Likewise.
30996 * math/w_remainderf_compat.c: Likewise.
30997 * math/w_remainderl_compat.c: Likewise.
30998 * math/w_scalb_compat.c: Likewise.
30999 * math/w_scalbf_compat.c: Likewise.
31000 * math/w_scalbl_compat.c: Likewise.
31001 * math/w_sinh_compat.c: Likewise.
31002 * math/w_sinhf_compat.c: Likewise.
31003 * math/w_sinhl_compat.c: Likewise.
31004 * math/w_sqrt_compat.c: Likewise.
31005 * math/w_sqrtf_compat.c: Likewise.
31006 * math/w_sqrtl_compat.c: Likewise.
31007 * math/w_tgamma_compat.c: Likewise.
31008 * math/w_tgammaf_compat.c: Likewise.
31009 * math/w_tgammal_compat.c: Likewise.
31010 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
31011 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
31012 * sysdeps/ieee754/k_standard.c: Likewise.
31013 * sysdeps/ieee754/k_standardf.c: Likewise.
31014 * sysdeps/ieee754/k_standardl.c: Likewise.
31015 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
31016 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
31017 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
31018 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
31019 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
31020 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
31021 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
31022 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
31023 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
31024 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
31025 Likewise.
31026 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
31027 Likewise.
31028 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
31029 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
31030 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
31031 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
31032
31033 2017-08-21 Florian Weimer <fweimer@redhat.com>
31034
31035 [BZ #21864]
31036 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
31037 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
31038 Move before inclusion of ../Rules.
31039
31040 2017-08-21 Florian Weimer <fweimer@redhat.com>
31041
31042 [BZ #21972]
31043 * assert/assert.h (assert): Use static_cast (bool) for C++.
31044 Use the ternary operator in the warning branch for GNU C.
31045 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
31046 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
31047 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
31048 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
31049 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
31050
31051 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31052
31053 [BZ #18822]
31054 * sysdeps/unix/sysv/linux/x86_64/init-first.c
31055 (__syscall_clock_gettime): Add attribute_hidden.
31056 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
31057 (__start_context): Likewise.
31058
31059 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31060
31061 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31062 building libc.a.
31063 (hidden_proto): Likewise.
31064 (hidden_tls_proto): Likewise.
31065 (__hidden_proto): Likewise.
31066
31067 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31068
31069 * include/libc-symbols.h (attribute_hidden): Enable hidden
31070 visibility in libc.a compiled with PIE.
31071
31072 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31073
31074 [BZ #18822]
31075 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
31076 Add attribute_hidden.
31077
31078 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31079
31080 [BZ #21864]
31081 * Makerules (all-nonlib): Add $(others-extras).
31082 * catgets/Makefile (others-extras): New.
31083 * elf/Makefile (others-extras): Likewise.
31084 * nss/Makefile (others-extras): Likewise.
31085
31086 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31087
31088 [BZ #18822]
31089 * csu/libc-start.c (__libc_multiple_libcs): Removed.
31090 * elf/dl-open.c: Include <libc-internal.h>.
31091 (__libc_multiple_libcs): Removed.
31092 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
31093 <hp-timing.h>.
31094 * include/libc-internal.h (__libc_multiple_libcs): New.
31095 * misc/sbrk.c: Include <libc-internal.h>.
31096 (__libc_multiple_libcs): Removed.
31097
31098 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31099
31100 [BZ #18822]
31101 * grp/initgroups.c (__nss_group_database): Removed.
31102 (__nss_initgroups_database): Likewise.
31103 * nscd/gai.c (__nss_hosts_database): Likewise.
31104 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
31105 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
31106 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
31107 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
31108 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
31109 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
31110 attribute_hidden.
31111 * nss/nsswitch.c (__nss_database_custom): Define only if
31112 USE_NSCD is defined.
31113 (__nss_configure_lookup): Use __nss_database_custom only if
31114 USE_NSCD is defined.
31115 * nss/nsswitch.h (__nss_database_custom): Declare only if
31116 USE_NSCD is defined. Add attribute_hidden.
31117 (__nss_setent): Add attribute_hidden.
31118 (__nss_endent): Likewise.
31119 (__nss_getent_r): Likewise.
31120 (__nss_getent): Likewise.
31121 (DEFINE_DATABASE): Declare __nss_##arg##_database.
31122
31123 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31124
31125 [BZ #18822]
31126 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
31127 libc_hidden_proto and libc_hidden_def.
31128
31129 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31130
31131 [BZ #18822]
31132 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
31133 Add libc_hidden_proto.
31134 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
31135 Add libc_hidden_def.
31136
31137 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31138
31139 [BZ #21974]
31140 * gmon/Makefile (routines): Remove bb_init_func and
31141 bb_exit_func.
31142 (elide-routines.os): Removed.
31143 * gmon/bb_exit_func.c: Likewise.
31144 * gmon/bb_init_func.c: Likewise.
31145 * include/sys/gmon.h (__bb): Likewise.
31146 (__bb_init_func): Likewise.
31147 (__bb_exit_func): Likewise.
31148 * sysdeps/alpha/bb_init_func.S: Likewise.
31149
31150 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31151
31152 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
31153 * include/setjmp.h (____longjmp_chk): Here. Add
31154 attribute_hidden.
31155
31156 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
31157
31158 [BZ #18822]
31159 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
31160 attribute_hidden.
31161 (__strspn_sse2): Likewise.
31162
31163 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31164
31165 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
31166 (close_not_cancel_no_status): Likewise.
31167 (__close_nocancel): New macro.
31168 (__close_nocancel_nostatus): Likewise.
31169 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
31170 macro.
31171 (close_not_cancel): Likewise.
31172 (close_not_cancel_no_status): Likewise.
31173 (__close_nocancel): New prototype.
31174 (__close_nocancel_nostatus): New function.
31175 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
31176 * catgets/open_catalog.c (__open_catalog): Replace
31177 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
31178 * gmon/gmon.c (write_gmon): Likewise.
31179 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
31180 * intl/loadmsgcat.c (close): Likewise.
31181 * io/ftw.c (open_dir_stream): Likewise.
31182 (ftw_startup): Likewise.
31183 * libio/fileops.c (_IO_file_open): Likewise.
31184 (_IO_file_close_mmap): Likewise.
31185 (_IO_file_close): Likewise.
31186 * libio/iopopen.c (_IO_dup2): Likewise.
31187 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31188 * locale/loadlocale.c (_nl_load_locale): Likewise.
31189 * login/utmp_file.c (pututline_file): Likewise.
31190 (endutent_file): Likewise.
31191 * misc/daemon.c (daemon): Likewise.
31192 * nscd/nscd_getai.c (__nscd_getai): Likewise.
31193 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31194 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31195 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31196 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
31197 * nscd/nscd_helper.c (open_socket): Likewise.
31198 (__nscd_open_socket): Likewise.
31199 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
31200 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
31201 (__nscd_innetgr): Likewise.
31202 * nss/nss_db/db-open.c (internal_setent): Likewise.
31203 * resolv/res-close.c (__res_iclose): Likewise.
31204 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
31205 * sysdeps/posix/closedir.c (__closedir): Likewise.
31206 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
31207 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31208 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31209 (opendir_tail): Likewise.
31210 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31211 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
31212 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
31213 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
31214 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31215 (gethostid): Likewise.
31216 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31217 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31218 Likewise.
31219 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31220 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
31221 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31222 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31223 Likewise.
31224 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
31225 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
31226 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31227 Likewise.
31228 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
31229 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31230 Likewise.
31231 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31232 Likewise.
31233 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31234 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31235 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31236 __close_nocancel.
31237
31238 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
31239 (openat_not_cancel_3): Likewise.
31240 (openat64_not_cancel_3): Likewise).
31241 (openat_not_cancel_3): Likewise).
31242 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
31243 macro.
31244 (openat_not_cancel_3): Likewise.
31245 (openat64_not_cancel): Likewise.
31246 (openat64_not_cancel_3): Likewise.
31247 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
31248 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
31249 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
31250 __open{64}_nocancel.
31251 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31252 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31253 * sysdeps/posix/opendir.c (__opendirat): Likewise.
31254
31255 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31256
31257 [BZ #18822]
31258 * include/argz.h (__argz_create_sep): New function prototype.
31259 (__argz_append): Likewise.
31260 (__argz_add): Likewise.
31261 (__argz_add_sep): Likewise.
31262 (__argz_delete): Likewise.
31263 (__argz_insert): Likewise.
31264 (__argz_replace): Likewise.
31265 * string/argz.h (__argz_create_sep): Removed.
31266 (__argz_append): Likewise.
31267 (__argz_add): Likewise.
31268 (__argz_add_sep): Likewise.
31269 (__argz_delete): Likewise.
31270 (__argz_insert): Likewise.
31271 (__argz_replace): Likewise.
31272
31273 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31274
31275 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
31276 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
31277 (GNU_PROPERTY_STACK_SIZE): Likewie.
31278 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
31279 (GNU_PROPERTY_LOPROC): Likewise.
31280 (GNU_PROPERTY_HIPROC): Likewise.
31281 (GNU_PROPERTY_LOUSER): Likewise.
31282 (GNU_PROPERTY_HIUSER): Likewise.
31283 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
31284 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
31285 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
31286 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
31287 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
31288 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
31289 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
31290 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
31291 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
31292 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
31293 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
31294 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
31295 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
31296 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
31297 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
31298 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
31299 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
31300 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
31301 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
31302 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
31303 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
31304 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
31305 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
31306
31307 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31308
31309 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
31310 in C++ mode.
31311
31312 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31313
31314 [BZ #21930]
31315 * math/math.h (isinf): Check if in C or C++ mode before using
31316 __builtin_types_compatible_p, since this is a C mode feature.
31317
31318 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31319
31320 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
31321 (__write_nocancel): New macro.
31322 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
31323 Rewrite as a function prototype.
31324 (write_not_cancel): Remove macro.
31325 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
31326 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
31327 (write_gmon): Likewise.
31328 * libio/fileops.c (_IO_new_file_write): Likewise.
31329 * login/utmp_file.c (pututline_file): Likewise.
31330 (updwtmp_file): Likewise.
31331 * stdio-common/psiginfo.c (psiginfo): Likewise.
31332 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31333 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31334 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31335 Likewise.
31336 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31337 Likewise.
31338
31339 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
31340 (__read_nocancel): New macro.
31341 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31342 __read_nocancel.
31343 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
31344 macro.
31345 (__read_nocancel): New prototype.
31346 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
31347 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
31348 with __read_nocancel.
31349 * intl/loadmsgcat.c (read): Likewise.
31350 * libio/fileops.c (_IO_file_read): Likewise.
31351 * locale/loadlocale.c (_nl_load_locale): Likewise.
31352 * login/utmp_file.c (getutent_r_file): Likewise.
31353 (internal_getut_r): Likewise.
31354 (getutline_r_file): Likewise.
31355 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31356 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
31357 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31358 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31359 Likewise.
31360 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
31361 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31362 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31363 Likewise.
31364 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31365 Likewise.
31366 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31367 Likewise.
31368 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31369 Likewise.
31370 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31371
31372 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31373
31374 [BZ #21966]
31375 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
31376 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
31377 usable.
31378
31379 2017-08-17 DJ Delorie <dj@redhat.com>
31380
31381 * bug17079.c: Update to new test harness.
31382 * test-digits-dots.c: Likewise.
31383 * test-netdb.c: Likewise.
31384 * tst-field.c: Likewise.
31385 * tst-nss-getpwent.c: Likewise.
31386 * tst-nss-static.c: Likewise.
31387 * tst-nss-test1.c: Likewise.
31388 * tst-nss-test2.c: Likewise.
31389 * tst-nss-test3.c: Likewise.
31390 * tst-nss-test4.c: Likewise.
31391 * tst-nss-test5.c: Likewise.
31392
31393 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31394
31395 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
31396 (open_not_cancel_2): Likewise.
31397 (open_nocancel): New macro.
31398 (open64_nocancel): Likewise.
31399 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
31400 (open_not_cancel_2): Likewise.
31401 (__open_nocancel): New prototype.
31402 (__open64_nocancel): Likewise.
31403 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31404 __open_nocancel.
31405 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
31406 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
31407 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
31408 with __open_nocancel.
31409 * csu/check_fds.c (check_one_fd): Likewise.
31410 * gmon/gmon.c (write_gmon): Likewise.
31411 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
31412 * intl/loadmsgcat.c (open): Likewise.
31413 * libio/fileops.c (_IO_file_open): Likewise.
31414 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31415 * locale/loadlocale.c (_nl_load_locale): Likewise.
31416 * login/utmp_file.c (setutent_file): Likewise.
31417 * misc/daemon.c (daemon): Likewise.
31418 * nss/nss_db/db-open.c (internal_setent): Likewise.
31419 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31420 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
31421 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31422 (__opendir): Likewise.
31423 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31424 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31425 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31426 (gethostid): Likewise.
31427 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31428 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31429 Likewise.
31430 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31431 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
31432 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31433 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31434 Likewise.
31435 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31436 Likewise.
31437 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31438 Likewise.
31439 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
31440 Likewise.
31441 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31442 Likewise.
31443 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31444 Likewise.
31445 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31446 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31447
31448 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
31449
31450 * benchtests/bench-skeleton.c (main): Add support for
31451 latency benchmarking.
31452 * benchtests/scripts/bench.py: Add support for latency benchmarking.
31453
31454 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
31455
31456 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
31457 the startup object.
31458
31459 2017-08-17 Florian Weimer <fweimer@redhat.com>
31460
31461 * include/sys/socket.h (__opensock): Remove internal_function.
31462 * socket/opensock.c (__opensock): Likewise.
31463 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
31464
31465 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31466
31467 [BZ #21944]
31468 * signal/bits/types/__sigval_t.h: New file.
31469 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
31470 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
31471 and define sigval_t using __sigval_t.
31472 * include/bits/types/__sigval_t.h: New file.
31473 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
31474 instead of <bits/types/__sigval_t.h>.
31475 (struct sigevent): Use __sigval_t instead of sigval_t.
31476 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
31477 instead of <bits/types/__sigval_t.h>.
31478 (siginfo_t): Use __sigval_t instead of sigval_t.
31479 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
31480 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31481 (struct sigevent): Use __sigval_t instead of sigval_t.
31482 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
31483 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31484 (siginfo_t): Use __sigval_t instead of sigval_t.
31485 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
31486
31487 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31488
31489 * NEWS: Remove "[Add new features here]" for 2.27.
31490
31491 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31492
31493 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
31494 libc.so.
31495
31496 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31497
31498 * NEWS: Mention x86-64 FMA optimization.
31499
31500 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31501
31502 [BZ #21912]
31503 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31504 Add e_expf-fma.
31505 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
31506 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
31507 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
31508
31509 2017-08-16 Andreas Schwab <schwab@suse.de>
31510
31511 [BZ #16750]
31512 CVE-2009-5064
31513 * elf/ldd.bash.in: Never run file directly.
31514
31515 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
31516
31517 [BZ #21955]
31518 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
31519 (L(SP_INF_0)): Likewise.
31520
31521 2017-08-15 Florian Weimer <fweimer@redhat.com>
31522
31523 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
31524 run-built-tests.
31525
31526 2017-08-15 Florian Weimer <fweimer@redhat.com>
31527
31528 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
31529 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
31530 BROKEN_THREAD_SIGNALS code.
31531 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
31532 request_list): Remove caller_pid member used for
31533 BROKEN_THREAD_SIGNALS.
31534 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
31535 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31536 Remove BROKEN_THREAD_SIGNALS support.
31537 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
31538 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
31539
31540 2017-08-15 Florian Weimer <fweimer@redhat.com>
31541
31542 * gmon/Makefile (tests): Add tst-gmon.
31543 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
31544 Set.
31545 (tests-special): Add tst-gmon-prof.out.
31546 (tst-gmon.out): Depend on clean-tst-gmon-data.
31547 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
31548 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
31549 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
31550 startup object.
31551 * aclocal.m4 (GPROF): Set and substitute.
31552 * config.amke.in (GPROF): Set.
31553 * configure: Regenerate.
31554
31555 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
31556
31557 * elf/elf.h A (NT_PPC_TAR): New macro.
31558 (NT_PPC_PPR): Likewise.
31559 (NT_PPC_DSCR): Likewise.
31560 (NT_PPC_EBB): Likewise.
31561 (NT_PPC_PMU): Likewise.
31562 (NT_PPC_TM_CGPR): Likewise.
31563 (NT_PPC_TM_CFPR): Likewise.
31564 (NT_PPC_TM_CVMX): Likewise.
31565 (NT_PPC_TM_CVSX): Likewise.
31566 (NT_PPC_TM_SPR): Likewise.
31567 (NT_PPC_TM_CTAR): Likewise.
31568 (NT_PPC_TM_CPPR): Likewise.
31569 (NT_PPC_TM_CDSCR): Likewise.
31570
31571 2017-08-15 Florian Weimer <fweimer@redhat.com>
31572
31573 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
31574 regparm (2) instead of internal_function.
31575 (_MCOUNT_DECL): Adjust.
31576
31577 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
31578
31579 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
31580 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
31581
31582 2017-08-14 Joseph Myers <joseph@codesourcery.com>
31583
31584 * conform/data/sys/wait.h-data (si_value): Do not expect for
31585 XPG42.
31586
31587 2017-08-14 Florian Weimer <fweimer@redhat.com>
31588
31589 [BZ #21962]
31590 NSS: Create stubs for accidentally exported lookup functions.
31591 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
31592 Remove declaration.
31593 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
31594 (ether_hostton): Call __nss_ethers_lookup2 instead.
31595 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
31596 (ether_ntohost): Call __nss_ethers_lookup2 instead.
31597 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
31598 (setup): Call __nss_netgroup_lookup2 instead.
31599 * nss/Makefile (routines): Add compat-lookup.
31600 * nss/Versions (GLIBC_2.27): Add symbol version.
31601 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
31602 (DB_COMPAT_FCT): Remove.
31603 * nss/compat-lookup.c: New file.
31604 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
31605 from databases.def.
31606 * nss/service-lookup.c (NO_COMPAT): Remove definition.
31607 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
31608 (netname2user): Call __nss_publickey_lookup2 instead.
31609 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
31610 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
31611 instead.
31612
31613 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31614 Sergei Trofimovich <slyfox@inbox.ru>
31615
31616 [BZ #21908]
31617 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
31618 Rename to MMAP2_PAGE_UNIT.
31619 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
31620 __OFF_T_MATCHES_OFF64_T is not defined.
31621 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
31622 uint64_t.
31623 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
31624 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
31625
31626 2017-08-14 Florian Weimer <fweimer@redhat.com>
31627
31628 i386: Do not set internal_function.
31629 * config.h.in (USE_REGPARMS, internal_function): Remove.
31630 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
31631 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
31632
31633 2017-08-14 Florian Weimer <fweimer@redhat.com>
31634
31635 * elf/dl-init.c (_dl_init): Remove internal_function.
31636 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
31637 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
31638
31639 2017-08-14 Florian Weimer <fweimer@redhat.com>
31640
31641 * elf/rtld.c (_dl_start): Remove internal_function.
31642 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
31643 _dl_start.
31644
31645 2017-08-14 Florian Weimer <fweimer@redhat.com>
31646
31647 * elf/dl-fini.c (_dl_fini): Remove internal_function
31648 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
31649
31650 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
31651
31652 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
31653 (bit_cpu_SHSTK): Likewise.
31654 (index_cpu_IBT): Likewise.
31655 (index_cpu_SHSTK): Likewise.
31656 (reg_IBT): Likewise.
31657 (reg_SHSTK): Likewise.
31658 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31659 Handle index_cpu_IBT and index_cpu_SHSTK.
31660
31661 2017-08-14 Mike FABIAN <mfabian@redhat.com>
31662
31663 [BZ #19982]
31664 * po/fr.po: Fix spelling mistake.
31665
31666 2017-08-13 Florian Weimer <fweimer@redhat.com>
31667
31668 * elf/dl-addr.c (_dl_addr): Remove internal_function.
31669 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
31670 (_dl_catch_error, _dl_receive_error): Likewise.
31671 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
31672 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
31673 (_dl_deallocate_tls): Likewise.
31674 * include/dlfcn.h (_dl_addr): Likewise.
31675 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
31676 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
31677 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
31678 Likewise.
31679
31680 2017-08-13 Florian Weimer <fweimer@redhat.com>
31681
31682 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
31683 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
31684 internal_function.
31685 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
31686
31687 2017-08-13 Florian Weimer <fweimer@redhat.com>
31688
31689 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
31690 internal_function.
31691 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
31692 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
31693 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
31694 internal_function from _dl_make_stack_executable_hook member.
31695 (_dl_make_stack_executable): Remove internal_function.
31696 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
31697 Likewise.
31698 * sysdeps/unix/sysv/linux/dl-execstack.c
31699 (_dl_make_stack_executable): Likewise.
31700
31701 2017-08-13 Florian Weimer <fweimer@redhat.com>
31702
31703 * sysdeps/unix/sysv/linux/netlinkaccess.h
31704 (__netlink_assert_response): Remove internal_function.
31705 * sysdeps/unix/sysv/linux/netlink_assert_response.c
31706 (__netlink_assert_response): Likewise.
31707
31708 2017-08-13 Florian Weimer <fweimer@redhat.com>
31709
31710 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
31711 internal_function.
31712 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
31713
31714 2017-08-13 Florian Weimer <fweimer@redhat.com>
31715
31716 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
31717 internal_function.
31718 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
31719 * inet/netgroup.h (__internal_setnetgrent)
31720 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31721 * inet/getnetgrent_r.c (__internal_setnetgrent)
31722 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31723 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
31724 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
31725 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
31726 * nss/nsswitch.h (db_lookup_function): Likewise.
31727
31728 2017-08-13 Florian Weimer <fweimer@redhat.com>
31729
31730 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
31731 Remove internal_function.
31732 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
31733 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
31734 message argument on the stack.
31735 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
31736 Likeweise.
31737
31738 2017-08-12 Mike FABIAN <mfabian@redhat.com>
31739
31740 Adapt test case data to the changes in the thousands
31741 separators.
31742
31743 [BZ #20756]
31744 * localedata/tst-langinfo.sh: Adapt test case data.
31745 * stdlib/tst-strfmon_l.c: Likewise.
31746 * stdlib/tst-strtod4.c: Likewise.
31747 * stdlib/tst-strtod5i.c: Likewise.
31748
31749 2017-08-11 Florian Weimer <fweimer@redhat.com>
31750
31751 [BZ #21242]
31752 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
31753 Suppress pedantic warning resulting from statement expression.
31754 (__ASSERT_FUNCTION): Add missing __extension__.
31755
31756 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
31757
31758 * benchtests/bench-memmove-large.c: Print output in JSON
31759 format.
31760 * benchtests/bench-memmove.c: Likewise.
31761
31762 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
31763 * benchtests/bench-memchr.c (do_one_test): Likewise.
31764 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
31765 * benchtests/bench-memcpy.c (do_one_test): Likewise.
31766 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
31767 * benchtests/bench-memmove.c (do_one_test): Likewise.
31768 * benchtests/bench-memset-large.c (do_one_test): Likewise.
31769 * benchtests/bench-memset.c (do_one_test): Likewise.
31770 * benchtests/bench-string.h (test_init): Remove memsets.
31771
31772 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31773
31774 * manual/lang.texi
31775 (Computing the Width of an Integer Data Type): Rename section to
31776 "Width of an Integer Type". Remove inaccurate statement regarding
31777 lack of C language facilities for determining width of integer
31778 types, and reorder content to improve flow and context of
31779 discussion.
31780
31781 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31782
31783 * lang.texi (va_copy): Change standard from ISO to C99.
31784 (__va_copy): Add standard and header annotation.
31785 Update description for clarity of origins and current use.
31786
31787 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31788
31789 [BZ #21941]
31790 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
31791 xssqrtqp requires operands to be in Vector Registers
31792 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
31793 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
31794 (__ieee754_sqrtf128): Likewise.
31795
31796 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
31797
31798 * sysdeps/aarch64/memcmp.S (memcmp):
31799 Rewrite of optimized memcmp.
31800
31801 2017-08-10 Florian Weimer <fweimer@redhat.com>
31802
31803 Introduce ld.so exceptions.
31804 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
31805 (_dl_exception_create, _dl_exception_create_format)
31806 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
31807 (_dl_catch_exception): Declare.
31808 (_dl_catch_error): Update comment.
31809 * elf/dl-error-skeleton.c (struct catch): Replace objname,
31810 errstring, malloced members with exception member.
31811 (_dl_out_of_memory): Remove.
31812 (fatal_error): New function, extracted from _dl_signal_error.
31813 (_dl_signal_exception, _dl_signal_cexception): New functions.
31814 (_dl_signal_error): Call _dl_exception_create to allocate an
31815 exception object.
31816 (_dl_catch_exception): New function, based on _dl_catch_error.
31817 (_dl_catch_error): Implement using _dl_catch_exception.
31818 * elf/dl-exception.c: New file.
31819 * elf/Makefile (dl-routines): Add dl-exception.
31820 (elide-routines.os): Likewise.
31821 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
31822 _dl_exception_create_format, _dl_exception_free.
31823 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
31824 _dl_signal_exception.
31825 * elf/dl-lookup.c (make_string): Remove.
31826 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
31827 _dl_signal_cexception, _dl_exception_free.
31828 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
31829 _dl_signal_exception.
31830 * elf/dl-sym.c (do_sym): Likewise.
31831 * elf/dl-version.c (make_string): Remove.
31832 (match_symbol): Use _dl_exception_create_format,
31833 _dl_signal_cexception, _dl_exception_free.
31834 (_dl_check_map_versions): Likewise.
31835 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
31836 _dl_catch_exception.
31837 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
31838 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
31839 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
31840 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
31841 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
31842 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
31843 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
31844 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
31845 Likewise.
31846 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
31847 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
31848 (ld.so): Likewise.
31849 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
31850 (ld.so): Likewise.
31851 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
31852 Likewise.
31853 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
31854 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
31855 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
31856 Likewise.
31857 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
31858 Likewise.
31859 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
31860
31861 2017-08-10 Florian Weimer <fweimer@redhat.com>
31862
31863 * inet/net-internal.h (__inet6_scopeid_pton): Remove
31864 attribute_hidden, internal_function.
31865 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
31866 internal_function.
31867
31868 2017-08-10 Florian Weimer <fweimer@redhat.com>
31869
31870 * malloc/malloc.c (get_max_fast): Reimplement as an inline
31871 function which calls __builtin_unreachable.
31872
31873 2017-08-10 Mike FABIAN <mfabian@redhat.com>
31874
31875 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31876 Indian monetary formatting
31877 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31878 test cases.
31879
31880 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31881
31882 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31883 Fix typo in comment.
31884
31885 [BZ #21928]
31886 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31887 PTRACE_SEIZE_DEVEL): Remove.
31888 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31889 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31890 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31891 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31892 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31893
31894 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31895
31896 * posix/bits/types.h (__qaddr_t): Remove.
31897
31898 [BZ #21457]
31899 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
31900 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31901 __glibc_reserved1.
31902 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
31903 (ucontext_t): Use __ctx with uc_flags.
31904 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
31905 (__ctxt): Likewise.
31906 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31907 __glibc_reserved1.
31908 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
31909 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31910 __glibc_reserved1.
31911 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
31912 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31913 __glibc_reserved1.
31914 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
31915 macro.
31916 (ucontext_t): Use __ctx with uc_flags.
31917 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
31918 (ucontext_t): Use __ctx with uc_flags.
31919 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
31920 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
31921 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
31922 (ucontext_t): Use __ctx with uc_flags.
31923 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
31924 undefine further down.
31925 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31926 __glibc_reserved1.
31927 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
31928 undefine further down.
31929 (ucontext_t): Use __ctx with uc_flags.
31930 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
31931 undefine further down.
31932 (ucontext_t): Use __ctx with uc_flags.
31933 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
31934 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
31935 Rename uc_pad to __glibc_reserved1.
31936 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
31937 undefine further down.
31938 (ucontext_t): Use __ctx with uc_flags.
31939 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
31940 further down.
31941 (ucontext_t): Use __ctx with uc_flags.
31942 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
31943 __ctx with uc_flags.
31944 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
31945 (ucontext_t): Use __ctx with uc_flags.
31946 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
31947 __ctx with uc_flags.
31948
31949 2017-08-09 Florian Weimer <fweimer@redhat.com>
31950
31951 [BZ #21932]
31952 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31953 before early return.
31954
31955 2017-08-09 Andreas Schwab <schwab@suse.de>
31956
31957 [BZ #21041]
31958 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31959 renamed alias.
31960
31961 [BZ #21041]
31962 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31963 tst-compat-forwarder.
31964 (modules-names): Add tst-compat-forwarder-mod.
31965 ($(objpfx)tst-compat-forwarder): Depend on
31966 $(objpfx)tst-compat-forwarder-mod.so.
31967 * nptl/tst-compat-forwarder.c: New file.
31968 * nptl/tst-compat-forwarder-mod.c: New file.
31969
31970 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31971
31972 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31973 comments.
31974
31975 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31976 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31977 memcpy_falkor.
31978 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31979 Bump.
31980 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31981 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31982 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31983 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31984 Add falkor.
31985 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31986 New macro.
31987
31988 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31989
31990 [BZ #759]
31991 * manual/setjmp.texi (getcontex): Document uc_stack value
31992 compatibility differences.
31993
31994 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31995
31996 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31997 (old_malloc_hook): Likewise.
31998 (old_memalign_hook): Likewise.
31999 (old_realloc_hook): Likewise.
32000 (struct hdr): Likewise.
32001 (flood): Likewise.
32002 (freehook): Likewise.
32003 (mallochook): Likewise.
32004 (memalignhook): Likewise.
32005 (reallochook): Likewise.
32006 (mprobe): Likewise.
32007 * malloc/mtrace.c (mallwatch): Likewise.
32008 (tr_old_free_hook): Likewise.
32009 (tr_old_malloc_hook): Likewise.
32010 (tr_old_realloc_hook): Likewise.
32011 (tr_old_memalign_hook): Likewise.
32012 (tr_where): Likewise.
32013 (lock_and_info): Likewise.
32014 (tr_freehook): Likewise.
32015 (tr_mallochook): Likewise.
32016 (tr_reallochook): Likewise.
32017 (tr_memalignhook): Likewise.
32018 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
32019 * misc/mmap.c (__mmap): Likewise.
32020 * misc/mmap64.c (__mmap64): Likewise.
32021 * misc/mprotect.c (__mprotect): Likewise.
32022 * misc/msync.c (msync): Likewise.
32023 * misc/munmap.c (__munmap): Likewise.
32024 * posix/posix_madvise.c (posix_madvise): Likewise.
32025 * socket/send.c (__send): Likewise.
32026 * socket/sendto.c (__sendto): Likewise.
32027 * socket/setsockopt.c (__setsockopt): Likewise.
32028 * string/memcmp.c (__ptr_t): Remove macro.
32029 (MEMCMP): Use void * instead of ptr_t.
32030 * string/memrchr.c (__ptr_t): Remove macro.
32031 (__memrchr): Use void * instead of ptr_t.
32032 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
32033 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
32034 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
32035 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
32036 * sysdeps/mach/msync.c (msync): Likewise.
32037 * sysdeps/mach/munmap.c (__munmap): Likewise.
32038 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
32039 Likewise.
32040 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32041 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
32042 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
32043 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
32044 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
32045 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
32046 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
32047 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
32048 Likewise.
32049 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
32050 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
32051 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
32052 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
32053 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
32054 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
32055 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
32056 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
32057 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
32058 Likewise.
32059 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
32060 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
32061 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
32062 (MEMCMP): Use void * instead of ptr_t.
32063 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
32064 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
32065
32066 2017-08-08 Florian Weimer <fweimer@redhat.com>
32067
32068 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
32069 return statement.
32070
32071 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
32072
32073 [BZ #21913]
32074 * csu/libc-tls.c: Include <startup.h> first.
32075 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
32076 * elf/dl-tunables.c: Include <startup.h> first.
32077 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
32078 * sysdeps/generic/startup.h: New file.
32079 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
32080 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
32081 (I386_USE_SYSENTER): New. Defined to 0.
32082
32083 2017-08-08 Andreas Schwab <schwab@suse.de>
32084
32085 [BZ #21041]
32086 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
32087 * nptl/pt-system.c (system): Likewise.
32088
32089 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32090
32091 [BZ #21780]
32092 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
32093 EOPNOTSUPP.
32094 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
32095 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
32096 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
32097 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
32098 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
32099 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
32100 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
32101
32102 2017-08-07 Joseph Myers <joseph@codesourcery.com>
32103
32104 [BZ #21899]
32105 * bits/sigaction.h (struct sigaction): Define sa_handler and
32106 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
32107 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32108 [__USE_XOPEN_EXTENDED].
32109 (SA_RESTART): Likewise.
32110 (SA_NODEFER): Likewise.
32111 (SA_RESETHAND): Likewise.
32112 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
32113 (struct sigaction): Define sa_handler and sa_sigaction using union
32114 also for [__USE_XOPEN_EXTENDED].
32115 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32116 [__USE_XOPEN_EXTENDED].
32117 (SA_RESTART): Likewise.
32118 (SA_NODEFER): Likewise.
32119 (SA_RESETHAND): Likewise.
32120 * sysdeps/unix/sysv/linux/bits/sigaction.h
32121 (struct sigaction): Define sa_handler and sa_sigaction using union
32122 also for [__USE_XOPEN_EXTENDED].
32123 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32124 [__USE_XOPEN_EXTENDED].
32125 (SA_RESTART): Likewise.
32126 (SA_NODEFER): Likewise.
32127 (SA_RESETHAND): Likewise.
32128 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
32129 (struct sigaction): Define sa_handler and sa_sigaction using union
32130 also for [__USE_XOPEN_EXTENDED].
32131 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32132 [__USE_XOPEN_EXTENDED].
32133 (SA_RESTART): Likewise.
32134 (SA_NODEFER): Likewise.
32135 (SA_RESETHAND): Likewise.
32136 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
32137 (struct sigaction): Define sa_handler and sa_sigaction using union
32138 also for [__USE_XOPEN_EXTENDED].
32139 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32140 [__USE_XOPEN_EXTENDED].
32141 (SA_RESTART): Likewise.
32142 (SA_NODEFER): Likewise.
32143 (SA_RESETHAND): Likewise.
32144 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
32145 (struct sigaction): Define sa_handler and sa_sigaction using union
32146 also for [__USE_XOPEN_EXTENDED].
32147 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32148 [__USE_XOPEN_EXTENDED].
32149 (SA_RESTART): Likewise.
32150 (SA_NODEFER): Likewise.
32151 (SA_RESETHAND): Likewise.
32152 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
32153 (struct sigaction): Define sa_handler and sa_sigaction using union
32154 also for [__USE_XOPEN_EXTENDED].
32155 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32156 [__USE_XOPEN_EXTENDED].
32157 (SA_RESTART): Likewise.
32158 (SA_NODEFER): Likewise.
32159 (SA_RESETHAND): Likewise.
32160 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
32161 (struct sigaction): Define sa_handler and sa_sigaction using union
32162 also for [__USE_XOPEN_EXTENDED].
32163 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32164 [__USE_XOPEN_EXTENDED].
32165 (SA_RESTART): Likewise.
32166 (SA_NODEFER): Likewise. Define directly rather than as alias.
32167 (SA_RESETHAND): Likewise.
32168 (SA_INTERRUPT): Define only for [__USE_MISC].
32169 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
32170 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
32171 [__USE_MISC].
32172 (SA_STACK): Define only for [__USE_MISC].
32173 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
32174 (struct sigaction): Define sa_handler and sa_sigaction using union
32175 also for [__USE_XOPEN_EXTENDED].
32176 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32177 [__USE_XOPEN_EXTENDED].
32178 (SA_RESTART): Likewise.
32179 (SA_NODEFER): Likewise.
32180 (SA_RESETHAND): Likewise.
32181 (SA_NOPTRACE): Define only for [__USE_MISC].
32182
32183 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
32184 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
32185 (struct catalog_info): Likewise.
32186 * inet/htontest.c (lo): Likewise.
32187 (foo): Likewise.
32188 * inet/inet_lnaof.c (inet_lnaof): Likewise.
32189 * inet/inet_net.c (inet_network): Likewise.
32190 * inet/inet_netof.c (inet_netof): Likewise.
32191 * inet/rcmd.c (__ivaliduser): Likewise.
32192 (iruserok): Likewise.
32193 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
32194 * locale/programs/locale-spec.c (locale_special): Likewise.
32195 * nis/nis_findserv.c (struct findserv_req): Likewise.
32196 (__nis_findfastest_with_timeout): Likewise.
32197 * nss/test-netdb.c (test_network): Likewise.
32198 * resolv/inet_neta.c (inet_neta): Likewise.
32199 * resolv/ns_date.c (ns_datetosecs): Likewise.
32200 (SECS_PER_DAY): Likewise.
32201 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
32202 Likewise.
32203 * resolv/res_comp.c (__putlong): Likewise.
32204 (__putshort): Likewise.
32205 (_getlong): Likewise.
32206 (_getshort): Likewise.
32207 * resolv/res_debug.c (p_time): Likewise.
32208 (precsize_ntoa): Likewise.
32209 (precsize_aton): Likewise.
32210 (latlon2ul): Likewise.
32211 (loc_aton): Likewise.
32212 (loc_ntoa): Likewise.
32213 * resolv/res_hconf.c (struct netaddr): Likewise.
32214 (_res_hconf_reorder_addrs): Likewise.
32215 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
32216 (clnttcp_control): Likewise.
32217 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
32218 (clntudp_control): Likewise.
32219 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
32220 (clntunix_control): Likewise.
32221 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
32222 * sunrpc/rpc/auth.h (union des_block): Likewise.
32223 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
32224 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
32225 (xdrrec_create): Likewise.
32226 (xdrrec_endofrecord): Likewise.
32227 (flush_out): Likewise.
32228 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
32229 (xdrstdio_putlong): Likewise.
32230 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
32231 Likewise.
32232
32233 * misc/sys/cdefs.h (__long_double_t): Remove.
32234 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
32235 instead of __long_double_t,
32236 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
32237
32238 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
32239
32240 * benchtests/scripts/compare_strings.py: Avoid display error when
32241 running on a text terminal.
32242
32243 * benchtests/scripts/compare_strings.py (main): Add an
32244 optional -base option.
32245 (process_results): New argument base_func.
32246
32247 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
32248 hardcoding memcpy.
32249 * benchtests/bench-memcpy-large.c (test_name): Likewise.
32250 * benchtests/bench-memcpy-random.c (test_name): Likewise.
32251
32252 2017-08-07 Andreas Schwab <schwab@suse.de>
32253
32254 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
32255 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
32256 * intl/Makefile ($(objpfx)tst-gettext.out)
32257 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
32258 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
32259 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
32260 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
32261 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
32262 * posix/Makefile ($(objpfx)globtest.out)
32263 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
32264 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
32265 ($(objpfx)tst-printf.out): Likewise.
32266 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
32267 ($(objpfx)tst-setcontext3.out): Likewise.
32268
32269 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
32270
32271 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32272 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
32273 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
32274 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
32275 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
32276 and mptan-fma.
32277 (CFLAGS-doasin-fma.c): New.
32278 (CFLAGS-dosincos-fma.c): Likewise.
32279 (CFLAGS-e_asin-fma.c): Likewise.
32280 (CFLAGS-e_atan2-fma.c): Likewise.
32281 (CFLAGS-e_exp-fma.c): Likewise.
32282 (CFLAGS-e_log-fma.c): Likewise.
32283 (CFLAGS-e_pow-fma.c): Likewise.
32284 (CFLAGS-halfulp-fma.c): Likewise.
32285 (CFLAGS-mpa-fma.c): Likewise.
32286 (CFLAGS-mpatan-fma.c): Likewise.
32287 (CFLAGS-mpatan2-fma.c): Likewise.
32288 (CFLAGS-mpexp-fma.c): Likewise.
32289 (CFLAGS-mplog-fma.c): Likewise.
32290 (CFLAGS-mpsqrt-fma.c): Likewise.
32291 (CFLAGS-mptan-fma.c): Likewise.
32292 (CFLAGS-s_atan-fma.c): Likewise.
32293 (CFLAGS-sincos32-fma.c): Likewise.
32294 (CFLAGS-slowexp-fma.c): Likewise.
32295 (CFLAGS-slowpow-fma.c): Likewise.
32296 (CFLAGS-s_sin-fma.c): Likewise.
32297 (CFLAGS-s_tan-fma.c): Likewise.
32298 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
32299 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
32300 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
32301 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
32302 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
32303 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
32304 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
32305 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
32306 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
32307 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
32308 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
32309 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
32310 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
32311 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
32312 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
32313 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
32314 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
32315 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
32316 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
32317 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
32318 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
32319 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
32320 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
32321 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
32322 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32323 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32324 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32325 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
32326 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32327 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32328 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32329
32330 2017-08-04 Joseph Myers <joseph@codesourcery.com>
32331
32332 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
32333 (min_of_type_f): New macro.
32334 (min_of_type_): Likewise.
32335 (min_of_type_l): Likewise.
32336 (min_of_type_f128): Likewise.
32337 (min_of_type): Define using __MATH_TG and taking an expression
32338 argument.
32339 (math_check_force_underflow): Pass expression instead of type to
32340 min_of_type.
32341 (math_check_force_underflow_nonneg): Likewise.
32342
32343 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32344
32345 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32346 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
32347 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
32348
32349 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32350
32351 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32352 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
32353 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
32354 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
32355 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
32356 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
32357 memcpy_chk-nonshared, mempcpy_chk-nonshared,
32358 memmove_chk-nonshared and memset_chk-nonshared
32359 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
32360 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
32361 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
32362 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
32363 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
32364 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
32365 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
32366 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
32367 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
32368 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
32369 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
32370 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
32371 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
32372 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
32373 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
32374 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
32375 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
32376 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
32377 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
32378 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
32379 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
32380 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
32381 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
32382 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
32383 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
32384 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
32385 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
32386 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
32387 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
32388 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
32389 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
32390 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
32391 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
32392 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32393 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32394 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
32395 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
32396 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
32397 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
32398 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
32399 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
32400 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
32401 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
32402 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
32403 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
32404 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
32405 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
32406 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
32407 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
32408 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
32409 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
32410 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
32411 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
32412 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
32413 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
32414 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
32415 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
32416 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
32417 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
32418 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
32419 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
32420 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
32421 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
32422 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
32423 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
32424 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
32425 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
32426 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
32427 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
32428 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
32429 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
32430 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
32431 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
32432 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
32433 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
32434 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
32435 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
32436 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
32437 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
32438 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
32439 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
32440 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
32441 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
32442 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
32443 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
32444 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
32445 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
32446 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
32447 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
32448 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32449 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
32450 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
32451 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
32452 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32453 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
32454 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
32455 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
32456 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
32457 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
32458 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
32459 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
32460 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
32461 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
32462 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
32463 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
32464 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
32465 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
32466 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
32467
32468 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32469
32470 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
32471 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
32472 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
32473 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
32474 svml_d_log2_core-sse2, svml_d_log4_core-sse,
32475 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
32476 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
32477 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
32478 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
32479 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
32480 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
32481 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
32482 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
32483 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
32484 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
32485 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
32486 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
32487 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
32488 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
32489 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
32490 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
32491 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
32492 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
32493 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
32494 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
32495 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
32496 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
32497 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
32498 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
32499 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
32500 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
32501 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
32502 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
32503 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
32504 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
32505 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
32506 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
32507 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
32508 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
32509 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
32510 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
32511 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
32512 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
32513 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
32514 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
32515 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
32516 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
32517 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
32518 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
32519 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
32520 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
32521 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
32522 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
32523 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
32524 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
32525 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
32526 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
32527 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
32528 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
32529 ...
32530 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
32531 Don't include <sysdep.h> nor <init-arch.h>.
32532 (_ZGVbN2v_cos): Removed.
32533 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
32534 ...
32535 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
32536 Don't include <sysdep.h> nor <init-arch.h>.
32537 (_ZGVdN4v_cos): Removed.
32538 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
32539 ...
32540 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
32541 Don't include <sysdep.h> nor <init-arch.h>.
32542 (_ZGVeN8v_cos): Removed.
32543 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
32544 ...
32545 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
32546 Don't include <sysdep.h> nor <init-arch.h>.
32547 (_ZGVbN2v_exp): Removed.
32548 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
32549 ...
32550 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
32551 Don't include <sysdep.h> nor <init-arch.h>.
32552 (_ZGVdN4v_exp): Removed.
32553 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
32554 ...
32555 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
32556 Don't include <sysdep.h> nor <init-arch.h>.
32557 (_ZGVeN8v_exp): Removed.
32558 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
32559 ...
32560 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
32561 Don't include <sysdep.h> nor <init-arch.h>.
32562 (_ZGVbN2v_log): Removed.
32563 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
32564 ...
32565 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
32566 Don't include <sysdep.h> nor <init-arch.h>.
32567 (_ZGVdN4v_log): Removed.
32568 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
32569 ...
32570 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
32571 Don't include <sysdep.h> nor <init-arch.h>.
32572 (_ZGVeN8v_log): Removed.
32573 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
32574 ...
32575 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
32576 Don't include <sysdep.h> nor <init-arch.h>.
32577 (_ZGVbN2vv_pow): Removed.
32578 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
32579 ...
32580 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
32581 Don't include <sysdep.h> nor <init-arch.h>.
32582 (_ZGVdN4vv_pow): Removed.
32583 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
32584 ...
32585 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
32586 Don't include <sysdep.h> nor <init-arch.h>.
32587 (_ZGVeN8vv_pow): Removed.
32588 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
32589 ...
32590 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
32591 Don't include <sysdep.h> nor <init-arch.h>.
32592 (_ZGVbN2v_sin): Removed.
32593 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
32594 ...
32595 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
32596 Don't include <sysdep.h> nor <init-arch.h>.
32597 (_ZGVbN4v_sin): Removed.
32598 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
32599 ...
32600 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
32601 Don't include <sysdep.h> nor <init-arch.h>.
32602 (_ZGVbN8v_sin): Removed.
32603 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
32604 ...
32605 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
32606 Don't include <sysdep.h> nor <init-arch.h>.
32607 (_ZGVbN2vvv_sincos): Removed.
32608 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
32609 ...
32610 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
32611 Don't include <sysdep.h> nor <init-arch.h>.
32612 (_ZGVdN4vvv_sincos): Removed.
32613 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
32614 ...
32615 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
32616 Don't include <sysdep.h> nor <init-arch.h>.
32617 (_ZGVeN8vvv_sincos): Removed.
32618 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
32619 ...
32620 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
32621 Don't include <sysdep.h> nor <init-arch.h>.
32622 (_ZGVeN16v_cosf): Removed.
32623 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
32624 ...
32625 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
32626 Don't include <sysdep.h> nor <init-arch.h>.
32627 (_ZGVbN4v_cosf): Removed.
32628 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
32629 ...
32630 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
32631 Don't include <sysdep.h> nor <init-arch.h>.
32632 (_ZGVdN8v_cosf): Removed.
32633 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
32634 ...
32635 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
32636 Don't include <sysdep.h> nor <init-arch.h>.
32637 (_ZGVeN16v_expf): Removed.
32638 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
32639 ...
32640 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
32641 Don't include <sysdep.h> nor <init-arch.h>.
32642 (_ZGVbN4v_expf): Removed.
32643 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
32644 ...
32645 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
32646 Don't include <sysdep.h> nor <init-arch.h>.
32647 (_ZGVdN8v_expf): Removed.
32648 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
32649 ...
32650 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
32651 Don't include <sysdep.h> nor <init-arch.h>.
32652 (_ZGVeN16v_logf): Removed.
32653 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
32654 ...
32655 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
32656 Don't include <sysdep.h> nor <init-arch.h>.
32657 (_ZGVbN4v_logf): Removed.
32658 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
32659 ...
32660 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
32661 Don't include <sysdep.h> nor <init-arch.h>.
32662 (_ZGVdN8v_logf): Removed.
32663 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
32664 ...
32665 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
32666 Don't include <sysdep.h> nor <init-arch.h>.
32667 (_ZGVeN16vv_powf): Removed.
32668 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
32669 ...
32670 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
32671 Don't include <sysdep.h> nor <init-arch.h>.
32672 (_ZGVbN4vv_powf): Removed.
32673 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
32674 ...
32675 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
32676 Don't include <sysdep.h> nor <init-arch.h>.
32677 (_ZGVdN8vv_powf): Removed.
32678 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
32679 ...
32680 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
32681 Don't include <sysdep.h> nor <init-arch.h>.
32682 (_ZGVeN16vvv_sincosf): Removed.
32683 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
32684 ...
32685 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
32686 Don't include <sysdep.h> nor <init-arch.h>.
32687 (_ZGVbN4vvv_sincosf): Removed.
32688 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
32689 ...
32690 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
32691 Don't include <sysdep.h> nor <init-arch.h>.
32692 (_ZGVdN8vvv_sincosf): Removed.
32693 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
32694 ...
32695 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
32696 Don't include <sysdep.h> nor <init-arch.h>.
32697 (_ZGVeN16v_sinf): Removed.
32698 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
32699 ...
32700 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
32701 Don't include <sysdep.h> nor <init-arch.h>.
32702 (_ZGVbN4v_sinf): Removed.
32703 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
32704 ...
32705 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
32706 Don't include <sysdep.h> nor <init-arch.h>.
32707 (_ZGVdN8v_sinf): Removed.
32708
32709 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32710
32711 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32712 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
32713 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
32714 s_rint-sse4_1 and s_rintf-sse4_1.
32715 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
32716 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
32717 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
32718 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
32719 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
32720 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
32721 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
32722 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
32723 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
32724 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
32725 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
32726 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32727 (__ceil): Removed.
32728 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
32729 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
32730 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32731 (__ceilf): Removed.
32732 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
32733 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
32734 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32735 (__floor): Removed.
32736 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
32737 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
32738 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32739 (__floorf): Removed.
32740 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
32741 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
32742 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32743 (__nearbyint): Removed.
32744 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
32745 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
32746 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32747 (__nearbyintf): Removed.
32748 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
32749 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
32750 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32751 (__rint): Removed.
32752 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
32753 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
32754 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32755 (__rintf): Removed.
32756
32757 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32758
32759 * sysdeps/i386/start.S (_start): Check Check PIC instead of
32760 SHARED. Avoid dynamic relocation against main in static PIE.
32761
32762 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32763
32764 [BZ #21815]
32765 * elf/Makefile (CFLAGS-tst-prelink.c): New.
32766 (LDFLAGS-tst-prelink): Likewise.
32767
32768 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32769
32770 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
32771 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
32772 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
32773 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
32774 (INTERNAL_SYSCALL_NCS): Likewise.
32775 (LOADARGS_1): Likewise.
32776 (LOADARGS_5): Likewise.
32777 (RESTOREARGS_1): Likewise.
32778 (RESTOREARGS_5): Likewise.
32779
32780 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32781
32782 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
32783 (MEMPCPY_SYMBOL): Likewise.
32784 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
32785 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
32786 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
32787 in libc.a.
32788 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32789 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
32790 Likewise.
32791 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
32792 (__hidden_ver1): Don't use in libc.a.
32793 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
32794 (__mempcpy): Don't create a weak alias in libc.a.
32795 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
32796 libc.a.
32797 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
32798 (__hidden_ver1): Don't use in libc.a.
32799
32800 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32801
32802 * config.make.in (have-insert): New.
32803 * configure.ac (libc_cv_insert): New. Set to yes if linker
32804 supports INSERT in linker script.
32805 (AC_SUBST(libc_cv_insert): New.
32806 * configure: Regenerated.
32807 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
32808 if $(have-insert) == yes.
32809
32810 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32811
32812 * elf/Makefile (tests): Add vismain only if
32813 $(have-protected-data) == yes.
32814 (tests-pie): Likewise.
32815
32816 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32817
32818 [BZ #21871]
32819 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
32820 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
32821
32822 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32823
32824 [BZ #21790]
32825 * sysdeps/i386/i586/memset.S
32826 (__memset_zero_constant_len_parameter): Removed.
32827 * sysdeps/i386/i686/memset.S
32828 (__memset_zero_constant_len_parameter): Likewise.
32829 * sysdeps/i386/i686/multiarch/memset_chk.S
32830 (__memset_zero_constant_len_parameter): Likewise.
32831 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
32832 Likewise.
32833
32834 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32835
32836 * stdlib/getentropy.c (getentropy): Change return type to int.
32837
32838 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32839
32840 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
32841
32842 2017-08-03 Joseph Myers <joseph@codesourcery.com>
32843
32844 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
32845 u_intN_t.
32846 * math/s_nexttowardf.c (__nexttowardf): Likewise.
32847 * sysdeps/generic/math_private.h (ieee_double_shape_type):
32848 Likewise.
32849 (ieee_float_shape_type): Likewise.
32850 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
32851 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
32852 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
32853 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32854 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
32855 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
32856 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
32857 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
32858 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
32859 Likewise.
32860 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
32861 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
32862 (__ieee754_yn): Likewise.
32863 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32864 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32865 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
32866 Likewise.
32867 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
32868 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
32869 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
32870 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
32871 (__erfc): Likewise.
32872 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
32873 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
32874 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
32875 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32876 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32877 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32878 Likewise.
32879 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32880 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32881 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32882 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32883 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32884 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32885 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32886 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32887 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32888 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32889 (__issignaling): Likewise.
32890 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32891 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32892 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32893 Likewise.
32894 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32895 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32896 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
32897 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
32898 Likewise.
32899 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
32900 Likewise.
32901 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
32902 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
32903 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
32904 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
32905 (__erfcf): Likewise.
32906 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
32907 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
32908 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
32909 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
32910 Likewise.
32911 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
32912 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
32913 Likewise.
32914 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
32915 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
32916 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
32917 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
32918 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
32919 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
32920 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
32921 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
32922 Likewise.
32923 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
32924 Likewise.
32925 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
32926 Likewise.
32927 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
32928 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
32929 Likewise.
32930 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
32931 Likewise.
32932 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32933 (__ieee754_ynl): Likewise.
32934 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
32935 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
32936 Likewise.
32937 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
32938 Likewise.
32939 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
32940 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
32941 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
32942 Likewise.
32943 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
32944 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
32945 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
32946 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
32947 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
32948 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
32949 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
32950 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
32951 Likewise.
32952 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32953 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32954 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32955 Likewise.
32956 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32957 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32958 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32959 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32960 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32961 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32962 Likewise.
32963 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32964 Likewise.
32965 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32966 Likewise.
32967 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32968 Likewise.
32969 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32970 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32971 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32972 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32973 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32974 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32975 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32976 Likewise.
32977 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32978 Likewise.
32979 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32980 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32981 Likewise.
32982 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32983 (__ieee754_remainderl): Likewise.
32984 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32985 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32986 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32987 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32988 Likewise.
32989 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32990 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32991 Likewise.
32992 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32993 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32994 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32995 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32996 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32997 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32998 Likewise.
32999 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
33000 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
33001 (__ieee754_y0l): Likewise.
33002 (pzero): Likewise.
33003 (qzero): Likewise.
33004 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
33005 (__ieee754_y1l): Likewise.
33006 (pone): Likewise.
33007 (qone): Likewise.
33008 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
33009 (__ieee754_ynl): Likewise.
33010 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
33011 (__ieee754_lgammal_r): Likewise.
33012 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
33013 Likewise.
33014 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
33015 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
33016 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
33017 (__erfcl): Likewise.
33018 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
33019 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
33020 Likewise.
33021 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
33022 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
33023 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
33024 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
33025 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
33026 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
33027 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
33028 Likewise.
33029 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
33030 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
33031 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
33032 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
33033 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
33034 Likewise.
33035 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
33036 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
33037 Likewise.
33038 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
33039 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
33040 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
33041 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
33042 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
33043
33044 2017-08-03 Florian Weimer <fweimer@redhat.com>
33045
33046 [BZ #21885]
33047 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
33048 on memory allocation failure.
33049
33050 2017-08-03 Alan Modra <amodra@gmail.com>
33051
33052 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
33053 tst-tlsopt-powerpc.c with function name change and no test harness.
33054 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
33055 Call tls_get_addr_opt_test.
33056 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
33057 (modules-names): Add mod-tlsopt-powerpc.
33058 (mod-tlsopt-powerpc.so-no-z-defs): Define.
33059 (tst-tlsopt-powerpc): Depend on .so.
33060 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
33061 define. Expand use in TLS_GD and TLS_LD.
33062
33063 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
33064
33065 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
33066 function.
33067 * sysdeps/posix/shm_open.c: Include <pthread.h>.
33068
33069 2017-08-02 Joseph Myers <joseph@codesourcery.com>
33070
33071 [BZ #21686]
33072 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
33073 comparing size with that of double.
33074 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33075 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33076 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33077 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33078 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33079 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
33080 unsigned __int128 types.
33081
33082 2017-08-02 Steve Ellcey <sellcey@cavium.com>
33083
33084 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
33085 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
33086 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
33087 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
33088 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
33089
33090 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33091
33092 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
33093
33094 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33095
33096 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
33097 of SHARED.
33098 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
33099 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
33100 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
33101 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
33102 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
33103 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
33104 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
33105
33106 2017-08-02 Joseph Myers <joseph@codesourcery.com>
33107
33108 [BZ #21685]
33109 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
33110 bit-field expressions passed to sizeof or typeof.
33111 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33112 (__TGMATH_F128): Likewise.
33113 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33114 (__TGMATH_CF128): Likewise.
33115 (__TGMATH_UNARY_REAL_ONLY): Likewise.
33116 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
33117 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
33118 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
33119 (__TGMATH_BINARY_REAL_ONLY): Likewise.
33120 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33121 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33122 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33123 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33124 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
33125 (__TGMATH_UNARY_REAL_IMAG): Likewise.
33126 (__TGMATH_UNARY_IMAG): Likewise.
33127 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
33128 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33129 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
33130 type.
33131 (define_vars_for_type): Handle bit_field type specially.
33132 (Tests.__init__): Declare structure with bit-field element.
33133
33134 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33135
33136 [BZ #21791]
33137 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
33138 (MEMCPY_CHK): Define only if SHARED is defined.
33139 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
33140 Likewise.
33141 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
33142 Likewise.
33143
33144 See ChangeLog.18 for earlier changes.